/* KnowYourBraSize extras: article layout, TOC, FAQ accordions, tables, footer. */
:root { --kyb-max: 1160px; }
html { scroll-behavior: smooth; }
.kyb-anchor { scroll-margin-top: 110px; }
#calculator { scroll-margin-top: 100px; }

/* Three-column article layout: TOC | content | related */
.kyb-layout { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 1024px) {
  .kyb-layout { grid-template-columns: 210px minmax(0, 1fr) 250px; }
  .kyb-toc-desktop { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; }
  .kyb-side-desktop { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; }
}

/* Two-column post layout: content + related */
.kyb-layout-2 { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 1024px) {
  .kyb-layout-2 { grid-template-columns: minmax(0, 1fr) 250px; }
}

/* Shop showcase */
.kyb-shop-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); padding: 16px 18px; margin-bottom: 32px; }
.kyb-shop-count { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-right: auto; }
.kyb-pills { display: flex; flex-wrap: wrap; gap: 6px; background: var(--muted); border-radius: 8px; padding: 4px; }
.kyb-pills a { font-size: 12.5px; font-weight: 500; color: var(--ink-soft); text-decoration: none; padding: 7px 13px; border-radius: 6px; white-space: nowrap; }
.kyb-pills a:hover { color: var(--primary); }
.kyb-pills a[aria-current="true"] { background: var(--card); color: var(--primary); box-shadow: 0 1px 3px oklch(0.35 0.05 350 / 0.12); }
.kyb-max-form { display: flex; align-items: center; gap: 8px; }
.kyb-max-form input { height: 38px; width: 120px; border: 1px solid var(--border); border-radius: 6px; padding: 0 10px; background: var(--card); color: var(--foreground); font-size: 13px; }
.kyb-max-form input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 2px var(--accent); }
.kyb-max-form button { height: 38px; padding: 0 16px; border: none; border-radius: 6px; background: var(--primary); color: var(--primary-foreground); font-size: 13px; font-weight: 500; cursor: pointer; }
.kyb-max-form button:hover { opacity: .9; }
.kyb-clear { font-size: 12.5px; color: var(--primary); }
.kyb-shop-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .kyb-shop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .kyb-shop-grid { grid-template-columns: repeat(3, 1fr); } }
.kyb-product-card { border: 1px solid var(--border); border-radius: 12px; background: var(--card); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; }
.kyb-product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-elegant); border-color: var(--rose); }
.kyb-product-card-media { display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--blush); }
.kyb-product-card-media img, .kyb-product-card-media svg { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.kyb-product-card:hover .kyb-product-card-media img { transform: scale(1.05); }
.kyb-product-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.kyb-product-card-body h3 { font-size: 19px; margin: 0; }
.kyb-product-card-body h3 a { color: var(--foreground); text-decoration: none; }
.kyb-product-card-body h3 a:hover { color: var(--primary); }
.kyb-product-card-price { font-family: var(--font-display); font-size: 23px; color: var(--primary); margin: 8px 0 0; }
.kyb-product-card-excerpt { font-size: 13px; line-height: 1.7; color: var(--muted-foreground); margin: 8px 0 0; flex: 1; }
.kyb-product-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 18px; }
.kyb-details-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--primary); text-underline-offset: 4px; }
.kyb-details-link:hover { text-decoration: underline; }
.kyb-details-link svg { width: 14px; height: 14px; }
@media (min-width: 640px) { .kyb-shop-grid--home { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .kyb-shop-grid--home { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.kyb-shop-grid--home .kyb-product-card-media { aspect-ratio: 1/1; }
.kyb-shop-grid--home .kyb-product-card-body { padding: 14px; }
.kyb-shop-grid--home .kyb-product-card-body h3 { font-size: 16px; }
.kyb-shop-grid--home .kyb-product-card-price { font-size: 19px; margin-top: 6px; }
.kyb-shop-grid--home .kyb-product-card-excerpt { display: none; }
.kyb-shop-grid--home .kyb-product-card-actions { margin-top: 12px; }

.kyb-stock { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .4px; border-radius: 20px; padding: 3px 10px; vertical-align: middle; }
.kyb-stock-in { color: oklch(0.45 0.12 158); background: var(--sage); }
.kyb-stock-out { color: var(--destructive); background: oklch(0.55 0.2 25 / 0.08); }
.kyb-product-card-price .kyb-stock { margin-left: 8px; }

/* Contact card */
.kyb-contact-card { display: block; border: 1px solid var(--border); border-radius: 12px; background: var(--card); padding: 28px; text-decoration: none; box-shadow: var(--shadow-elegant); transition: transform .2s, box-shadow .2s, border-color .2s; }
.kyb-contact-card:hover { transform: translateY(-3px); border-color: var(--rose); }
.kyb-contact-label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--primary); }
.kyb-contact-mail { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-family: var(--font-display); font-size: clamp(20px, 4vw, 30px); color: var(--foreground); }
.kyb-contact-mail svg { width: 22px; height: 22px; color: var(--primary); flex-shrink: 0; }

/* Product page */
.kyb-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted-foreground); margin-bottom: 24px; }
.kyb-crumbs a { color: var(--ink-soft); text-decoration: none; }
.kyb-crumbs a:hover { color: var(--primary); }
.kyb-product-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .kyb-product-grid { grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; } }
.kyb-product-hero { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--blush); }
.kyb-product-hero img, .kyb-product-hero svg { width: 100%; height: auto; display: block; aspect-ratio: 4/3; object-fit: cover; }
.kyb-product-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.kyb-product-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--card); }
.kyb-product-thumbs button[aria-current="true"] { border-color: var(--primary); }
.kyb-product-thumbs img { width: 100%; height: 72px; object-fit: cover; display: block; }
.kyb-buy-panel { border: 1px solid var(--border); border-radius: 12px; background: var(--card); padding: 26px; box-shadow: var(--shadow-elegant); }
@media (min-width: 900px) { .kyb-buy-panel { position: sticky; top: 24px; } }
.kyb-buy-panel .h-12 { width: 100%; }
.kyb-buy-panel + .kyb-faq { margin-top: 12px; }
.kyb-faq + .kyb-faq { margin-top: 12px; }
.kyb-note { margin-top: 32px; padding: 14px 16px; border: 1px solid var(--border); border-left: 3px solid var(--rose); border-radius: 8px; background: var(--blush); font-size: 12px; line-height: 1.7; color: var(--muted-foreground); max-width: 720px; }

