/* Knowledge Center: hub and country guides. Loaded in addition to /styles.css. */

.kc-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Hero details */
.kc-hero-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin: 0 0 2rem; padding: 0; list-style: none; color: rgba(255, 255, 255, .72); font-size: .68rem; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; }
.kc-hero-meta li { display: inline-flex; align-items: center; gap: .6rem; }
.kc-hero-meta li::before { width: 5px; height: 5px; border-radius: 50%; background: var(--copper-light); content: ""; }

/* Hub: country cards */
.kc-country-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.kc-country-grid > li { display: flex; min-width: 0; }
.kc-country-card { position: relative; display: flex; flex: 1; flex-direction: column; min-height: 235px; padding: 1.5rem 1.6rem 1.4rem; border: 1px solid var(--line); background: var(--white); color: inherit; text-decoration: none; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
a.kc-country-card:hover { transform: translateY(-3px); border-color: rgba(182, 108, 70, .65); box-shadow: var(--shadow-soft); }
.kc-country-card .micro-label { margin: 0 0 .8rem; color: var(--copper); }
.kc-country-card h3 { margin: 0 0 .6rem; color: var(--navy); font-family: var(--serif); font-size: clamp(1.8rem, 2.5vw, 2.3rem); font-weight: 400; letter-spacing: -.03em; line-height: 1.05; }
.kc-country-card p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.7; }
.kc-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1.3rem; color: var(--navy); font-size: .72rem; font-weight: 750; letter-spacing: .06em; }
.kc-card-foot span[aria-hidden="true"] { color: var(--copper); font-size: 1rem; transition: transform .18s ease; }
a.kc-country-card:hover .kc-card-foot span[aria-hidden="true"] { transform: translateX(4px); }
.kc-country-card.is-soon { border-style: dashed; background: rgba(255, 254, 250, .5); }
.kc-country-card.is-soon h3 { color: #52626e; }
.kc-badge { display: inline-block; padding: .3rem .65rem; border: 1px solid rgba(182, 108, 70, .45); border-radius: 999px; color: var(--copper); font-size: .58rem; font-weight: 750; letter-spacing: .14em; line-height: 1.2; text-transform: uppercase; }
.kc-badge--live { border-color: var(--copper); background: var(--copper); color: #fff; }
.kc-grid-note { margin: 1.6rem 0 0; color: var(--muted); font-size: .92rem; }
.kc-grid-note a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--copper); text-underline-offset: 3px; }

/* Country guide: layout */
.kc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.kc-toc { position: sticky; top: calc(var(--header-height) + 1.75rem); padding-right: 1.1rem; border-right: 1px solid var(--line); }
.kc-toc-title { margin: 0 0 .9rem; color: #68747a; font-size: .62rem; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
.kc-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.kc-toc li { counter-increment: toc; }
.kc-toc a { display: flex; gap: .75rem; padding: .48rem 0; color: #384a59; font-size: .84rem; line-height: 1.4; text-decoration: none; transition: color .18s ease; }
.kc-toc a::before { padding-top: .16rem; color: var(--copper); content: counter(toc, decimal-leading-zero); font-size: .64rem; font-weight: 750; letter-spacing: .08em; }
.kc-toc a:hover { color: var(--copper); }

/* Country guide: article */
.kc-article { max-width: 860px; }
.kc-section { margin-bottom: clamp(2.2rem, 4vw, 3.2rem); padding-bottom: clamp(2.2rem, 4vw, 3.2rem); border-bottom: 1px solid var(--line); }
.kc-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.kc-section > h2 { margin: 0 0 1.2rem; color: var(--navy); font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.04; }
.kc-section p { margin: 0 0 1rem; color: var(--ink); font-size: 1rem; line-height: 1.78; }
.kc-section p:last-child { margin-bottom: 0; }
.kc-section strong { color: var(--navy); }
.kc-section a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--copper); text-underline-offset: 3px; }
.kc-section a:hover { text-decoration-color: var(--navy); }

.kc-list { margin: 0 0 1rem; padding: 0; list-style: none; }
.kc-list > li { position: relative; margin: 0 0 .95rem; padding-left: 1.45rem; color: var(--ink); font-size: 1rem; line-height: 1.78; }
.kc-list > li:last-child { margin-bottom: 0; }
.kc-list > li::before { position: absolute; top: .78em; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--copper); content: ""; }

