/*
Theme Name: top3sel Search
Description: Search-first top3sel staging experience.
Version: 0.2.22
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
*/

:root {
  color-scheme: light;
  --paper: #fafaf6;
  --surface: #fff;
  --field: #f8f9f4;
  --ink: #17251c;
  --muted: #48574d;
  --accent: #346549;
  --line: #d8e0d5;
  --control-line: #a0b0a3;
  --wash: #eaf1e8;
  --button: #244d36;
  --button-text: #fff;
  --shadow: 0 16px 42px #20332412;
}

:root[data-appearance="dark"] {
  color-scheme: dark;
  --paper: #151d18;
  --surface: #202b23;
  --field: #18221b;
  --ink: #f1f5eb;
  --muted: #b8c8bb;
  --accent: #a6d5b5;
  --line: #3b4b40;
  --control-line: #718576;
  --wash: #283a2e;
  --button: #b6ddbd;
  --button-text: #16271c;
  --shadow: 0 16px 42px #0003;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
}
main { flex: 1; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.frame { width: min(100% - 48px, 1090px); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 20; }
.skip-link:focus { top: 12px; padding: 10px 16px; background: var(--surface); }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex; min-height: 76px; align-items: center;
  justify-content: space-between; gap: 16px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; font-size: 30px;
}
.wordmark svg, .three { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.method-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.method-link:hover, .text-link { text-decoration: underline; text-underline-offset: 4px; }
.appearance-toggle {
  display: grid; width: 44px; height: 44px; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink);
}
.appearance-toggle svg { width: 20px; height: 20px; }
.appearance-sun, [data-appearance="dark"] .appearance-moon { display: none; }
[data-appearance="dark"] .appearance-sun { display: block; }