/* Homepage rhythm + polish */
.kyb-section { padding-block: 48px; }
@media (min-width: 768px) { .kyb-section { padding-block: 76px; } }
.hero h1, .section-heading { text-wrap: balance; }
.kyb-fit-grid > a { display: flex; flex-direction: column; border-radius: 8px; }
.kyb-fit-grid > a > p:last-child { flex: 1; }
.kyb-fit-grid .tool-visual { transition: transform .2s, box-shadow .2s; }
.kyb-fit-grid > a:hover .tool-visual { transform: translateY(-4px); box-shadow: var(--shadow-elegant); }
.kyb-feature .tool-visual { height: 100%; min-height: 220px; }
@media (min-width: 768px) {
  .kyb-feature { flex-direction: row !important; align-items: stretch; gap: 28px; }
  .kyb-feature .tool-visual { width: 42%; flex-shrink: 0; margin-bottom: 0; }
  .kyb-feature-text { display: flex; flex-direction: column; justify-content: center; padding-block: 12px; }
}
/* Active nav state */
.kyb-nav-list .current-menu-item a, .kyb-nav-list .current_page_item a { color: var(--primary); font-weight: 600; }
/* Ambient texture on bands */
.guide-band { background-image: radial-gradient(60% 90% at 85% 20%, oklch(1 0 0 / 0.55), transparent 70%); }
/* Scroll reveal (JS adds .kyb-reveal, so no-JS never hides content) */
.kyb-reveal { opacity: 0; translate: 0 18px; transition: opacity .6s ease, translate .6s ease; }
.kyb-reveal.is-in { opacity: 1; translate: 0 0; }
/* Calculator depth */
.kyb-calc-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: clamp(20px, 4vw, 34px); box-shadow: var(--shadow-elegant); }