.kc-section .kc-cite { color: var(--copper); font-size: .68rem; font-weight: 750; line-height: 0; }
.kc-section .kc-cite a { padding: 0 .1em; color: var(--copper); font-weight: 750; text-decoration: none; }
.kc-section .kc-cite a:hover { text-decoration: underline; }

/* At a glance table */
.kc-table-wrap { border: 1px solid var(--line); background: var(--white); overflow-x: auto; }
.kc-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.kc-table th, .kc-table td { padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.6; }
.kc-table thead th { border-bottom: 0; background: var(--navy); color: rgba(255, 255, 255, .88); font-size: .62rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.kc-table tbody th { width: 25%; color: var(--navy); font-family: var(--serif); font-size: 1.08rem; font-weight: 400; line-height: 1.25; }
.kc-table td { color: var(--ink); }
.kc-table td:last-child { width: 13%; white-space: nowrap; }
.kc-table tbody tr:last-child > * { border-bottom: 0; }
.kc-table .kc-cite { font-size: .74rem; }

/* Questions to ask your importer */
.kc-section .kc-questions { margin: 0; padding: 0; list-style: none; counter-reset: q; }
.kc-section .kc-questions li { position: relative; margin: 0 0 .8rem; padding: 1rem 1.2rem 1rem 3.7rem; border: 1px solid var(--line); background: var(--white); color: var(--ink); counter-increment: q; font-size: .98rem; line-height: 1.65; }
.kc-section .kc-questions li::before { position: absolute; top: .8rem; left: 1.15rem; color: var(--copper); content: counter(q); font-family: var(--serif); font-size: 1.55rem; line-height: 1.1; }
.kc-section .kc-questions li:last-child { margin-bottom: 0; }

/* Need help */
.kc-section.kc-help { padding: clamp(1.5rem, 3vw, 2.2rem); border: 0; border-left: 4px solid var(--copper); background: var(--cream); }
.kc-help > h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.kc-help .button { margin-top: .6rem; color: #fff; text-decoration: none; }
.kc-section .kc-help .button, .kc-section.kc-help .button { color: #fff; text-decoration: none; }

/* Sources */
.kc-sources-intro { color: var(--muted); }
.kc-section .kc-sources { margin: 0; padding: 0; list-style: none; counter-reset: src; border-top: 1px solid var(--line); }
.kc-section .kc-sources li { position: relative; padding: .9rem .6rem .9rem 2.9rem; border-bottom: 1px solid var(--line); color: var(--muted); counter-increment: src; font-size: .9rem; line-height: 1.6; scroll-margin-top: calc(var(--header-height) + 1.25rem); }
.kc-section .kc-sources li::before { position: absolute; top: .95rem; left: .6rem; color: var(--copper); content: counter(src); font-size: .74rem; font-weight: 750; }
.kc-section .kc-sources li:target { background: rgba(182, 108, 70, .10); }
.kc-section .kc-sources a { overflow-wrap: anywhere; }
.kc-disclaimer { margin: 1.6rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; line-height: 1.7; }
.kc-section .kc-disclaimer { color: var(--muted); font-size: .84rem; line-height: 1.7; margin: 1.6rem 0 0; }

@media (max-width: 1120px) {
  .kc-country-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .kc-layout { grid-template-columns: 1fr; gap: 2rem; }
  .kc-toc { position: static; padding: 0 0 1.3rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .kc-toc ol { columns: 2; column-gap: 2rem; }
}

@media (max-width: 680px) {
  .kc-country-grid { grid-template-columns: 1fr; }
  .kc-country-card { min-height: 0; }
  .kc-toc ol { columns: 1; }
  .kc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .kc-table, .kc-table tbody, .kc-table tr, .kc-table th, .kc-table td { display: block; width: 100% !important; }
  .kc-table tr { padding: .5rem 0; border-bottom: 1px solid var(--line); }
  .kc-table tbody tr:last-child { border-bottom: 0; }
  .kc-table th, .kc-table td { padding: .3rem 1rem; border: 0 !important; }
  .kc-table td:last-child { white-space: normal; }
  .kc-table td::before { display: block; margin-bottom: .15rem; color: var(--copper); content: attr(data-label); font-size: .58rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
  .kc-section .kc-questions li { padding-left: 3.3rem; }
}

@media print {
  .site-header, .kc-toc, .cta-band, .related-links, .site-footer, .hero-actions { display: none !important; }
  .page-hero { background: none; color: #000; padding-block: 1rem; }
  .page-hero h1, .page-lede, .breadcrumb, .kc-hero-meta { color: #000; }
  .kc-layout { display: block; }
}
