.main-nav, footer nav { flex-wrap: wrap; row-gap: 10px; }
.skip-link { position: absolute; left: 20px; top: -100px; background: var(--ink); color: #fff; padding: 12px 18px; z-index: 10; }
.skip-link:focus { top: 12px; }
.content-page h1, .content-page h2, .content-page h3 { text-wrap: balance; letter-spacing: normal; }
.content-page p, .content-page li { text-wrap: pretty; }
.content-page h1 { font-family: Onest, var(--th), sans-serif; font-size: clamp(32px, 4.5vw, 58px); line-height: 1.15; font-weight: 800; max-width: 24ch; }
.content-page h2 { font-family: Onest, var(--th), sans-serif; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.3; margin-bottom: 18px; }
.content-page h3 { font-family: Onest, var(--th), sans-serif; font-size: 22px; line-height: 1.35; }
.content-page .navigation { border-bottom: 1px solid var(--line); }
.content-page .article-main, .content-page .hub-main { width: min(1120px, calc(100% - 64px)); padding: 28px 0 70px; }
.breadcrumb { gap: 12px; flex-wrap: wrap; color: var(--muted); margin-bottom: 36px; }
.breadcrumb a { font-size: 14px; }
.article-header { max-width: 830px; padding: 18px 0 42px; }
.guide-group { margin-bottom: 42px; }
.guide-group > h2 { margin-bottom: 22px; }
.eyebrow { color: var(--blue); font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.article-meta { color: var(--muted); font-size: 14px; margin: 22px 0; }
.article-intro { font-size: 20px; line-height: 1.65; max-width: 68ch; }
.article-intro p + p { margin-top: 18px; }
.article-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; align-items: start; }
.article-aside { position: sticky; top: 24px; }
.article-toc { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; font-size: 14px; }
.article-toc summary { font-weight: 700; cursor: pointer; padding: 2px 0; }
.article-toc nav { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.article-toc nav a { font-size: 14px; font-weight: 500; line-height: 1.5; }
.article-body { min-width: 0; max-width: 72ch; }
.article-section { padding: 34px 0; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.article-section p + p { margin-top: 18px; }
.article-section ul, .article-section ol { padding-left: 24px; margin: 18px 0; }
.article-section li + li { margin-top: 12px; }
.article-section p, .article-section li { line-height: 1.75; }
.table-scroll { overflow-x: auto; margin: 24px 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.table-scroll:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.6; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); min-width: 140px; }
thead { background: #ecebfa; }
tbody tr:last-child > * { border-bottom: 0; }
.article-video { display: block; width: min(300px, 100%); height: auto; aspect-ratio: 9 / 16; background: var(--ink); border-radius: 18px; margin-top: 24px; }
.article-quiz fieldset { border: 1px solid var(--line); padding: 20px; margin: 26px 0; border-radius: 16px; min-width: 0; background: #fff; }
.article-quiz legend { font-weight: 700; font-size: 18px; line-height: 1.5; padding: 0 8px; }
.quiz-choice { display: flex; align-items: flex-start; gap: 12px; padding: 14px 12px; margin: 8px 0; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; line-height: 1.6; }
.quiz-choice input { margin: 6px 0 0; width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--blue); }
.quiz-choice:has(input:checked) { border-color: var(--blue); background: #eeecff; }
.quiz-choice:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }
.quiz-feedback { font-weight: 700; margin: 16px 0; }
.quiz-feedback:empty, .quiz-score:empty, .worksheet-status:empty { display: none; }
.quiz-feedback.is-correct { color: #176638; }
.answer-details { margin-top: 18px; font-size: 15px; }
.answer-details summary { font-weight: 700; cursor: pointer; }
.answer-details li p { font-weight: 400; margin-top: 8px; }
.quiz-score { font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 18px; }
.content-button { display: inline-flex; justify-content: center; align-items: center; gap: 16px; border: 1px solid var(--blue); border-radius: 12px; background: var(--blue); color: #fff; font: 700 16px/1.4 Onest, var(--th), sans-serif; padding: 14px 20px; text-decoration: none; cursor: pointer; }
.content-button:hover { background: #2e21d1; color: #fff; }
.content-button:focus-visible, .answer-details summary:focus-visible, .article-toc summary:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.content-button.secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.worksheet { display: flex; flex-direction: column; gap: 12px; }
.worksheet label { font-weight: 600; margin-top: 10px; }
.worksheet textarea { width: 100%; resize: vertical; min-height: 92px; padding: 14px; font: inherit; line-height: 1.5; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.worksheet .content-button { align-self: flex-start; }
.privacy-note, .editorial-note { color: var(--muted); font-size: 14px; line-height: 1.65; }
.source-list a { color: var(--blue); overflow-wrap: anywhere; }
.sample-callout { padding: 30px; border: 1px solid var(--line); background: #eeecff; border-radius: 20px; margin: 24px 0 36px; }
.sample-callout p { margin: 16px 0 22px; max-width: 65ch; }
.related-section { padding-top: 42px; }
.related-section h2 { margin-bottom: 24px; }
.content-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.content-card { padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 20px; display: flex; flex-direction: column; align-items: flex-start; }
.content-card h3 { margin-bottom: 18px; }
.content-card h3 a { text-decoration: none; }
.content-card p:not(.eyebrow) { font-size: 16px; color: var(--muted); line-height: 1.65; margin-bottom: 24px; }
.card-link { margin-top: auto; color: var(--blue); font-weight: 700; text-decoration: none; font-size: 15px; }
.hub-intro { font-size: 20px; line-height: 1.7; max-width: 65ch; margin-top: 24px; }
.hub-main .sample-callout { margin-top: 48px; }
.catalog-extra { margin: 44px 0; max-width: 75ch; }
.catalog-extra p { margin: 16px 0; }
.catalog-extra li { margin: 12px 0; }
html[lang=th] .content-page h1 { font-family: Onest, var(--th), sans-serif; font-size: clamp(30px, 4vw, 50px); line-height: 1.5; }
html[lang=th] .content-page h2 { font-family: Onest, var(--th), sans-serif; line-height: 1.5; }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; gap: 24px; } .article-aside { position: static; } .article-toc nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .article-body { max-width: none; } .content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .content-page .article-main, .content-page .hub-main { width: calc(100% - 40px); padding-top: 22px; } .article-header { padding: 8px 0 28px; } .article-intro, .hub-intro { font-size: 18px; } .breadcrumb { margin-bottom: 24px; } .content-grid { grid-template-columns: 1fr; } .article-toc nav { grid-template-columns: 1fr; } .article-section { padding: 28px 0; } .article-quiz fieldset { padding: 16px 12px; } .quiz-choice { padding: 12px 10px; } .sample-callout { padding: 24px 20px; } .content-card { padding: 24px; } .content-page .main-nav { width: 100%; gap: 12px 20px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .navigation, footer, .article-aside, .sample-callout, .related-section, .article-video, .content-button { display: none; } .article-layout { display: block; } .content-page .article-main { width: 100%; } .article-section { break-inside: avoid; } }