.search-intro { width: min(100%, 740px); margin-inline: auto; padding: clamp(42px, 8vw, 92px) 0 42px; }
.search-intro--entry { width: 100%; padding-top: clamp(42px, 6vw, 72px); }
.search-intro--results { padding-top: clamp(26px, 5vw, 52px); }
.eyebrow, .outcome-kicker {
  color: var(--accent); font-size: 12px; font-weight: 730; letter-spacing: .105em; text-transform: uppercase;
}
.eyebrow { display: flex; gap: 8px; align-items: center; }
.eyebrow span, .stage-marker i { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
h1, h2 { letter-spacing: -.045em; }
.search-intro h1 {
  margin: 9px 0 12px; font-size: clamp(48px, 8vw, 92px);
  font-weight: 730; line-height: .99;
}
.search-intro h1 em {
  color: var(--accent); font-family: Georgia, serif; font-weight: 500;
}
.search-intro--results h1 { font-size: clamp(37px, 6vw, 60px); }
.search-lead { margin: 0 0 24px; max-width: 530px; color: var(--muted); font-size: clamp(16px, 2.1vw, 19px); }
.search-panel {
  padding: clamp(15px, 3.2vw, 28px); border: 1px solid var(--line);
  border-radius: 20px; background: var(--surface); box-shadow: var(--shadow);
}
.search-panel label { display: block; margin-bottom: 9px; font-size: 14px; font-weight: 700; }
.search-controls { display: flex; align-items: stretch; gap: 9px; }
.search-field {
  display: flex; min-width: 0; flex: 1; align-items: center; gap: 9px; padding: 0 13px;
  border: 1px solid var(--control-line); border-radius: 11px; background: var(--field);
}
.search-field:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.search-field svg { flex: 0 0 19px; width: 19px; height: 19px; color: var(--muted); }
.search-field input {
  width: 100%; min-width: 0; min-height: 52px; padding: 6px 0;
  border: 0; outline: 0; background: transparent; color: var(--ink);
}
.search-field input::placeholder { color: var(--muted); opacity: 1; }
.search-submit {
  display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 12px;
  padding: 0 20px; border: 0; border-radius: 11px; background: var(--button);
  color: var(--button-text); font-weight: 680;
}
.search-submit:hover { filter: brightness(.9); }
.search-submit:disabled { opacity: .72; cursor: wait; }
.search-progress { display: flex; align-items: center; gap: 8px; color: var(--muted); margin: 12px 0 0; font-size: 14px; }
.search-progress[hidden] { display: none; }
.search-progress-mark { width: 15px; height: 15px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: compass-search-progress .8s linear infinite; }
.search-progress--error .search-progress-mark { display: none; }
@keyframes compass-search-progress { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .search-progress-mark { animation: none; } }
.search-scope { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.query-examples { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.query-examples > span { margin-right: 3px; color: var(--muted); font-size: 13px; }
.query-examples button, .criteria-list li {
  min-height: 35px; padding: 5px 11px; border: 1px solid var(--line);
  border-radius: 100px; background: var(--wash); color: var(--ink); font-size: 13px; font-weight: 550;
}
.query-examples button { min-height: 44px; }
.query-examples button:hover { border-color: var(--accent); }

.search-outcome { margin-top: 25px; scroll-margin-top: 18px; }
.search-outcome:focus { outline: none; }
.search-outcome h2 { margin: 3px 0 10px; font-size: clamp(26px, 4vw, 36px); line-height: 1.1; }
.search-outcome p { margin: 5px 0 0; color: var(--muted); }
.criteria-list { display: flex; gap: 6px; flex-wrap: wrap; padding: 0; margin: 0 0 15px; list-style: none; }
.retailer-status { padding: 13px 17px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.retailer-status p { font-size: 14px; }
.search-method { width: min(100%, 740px); margin: 4px auto 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.search-method h2 { margin: 0 0 16px; font-size: 23px; }
.search-method ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
.search-method li { display: flex; align-items: start; gap: 8px; }
.search-method li > span { color: var(--accent); font-size: 12px; font-weight: 750; padding-top: 3px; }
.search-method h3 { margin: 0 0 4px; font-size: 14px; }
.search-method p { margin: 0; color: var(--muted); font-size: 13px; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; gap: 12px; justify-content: space-between; padding-block: 20px; color: var(--muted); font-size: 12px; }
.stage-marker { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.stage-marker i { width: 6px; height: 6px; }

.search-intro--results { width: 100%; }
.search-outcome .preview-coverage { max-width: 680px; margin-bottom: 17px; font-size: 14px; }
.pick-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr));
  gap: 10px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.pick-summary a {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  text-decoration: none;
}
.pick-summary a:hover { border-color: var(--accent); }
.pick-summary strong, .pick-summary a > span > span { display: block; }
.pick-summary strong { color: var(--accent); font-size: 13px; }
.pick-summary a > span > span { font-size: 14px; }
.pick-summary-num { color: var(--muted); font: italic 21px Georgia, serif; }
.product-pick {
  display: grid;
  grid-template-columns: minmax(180px, .82fr) minmax(0, 1.65fr);
  grid-template-areas: "art heading" "art details";
  grid-template-rows: auto 1fr;
  gap: 13px clamp(22px, 4vw, 48px);
  padding: 27px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 18px;
}
.product-heading { grid-area: heading; }
.product-heading h3 {
  margin: 4px 0 8px;
  font-size: clamp(25px, 4vw, 43px);
  line-height: 1.08;
  letter-spacing: -.042em;
}
.product-heading .outcome-kicker { color: var(--accent); margin: 0; }
.product-details { grid-area: details; }
.pick-art {
  --art-bg: #dfe9df;
  display: grid;
  grid-area: art;
  grid-template-columns: auto 1fr;
  align-items: start;
  align-self: start;
  gap: 2px 8px;
  margin: 0;
  padding: 13px 16px 9px;
  border-radius: 16px;
  background: var(--art-bg);
  color: #345044;
}
.pick-art--m240 { --art-bg: #e9e5d8; color: #655e4c; }
.pick-art--m350s { --art-bg: #e8e3f1; color: #59506b; }
.pick-art--lift { --art-bg: #dfe9ee; color: #435e6b; }
.pick-art > span { font: italic 25px/1 Georgia, serif; }
.pick-art svg { width: min(100%, 186px); height: auto; justify-self: center; }
.pick-art figcaption { grid-column: 1 / -1; color: inherit; font-size: 11px; text-align: end; }
.pick-art--m350s svg { transform: scale(.87, .83); }
.pick-art--lift svg { transform: rotate(18deg) scale(1.05, .94); }
.pick-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 0 0 16px; }
.pick-notes dt { font-weight: 700; font-size: 14px; }
.pick-notes dd { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.pick-offers {
  padding: clamp(12px, 2.5vw, 20px);
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}

.pick-merchant-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(6px, 1.2vw, 12px); margin: clamp(12px, 2vw, 16px) 0 0; padding: 0; list-style: none; }
.pick-merchant-list li { min-width: 0; }
.pick-offer-review, .pick-offer-pending { border: 1px solid var(--line); border-radius: 8px; background: var(--field); }
.pick-offer-review summary, .pick-offer-pending { min-height: 44px; padding: 8px 10px; font-size: 14px; font-weight: 650; }
.pick-offer-review summary { cursor: pointer; }
.pick-offer-review summary small, .pick-offer-pending small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; }
.pick-offer-review summary small { padding-inline-start: 1.15em; }
.pick-offer-review p, .pick-offer-review code { display: block; margin: 0 10px 6px; }
.pick-offer-review code { font-size: 11px; overflow-wrap: anywhere; }
.pick-buy { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 48px; padding: 6px 3px; border-radius: 8px; background: var(--button); color: var(--button-text); font-size: 14px; font-weight: 700; text-decoration: none; }
.pick-buy:hover { text-decoration: underline; text-underline-offset: 3px; }
.pick-maker a { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; color: var(--accent); font-size: 13px; }

@media (max-width: 650px) {
  .product-pick {
    grid-template-columns: 1fr;
    grid-template-areas: "heading" "art" "details";
    grid-template-rows: auto;
    padding-block: 22px;
  }
  .pick-art svg { width: min(70%, 135px); }
  .pick-notes { grid-template-columns: 1fr; gap: 10px; }

}

@media (max-width: 520px) {
  .frame { width: calc(100% - 32px); }
  .header-inner { min-height: 66px; }
  .wordmark { font-size: 26px; }
  .header-actions { gap: 10px; }
  .search-controls { flex-direction: column; }
  .search-submit { width: 100%; }
  .search-method ol { grid-template-columns: 1fr; gap: 13px; }
}

.stage-primary-nav, .stage-footer-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 18px; }
.stage-primary-nav a, .stage-footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-underline-offset: 4px;
}
.stage-primary-nav a { font-size: 14px; font-weight: 650; text-decoration: none; }
.stage-primary-nav a:hover, .stage-primary-nav a[aria-current] { color: var(--accent); text-decoration: underline; }
.stage-footer-nav { margin-top: 3px; }
.associates-statement { margin: 5px 0 0; color: var(--ink); }
.stage-service-page { width: min(100%, 700px); margin-inline: auto; padding-block: clamp(30px, 6vw, 65px); }
.stage-service-page h1 { margin: 0 0 18px; font-size: clamp(32px, 6vw, 58px); line-height: 1.1; }
.stage-service-page h2 { margin: 20px 0 6px; }
.stage-service-page a { color: var(--accent); text-underline-offset: 4px; }
.stage-service-page dt { font-weight: 700; }
.stage-service-page dd { margin: 0 0 8px; }

@media (max-width: 610px) {
  .header-inner:has(.stage-primary-nav) { flex-wrap: wrap; gap: 0 12px; padding-top: 8px; }
  .stage-primary-nav { order: 1; flex-basis: 100%; gap: 0 14px; }
  .stage-primary-nav a { font-size: 13px; }
  .stage-footer-nav { gap: 0 13px; }
}

.brand-wordmark {
  display: inline-block;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 760;
  letter-spacing: -.085em;
  white-space: nowrap;
}
.footer-brand .brand-wordmark { font-size: 22px; }
.search-breadcrumb { margin: 0 0 8px; font-size: 14px; }
.search-breadcrumb ol { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.search-breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); text-underline-offset: 4px; }
.search-breadcrumb [aria-current] { color: var(--muted); font-weight: 650; }
.marketplace-heading { margin: 0; color: var(--ink); font-size: clamp(17px, 2.2vw, 21px); font-weight: 760; line-height: 1.25; }
.pick-offers .pick-disclosure { color: var(--ink); margin: 12px 0 0; font-size: 13px; }
@media (max-width: 420px) {
  .pick-buy { gap: 3px; font-size: 13px; }
  .pick-offer-pending { min-height: 48px; padding-inline: 3px; text-align: center; }
}

.home .search-method, .home-editorial { width: 100%; }
.home-editorial { margin: 0 auto 38px; }
.home-editorial h2 { margin: 0 0 5px; font-size: clamp(24px, 4vw, 32px); line-height: 1.15; }
.home-editorial p { margin: 0; color: var(--muted); }
.featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.featured-card, .hosting-teaser { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.featured-card { display: flex; flex-direction: column; align-items: start; }
.featured-card .outcome-kicker, .hosting-teaser .outcome-kicker { color: var(--accent); }
.featured-card h3 { margin: 5px 0 6px; font-size: 17px; line-height: 1.3; }
.featured-card p:not(.outcome-kicker) { font-size: 14px; margin-bottom: 4px; }
.featured-card .text-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: auto; color: var(--accent); font-size: 14px; font-weight: 650; }
.search-suggestions { margin-top: 32px; }
.search-suggestions .suggestion-note { color: var(--ink); font-weight: 650; margin-top: 8px; }
.hosting-teaser { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 20px; margin-top: 22px; padding: 16px 20px; }
.hosting-teaser h2 { font-size: clamp(21px, 3vw, 25px); margin-top: 4px; }
.hosting-teaser .text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--accent); font-weight: 650; }
.guide-teaser-links { display: flex; flex-wrap: wrap; column-gap: 14px; }
.guide-result-link a, .related-guide a { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; color: var(--accent); }
.stage-hosting-page { width: 100%; }
.hosting-intro { max-width: 730px; margin-bottom: 22px; color: var(--muted); }
.hosting-pick .product-heading h2 { margin: 4px 0 8px; font-size: clamp(25px, 4vw, 43px); line-height: 1.08; }
.hosting-pick .product-heading p:not(.outcome-kicker) { margin: 0; color: var(--muted); }
.hosting-pick .pick-art { --art-bg: #e0e8e0; color: #365145; }
.hosting-pick--hostbrr .pick-art { --art-bg: #eae5d7; color: #60583f; }
.hosting-pick--cloudways .pick-art { --art-bg: #e1e6ef; color: #445673; }
.hosting-pick .pick-art svg { width: min(62%, 132px); }
.hosting-action { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 14px; }
.hosting-action .pick-buy, .stage-service-page .hosting-action .pick-buy { padding: 6px 14px; color: var(--button-text); }
.hosting-action[data-hosting-link-choice] { display: grid; grid-template-columns: minmax(0, 1fr); }
.hosting-action[data-hosting-link-choice] .pick-buy { grid-area: 1 / 1; justify-self: start; }
.hosting-action[data-hosting-link-choice] a[rel~="sponsored"] { z-index: 1; }
.hosting-action[data-hosting-link-choice] [data-direct-hosting-link]:focus-visible { z-index: 2; }
.hosting-action .pick-buy[hidden] { display: none; }
.hosting-action .hosting-disclosure { flex-basis: 100%; margin: 5px 0 0; color: var(--ink); font-size: 14px; }
@media (max-width: 650px) {
  .featured-grid, .hosting-teaser { grid-template-columns: 1fr; }
  .hosting-teaser { gap: 2px; }
}

.back-to-top {
  position: fixed;
  z-index: 10;
  inset-inline-end: max(16px, env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--button);
  color: var(--button-text);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 650;
}
.back-to-top:hover { filter: brightness(.9); }
html:has(.back-to-top:not([hidden])) {
  scroll-padding-bottom: calc(72px + env(safe-area-inset-bottom));
}


.product-pick--text { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'heading' 'details'; }
