:root {
  --tools-sidebar: 235px;
  --tools-header: 100px;
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

.header-shell {
  background: #fff;
  border-bottom: 1px solid var(--wp--preset--color--line);
  position: relative;
  z-index: 20;
}
.header-inner { max-width: none !important; min-height: var(--tools-header); padding: 0 clamp(32px, 4vw, 112px); width: 100%; }
.brand-lockup { gap: 12px; }
.brand-mark {
  align-items: center;
  background: var(--wp--preset--color--orange);
  border-radius: 12px;
  color: #fff;
  display: flex;
  font-size: 17px;
  font-weight: 850;
  height: 46px;
  justify-content: center;
  line-height: 1;
  margin: 0;
  width: 46px;
}
.brand-mark::before {
  background: #fff;
  border-radius: 0 0 4px 4px;
  content: "";
  height: 5px;
  position: absolute;
  transform: translateY(-23px);
  width: 20px;
}
.brand-lockup .wp-block-site-title { font-weight: 750; line-height: 1.35; margin: 0; }
.brand-lockup .wp-block-site-tagline { color: var(--wp--preset--color--muted); margin: 0; }
.primary-nav { margin-inline: auto; }
.site-header nav .wp-block-navigation__container > .wp-block-navigation-item + .wp-block-navigation-item::before {
	color: var(--wp--preset--color--muted);
	content: "·";
	display: inline-block;
	font-weight: 700;
	margin: 0 10px;
}

/* Database-saved navigation can wrap page links in a nested page-list. */
.site-header nav .wp-block-navigation__container > ul > li + li::before {
	color: var(--wp--preset--color--muted);
	content: "·";
	display: inline-block;
	font-weight: 700;
	margin: 0 12px;
}
.primary-nav .wp-block-navigation-item:first-child { position: relative; }
.primary-nav .wp-block-navigation-item:first-child::after {
  background: var(--wp--preset--color--orange);
  bottom: -34px;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  width: 28px;
}
.header-actions { align-items: center; display: flex; gap: 8px; margin-left: auto; position: relative; }
.bookmark-page-button {
  background: #fff;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 9px;
  color: var(--wp--preset--color--ink);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  padding: 10px 14px;
}
.bookmark-page-button:hover,
.bookmark-page-button:focus-visible { border-color: var(--wp--preset--color--orange); color: var(--wp--preset--color--orange); }
.bookmark-list-button {
  background: transparent;
  border: 0;
  color: var(--wp--preset--color--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  padding: 9px 4px;
}
.bookmark-list-button:hover,
.bookmark-list-button:focus-visible { color: var(--wp--preset--color--orange); }
.bookmark-list-button [data-bookmark-count] { color: var(--wp--preset--color--orange); }
.bookmark-page-list {
  background: #fff;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(23, 38, 61, .14);
  min-width: 240px;
  padding: 8px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
}
.bookmark-page-list p { color: var(--wp--preset--color--muted); font-size: 13px; margin: 8px; }
.bookmark-page-list ul { list-style: none; margin: 0; padding: 0; }
.bookmark-page-list li { align-items: center; display: flex; gap: 8px; }
.bookmark-page-list a { color: var(--wp--preset--color--ink); flex: 1; font-size: 13px; overflow: hidden; padding: 9px 8px; text-overflow: ellipsis; white-space: nowrap; }
.bookmark-page-list a:hover { color: var(--wp--preset--color--orange); }
.bookmark-remove-button { background: transparent; border: 0; color: var(--wp--preset--color--muted); cursor: pointer; font-size: 16px; line-height: 1; padding: 6px; }
.bookmark-remove-button:hover { color: var(--wp--preset--color--orange); }
.bookmark-page-message { color: var(--wp--preset--color--muted); font-size: 12px; left: 0; position: absolute; top: calc(100% + 5px); white-space: nowrap; }

.toolbox-layout {
  display: grid;
  grid-template-columns: var(--tools-sidebar) minmax(0, 1fr);
  min-height: calc(100vh - var(--tools-header));
}
.toolbox-sidebar {
  background: #f8f9fb;
  border-right: 1px solid var(--wp--preset--color--line);
  padding: 28px 15px 40px;
}
.toolbox-sidebar > * { max-width: none !important; }
.sidebar-label { color: var(--wp--preset--color--muted); margin: 0 12px 12px; }
.category-list { list-style: none; margin: 0; padding: 0; }
.category-list li { margin: 0 0 4px; }
.category-list a {
  align-items: center;
  border-radius: 11px;
  color: #445069;
  display: flex;
  font-size: 14px;
  font-weight: 500;
  gap: 12px;
  padding: 10px 12px;
}
.category-list a span {
  align-items: center;
  background: #e9edf2;
  border-radius: 7px;
  color: var(--wp--preset--color--ink);
  display: inline-flex;
  font-size: 11px;
  font-weight: 750;
  height: 26px;
  justify-content: center;
  width: 26px;
}
.category-list a:hover,
.category-list a.is-active { background: #fff; color: var(--wp--preset--color--orange); }
.category-list a.is-active span { background: var(--wp--preset--color--orange); color: #fff; }
.link-notice {
  background: #fff;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 12px;
  margin-top: 30px;
  padding: 18px;
}
.link-notice h3 { color: var(--wp--preset--color--ink); margin: 0 0 8px; }
.link-notice h3::first-letter { color: #27b96d; }
.link-notice p { color: var(--wp--preset--color--muted); margin: 0; }
.donation-panel {
  background: #fff;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 12px;
  margin-top: 18px;
  padding: 16px;
  text-align: center;
}
.donation-panel h3 { color: var(--wp--preset--color--ink); margin: 0 0 8px; text-align: left; }
.donation-panel > p { color: var(--wp--preset--color--muted); margin: 0 0 14px; text-align: left; }
.donation-panel figure { margin: 14px auto 0; max-width: 150px; }
.donation-panel img { display: block; height: auto; width: 100%; }
.donation-panel figcaption { color: var(--wp--preset--color--ink); font-size: 13px; font-weight: 700; margin-top: 6px; }
.saved-summary { color: var(--wp--preset--color--muted); margin: 20px 12px; }
.saved-summary strong { color: var(--wp--preset--color--ink); font-size: 18px; }

.toolbox-content { min-width: 0; padding: 24px max(24px, 3vw) 64px; }
.hero-panel {
  background-color: var(--wp--preset--color--navy);
  background-image:
    radial-gradient(circle at 73% 115%, transparent 0 25%, rgba(255,255,255,.08) 25.2% 38%, transparent 38.2%),
    linear-gradient(120deg, transparent 0 33%, rgba(255,255,255,.09) 33.2% 33.35%, transparent 33.5% 58%, rgba(255,255,255,.09) 58.1% 58.25%, transparent 58.4%);
  border-radius: 22px;
  color: #fff;
  overflow: hidden;
  padding: 37px 42px 42px;
  position: relative;
}
.hero-panel > * { max-width: none !important; }
.hero-kicker { gap: 12px; margin-bottom: 18px; }
.hero-kicker p { color: #bdc7d5; margin: 0; }
.hero-kicker p:first-child {
  background: var(--wp--preset--color--orange);
  border-radius: 5px;
  color: #fff;
  font-size: 12px;
  letter-spacing: .06em;
  padding: 3px 8px;
}
.hero-title { color: #fff; letter-spacing: -.04em; margin: 0 0 18px; }
.hero-title mark { background: transparent; color: #ff7a2b; }
.hero-copy { color: #bdc7d5; margin: 0 0 26px; max-width: 760px !important; }
.tool-search { display: flex; margin: 0; max-width: 760px !important; }
.tool-search .wp-block-search__inside-wrapper {
  background: #fff;
  border: 0;
  border-radius: 13px;
  padding: 6px;
}
.tool-search .wp-block-search__input { border: 0; color: var(--wp--preset--color--ink); padding-left: 12px; }
.tool-search .wp-block-search__input:focus { outline: 2px solid rgba(255,101,8,.25); outline-offset: 1px; }
.tool-search .wp-block-search__button { border-radius: 10px; margin: 0; min-width: 82px; padding: 11px 18px; }
.search-suggestions { color: #9eabba; margin: 10px 0 0; }

.world-clock-bar {
  background: #fff;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 10px;
  gap: 12px;
  margin-top: 12px;
  overflow-x: auto;
  padding: 10px 14px;
  scrollbar-width: thin;
}
.world-clock-item {
  align-items: center;
  color: var(--wp--preset--color--muted);
  display: inline-flex;
  flex: 1 0 auto;
  gap: 5px;
  margin: 0;
  white-space: nowrap;
}
.world-clock-flag { font-size: 15px; line-height: 1; }
.world-clock-name { color: var(--wp--preset--color--ink); font-weight: 650; }
.world-clock-value { color: var(--wp--preset--color--muted); font-variant-numeric: tabular-nums; }

.tools-section { padding-top: 38px; }
.tools-section > * { max-width: none !important; }
.global-search-results { margin-top: 28px; }
.global-search-results[hidden] { display: none !important; }
.global-search-results-heading { align-items: baseline; border-bottom: 1px solid var(--wp--preset--color--line); display: flex; justify-content: space-between; padding-bottom: 16px; }
.global-search-results-heading h2 { margin: 0; }
.global-search-results-heading p { color: var(--wp--preset--color--muted); margin: 0; }
.global-search-result-group { margin-top: 24px; }
.global-search-result-group h3 { color: var(--wp--preset--color--ink); font-size: 18px; margin: 0; }
.global-search-empty { background: #fff; border: 1px dashed #cbd3de; border-radius: 14px; color: var(--wp--preset--color--muted); margin: 18px 0 0; padding: 32px; text-align: center; }
.section-heading { border-bottom: 1px solid var(--wp--preset--color--line); padding-bottom: 16px; }
.section-heading h2 { margin: 2px 0 0; }
.eyebrow { color: var(--wp--preset--color--orange); font-weight: 800; letter-spacing: .17em; margin: 0; }
.tool-count { color: var(--wp--preset--color--muted); margin: 0; }
.tool-count strong { color: var(--wp--preset--color--ink); font-size: 20px; }
.tool-grid {
  display: grid !important;
  gap: 14px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  margin-top: 18px;
}
.tool-card {
  background: #fff;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  min-height: 218px;
  padding: 17px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.tool-card:hover { border-color: #cbd3de; box-shadow: var(--wp--preset--shadow--soft); transform: translateY(-2px); }
.tool-card[hidden] { display: none !important; }
.tool-card > * { margin-left: 0 !important; margin-right: 0 !important; max-width: none !important; }
.card-top { margin-bottom: 14px; width: 100%; }
.tool-icon {
  align-items: center;
  border-radius: 10px;
  display: flex;
  font-size: 13px;
  font-weight: 800;
  height: 44px;
  justify-content: center;
  margin: 0;
  width: 44px;
}
.tone-green { background: #eaf5ef; }
.tone-blue { background: #edf2ff; }
.tone-red { background: #fff0ea; }
.tone-purple { background: #f6ebff; }
.tone-yellow { background: #fff5df; }
.tone-cyan { background: #eaf7f7; }
.open-tab-button .wp-block-button__link {
  background: transparent !important;
  color: #a8b5c6 !important;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  padding: 4px;
}
.open-tab-button .wp-block-button__link:hover { color: var(--wp--preset--color--orange) !important; }
.tool-card h3 { margin: 0 0 6px; }
.tool-card > p:not(.tool-icon) { color: var(--wp--preset--color--muted); margin: 0; }
.card-bottom { margin-top: auto; padding-top: 24px; width: 100%; }
.tool-tags { color: #9aa5b5; margin: 0; }
.tool-action { font-weight: 700; margin: 0; white-space: nowrap; }
.tool-action a { color: var(--wp--preset--color--orange); }
.empty-state { background: #fff; border: 1px dashed #cbd3de; border-radius: 14px; color: var(--wp--preset--color--muted); padding: 32px; text-align: center; }
.site-footer-inner { background: #fff; border-top: 1px solid var(--wp--preset--color--line); padding: 24px 30px; }
.site-footer-inner p { color: var(--wp--preset--color--muted); margin: 0; }

@media (max-width: 1050px) {
  :root { --tools-sidebar: 205px; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .primary-nav { display: none; }
}
@media (max-width: 760px) {
  :root { --tools-header: 76px; }
  .header-inner { min-height: var(--tools-header); padding: 0 16px; }
  .brand-lockup .wp-block-site-tagline { display: none; }
  .primary-nav { display: flex; margin-left: auto; }
  .bookmark-page-button { font-size: 12px; padding: 8px 10px; }
  .bookmark-list-button { font-size: 12px; padding: 8px 2px; }
  .toolbox-layout { display: block; }
  .toolbox-sidebar { border-bottom: 1px solid var(--wp--preset--color--line); border-right: 0; padding: 12px 16px; }
  .sidebar-label, .link-notice, .donation-panel, .saved-summary { display: none; }
  .category-list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
  .category-list li { flex: 0 0 auto; margin: 0; }
  .category-list a { background: #fff; border: 1px solid var(--wp--preset--color--line); padding: 7px 10px; }
  .category-list a span { display: none; }
  .toolbox-content { padding: 16px 14px 42px; }
  .hero-panel { border-radius: 16px; padding: 28px 22px 26px; }
  .hero-copy { font-size: 14px; }
  .world-clock-bar { justify-content: flex-start; margin-top: 10px; }
  .tool-grid { grid-template-columns: 1fr !important; }
  .tool-card { min-height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tool-card { transition: none; }
}

