/* Home-only layout: catalog and symbol pages retain their existing styles. */
.home-reference { --home-accent: #715034; --home-border: #ded6cb; --home-paper: #fffdf8; }
.home-reference .home-brand-domain { font-weight: 400; }
.home-reference .choice-header { max-width: 1200px; margin-inline: auto; }
.home-reference .site-header .language-switcher-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(400px, calc(100vw - 32px)); max-width: none; left: auto; right: 0; gap: 6px; z-index: 30; }
.home-reference .site-header .language-switcher:not([open]) .language-switcher-menu { display: none; }
.home-reference .site-header .language-switcher-menu a { display: flex; justify-content: flex-start; gap: 8px; min-width: 0; min-height: 44px; padding: 8px 10px; white-space: nowrap; text-align: start; }
.home-reference .site-header .language-switcher-menu .language-switcher-name { display: inline; min-width: 0; }
html[dir="rtl"] .home-reference .site-header .language-switcher-menu { right: auto; left: 0; }
.home-intro, .home-toc, .home-content { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.home-intro { padding-block: 54px 20px; }
.home-intro h1 { max-width: 920px; margin: 12px 0 18px; font-size: clamp(2rem, 4.5vw, 3.8rem); line-height: 1.12; text-wrap: balance; }
.home-lead { max-width: 800px; font-size: 1.12rem; line-height: 1.75; }
.home-catalogs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.home-reference .reading-card { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; min-height: 0; padding: 0; gap: 0; overflow: hidden; border: 1px solid var(--home-border); border-radius: 18px; }
.home-reference .choice-preview { grid-row: auto; min-width: 0; height: auto; min-height: 0; aspect-ratio: 3 / 2; margin: 0; border-radius: 0; }
.home-reference .choice-preview img { display: block; width: 100%; height: auto; object-fit: cover; transform: none; }
.home-reference .reading-card-copy { padding: 24px; gap: 12px; min-width: 0; }
.home-reference .reading-card-copy strong { font-size: 1.35rem; line-height: 1.25; }
.home-reference .reading-card .card-action { justify-content: start; gap: 8px; min-height: 0; padding: 4px 0; margin: 0; background: none; color: var(--home-accent); font-size: .88rem; }
.home-reference .home-caption { color: #6c6259; font-size: .85rem; line-height: 1.6; }
.home-toc { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 18px 26px; border-bottom: 1px solid var(--home-border); }
.home-toc a { padding: 9px 14px; border: 1px solid var(--home-border); border-radius: 24px; font-size: .88rem; text-decoration: none; }
.home-reference a:focus-visible, .home-reference summary:focus-visible { outline: 3px solid #8b5d30; outline-offset: 5px; }
.home-content { padding-bottom: 48px; }
.home-section { padding-block: 48px; border-bottom: 1px solid var(--home-border); scroll-margin-top: 24px; }
.home-section h2 { margin: 0 0 20px; font-size: clamp(1.55rem, 2.8vw, 2.2rem); line-height: 1.2; text-wrap: balance; }
.home-section h3 { margin: 0 0 10px; font-size: 1.06rem; line-height: 1.45; }
.home-section p { max-width: 850px; line-height: 1.8; }
.home-section .eyebrow { color: var(--home-accent); margin: 0 0 10px; }
.home-definition { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.home-definition p { margin: 0; }
.home-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 0; margin: 26px 0; }
.home-steps li { min-width: 0; }
.home-step-number { display: block; color: var(--home-accent); margin-bottom: 18px; font-size: 1.65rem; font-family: Georgia, serif; }
.home-steps p { font-size: .94rem; }
.home-guide-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 20px; }
.home-guide-links a, .home-sources a { text-underline-offset: 4px; }
.home-table-wrap { border: 1px solid var(--home-border); border-radius: 14px; overflow: hidden; }
.home-reference table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: start; font-size: .96rem; }
.home-reference th, .home-reference td { padding: 18px 22px; border-bottom: 1px solid var(--home-border); line-height: 1.65; vertical-align: top; overflow-wrap: anywhere; text-align: start; }
.home-reference thead { background: #eee6da; }
.home-reference th:first-child, .home-reference td:first-child { width: 23%; }
.home-reference tbody tr:last-child > * { border-bottom: 0; }
.home-position-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.home-cup { margin: 12px 0; }
.home-cup svg { display: block; width: 100%; height: auto; }
.cup-body { fill: #f3e6d3; stroke: #876547; stroke-width: 3; }
.cup-rim { fill: #fffdf8; stroke: #876547; stroke-width: 3; }
.cup-handle { fill: none; stroke: #876547; stroke-width: 13; }
.cup-line { fill: none; stroke: #b59876; stroke-width: 2; stroke-dasharray: 5 6; }
.cup-marker { fill: #644932; }
.home-cup text { fill: white; font-size: 18px; font-family: system-ui, sans-serif; direction: ltr; }
.home-zones { padding: 0; list-style: none; display: grid; gap: 18px; }
.home-zones li { display: flex; gap: 18px; align-items: flex-start; }
.home-zone-number { background: #644932; color: white; border-radius: 50%; flex: 0 0 32px; height: 32px; display: grid; place-items: center; }
.home-zones h3, .home-zones p { margin: 0; }
.home-symbols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.home-symbols article { border: 1px solid var(--home-border); border-radius: 12px; padding: 22px; background: var(--home-paper); }
.home-symbols .home-symbol-previews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.home-symbol-previews a { display: grid; gap: 8px; min-width: 0; font-size: .9rem; text-underline-offset: 4px; text-align: center; }
.home-symbol-previews img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 8px; background: #eee6da; }
.home-symbol-previews a:hover img { outline: 2px solid var(--home-accent); outline-offset: 2px; }
.home-example { padding: 32px; background: #eee6da; border: 0; border-radius: 18px; margin-top: 36px; }
.home-sources { padding-inline-start: 22px; }
.home-sources li { margin-block: 16px; line-height: 1.7; }
.home-sources span { display: block; font-size: .9rem; color: #6c6259; }
.home-editorial { margin-top: 30px; padding-inline-start: 24px; border-inline-start: 3px solid #baa17e; }
.home-faq details { border-top: 1px solid var(--home-border); padding-block: 20px; }
.home-faq summary { cursor: pointer; font-weight: 650; line-height: 1.6; }
.home-faq details p { margin-bottom: 0; }
.home-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.home-reference .app-promo-home { width: 100%; margin-block: 38px 0; }
.home-reference .choice-footer { max-width: 1120px; margin-inline: auto; }
.home-reference[dir="rtl"] .home-cup { direction: ltr; }
@media (max-width: 900px) {
  .home-symbols { grid-template-columns: repeat(2, 1fr); }
  .home-reference .reading-card { grid-template-columns: 1fr; }
  .home-reference .reading-card-copy { padding: 22px; }
  .home-steps { grid-template-columns: repeat(2, 1fr); }
  .home-definition { grid-template-columns: 1fr; gap: 0; }
  .home-position-layout { gap: 30px; }
}
@media (max-width: 600px) {
  .home-intro, .home-toc, .home-content { width: calc(100% - 32px); }
  .home-intro { padding-top: 32px; }
  .home-catalogs { grid-template-columns: 1fr; gap: 18px; }
  .home-reference .reading-card-copy { padding: 18px; }
  .home-reference .reading-card-copy strong { font-size: 1.17rem; }
  .home-section { padding-block: 34px; }
  .home-steps { grid-template-columns: 1fr; gap: 18px; }
  .home-step-number { margin-bottom: 8px; }
  .home-position-layout { grid-template-columns: 1fr; gap: 8px; }
  .home-cup { max-width: 400px; width: 100%; margin-inline: auto; }
  .home-symbols { grid-template-columns: repeat(2, 1fr); }
  .home-symbols article { padding: 18px; }
  .home-reference th, .home-reference td { padding: 12px 8px; font-size: .85rem; }
  .home-example { padding: 24px; }
  .home-reference .brand { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