/* Calculator sliders: themed track + thumb (webkit + firefox) */
.kyb-range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin-top: 14px; background: transparent; cursor: pointer; }
.kyb-range::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: var(--muted); border: 1px solid var(--border); }
.kyb-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: var(--primary); border: 3px solid var(--card); box-shadow: 0 1px 5px oklch(0.35 0.05 350 / 0.35); }
.kyb-range::-moz-range-track { height: 8px; border-radius: 99px; background: var(--muted); border: 1px solid var(--border); }
.kyb-range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--primary); border: 3px solid var(--card); box-shadow: 0 1px 5px oklch(0.35 0.05 350 / 0.35); }
.kyb-range:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 99px; }
@media (prefers-reduced-motion: no-preference) { .kyb-range::-webkit-slider-thumb { transition: transform .15s ease; } }
.kyb-range:hover::-webkit-slider-thumb { transform: scale(1.08); }

/* Brand chart search */
.kyb-chart-search { max-width: 480px; margin-bottom: 4px; }
.kyb-chart-search input[type="search"] { border-radius: 99px; padding-left: 20px; padding-right: 20px; }

/* Inline link inside tool notes */
.kyb-note-link { color: var(--primary); text-underline-offset: 3px; }
.kyb-note-link:hover { text-decoration: underline; }

/* Back-to-top button */
#kyb-to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--rose); border-radius: 50%; background: var(--blush); color: var(--primary); cursor: pointer; box-shadow: 0 4px 14px oklch(0.35 0.05 350 / 0.28); opacity: 0; visibility: hidden; translate: 0 8px; transition: opacity .25s ease, translate .25s ease, visibility .25s, background .25s ease, color .25s ease; }
#kyb-to-top.is-show { opacity: 1; visibility: visible; translate: 0 0; }
#kyb-to-top:hover { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
#kyb-to-top svg { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) { #kyb-to-top { transition: none; } }

/* Size picker value badges + sister-size highlight */
.kyb-pick-val { font-family: var(--font-display); font-size: 20px; color: var(--primary); background: var(--blush); border: 1px solid var(--border); border-radius: 8px; padding: 2px 14px; }
.kyb-sister-cell { border: 1px solid transparent; border-radius: 8px; padding: 10px 4px; }
.kyb-sister-cell.now { background: var(--card); border-color: var(--primary); }

/* Homepage calculator visual: balanced box, distortion-free diagram */
.kyb-measure-visual { display: flex; align-items: center; justify-content: center; background: var(--blush); border: 1px solid var(--border); border-radius: 8px; max-width: 24rem; height: 230px; margin-top: 24px; overflow: hidden; }
.kyb-measure-visual svg { width: min(70%, 250px); height: auto; max-height: 100%; }

/* Sticky header + grouped actions */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--background); border-bottom: 1px solid var(--border); width: 100%; padding-inline: 18px; }
@media (min-width: 768px) { .site-header { padding-inline: 40px; } }
.kyb-nav-actions { display: contents; }
@media (min-width: 640px) {
  .kyb-nav-actions { display: flex; align-items: center; gap: 10px; }
}

/* Minimal motion */
@keyframes kyb-rise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes kyb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes kyb-pop { from { opacity: 0; scale: .97; } to { opacity: 1; scale: 1; } }
@keyframes kyb-drop { from { opacity: 0; translate: 0 -8px; } to { opacity: 1; translate: 0 0; } }
.hero-content > * { animation: kyb-rise .7s ease both; }
.hero-content > *:nth-child(2) { animation-delay: .08s; }
.hero-content > *:nth-child(3) { animation-delay: .16s; }
.hero-content > *:nth-child(4) { animation-delay: .24s; }
.hero-content > *:nth-child(5) { animation-delay: .32s; }
#kyb-dialog { animation: kyb-pop .22s ease; }
#kyb-dialog-root > div:first-child { animation: kyb-fade .2s ease; }
#kyb-mobile-nav.flex { animation: kyb-drop .25s ease; }
button:active { transform: scale(.98); }

