/* Shared discovery theme. Loaded only by home, directory and category pages. */
body.discovery-island {
  --bg:#faf7ef; --bg-soft:#f0ecdf; --card:#fffdf8;
  --ink:#303c35; --ink-2:#4c594e; --muted:#687369;
  --line:#dedfce; --line-2:#eaeadd;
  --brand:#38634e; --brand-ink:#294e3b; --brand-soft:#e6efdf;
  --accent:#a86938; --accent-soft:#f5e9d5;
  --glass:var(--card); --glass-strong:var(--card); --pop-bg:var(--card);
  --radius-lg:26px; --radius:18px; --radius-sm:12px;
  --shadow:0 4px 0 #dfdfcf; --shadow-sm:0 2px 0 #dfdfcf;
  background-color:var(--bg);
  background-image:radial-gradient(#c4cbb344 .8px,transparent .8px);
  background-size:20px 20px;
}
.discovery-island h1,.discovery-island h2,.discovery-island h3 {font-family:'Avenir Next','Trebuchet MS',sans-serif;letter-spacing:-.035em}
.discovery-island .site-header,.discovery-island .site-footer {background:var(--card);border-color:var(--line)}
.discovery-island.home-v2 .home-hero {background:var(--card);border:1px solid var(--line);border-radius:32px;padding:48px;gap:48px;box-shadow:0 7px 0 #e5e3d4}
:root[data-theme] .discovery-island.home-v2 .home-hero {background:var(--card);border-color:var(--line);box-shadow:0 7px 0 var(--bg-soft)}
:root[data-theme] .discovery-island.home-v2 .hero h1 {color:var(--ink)}
:root[data-theme] .discovery-island.home-v2 .hero .lead {color:var(--ink-2)}
:root[data-theme] .discovery-island.home-v2 .hero-kicker {color:var(--brand)}
.discovery-island.home-v2 .hero h1 {font-size:clamp(34px,4.5vw,58px);line-height:1.07;max-width:640px}
.discovery-island.home-v2 .hero-search {border-radius:999px;padding:6px;background:var(--bg);border-color:#c5cdb9}
.discovery-island.home-v2 .hero-search button {background:var(--brand);color:#fffdf8;border:1px solid #294d3c;border-radius:999px;box-shadow:0 3px 0 #244331}
.discovery-island.home-v2 .hero-search button:active {transform:translateY(2px);box-shadow:0 1px 0 #244331}
.discovery-island.home-v2 .home-hero-figure {background:#eaf0df;border:1px solid #cfd9bf;border-radius:24px;box-shadow:5px 6px 0 #dce3cc;transform:rotate(-3deg);padding:26px}
.discovery-island.home-v2 .home-quick a {border:0;border-radius:999px;background:var(--bg-soft);color:var(--ink-2)}
.discovery-island.home-v2 .home-category-quick {gap:10px;justify-content:center;margin:28px 0 42px}
.discovery-island.home-v2 .home-category-quick a {border-radius:999px;padding:9px 16px;box-shadow:0 2px 0 var(--line)}
.discovery-island .home-section-number {background:var(--brand-soft);border:0;color:var(--brand);width:36px;height:36px}
.discovery-island .home-section-heading h2 {font-size:26px}
.discovery-island .home-showcase-card {border-radius:24px;background:var(--card);border:1px solid var(--line);box-shadow:0 4px 0 #e5e3d4}
.discovery-island .home-showcase-card:nth-child(3n+1) .home-result-preview {background:#eaf0df}
.discovery-island .home-showcase-card:nth-child(3n+2) .home-result-preview {background:#f6e9d5}
.discovery-island .home-showcase-card:nth-child(3n) .home-result-preview {background:#e5edef}
.discovery-island .home-showcase-top {padding:16px 20px 12px}
.discovery-island .home-showcase-copy {padding:22px}
.discovery-island .home-example-link {color:var(--brand);font-weight:700}
.discovery-island .panel {background:var(--card);border:1px solid var(--line);border-radius:24px;box-shadow:0 4px 0 #e5e3d4}
.discovery-island .cat-card {border-radius:20px;background:#eaf0df;border:1px solid #d4dcc9;box-shadow:none}
.discovery-island .cat-card:nth-child(4n+2) {background:#f6e9d5;border-color:#e8d9be}
.discovery-island .cat-card:nth-child(4n+3) {background:#e5edef;border-color:#d0dee1}
.discovery-island .cat-card:nth-child(4n) {background:#f1e7e2;border-color:#e4d5ce}
.discovery-island .cat-ico,.discovery-island .card-ico {background:var(--card);border:1px solid var(--line);border-radius:14px}
.discovery-island .home-tasks a,.discovery-island .home-tool a {border-radius:20px;background:var(--card);border:1px solid var(--line)}
.discovery-island .home-task-icon {background:var(--brand-soft);border-radius:14px}
.discovery-island .home-steps li {background:var(--card);border:1px solid var(--line);border-radius:22px}
.discovery-island .home-faq details {background:var(--card);border:1px solid var(--line);border-radius:16px;padding:0 18px;margin:10px 0}
.discovery-island .breadcrumb {margin-top:24px}
.discovery-island .page-head {padding:32px;background:var(--brand-soft);border:1px solid #d2dcc6;border-radius:26px;box-shadow:0 5px 0 #e0e3d1;margin-bottom:26px}
.discovery-island .page-head h1 {font-size:clamp(30px,4vw,46px);margin-top:10px}
.discovery-island .cat-chip {background:var(--card);border:1px solid #ced8c2;border-radius:999px}
.discovery-island .filter {background:var(--card);border:1px solid var(--line);border-radius:22px;padding:10px;margin-bottom:18px}
.discovery-island .filter input[type=search] {background:var(--bg);border:1px solid #cbd2be;border-radius:14px;min-height:48px}
.discovery-island .anchor-nav {gap:10px;padding-bottom:8px}
.discovery-island .anchor-nav a {padding:9px 14px;min-height:44px;border-radius:999px;box-shadow:0 2px 0 #e2e1d1}
.discovery-island .anchor-nav a span {background:var(--brand-soft);padding:1px 7px;border-radius:99px}
.discovery-island .cat-section {border:1px solid var(--line);border-radius:24px;background:var(--card);padding:24px;contain-intrinsic-size:auto calc(94px + var(--n,20) / 3 * 44px)}
.discovery-island .cat-section h2 {font-size:21px;padding-bottom:16px}
.discovery-island .cat-section h2 .cat-count {margin-inline-start:auto;background:var(--brand-soft)}
.discovery-island .lnk-grid a {padding:11px 8px;border-bottom:1px dashed var(--line);line-height:22px;border-radius:7px}
.discovery-island .lnk-grid a:hover {background:var(--brand-soft)}
.discovery-island .card-calc {background:var(--card);border:1px solid var(--line);border-radius:20px;box-shadow:0 3px 0 #e5e3d4}
.discovery-island .card-calc:hover {border-color:#a7b89b;box-shadow:0 5px 0 #dbe1cd}
.discovery-island .card-arrow {color:var(--brand)}
.discovery-island .quick-tools a,.discovery-island .conversion-filters button {border-radius:999px}
.discovery-island a:focus-visible,.discovery-island button:focus-visible,.discovery-island input:focus-visible {outline:3px solid var(--brand);outline-offset:4px}
/* Composite search controls draw focus around the rounded container. */
.discovery-island .ss-field input:focus,
.discovery-island.home-v2 .hero-search input[type=search]:focus {
 outline:none;box-shadow:none;
}
.discovery-island.home-v2 .hero-search:focus-within {
 border-color:var(--brand);
 box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 18%,transparent);
}
@media(max-width:860px) {.discovery-island .cat-section {contain-intrinsic-size:auto calc(94px + var(--n,20) / 2 * 44px)}}
@media(max-width:560px) {
 .discovery-island.home-v2 .home-hero {padding:26px 20px;gap:26px;border-radius:24px}
 .discovery-island.home-v2 .home-hero-figure {transform:none;padding:20px}
 .discovery-island.home-v2 .home-category-quick {justify-content:flex-start;gap:8px}
 .discovery-island.home-v2 .home-category-quick a {padding:7px 12px}
 .discovery-island .page-head {padding:24px 20px}
 .discovery-island .cat-section {padding:18px 14px;contain-intrinsic-size:auto calc(94px + var(--n,20) * 44px)}
 .discovery-island .home-section-heading h2 {font-size:23px}
 .discovery-island .filter {padding:8px}
}
:root[data-theme=dark] body.discovery-island {
 --bg:#202820;--bg-soft:#2e382d;--card:#293229;--ink:#edf0e4;--ink-2:#d2d9c9;--muted:#b0bdab;
 --line:#495543;--line-2:#3b4637;--brand:#a8c999;--brand-ink:#c4dfb7;--brand-soft:#344a34;background-image:none;
}
:root[data-theme=dark] .discovery-island :is(.panel,.home-showcase-card,.card-calc,.home-hero,.cat-section) {box-shadow:none;border-color:var(--line)}
:root[data-theme=dark] .discovery-island :is(.cat-card,.page-head,.home-hero-figure,.home-showcase-card .home-result-preview) {background:var(--bg-soft);border-color:var(--line);box-shadow:none}
:root[data-theme=dark] .discovery-island.home-v2 .hero-search button {background:#a8c999;color:#202820;border-color:#a8c999;box-shadow:0 3px 0 #526b46}
@media(prefers-reduced-motion:reduce) {.discovery-island * {scroll-behavior:auto!important;transition:none!important}}

/* Natural heading tracking for scripts beyond Latin. */
.discovery-island:lang(zh) :is(h1,h2,h3),
.discovery-island:lang(ja) :is(h1,h2,h3),
.discovery-island:lang(ko) :is(h1,h2,h3),
.discovery-island:lang(th) :is(h1,h2,h3),
.discovery-island[dir=rtl] :is(h1,h2,h3),
html[dir=rtl] .discovery-island :is(h1,h2,h3) {letter-spacing:normal;line-height:1.3}
html[dir=rtl] .discovery-island.home-v2 .home-hero-figure {transform:rotate(3deg)}
@media(max-width:560px) {html[dir=rtl] .discovery-island.home-v2 .home-hero-figure {transform:none}}

.discovery-island .group-filters {margin-top:4px}
.discovery-island .trust-signals {color:var(--ink-2)}
