/* DisputeValet Literacy Coach (demonstration site) */
:root {
  --navy: #1b2a4a;
  --navy-d: #121d35;
  --navy-l: #2c3f66;
  --gold: #d9a441;
  --gold-d: #8a5a12;   /* gold for text on light backgrounds (AA contrast) */
  --gold-l: #f0d394;
  --sand: #f6f1e7;
  --sand-d: #ebe2cf;
  --green: #2e7d32;
  --ink: #1f2633;
  --mute: #555e6e;
  --line: #e6dfd0;
  --wrap: 1160px;
  --radius: 10px;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; color: var(--ink); background: #fff; overflow-x: hidden; font-size: 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p a, li a, .prose a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 20; }
.skip:focus { left: 8px; top: 8px; }

/* Demo banner */
.demo { background: var(--navy-d); color: var(--gold-l); font-size: 12.5px; line-height: 1.5; text-align: center; padding: 8px 16px; }
.demo b { color: #fff; }
.demo a { color: #fff; text-decoration: underline; white-space: nowrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.97); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.bar { max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px 24px; position: relative; }
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo img { display: block; }
.logo-text { display: block; line-height: 1; }
.logo-text .n { display: block; font-family: var(--serif); font-weight: 700; font-size: 23px; color: var(--navy); letter-spacing: .2px; }
.logo-text .s { display: block; font-size: 11px; font-variant: small-caps; text-transform: lowercase; letter-spacing: 1.4px; color: var(--gold-d); margin-top: 4px; font-weight: 600; }
#nav { display: flex; align-items: center; gap: 24px; font-size: 14.5px; font-weight: 500; color: #3a4252; }
#nav a { padding: 6px 0; border-bottom: 2px solid transparent; }
#nav a:hover, #nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--gold); }
#nav .signin { font-size: 14px; font-weight: 600; color: var(--navy); background: var(--gold); padding: 10px 18px; border-radius: 999px; border: 0; margin-left: 6px; }
#nav .signin:hover { background: var(--gold-l); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 44px; height: 44px; padding: 0; cursor: pointer; position: relative; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { position: absolute; left: 11px; width: 20px; height: 2px; background: var(--navy); content: ''; transition: transform .2s; }
.nav-toggle .bars { top: 21px; }
.nav-toggle .bars::before { left: 0; top: -6px; }
.nav-toggle .bars::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Buttons */
.btn { display: inline-block; padding: 13px 24px; border-radius: 999px; font-size: 15px; font-weight: 600; line-height: 1.2; border: 2px solid transparent; cursor: pointer; font-family: inherit; text-decoration: none; text-align: center; transition: background .15s, color .15s, border-color .15s; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-l); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-l); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { border-color: rgba(255,255,255,.85); color: #fff; background: transparent; }
.btn-light:hover { background: rgba(255,255,255,.12); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* Layout */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; width: 100%; }
section { padding: 84px 0; }
.sand { background: var(--sand); }
.navy { background: var(--navy); color: #fff; }
.eyebrow { font-size: 12.5px; letter-spacing: 2.4px; color: var(--gold-d); font-weight: 600; text-transform: uppercase; }
.navy .eyebrow, .hero .eyebrow { color: var(--gold-l); }
h1 { font-family: var(--serif); font-weight: 700; font-size: 58px; line-height: 1.08; margin: 14px 0 18px; max-width: 760px; color: var(--navy); letter-spacing: -.3px; }
.h2 { font-family: var(--serif); font-weight: 700; font-size: 40px; line-height: 1.15; margin: 10px 0 14px; color: var(--navy); }
.h3 { font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.2; margin: 8px 0 10px; color: var(--navy); }
.navy h1, .navy .h2, .navy .h3, .hero h1 { color: #fff; }
.lead { color: var(--mute); font-size: 18px; line-height: 1.65; max-width: 660px; }
.fine { font-size: 13px; color: #5f6675; line-height: 1.55; margin: 12px 0 0; max-width: 680px; }
.section-head { max-width: 720px; margin-bottom: 40px; }

/* Hero */
.hero { position: relative; min-height: 540px; color: #fff; display: flex; align-items: center; overflow: hidden; background: var(--navy); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(18,29,53,.92) 0%, rgba(18,29,53,.7) 55%, rgba(18,29,53,.25) 100%); }
.hero .wrap { position: relative; z-index: 2; padding-top: 64px; padding-bottom: 64px; }
.hero p { font-size: 18.5px; line-height: 1.6; color: #e4e8f0; max-width: 560px; margin: 0 0 30px; }

/* Page hero (inner pages) */
.page-hero { background: var(--sand); padding: 68px 0 60px; border-bottom: 3px solid var(--gold); }
.page-hero h1 { font-size: 50px; }
.page-hero .lead { margin: 0; }

/* Grids */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; }
.card > img { width: 100%; height: 200px; object-fit: cover; display: block; }
.card .b { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-family: var(--serif); font-size: 23px; line-height: 1.25; margin: 6px 0 10px; font-weight: 600; color: var(--navy); }
.card p { color: var(--mute); font-size: 15px; line-height: 1.6; margin: 0 0 16px; flex: 1; }
.card .meta { font-size: 13.5px; color: #3a4252; border-top: 1px solid var(--line); padding-top: 14px; margin-top: auto; }
.card .btn { align-self: flex-start; }
.tag { display: inline-block; align-self: flex-start; font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; color: var(--navy); background: var(--sand-d); padding: 4px 10px; border-radius: 999px; }
.tag-green { color: #fff; background: var(--green); }

/* Split */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.split > img { width: 100%; height: 440px; object-fit: cover; display: block; border-radius: var(--radius); }
ul.check { list-style: none; padding: 0; margin: 20px 0 28px; }
ul.check li { padding: 8px 0 8px 32px; position: relative; font-size: 16px; line-height: 1.5; color: #2c3442; }
ul.check li::before { content: ''; position: absolute; left: 0; top: 11px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); box-shadow: inset 0 0 0 5px var(--sand); }
ul.check.dash li::before { top: 19px; width: 14px; height: 2px; border-radius: 0; background: var(--mute); box-shadow: none; }

/* Progress (portal, courses) */
.progress { height: 10px; background: var(--sand-d); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--green); border-radius: 999px; }

/* DisputeValet card (partials/dv-card.html) */
.dv-card { background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--gold); border-radius: var(--radius); padding: 32px 34px; box-shadow: 0 16px 36px rgba(27,42,74,.07); max-width: 860px; }
.dv-card .h3 { margin-top: 6px; }
.dv-card > p:not(.fine) { color: #2c3442; line-height: 1.65; margin: 0 0 22px; max-width: 680px; }
.dv-card .ctas { margin-bottom: 8px; }

/* Prose (legal + text pages) */
.prose { max-width: 760px; font-size: 16.5px; line-height: 1.75; color: #2c3442; }
.prose h2 { font-family: var(--serif); font-weight: 700; font-size: 28px; color: var(--navy); margin: 40px 0 10px; line-height: 1.25; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.callout { background: var(--sand); border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; margin: 24px 0; }
.callout p { margin: 0 0 10px; }
.callout p:last-child { margin-bottom: 0; }

/* Forms */
.form { display: grid; gap: 18px; margin-top: 28px; max-width: 560px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #c9bfa9; border-radius: 8px; padding: 11px 12px; width: 100%; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--gold-d); }
.demo-notice { background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.demo-notice p { margin: 0 0 16px; line-height: 1.6; }

/* Home: pillars, schedule strip */
.pillar { border-top: 3px solid var(--gold); padding-top: 18px; }
.pillar p { color: var(--mute); margin: 0; }
.schedule-card[data-placeholder] h3 { color: var(--mute); }
.more { margin: 28px 0 0; font-weight: 600; }
noscript { display: block; margin-top: 18px; color: var(--mute); }

/* Workshops: generated schedule, list and calendar views */
.hero-short { min-height: 420px; }
.schedule-demo { margin: 18px 0 0; font-weight: 600; color: var(--navy); }
.view-toggle { display: flex; gap: 10px; margin: 0 0 26px; }
.view-toggle .btn { padding: 9px 20px; font-size: 14.5px; }
.view-toggle .btn[aria-pressed="true"] { background: var(--navy); color: #fff; }
.session-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.session .when { color: var(--navy); font-weight: 600; font-size: 14.5px; margin: 0 0 4px; flex: 0; }
.session .format { font-size: 13.5px; margin: 0 0 10px; flex: 0; }
.session .blurb { margin-bottom: 18px; }
.session-notice { font-size: 14px; color: var(--ink); margin: 0; flex: 0; }
.session-notice:not(:empty) { background: var(--sand); border-left: 4px solid var(--gold); padding: 10px 14px; margin-top: 14px; border-radius: 0 8px 8px 0; }
.cal-month + .cal-month { margin-top: 36px; }
.cal-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); }
.cal { width: 100%; min-width: 700px; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.cal th { background: var(--sand); color: var(--navy); font-weight: 600; padding: 8px 6px; text-align: left; border-bottom: 1px solid var(--line); }
.cal td { vertical-align: top; height: 96px; padding: 6px; border: 1px solid var(--line); }
.cal td.cal-empty { background: #fbf9f4; }
.cal-day { display: block; font-weight: 600; color: var(--mute); margin-bottom: 4px; }
.cal-chip { display: block; background: var(--sand-d); color: var(--navy); border-left: 3px solid var(--gold); border-radius: 4px; padding: 3px 6px; margin-top: 4px; line-height: 1.3; font-size: 12px; }
.cal-time { font-weight: 700; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.faq details p { margin: 10px 0 0; }

/* Membership tiers */
.tier .price { color: var(--navy); font-size: 16px; flex: 0; margin: 0 0 4px; }
.tier .price .amt { font-family: var(--serif); font-size: 44px; font-weight: 700; }
.tier ul.check { flex: 1; }
.tier-member { border-top-color: var(--green); box-shadow: 0 16px 36px rgba(27,42,74,.08); }
.prose h3 { font-family: var(--serif); font-weight: 600; font-size: 21px; color: var(--navy); margin: 28px 0 6px; }
.limits ul.check.dash li::before { top: 19px; }

/* Footer */
.site-footer { background: var(--navy-d); color: #b9c1d0; font-size: 14px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 60px 24px 36px; max-width: var(--wrap); margin: 0 auto; }
.foot-logo { margin-bottom: 16px; }
.foot-logo .n { color: #fff; }
.foot-logo .s { color: var(--gold-l); }
.foot-h { color: var(--gold-l); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin: 0 0 14px; font-weight: 600; font-family: Inter, system-ui, sans-serif; }
.site-footer p, .site-footer li { line-height: 1.9; }
.site-footer p { margin: 0; max-width: 320px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul a { color: #dbe0ea; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.legal { border-top: 1px solid #263452; padding: 20px 24px; max-width: var(--wrap); margin: 0 auto; font-size: 12.5px; line-height: 1.6; }
.legal p { max-width: none; line-height: 1.6; }

/* Tablet */
@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  #nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 20px; box-shadow: 0 12px 24px rgba(27,42,74,.08); }
  #nav.open { display: flex; }
  #nav a { padding: 13px 0; border-bottom: 1px solid #f1ece2; font-size: 15.5px; }
  #nav .signin { margin: 14px 0 0; text-align: center; border-bottom: 0; }
  h1 { font-size: 48px; }
  .h2 { font-size: 34px; }
  section { padding: 68px 0; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split > img { height: 340px; }
  .session-list { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}

/* Phone */
@media (max-width: 640px) {
  .bar { padding: 10px 16px; gap: 12px; }
  #nav { padding: 8px 16px 20px; }
  .wrap { padding: 0 16px; }
  .logo { gap: 10px; }
  .logo img { width: 38px; height: 38px; }
  .logo-text .n { font-size: 17px; line-height: 1.15; }
  .logo { min-width: 0; flex-shrink: 1; }
  .logo-text .s { font-size: 10px; letter-spacing: 1px; }
  h1, .page-hero h1 { font-size: 36px; line-height: 1.12; }
  .h2 { font-size: 29px; }
  .h3 { font-size: 23px; }
  .lead { font-size: 16.5px; }
  .hero { min-height: 500px; }
  .hero-short { min-height: 380px; }
  .hero::before { background: linear-gradient(180deg, rgba(18,29,53,.78) 0%, rgba(18,29,53,.9) 100%); }
  .hero p { font-size: 16.5px; }
  .ctas .btn { width: 100%; }
  section { padding: 54px 0; }
  .page-hero { padding: 44px 0 38px; }
  .grid-2, .grid-3, .grid-4, .site-footer .cols { grid-template-columns: 1fr; }
  .split > img { height: 240px; }
  .dv-card { padding: 24px 20px; }
  .form .btn { width: 100%; }
  .site-footer .cols { gap: 28px; padding: 44px 16px 28px; }
  .legal { padding: 18px 16px; }
}

/* Tools page calculators */
.tool-grid { align-items: start; }
.tool-form { margin-top: 8px; max-width: none; }
.tool-form .fine { margin: 0; }
.tool-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.result:empty { display: none; }
.result { background: var(--sand); border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; padding: 14px 18px; font-size: 15.5px; color: var(--ink); }
.result p { margin: 0; color: var(--ink); font-size: 15.5px; }
.result ul { margin: 0; padding-left: 20px; }
.result li { margin: 4px 0; }
.result .result-note { margin-top: 8px; font-size: 13.5px; color: #5f6675; }

/* Courses and lessons */
.crumbs { font-size: 14px; margin: 0 0 6px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: .7; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.hero .crumbs a, .hero .crumbs li { color: #fff; }
.page-hero .crumbs a { color: var(--navy); }
.hero .course-facts { font-size: 15px; font-weight: 600; color: var(--gold-l); margin: 0 0 24px; }
.course-body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.course-body .prose p { margin: 0 0 16px; }
.outline { list-style: none; counter-reset: lesson; padding: 0; margin: 16px 0 0; }
.outline li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; color: #2c3442; }
.outline li a { color: var(--navy); font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.outline .tag { flex-shrink: 0; }
.course-time { margin: 18px 0 0; font-size: 15px; color: var(--navy); font-weight: 600; }
.enroll { max-width: 720px; }
.enroll form { margin: 6px 0 0; }
.dv-section { padding-top: 0; }
.lesson-wrap { max-width: 760px; }
.lesson .sources { font-size: 14.5px; }
.lesson .sources li { overflow-wrap: anywhere; }
.quiz { margin-top: 56px; border-top: 3px solid var(--gold); padding-top: 32px; }
.quiz fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 14px; margin: 0 0 18px; min-width: 0; }
.quiz legend { font-weight: 600; color: var(--navy); padding: 0 6px; line-height: 1.45; }
.quiz label { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; line-height: 1.5; cursor: pointer; }
.quiz input[type="radio"] { margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--navy); }
.q-feedback { margin: 8px 0 0; font-size: 15px; line-height: 1.55; }
.q-feedback:empty { display: none; }
.q-feedback.q-correct { border-left: 4px solid var(--green); padding-left: 12px; }
.q-feedback.q-wrong, .q-feedback.q-unanswered { border-left: 4px solid var(--gold-d); padding-left: 12px; }
.quiz .result { margin-top: 18px; }
.lesson-end { margin-top: 40px; }
@media (max-width: 1024px) {
  .course-body { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .quiz fieldset { padding: 14px 14px 10px; }
  .outline li { font-size: 15px; }
}
.course-cards .meta { flex: 0; margin: 0 0 16px; }

/* Articles */
.post { max-width: 760px; margin: 0 auto; padding: 56px 24px 32px; }
.post > header .eyebrow a { color: inherit; text-decoration: none; }
.post > header h1 { font-size: 46px; margin: 12px 0 12px; }
.post .meta { font-size: 13.5px; color: var(--mute); margin: 0 0 26px; }
.post .hero-img { width: 100%; height: 380px; object-fit: cover; border-radius: var(--radius); margin: 0 0 34px; display: block; }
.post .prose p { margin: 0 0 16px; }
.post .prose ol { padding-left: 22px; }
.post .prose .sources { font-size: 14.5px; }
.post .prose .sources li { overflow-wrap: anywhere; }
.post-cta { margin: 48px 0 0; padding: 28px 30px; background: var(--sand); border-left: 6px solid var(--gold); border-radius: var(--radius); }
.post-cta h2 { font-family: var(--serif); font-size: 25px; color: var(--navy); margin: 0 0 10px; }
.post-cta p { font-size: 15.5px; line-height: 1.65; color: #2c3442; margin: 0 0 12px; }
.post-cta .fine { margin: 10px 0 0; }
.idx { max-width: var(--wrap); margin: 0 auto; padding: 56px 24px 32px; }
.idx > h2 { font-family: var(--serif); font-size: 32px; color: var(--navy); margin: 0 0 6px; scroll-margin-top: 16px; }
.idx > .lead { margin: 0; }
.arts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin: 24px 0 56px; }
.art { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; }
.art img { width: 100%; height: 200px; object-fit: cover; display: block; }
.art .b { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.art h3 { font-family: var(--serif); font-size: 22px; line-height: 1.25; font-weight: 600; color: var(--navy); margin: 8px 0 8px; }
.art:hover h3, .art:focus-visible h3 { text-decoration: underline; text-decoration-color: var(--gold); }
.art p { font-size: 15px; line-height: 1.6; color: var(--mute); margin: 0 0 14px; flex: 1; }
.art .meta { font-size: 13px; color: #3a4252; margin: 0; flex: 0; }
@media (max-width: 1024px) {
  .arts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .post { padding: 36px 16px 20px; }
  .post > header h1 { font-size: 32px; }
  .post .hero-img { height: 220px; }
  .post-cta { padding: 22px 18px; }
  .idx { padding: 36px 16px 20px; }
  .arts { grid-template-columns: 1fr; }
}

/* Member sign-in and the demo members' portal (gated by site.js) */
.signin-wrap { padding: 72px 0 88px; background: var(--sand); }
.signin-card { max-width: 460px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 40px 36px 32px; text-align: center; box-shadow: 0 18px 40px rgba(27,42,74,.07); }
.signin-mark { display: block; margin: 0 auto 18px; }
.signin-card h1 { font-size: 42px; margin: 8px auto 10px; }
.signin-intro { color: var(--mute); font-size: 15px; line-height: 1.6; margin: 0 0 4px; }
.signin-form { text-align: left; margin: 24px auto 0; }
.signin-form .btn { width: 100%; }
.signin-form input[readonly] { background: #f7f5f0; color: #3a4252; }
.signin-note { margin: 4px 0 16px; padding: 12px 14px; background: #fdf1d6; border: 1px solid #ecd49a; border-radius: 8px; color: #5c3a00; font-size: 13.5px; line-height: 1.5; }
.signin-card .fine { margin: 14px auto 0; }
.portal-noscript { padding: 40px 24px; }
.portal-welcome { background: var(--sand); padding: 64px 0; border-bottom: 3px solid var(--gold); }
.portal-welcome-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.portal-welcome .lead { margin: 0 0 26px; }
.portal-welcome img { width: 100%; height: 300px; object-fit: cover; display: block; border-radius: var(--radius); }
.portal-body { padding: 56px 0 88px; }
.portal-dash { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
.portal-dash > #courses, .portal-dash > #workshops, .portal-dash > #questions, .portal-dash > .dv-card { grid-column: 1 / -1; }
.portal-dash > .dv-card { max-width: none; }
.portal-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; scroll-margin-top: 96px; min-width: 0; }
.portal-panel .h2 { font-size: 32px; margin-top: 6px; }
.portal-panel > p { color: #2c3442; font-size: 15.5px; line-height: 1.65; max-width: 680px; }
.portal-panel > p.portal-sub { color: var(--mute); margin-top: 0; }
.portal-more { margin-bottom: 0; font-weight: 600; }
.portal-courses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.portal-courses .card h3 { font-size: 21px; }
.progress { height: 10px; background: var(--sand-d); border-radius: 999px; overflow: hidden; margin: 6px 0 8px; }
.progress span { display: block; height: 100%; background: var(--green); border-radius: 999px; }
.portal-courses .card p.progress-text { flex: 0; font-size: 14px; color: #3a4252; margin: 0 0 16px; }
.portal-courses .card .btn { margin-top: auto; }
.portal-tools { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.portal-tools a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 8px; color: var(--navy); font-weight: 600; text-decoration: none; }
.portal-tools a:hover { background: var(--sand); }
.qa-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.qa-q { width: 100%; height: 100%; text-align: left; font: inherit; font-size: 15px; font-weight: 600; color: var(--navy); background: #fff; border: 1px solid #c9bfa9; border-radius: 8px; padding: 12px 14px; cursor: pointer; line-height: 1.4; }
.qa-q:hover { background: var(--sand); }
.qa-q[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.qa-answer { background: var(--sand); border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 18px; font-size: 15.5px; line-height: 1.65; color: var(--ink); min-height: 64px; }
.qa-ask { margin-top: 18px; max-width: 560px; }
.qa-ask input[disabled] { background: #f2efe8; cursor: not-allowed; }
.qa-ask .fine { margin: 0; }
@media (max-width: 1024px) {
  .portal-welcome-in { grid-template-columns: 1fr; gap: 32px; }
  .portal-dash { grid-template-columns: 1fr; }
  .portal-courses { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .signin-wrap { padding: 40px 0 56px; }
  .signin-card { padding: 28px 20px 24px; }
  .signin-card h1 { font-size: 34px; }
  .portal-welcome { padding: 44px 0; }
  .portal-welcome img { height: 200px; }
  .portal-body { padding: 36px 0 56px; }
  .portal-panel { padding: 24px 18px; }
  .portal-panel .h2 { font-size: 28px; }
  .qa-list { grid-template-columns: 1fr; }
  .portal-panel .btn, .portal-dash .dv-card .btn { width: 100%; }
}
