/* Article page components: hero grid, sidebar TOC, callouts, checklists, cards, stacked tables.
   Loaded via page_start(['styles' => ['assets/css/article.css']]). */
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 60px); align-items: center; }
.page-hero .hero__actions { margin-top: 24px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 18px; font-size: .92rem; color: var(--muted); }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta .icon { color: var(--navy-700); }
.page-hero__media { position: relative; isolation: isolate; }
.page-hero__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.page-hero__media::after { content: ''; position: absolute; inset: auto auto -16px -16px; width: 110px; height: 110px; border-radius: 28px; background: var(--sun-300); opacity: .55; z-index: -1; }

.article-wrap { padding-top: clamp(28px, 4vw, 48px); }
.cards .card__link { padding-top: 16px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 4vw, 64px); align-items: start; }
.article-layout > .prose { margin-inline: 0; }
.article-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.toc summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; list-style: none; font-family: var(--font-head); font-size: 1.1rem; color: var(--ink); }
.toc summary::-webkit-details-marker { display: none; }
.toc summary .icon { color: var(--navy); transition: transform .2s; }
.toc[open] summary .icon { transform: rotate(180deg); }
.toc ol { list-style: none; counter-reset: toc; display: grid; gap: 2px; margin-top: 12px; }
.toc a { display: flex; align-items: flex-start; gap: 10px; padding: 7px 8px; border-radius: 10px; color: var(--text); font-size: .96rem; line-height: 1.45; }
.toc a::before { counter-increment: toc; content: counter(toc); flex-shrink: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--navy); font-size: .78rem; }
.toc a:hover { background: #fff; color: var(--navy); }
.aside-cta { padding: 24px 22px; border-radius: var(--radius); background: linear-gradient(150deg, var(--navy), var(--navy-700)); color: #d6e6f3; }
.aside-cta__title { font-family: var(--font-head); color: #fff; font-size: 1.3rem; line-height: 1.3; margin-bottom: 6px; }
.aside-cta p:not(.aside-cta__title) { font-size: .96rem; margin-bottom: 16px; }
.aside-cta .btn { width: 100%; }
.aside-cta .btn + .btn { margin-top: 10px; }

.prose > h2:first-child { margin-top: 0; }
.prose .lead { font-size: 1.16rem; color: var(--ink); }
.callout { --c-bg: var(--sky-50); --c-bar: var(--blue); --c-ink: var(--navy); padding: 20px 24px; border-radius: var(--radius); background: var(--c-bg); border-right: 4px solid var(--c-bar); }
.callout > * + * { margin-top: .55em; }
.callout__title { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 1.14rem; line-height: 1.35; color: var(--c-ink); }
.callout--sun { --c-bg: var(--sun-50); --c-bar: var(--sun); --c-ink: #7a4f00; }
.callout--lime { --c-bg: var(--lime-50); --c-bar: var(--lime); --c-ink: #4a5a00; }
.callout--coral { --c-bg: var(--coral-50); --c-bar: var(--coral); --c-ink: #9a3d2b; }
.callout--lavender { --c-bg: var(--lavender-50); --c-bar: var(--lavender); --c-ink: #4b3fb0; }
.prose .callout ul { padding-right: 1.2em; }
.callout .btn { margin-top: 14px; }
.prose .callout .btn, .prose .card__link, .prose .btn { text-decoration: none; }
.keybox { padding: 24px 26px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.keybox__title { font-family: var(--font-head); font-size: 1.2rem; color: var(--ink); margin-bottom: 14px; }
.keybox > p:not(.keybox__title) + ul { margin-top: 14px; }
.prose .checklist { list-style: none; padding: 0; display: grid; gap: 10px 24px; }
.prose .checklist li { display: flex; gap: 12px; align-items: flex-start; margin: 0; color: var(--ink); }
.checklist .icon { width: 22px; height: 22px; padding: 4px; margin-top: 4px; border-radius: 50%; background: var(--success); color: #fff; }
.checklist--x .icon { background: var(--danger); }
.prose .checklist--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat-band { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: var(--radius-lg); background: linear-gradient(120deg, #fff4d6, var(--sun-50)); border: 1px solid #f6e3b4; }
.stat-band__icon { flex-shrink: 0; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--sun); color: var(--ink); }
.stat-band strong { display: block; font-family: var(--font-head); font-weight: 400; font-size: 1.25rem; color: var(--ink); line-height: 1.3; }
.stat-band p { margin-top: 4px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile { padding: 18px 14px; border-radius: var(--radius); background: var(--tile, var(--sky-50)); text-align: center; }
.tile:nth-child(4n+1) { --tile: var(--sun-50); } .tile:nth-child(4n+2) { --tile: var(--coral-50); } .tile:nth-child(4n+3) { --tile: var(--sky-100); } .tile:nth-child(4n) { --tile: var(--lime-50); }
.tile strong { display: block; font-family: var(--font-head); font-weight: 400; font-size: 1.3rem; color: var(--navy); }
.tile span { display: block; font-size: .92rem; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.info-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prose .info-grid .card { padding: 22px; }
.prose .card h3 { margin-top: 0; font-size: 1.22rem; }
.term-en { display: block; margin-top: 4px; font-family: var(--font-body); font-size: .86rem; color: var(--muted); text-align: right; }
.prose .card p { font-size: .98rem; line-height: 1.65; }
.prose .card ul { padding-right: 0; margin: 12px 0 0; }
.prose .card li { margin-top: 0; font-size: .97rem; line-height: 1.55; }
.prose .card .card__icon { width: 50px; height: 50px; border-radius: 15px; margin-bottom: 14px; }
.prose .card .card__link { padding-top: 14px; }
.prose .card:not(:has(.card__stretch)):hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--line); }
.chip { align-self: flex-start; display: inline-block; padding: 2px 12px; margin-bottom: 10px; border-radius: 999px; background: var(--accent-50, var(--sky-100)); color: var(--accent-ink, var(--navy)); font-size: .85rem; }
.prose .step-list { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 12px; }
.prose .step-list li { position: relative; margin: 0; padding: 16px 70px 16px 20px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); }
.step-list li::before { counter-increment: step; content: counter(step); position: absolute; right: 18px; top: 16px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--sun); color: var(--ink); font-family: var(--font-head); }
.step-list strong { font-family: var(--font-head); font-weight: 400; color: var(--navy); }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .98rem; line-height: 1.55; }
.compare th { background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 400; text-align: right; padding: 14px 16px; }
.compare td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.compare tbody tr:nth-child(even) td { background: var(--bg-soft); }
.compare td:nth-child(2) { color: var(--navy); font-family: var(--font-head); }
.lead-section__more { margin-top: 20px; color: var(--muted); font-size: .98rem; }
.lead-section__more a { text-decoration: underline; text-underline-offset: 3px; }
.lead-form select { cursor: pointer; padding-left: 44px; background: #fbfdff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2310446a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat left 14px center; }

@media (max-width: 1080px) {
    .article-layout { grid-template-columns: minmax(0, 1fr); }
    .article-layout > .prose { margin-inline: auto; }
    .article-aside { position: static; order: -1; width: 100%; max-width: 820px; margin-inline: auto; }
    .aside-cta { display: none; }
}
@media (max-width: 900px) {
    .page-hero__grid { grid-template-columns: minmax(0, 1fr); }
    .page-hero__media { max-width: 640px; }
}
@media (max-width: 640px) {
    .page-hero__media::after { inset: auto auto -10px -8px; width: 76px; height: 76px; border-radius: 20px; }
    .prose .checklist--2, .info-grid, .info-grid--3, .duo { grid-template-columns: minmax(0, 1fr); }
    .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .callout { padding: 18px; }
    .keybox { padding: 20px 18px; }
    .stat-band { padding: 18px; align-items: flex-start; }
    .compare thead { display: none; }
    .compare, .compare tbody, .compare tr, .compare td { display: block; width: 100%; }
    .compare tr + tr { border-top: 1px solid var(--line); }
    .compare tbody tr:nth-child(even) td { background: transparent; }
    .compare tr { padding: 10px 0; }
    .compare td { border: 0; padding: 4px 16px; }
    .compare td::before { content: attr(data-label); display: block; font-family: var(--font-body); font-size: .8rem; color: var(--muted); }
}
