/* Snapshot of Ear Explorer's ivory/sage shell, 3 October 2026.
   Opt-in only: existing help-card and clinical pages retain their original theme. */
.ear-theme {
  --bg: #f6f5ef; --card: #fffcf5; --text: #263e35; --muted: #596b5e;
  --border: #d0d8cb; --link: #355b47; --link-dark: #263e35;
  --shadow: 0 10px 35px #31432706; --radius: 13px;
  --sage: #e2e9da; --focus: #9a642d;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg); color: var(--text); font-size: 16px;
}
.ear-theme a { text-underline-offset: 4px; }
.ear-theme :is(a,button,input,select,summary):focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.ear-theme :is(button,input,select) { min-height: 44px; font: inherit; }
.ear-theme .container { max-width: 1200px; padding: 36px 32px; }
.ear-theme h1,.ear-theme h2,.ear-theme h3 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
.ear-theme h1 { font-size: clamp(40px, 4.6vw, 62px); line-height: 1.08; letter-spacing: -1.6px; }
.ear-theme h1 em,.ear-theme h2 em { color: #5b7054; font-style: normal; }
.ear-theme .eyebrow { color: var(--muted); font-size: 11px; letter-spacing: .16em; line-height: 1.6; font-weight: 700; margin: 0 0 12px; }
.site-header { max-width: 1440px; margin: auto; padding: 26px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid #dedfd3; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; text-decoration: none; white-space: nowrap; min-height: 44px; }
.brand-mark { display: block; width: 25px; height: 25px; border: 1px solid #355b47; border-radius: 50%; padding: 3px; }
.brand-mark::after { content: ''; display: block; width: 100%; height: 100%; border-radius: 50%; background: #355b47; }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.site-header nav a { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; min-height: 44px; text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }
.site-header nav a[aria-current] { font-weight: 700; text-decoration: underline; }
.nav-beta { font-size: 10px; padding: 3px 7px; background: #e3eadb; border-radius: 20px; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 20; background: #fffcf5; padding: 12px 18px; }
.skip-link:focus { top: 12px; }
.home-intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: 72px; align-items: center; padding: 22px 0 52px; }
.home-intro h1 { margin: 0; }
.intro-copy { max-width: 410px; padding-top: 18px; }
.intro-copy p:first-child { font-size: 19px; color: var(--text); }
.intro-copy p { color: var(--muted); line-height: 1.65; margin: 0 0 16px; }
.inline-action { display: inline-flex; gap: 24px; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-heading .eyebrow { margin-bottom: 4px; }
.ear-theme .section-title { font-size: 30px; margin: 0; letter-spacing: -.6px; }
.section-heading > p { color: var(--muted); font-size: 13px; margin: 0 0 4px; }
.ear-theme .grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin: 0; }
.ear-theme .card { padding: 24px; box-shadow: var(--shadow); transition: border-color .16s, background .16s; }
.home-preview .grid .card { position: relative; min-height: 220px; padding-bottom: 52px; }
.home-preview .grid .card::after { content: '↗'; position: absolute; right: 24px; bottom: 20px; font-size: 20px; color: #596b5e; }
.tool-number { display: block; font-size: 11px; letter-spacing: .1em; color: var(--muted); margin-bottom: 18px; }
.ear-theme .card h3 { font-size: 24px; letter-spacing: -.5px; margin-bottom: 12px; }
.ear-theme .card p { line-height: 1.6; font-size: 15px; }
.ear-theme .card:hover,.ear-theme .card:focus-visible { transform: none; box-shadow: var(--shadow); border-color: #8ca184; }
.home-preview .grid .card:is(:hover,:focus-visible) { background: #f0f2e7; }
.resource-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 0; }
.home-preview #clinical-tools { margin-top: 40px; }
.ear-theme .feature-section,.ear-feature { margin: 0; padding: 30px; border: 1px solid var(--border); border-radius: 13px; background: #fffcf5; }
.ear-theme .feature-section { display: flex; flex-direction: column; justify-content: space-between; }
.ear-theme .section-intro h2 { font-size: 34px; font-weight: 400; }
.ear-theme .section-intro > p:last-child { font-size: 15px; line-height: 1.7; margin-top: 16px; }
.ear-theme .guide-entry { background: #355b47; border-radius: 7px; padding: 18px 20px; margin-top: 30px; }
.ear-theme .guide-entry:hover { background: #263e35; transform: none; }
.ear-feature-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.ear-feature-top .eyebrow { margin: 0; }
.beta-badge { font-size: 10px; color: #40543e; border: 1px solid #c7d4bf; border-radius: 20px; padding: 5px 9px; background: #e3eadb; white-space: nowrap; }
.ear-feature h2 { font-size: 38px; line-height: 1.1; letter-spacing: -.9px; margin: 20px 0 14px; }
.ear-feature > p { font-size: 15px; color: var(--muted); line-height: 1.65; }
.pathway { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-top: 25px; }
.pathway span { font-size: 10px; padding-top: 10px; border-top: 3px solid #deb5a2; color: #596b5e; }
.pathway span:nth-child(2) { border-color: #dcc897; }.pathway span:nth-child(3) { border-color: #b4c1a0; }
.pathway strong { font-size: 12px; font-weight: 400; margin-left: 3px; }
.ear-feature .availability-note { font-size: 12px; margin-top: 22px; margin-bottom: 0; }
.ear-theme .footer { font-size: 12px; line-height: 1.7; margin-top: 32px; padding-top: 20px; }
.clinical-preview .container { max-width: 1040px; padding-top: 24px; }
.breadcrumb { margin: 0 0 24px; font-size: 13px; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
.clinical-preview h1 { font-size: clamp(36px,4vw,48px); margin: 0 0 16px; }
.clinical-preview .sub { max-width: 740px; font-size: 16px; line-height: 1.7; margin-bottom: 28px; }
.clinical-preview .card { padding: 26px; }
.clinical-preview h2 { font-size: 28px; margin: 0 0 20px; }
.clinical-preview .card .card { padding: 20px; background: #f4f5eb; }
.clinical-preview label { font-size: 14px; line-height: 1.5; }
.clinical-preview input,.clinical-preview select { background: #fffdf7; border-radius: 6px; color: var(--text); }
.clinical-preview .hint { font-size: 13px; line-height: 1.6; }
.clinical-preview .btn { border-radius: 6px; min-height: 44px; background: #fffdf7; color: var(--text); }
.clinical-preview .btn:hover { border-color: #8ca184; background: #e9eddf; }
.clinical-preview .btn.primary,.clinical-preview .btn.danger { background: #355b47; color: white; }
.clinical-preview .btn.danger { background: #263e35; }
.clinical-preview .btn.primary:hover,.clinical-preview .btn.danger:hover { background: #1e3829; }
.clinical-preview .toolbar { margin-top: 18px; }
.clinical-preview .pill { background: #eef0e6; color: var(--text); font-size: 12px; margin-bottom: 8px; }
.clinical-preview .warn { background: #f7efdc; border-color: #d5bc83; color: #263e35; line-height: 1.65; }
.clinical-preview .ok { background: #eaf0e4; border-color: #b6c8a9; color: #263e35; line-height: 1.65; }
.clinical-preview .history { background: #fffdf7; font-size: 14px; }
.clinical-preview .historyRow { flex-wrap: wrap; }
.clinical-preview .card:hover { border-color: var(--border); }
@media(max-width:900px) { .home-intro { gap: 32px; }.site-header nav { gap: 16px; }.ear-theme .grid { gap: 12px; }.ear-theme .card { padding: 20px; }.ear-theme .card h3 { font-size: 22px; }.resource-grid { gap: 16px; }.ear-theme .feature-section,.ear-feature { padding: 24px; } }
@media(max-width:700px) { .site-header { flex-wrap: wrap; gap: 8px; padding: 16px 20px; }.site-header nav { width: 100%; gap: 20px; }.ear-theme .container { padding: 28px 20px; }.home-intro { grid-template-columns: 1fr; gap: 20px; padding: 8px 0 36px; }.intro-copy { padding: 0; max-width: 520px; }.ear-theme h1 { font-size: 44px; }.section-heading { display: block; }.section-heading > p { margin-top: 8px; }.ear-theme .grid,.resource-grid { grid-template-columns: 1fr; }.home-preview .grid .card { min-height: 0; padding: 22px 52px 22px 22px; }.tool-number { margin-bottom: 10px; }.ear-theme .card h3 { font-size: 25px; }.home-preview .grid .card::after { top: 22px; bottom: auto; }.clinical-preview .card { padding: 22px; }.clinical-preview h1 { font-size: 38px; }.clinical-preview .toolbar .btn { flex: 1 1 auto; } }
@media(prefers-reduced-motion:reduce) { .ear-theme *, .ear-theme *::before, .ear-theme *::after { scroll-behavior: auto!important; transition: none!important; animation: none!important; } }
@media print { .ear-theme { background: white; color: black; font-size: 11pt; }.ear-theme .container { max-width: none; padding: 0; }.site-header,.skip-link,.breadcrumb,.inline-action { display: none; }.ear-theme h1 { font-size: 26pt; }.ear-theme .card,.ear-feature,.ear-theme .feature-section { box-shadow: none; background: white; border-color: #aaa; }.ear-theme .card { break-inside: auto; }.ear-theme .toolbar { display: none; }.clinical-preview .history { max-height: none; overflow: visible; }.clinical-preview .warn,.clinical-preview .ok { color: black; background: white; border-color: #999; }.ear-theme a { color: black; }.ear-theme .guide-entry { color: black; background: white; border: 1px solid #aaa; }.ear-theme .grid,.resource-grid { display: block; }.ear-theme .grid .card,.ear-feature,.ear-theme .feature-section { margin-bottom: 12pt; }.ear-theme .footer { margin-top: 12pt; } }

/* Utility-first homepage: entire resource tiles are native links. */
.home-title { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.resource-card { display:block; color:var(--text); text-decoration:none; transition:border-color .16s, background .16s; }
.resource-card:hover,.resource-card:focus-visible { border-color:#8ca184; background:#f0f2e7; }
.resource-grid .ear-feature h2 { font-size:clamp(28px,3vw,36px); margin:14px 0; letter-spacing:-.8px; }
.ear-preview { position:relative; aspect-ratio:26/15; overflow:hidden; border-radius:8px; background:#f3f3e9; pointer-events:none; }
.ear-preview img { display:block; width:100%; height:100%; object-fit:cover; }
.ear-card-footer .inline-action { margin-top:12px; }
.ear-card-footer p { margin:0; color:var(--muted); font-size:12px; }
.resource-card .guide-entry { display:flex; align-items:center; gap:20px; justify-content:space-between; color:var(--text); background:transparent; }
.resource-card .guide-entry strong,.resource-card .guide-entry > span > span { display:block; }
.resource-card .guide-entry > span > span { margin-top:4px; font-size:14px; }
.resource-card:hover .guide-entry { background:transparent; }
@media(min-width:701px) { .resource-grid .ear-feature h2 { white-space:nowrap; } }
@media(max-width:700px) { .resource-grid .ear-feature h2 { font-size:30px; }.ear-theme .resource-card.feature-section { min-height:280px; } }

/* Full outline mark: 80px desktop; 74px portrait keeps the visible outline above 64px. */
.brand-logo { display:block; width:80px; height:80px; flex:0 0 auto; }
@media(max-width:700px) { .brand-logo { width:74px; height:74px; }.site-header .brand { gap:10px; font-size:11px; letter-spacing:.1em; } }

/* Two-line wordmark balances the full-size icon without shrinking it. */
header .brand .brand-wordmark { display:flex; flex-direction:column; font-family:Arial,Helvetica,sans-serif; font-size:34px; line-height:36px; font-weight:700; letter-spacing:.025em; text-transform:uppercase; }
header .brand .brand-wordmark > span { display:block; font-size:inherit; line-height:inherit; letter-spacing:inherit; }
@media(max-width:700px) { header .brand .brand-wordmark { font-size:26px; line-height:28px; } }