/* Mobile best practices */
#kyb-menu-button { min-width: 44px; min-height: 44px; }
.field, select.field { font-size: 16px; }
@media (max-width: 640px) {
  #kyb-dialog { padding: 20px; }
  .kyb-calc-card { padding: 18px; border-radius: 10px; }
  .kyb-buy-panel { padding: 20px; }
  .kyb-contact-mail { overflow-wrap: anywhere; }
  .kyb-table th, .kyb-table td, .article-copy th, .article-copy td { padding: 8px 10px; font-size: 13px; }
  .kyb-pills a { padding: 9px 14px; }
}

/* How-it-works steps */
.kyb-steps { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .kyb-steps { grid-template-columns: repeat(3, 1fr); } }
.kyb-step { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 24px 22px; overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.kyb-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-elegant); border-color: var(--rose); }
.kyb-step .tool-visual { height: 120px; margin-bottom: 18px; }
.kyb-step-num { margin: 0; font-family: var(--font-display); font-size: 54px; font-weight: 600; line-height: 1; color: var(--rose); opacity: .85; }
.kyb-step h3 { font-size: 19px; margin: 12px 0 8px; }
.kyb-step p:last-child { font-size: 13.5px; line-height: 1.7; color: var(--muted-foreground); margin: 0; }

/* Guided fit check */
.kyb-progress { height: 6px; border-radius: 4px; background: var(--muted); overflow: hidden; }
.kyb-progress-bar { height: 100%; border-radius: 4px; background: var(--primary); transition: width .3s ease; }
.kyb-dots { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.kyb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.kyb-dot.done { background: var(--primary); }
.kyb-dot.now { background: var(--rose); box-shadow: 0 0 0 3px var(--accent); }
.kyb-step-count { margin-left: auto; font-size: 11px; color: var(--muted-foreground); }
.kyb-choices { display: flex; gap: 10px; margin-top: 22px; }
.kyb-choices-col { flex-direction: column; }
.kyb-choices-col .inline-flex { justify-content: flex-start; height: auto; min-height: 48px; padding-top: 12px; padding-bottom: 12px; text-align: left; white-space: normal; }
@media (max-width: 480px) { .kyb-choices { flex-direction: column; } }
.kyb-skip { display: block; width: 100%; margin-top: 10px; background: none; border: none; cursor: pointer; font-size: 12.5px; color: var(--muted-foreground); text-decoration: underline; text-underline-offset: 3px; }
.kyb-skip:hover { color: var(--primary); }
.kyb-fit-fails { list-style: none; margin: 16px 0 20px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.kyb-fit-fails li { border: 1px solid var(--border); border-left: 3px solid var(--rose); border-radius: 8px; background: var(--card); padding: 12px 14px; font-size: 13.5px; line-height: 1.65; color: var(--muted-foreground); }

.kyb-report-actions { display: flex; gap: 10px; margin-top: 20px; }
.kyb-report-actions > * { flex: 1; }
@media (max-width: 480px) { .kyb-report-actions { flex-direction: column; } }
@media print {
  body.kyb-printing > *:not(main) { display: none !important; }
  body.kyb-printing main > *:not(article) { display: none !important; }
  body.kyb-printing article > *:not([data-kyb-guided-fit]) { display: none !important; }
  body.kyb-printing .kyb-report-actions { display: none !important; }
}

/* Calculator wizard */
.kyb-steps-bar { display: flex; gap: 6px; margin-bottom: 20px; }
.kyb-steps-bar span { flex: 1; text-align: center; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted-foreground); padding-bottom: 8px; border-bottom: 2px solid var(--border); }
.kyb-steps-bar span.now { color: var(--primary); border-color: var(--primary); }
.kyb-steps-bar span.done { color: var(--primary); border-color: var(--rose); }
.kyb-torso { width: min(62%, 190px); margin: 4px auto; }
.kyb-torso .hot { stroke: var(--primary); stroke-width: 2.5; }
.kyb-torso text { font-family: var(--font-sans); font-size: 10px; letter-spacing: 1.5px; fill: var(--ink-soft); }
.kyb-torso .hot-t { fill: var(--primary); font-weight: 700; }
.kyb-big-input { height: 56px !important; font-size: 20px !important; text-align: center; font-weight: 600; }
.kyb-size-chips { display: flex; gap: 8px; justify-content: center; margin-top: 4px; }
.kyb-size-chips span { font-size: 12px; font-weight: 600; color: var(--ink-soft); background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 4px 12px; }
@keyframes kyb-pop { 0% { opacity: 0; transform: scale(.92) translateY(10px); } 60% { opacity: 1; transform: scale(1.02); } 100% { opacity: 1; transform: scale(1); } }
.kyb-result-pop { animation: kyb-pop .45s ease both; transition: transform .15s ease-out; will-change: transform; }
@keyframes kyb-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.kyb-shake { animation: kyb-shake .3s ease; }

/* WordPress menus */
.wordmark span { white-space: nowrap; }
@media (max-width: 400px) { .wordmark { font-size: 19px !important; } }
.kyb-nav-list { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.kyb-nav-list a { font-size: 14px; color: var(--ink-soft); text-decoration: none; transition: color .2s; }
.kyb-nav-list a:hover { color: var(--primary); }
.kyb-nav-mobile-list { display: flex; flex-direction: column; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.kyb-nav-mobile-list a { color: var(--foreground); text-decoration: none; }

/* Blog post content typography */
.article-copy > *:first-child { margin-top: 0; }
.article-copy h2 { font-family: var(--font-display); font-size: 27px; font-weight: 550; line-height: 1.3; letter-spacing: 0; margin: 2em 0 .6em; color: var(--foreground); }
.article-copy h3 { font-family: var(--font-display); font-size: 20px; font-weight: 550; line-height: 1.4; margin: 1.8em 0 .5em; color: var(--foreground); }
.article-copy h2[id], .article-copy h3[id] { scroll-margin-top: 24px; }
.article-copy p { margin: 0 0 1.1em; }
.article-copy ul, .article-copy ol { margin: 0 0 1.2em 1.25em; padding: 0; }
.article-copy li { margin-bottom: .5em; }
.article-copy li::marker { color: var(--primary); }
.article-copy a { color: var(--primary); text-underline-offset: 3px; }
.article-copy a:hover { text-decoration: underline; }
.article-copy img { border-radius: 8px; max-width: 100%; height: auto; margin: 1.2em 0; }
.article-copy table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 1.2em 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.article-copy th, .article-copy td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.article-copy thead th { font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--primary); background: var(--blush); }
.article-copy tbody tr:last-child th, .article-copy tbody tr:last-child td { border-bottom: none; }

/* Blog left rail: RankMath TOC */
.kyb-blog-toc { font-size: 13px; }
@media (min-width: 1024px) { .kyb-blog-toc { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; } }
.kyb-blog-toc .wp-block-rank-math-toc-block nav ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.kyb-blog-toc .wp-block-rank-math-toc-block nav ul ul { margin: 2px 0 2px 12px; }
.kyb-blog-toc .wp-block-rank-math-toc-block nav a { display: block; padding: 7px 10px; border-radius: 6px; color: var(--ink-soft); line-height: 1.5; text-decoration: none; }
.kyb-blog-toc .wp-block-rank-math-toc-block nav a:hover { color: var(--primary); background: var(--accent); }
.kyb-blog-toc .wp-block-rank-math-toc-block h2 { font-family: var(--font-sans); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--primary); margin: 0 0 4px; }

/* RankMath FAQ answers read like article copy */
.rank-math-answer p { font-size: 14px; line-height: 1.8; color: var(--muted-foreground); margin: 0 0 .8em; }
.rank-math-answer a { color: var(--primary); }

/* Table of contents */
.kyb-toc { font-size: 13px; }
.kyb-toc-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--primary); margin-bottom: 12px; }
.kyb-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.kyb-toc a { display: block; padding: 7px 10px; border-radius: 6px; color: var(--ink-soft); line-height: 1.5; text-decoration: none; }
.kyb-toc a:hover { color: var(--primary); background: var(--accent); }
.kyb-toc-mobile { margin-bottom: 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--card); }
.kyb-toc-mobile summary { cursor: pointer; padding: 12px 14px; font-size: 13px; font-weight: 600; }
@media (min-width: 1024px) { .kyb-toc-mobile { display: none; } }
@media (max-width: 1023px) { .kyb-toc-desktop { display: none; } }

