@font-face {
  font-family: Inter;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}
:root {
  --ink: #20372d;
  --green: #285b43;
  --green-hover: #183c2c;
  --muted: #5b6b61;
  --gold: #97702c;
  --gold-text: #846026;
  --border: #dce3dc;
  --oat: #f5f2e9;
  --pale: #ecf3ec;
  --error: #a33d39;
}
* { box-sizing: border-box; }
html { color-scheme: light; scroll-padding: 24px; }
body { margin: 0; color: var(--ink); background: #fff; font-family: Inter, Arial, sans-serif; font-size: 17px; line-height: 1.5; font-optical-sizing: none; font-variation-settings: 'opsz' 14; }
body.menu-open { overflow: hidden; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }
a { color: var(--green); text-decoration: none; }
a:hover, a:focus { text-decoration: none; }
a:hover { color: var(--green-hover); }
button, input, select, textarea { font: inherit; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 16px; border: 1px solid transparent; border-radius: 7px; color: #fff; background: var(--green); font-size: 14px; font-weight: 600; line-height: 1.5; cursor: pointer; }
button:hover, .button:hover { background: var(--green-hover); color: #fff; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #255dcb; outline-offset: 3px; }
button:focus-visible { position: relative; z-index: 1; }
p { margin: 0 0 24px; color: var(--muted); }
h1, h2, h3 { color: var(--ink); font-weight: 600; margin: 0; line-height: 1.12; }
h1 { font-size: 59px; margin-bottom: 24px; max-width: 1000px; }
h2 { font-size: 34px; margin-bottom: 22px; }
h3 { font-size: 24px; }
ul { padding-left: 24px; }
.container { width: min(1280px, calc(100% - 64px)); margin-inline: auto; }
.site-header { height: 108px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 44px; }
.brand img { width: 188px; height: 44px; }
.desktop-nav { display: grid; grid-template-columns: repeat(4, 1fr); width: 555px; }
.nav-link { display: inline-flex; align-items: center; min-height: 64px; position: relative; font-size: 14px; font-weight: 500; color: var(--ink); }
.nav-link[aria-current]::after { content: ''; position: absolute; bottom: 4px; left: 0; width: 43px; height: 2px; background: var(--gold); }
.nav-link:hover { color: var(--gold-text); }
.menu-toggle { display: none; }
.icon-button, .menu-toggle { background: transparent; color: var(--ink); width: 44px; min-height: 44px; padding: 10px; }
.icon-button:hover, .menu-toggle:hover { background: var(--pale); }
.icon-button img, .menu-toggle img { width: 24px; height: 24px; }
.skip-link { position: absolute; top: -100px; left: 20px; padding: 12px; background: white; z-index: 20; }
.skip-link:focus { top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.breadcrumbs { margin: 44px 0 34px; font-size: 12px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: '/'; margin-right: 6px; color: var(--muted); }
.breadcrumbs a, .breadcrumbs span { color: var(--muted); }
.eyebrow { color: var(--gold-text); text-transform: uppercase; font-size: 11px; font-weight: 500; line-height: 1.5; margin: 0 0 20px; }
.page-hero { margin-bottom: 48px; }
.page-hero .intro { max-width: 800px; margin-bottom: 0; }
.home-hero { display: grid; grid-template-columns: minmax(0, 594fr) minmax(0, 618fr); gap: 68px; margin-top: 46px; align-items: start; }
.home-intro { padding-top: 12px; }
.home-intro .eyebrow { margin-bottom: 24px; }
.home-intro h1 { font-size: 64px; line-height: 1.12; margin-bottom: 32px; }
.home-intro .intro { font-size: 19px; line-height: 1.5; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.hero-actions .button { min-width: 240px; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; }
.hero-note { width: 85%; border-top: 1px solid var(--border); margin-top: 24px; padding-top: 24px; }
.hero-note .eyebrow { margin-bottom: 12px; }
.hand-tool { min-width: 0; border-radius: 14px; background: var(--oat); padding: 20px 28px 22px; }
.hand-tool h2 { font-size: 26px; line-height: 1.5; margin-bottom: 18px; }
.hand-display { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.hand-display p { font-size: 12px; margin-bottom: 18px; }
.card-pair { display: flex; gap: 12px; }
.playing-card { width: 76px; height: auto; aspect-ratio: 96 / 132; display: block; }
.card-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.field { min-width: 0; }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
select { width: 100%; height: 50px; border: 1px solid var(--border); border-radius: 5px; background: #fff url('../icons/chevron.svg') no-repeat right 14px center / 15px; color: var(--ink); padding: 8px 36px 8px 12px; appearance: none; }
select[aria-invalid='true'] { border: 2px solid var(--error); }
.button-row { display: flex; flex-wrap: wrap; gap: 2px; margin: 26px 0 20px; }
.button-row button[type='submit'] { min-width: 176px; justify-content: flex-start; }
.text-button { color: var(--green); background: transparent; font-weight: 500; }
.text-button:hover { background: var(--pale); color: var(--green-hover); }
.rule-summary { font-size: 13px; color: var(--ink); margin-bottom: 2px; }
.rule-summary span { color: var(--muted); font-size: 12px; }
.disclosure { display: flex; justify-content: space-between; width: 100%; text-align: left; color: var(--green); padding: 10px 0; background: transparent; border-radius: 0; }
.disclosure:hover { background: transparent; color: var(--green-hover); }
.disclosure > span:last-child { font-size: 24px; font-weight: 400; flex-shrink: 0; }
.disclosure > span:first-child:not(:last-child) { font-size: inherit; font-weight: inherit; }
.rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 12px 0 16px; }
.small { font-size: 12px; line-height: 1.6; }
.rule-settings .small { margin-bottom: 20px; }
.decision-panel { background: var(--green); color: #fff; border-radius: 10px; padding: 18px; min-height: 236px; margin-top: 8px; display: flex; flex-direction: column; }
.decision-panel p, .decision-panel h3 { color: #fff; }
.decision-panel .eyebrow { font-size: 9px; margin-bottom: 14px; }
.decision-panel h3 { font-size: 40px; line-height: 1.12; margin-bottom: 18px; }
#decision-explanation { font-size: 14px; line-height: 1.5; margin-bottom: 24px; }
.copy-button { align-self: flex-start; margin-top: auto; padding: 8px 0 0; background: transparent; min-height: 44px; font-size: 12px; font-weight: 500; }
.copy-button:hover { background: transparent; color: #f5dfac; }
#copy-status:empty { display: none; }
#copy-status { margin: 4px 0 0; }
#copy-fallback { margin-top: 16px; }
#copy-fallback label { color: white; }
textarea { display: block; width: 100%; border-radius: 5px; border: 1px solid var(--border); padding: 8px; font-size: 13px; }
.error-message { color: var(--error); font-size: 13px; margin: 12px 0 0; }
.topic-section { margin-top: 64px; }
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.topic-card { border: 1px solid var(--border); border-radius: 9px; padding: 23px; min-height: 226px; display: flex; flex-direction: column; transition: border-color 120ms, background 120ms; }
.topic-card:hover { border-color: var(--green); background: #fafbf8; }
.topic-card .eyebrow { display: block; margin-bottom: 22px; }
.topic-card h3 { font-size: 24px; margin-bottom: 24px; }
.card-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; margin-top: auto; min-height: 24px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 800px) minmax(0, 320px); justify-content: space-between; gap: 48px; margin-top: 54px; }
.article-copy { min-width: 0; }
.article-section { margin-bottom: 48px; }
.article-section:last-child { margin-bottom: 0; }
.article-section h2 { max-width: 830px; }
.article-section p { margin-bottom: 16px; }
.source-link { display: block; width: fit-content; font-size: 12px; min-height: 44px; padding: 10px 0; }
.page-outline { align-self: start; padding: 20px; border-radius: 8px; background: var(--oat); }
.page-outline .eyebrow { font-size: 10px; margin-bottom: 12px; }
.page-outline ul { list-style: none; padding: 0; margin: 0; }
.page-outline li { font-size: 12px; padding: 12px 0; }
.editorial-feature { display: grid; grid-template-columns: minmax(0, 606px) minmax(0, 1fr); align-items: center; gap: 64px; margin: 64px 0; }
.editorial-feature > img { width: 100%; aspect-ratio: 3/2; border-radius: 9px; }
.editorial-feature h2 { max-width: 480px; }
.editorial-feature p { max-width: 520px; }
.comparison { display: block; max-width: 1100px; margin: 48px 0; }
.comparison img { display: block; width: 100%; }
.source-list { list-style: none; padding: 0; }
.source-list a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.faq-section { margin-top: 64px; }
.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item h3 { font-size: 17px; }
.faq-item .disclosure { min-height: 60px; color: var(--ink); gap: 20px; font-size: 16px; }
.faq-item p { max-width: 850px; }
.site-footer { margin-top: 72px; padding: 38px 0 32px; background: var(--oat); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 390px) minmax(0, 1fr); gap: 50px; }
.footer-tagline { font-size: 17px; color: var(--ink); margin-top: 24px; }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; align-content: start; }
.footer-links a { font-size: 14px; color: var(--ink); min-height: 44px; display: flex; align-items: center; }
.footer-links a:hover { color: var(--gold-text); }
.footer-bottom { margin-top: 44px; font-size: 12px; }
.footer-bottom p { margin: 0 0 12px; }
.footer-bottom p:last-child { margin: 20px 0 0; }
.contact-link { display: inline-flex; min-height: 44px; align-items: center; overflow-wrap: anywhere; }
dialog { padding: 0; border: 0; max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; color: var(--ink); background: #fff; }
dialog::backdrop { background: #fff; }
.menu-shell { padding: 0 20px 36px; max-width: 760px; margin: auto; }
.menu-top { height: 82px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); }
.menu-shell h2 { font-size: 28px; margin-top: 42px; margin-bottom: 28px; }
.menu-shell nav a { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; min-height: 72px; border-bottom: 1px solid var(--border); font-size: 20px; color: var(--ink); }
.menu-shell .small { margin-top: 44px; }
.chart { margin: 32px 0 0; }
.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.tabs button { justify-content: flex-start; border-radius: 5px; background: var(--pale); color: var(--ink); }
.tabs button[aria-selected='true'] { background: var(--green); color: #fff; }
.chart-rule-line { margin: 16px 0 12px; }
.chart .rule-settings { margin-bottom: 28px; }
.chart .disclosure { max-width: 260px; }
.chart .rule-grid { max-width: 800px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chart-panel { margin-top: 24px; }
.table-title { font-size: 24px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-spacing: 4px 7px; font-size: 14px; table-layout: fixed; }
caption { text-align: left; padding: 0 4px 14px; font-size: 12px; color: var(--muted); }
th, td { text-align: center; padding: 10px 6px; height: 43px; border-radius: 3px; }
thead th { background: var(--ink); color: #fff; font-weight: 500; }
tbody th { font-weight: 500; }
.action-H { background: #f0e8d9; color: #674a17; }
.action-S { background: #e3eee6; color: #234d3c; }
.action-D { background: #e7edf7; color: #274d83; }
.action-P { background: #ebe5f1; color: #65417c; }
.action-R { background: #f8e8e3; color: #923f2b; }
.action-full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.action-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; font-size: 12px; }
.legend-item { padding: 6px 10px; border-radius: 3px; }
.download-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.download-row .small { max-width: 350px; }
.mobile-dealer { max-width: 400px; margin: 16px 0; }
.trainer-panel { padding: 24px; border-radius: 12px; background: var(--oat); min-height: 535px; margin-bottom: 54px; }
.trainer-cards { display: flex; gap: 24px; margin-top: 36px; }
.trainer-cards .playing-card { width: 89px; }
.trainer-cards img:last-child { margin-left: 24px; }
#practice-hand { margin: 12px 0 40px; color: var(--ink); font-size: 15px; font-weight: 600; }
#practice-question { color: var(--ink); }
.answer-buttons { display: grid; grid-template-columns: repeat(4, minmax(0, 160px)); gap: 12px; }
.answer-buttons button { justify-content: flex-start; background: #526659; }
.answer-buttons button:hover { background: var(--green); }
.answer-buttons .answer-correct { background: var(--green); }
.answer-buttons .answer-wrong { background: var(--error); }
#practice-feedback { margin-top: 24px; font-size: 14px; }
#practice-feedback p { margin-bottom: 8px; }
#practice-feedback.correct strong { color: var(--green); }
#practice-feedback.incorrect strong { color: var(--error); }
#next-hand { padding-left: 0; }
#lesson-complete h2 { font-size: 44px; }
#missed-hands { margin: 40px 0; }
#missed-hands li { margin-bottom: 12px; }
.error-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding-bottom: 64px; }
.page-404 .page-hero { margin-bottom: 32px; }
@media (min-width: 1440px) { .container { width: 1280px; } }
@media (max-width: 1099px) {
  .home-hero { grid-template-columns: 1fr; gap: 32px; }
  .home-intro h1 { max-width: 750px; }
  .hero-actions { display: none; }
  .home-intro .page-hero { margin-bottom: 0; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 32px; }
  .editorial-feature { grid-template-columns: 1fr; gap: 32px; }
  .editorial-feature > img { max-width: 780px; }
  .footer-grid { grid-template-columns: 240px minmax(0, 1fr); gap: 32px; }
  .desktop-nav { width: 440px; }
}
@media (max-width: 759px) {
  .container { width: calc(100% - 40px); }
  .site-header { height: 83px; }
  .desktop-nav { width: auto; grid-template-columns: repeat(2, 1fr); gap: 0 12px; }
  .nav-link { min-height: 32px; font-size: 12px; }
  .nav-link::after { display: none; }
  body.js-ready .desktop-nav { display: none; }
  .menu-toggle:not([hidden]) { display: inline-flex; }
  h1 { font-size: 42px; line-height: 1.12; margin-bottom: 28px; }
  h2 { font-size: 28px; line-height: 1.12; }
  .eyebrow { font-size: 10px; margin-bottom: 16px; }
  .breadcrumbs { margin: 32px 0; }
  .page-hero { margin-bottom: 44px; }
  .home-hero { margin-top: 32px; gap: 44px; }
  .home-intro { padding-top: 0; }
  .home-intro h1 { font-size: 42px; margin-bottom: 28px; }
  .home-intro .eyebrow { margin-bottom: 16px; }
  .home-intro .intro { font-size: 17px; }
  .hand-tool { padding: 18px 20px 20px; }
  .hand-tool h2 { margin-bottom: 20px; }
  .playing-card { width: 68px; }
  .hand-display { margin-bottom: 14px; }
  .hand-display p { margin-bottom: 18px; }
  .button-row { margin-top: 26px; }
  .rule-grid { grid-template-columns: 1fr; gap: 16px; }
  .decision-panel { min-height: 272px; }
  .decision-panel h3 { font-size: 40px; }
  .topic-section { margin-top: 54px; }
  .topic-grid { grid-template-columns: 1fr; gap: 24px; }
  .article-layout { display: block; margin-top: 54px; }
  .page-outline { display: none; }
  .article-section { margin-bottom: 48px; }
  .editorial-feature { margin: 54px 0; gap: 28px; }
  .editorial-feature h2 { font-size: 28px; }
  .editorial-feature .eyebrow { margin-bottom: 16px; }
  .comparison { margin: 40px 0; }
  .comparison img { aspect-ratio: 350/560; }
  .faq-section { margin-top: 54px; }
  .site-footer { margin-top: 72px; padding: 38px 0 32px; }
  .footer-grid { display: block; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 10px; margin-top: 32px; }
  .footer-links a { font-size: 13px; min-height: 54px; }
  .footer-bottom { margin-top: 96px; font-size: 11px; }
  .footer-tagline { margin-top: 22px; }
  .chart { margin-top: 44px; }
  .tabs button { font-size: 13px; padding: 12px 10px; }
  .chart .rule-grid { grid-template-columns: 1fr; }
  .chart .rule-settings { margin-bottom: 24px; }
  .chart-panel { margin-top: 22px; }
  body.js-ready .chart-panel .table-title { display: none; }
  body.js-ready .chart-panel caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  body.js-ready .chart-panel table { border-spacing: 0 7px; }
  body.js-ready .chart-panel th:first-child { width: 42%; text-align: left; padding-left: 10px; }
  body.js-ready .chart-panel thead th { background: white; color: var(--muted); text-transform: uppercase; font-size: 10px; text-align: left; }
  body.js-ready .chart-panel td { text-align: left; padding: 10px 12px; font-size: 14px; }
  body.js-ready .chart-panel tbody th { border-bottom: 1px solid var(--border); height: 47px; }
  body.js-ready .action-code { display: none; }
  body.js-ready .action-full { position: static; width: auto; height: auto; clip-path: none; }
  body:not(.js-ready) table { min-width: 850px; }
  .download-row { align-items: flex-start; flex-direction: column; }
  .trainer-panel { min-height: 620px; padding: 24px; }
  .page-trainer .page-hero { margin-bottom: 16px; }
  .trainer-cards { gap: 18px; margin-top: 30px; }
  .trainer-cards .playing-card { width: 72px; }
  .trainer-cards img:last-child { margin-left: 16px; }
  #practice-hand { margin-bottom: 44px; }
  .answer-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  #practice-feedback { margin-top: 28px; }
  #lesson-complete h2 { font-size: 34px; }
}
@media (max-width: 359px) {
  .container { width: calc(100% - 32px); }
  .card-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-fields .field:last-child { grid-column: 1 / -1; }
  .hand-tool { padding: 20px 16px; }
  .trainer-panel { padding: 20px 16px; }
  .trainer-cards { gap: 10px; }
  .trainer-cards img:last-child { margin-left: 8px; }
  .playing-card { width: 60px; }
  h1, .home-intro h1 { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media print {
  .site-header, .site-footer, .skip-link, .tabs, .rule-settings, .mobile-dealer, .download-row, .breadcrumbs, .article-layout, .topic-section, dialog { display: none !important; }
  .container { width: 100%; }
  body { font-size: 10pt; }
  h1 { font-size: 20pt; }
  .page-hero { margin: 0 0 12px; }
  .page-hero .intro, .page-hero .eyebrow { display: none; }
  .chart-panel[hidden] { display: block !important; }
  .chart-panel { break-inside: avoid; margin-top: 12px; }
  .chart-panel [data-upcard][hidden] { display: table-cell !important; }
  .chart-panel caption, .table-title { display: block !important; position: static !important; width: auto !important; height: auto !important; clip-path: none !important; }
  .table-title { font-size: 14pt; margin: 0; }
  table { font-size: 8pt; border-spacing: 2px; }
  th, td { height: auto; padding: 3px; }
  .action-code { display: inline !important; }
  .action-full { display: none !important; }
  .action-legend { font-size: 8pt; }
  * { print-color-adjust: exact; }
}