/* FAQ accordions (template FAQs + converted RankMath FAQs) */
.kyb-faqs { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.kyb-faq { border: 1px solid var(--border); border-radius: 8px; background: var(--card); overflow: hidden; }
.kyb-faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 17px; font-size: 15px; font-weight: 600; }
.kyb-faq summary::-webkit-details-marker { display: none; }
.kyb-faq summary:hover { color: var(--primary); }
.kyb-faq summary .kyb-faq-chevron { flex-shrink: 0; width: 18px; height: 18px; color: var(--primary); transition: transform .2s; }
.kyb-faq[open] summary .kyb-faq-chevron { transform: rotate(180deg); }
.kyb-faq-a { padding: 0 17px 16px; font-size: 14px; line-height: 1.8; color: var(--muted-foreground); }
.kyb-faq-a p + p { margin-top: 8px; }

/* Size tables */
.kyb-table-wrap { overflow-x: auto; margin-top: 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); }
table.kyb-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.kyb-table th, .kyb-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.kyb-table thead th { font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--primary); background: var(--blush); }
.kyb-table tbody tr:last-child th, .kyb-table tbody tr:last-child td { border-bottom: none; }
.kyb-table tbody tr:hover td { background: var(--muted); }

/* Related sidebar */
.kyb-side-block { margin-bottom: 28px; }
.kyb-side-block:last-child { margin-bottom: 0; }
.kyb-side-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.kyb-side-list a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 6px; background: var(--card); font-size: 13px; color: var(--ink-soft); text-decoration: none; }
.kyb-side-list a:hover { color: var(--primary); border-color: var(--rose); }
.kyb-side-list svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Footer */
.kyb-footer { border-top: 1px solid var(--border); background: var(--card); }
.kyb-footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 36px; }
@media (min-width: 768px) { .kyb-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.kyb-footer h2, .kyb-footer h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.8px; color: var(--primary); margin: 0 0 14px; font-family: var(--font-sans); }
.kyb-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.kyb-footer ul a { font-size: 13.5px; color: var(--ink-soft); text-decoration: none; }
.kyb-footer ul a:hover { color: var(--primary); }
.kyb-footer-brand p { font-size: 13px; line-height: 1.75; color: var(--muted-foreground); margin-top: 12px; max-width: 300px; }
.kyb-footer-mail { color: var(--primary) !important; text-decoration: none; }
.kyb-footer-mail:hover { text-decoration: underline; }
.kyb-social { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0 !important; }
.kyb-social a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; color: var(--ink-soft); }
.kyb-social a:hover { color: var(--primary); background: var(--accent); }
.kyb-social svg { width: 17px; height: 17px; }
.kyb-footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 768px) { .kyb-footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; } }
.kyb-footer-bottom p { font-size: 12px; color: var(--muted-foreground); margin: 0; text-align: center; }
.kyb-footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .kyb-footer-bottom { justify-content: center; } }
.kyb-footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }
.kyb-footer-legal a { font-size: 12px; color: var(--muted-foreground); text-decoration: none; }
.kyb-footer-legal a:hover { color: var(--primary); }
