/* EarCal shares the product site's shell, wordmark, palette and focus treatment. */
.earcal {
  --panel: var(--surface);
  --panel-inset: var(--bg);
  --rule: var(--line);
  --readout: var(--text);
  --mono: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  color-scheme: dark;
  background: var(--bg);
  line-height: 1.55;
}
.earcal [hidden] { display: none !important; }
.earcal :where(input, button, textarea) { font: inherit; }
.earcal :where(input, button, a, summary, textarea):focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }
.earcal :where(h1, h2, h3, p) { margin: 0; }
.earcal h1 { font-size: clamp(2.1rem, 4.8vw, 4.4rem); line-height: 1.16; font-weight: 500; letter-spacing: -.055em; }
.earcal h2 { font-size: clamp(1.18rem, 2vw, 1.55rem); line-height: 1.4; font-weight: 500; }
.earcal h3 { font-size: 1.08rem; font-weight: 550; }
.earcal p { color: var(--muted); }
.earcal kbd, .hm-mono, .ear-kicker, .hm-pill {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.earcal kbd { font-size: .86em; }
.ear-actions { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; }
.earcal .ear-nav { height: 76px; }
.ear-return { font-size: .83rem; color: var(--ice); }
.earcal .ear-kicker { color: var(--ice); font-size: .73rem; letter-spacing: .15em; }
.ear-entry { padding-block: clamp(40px, 7vw, 102px) 40px; }
.ear-start { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 100px); align-items: start; }
.ear-intro h1 { margin-block: 18px 22px; }
.ear-intro .ear-lead { font-size: clamp(1rem, 1.4vw, 1.17rem); max-width: 26em; line-height: 1.85; color: var(--muted); }
.ear-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 0; list-style: none; margin: 24px 0; color: var(--ice); font-size: .83rem; }
.ear-flow li + li::before { content: "›"; padding-right: 12px; color: var(--muted); }
.ear-safety { border-left: 2px solid var(--ice); padding-left: 14px; max-width: 32em; }
.ear-safety strong { font-size: .83rem; font-weight: 600; }
.ear-safety p, .ear-followup p, .ear-footer { font-size: .83rem; line-height: 1.8; }
.hm-rack, .hm-card { background: var(--panel); border: 1px solid var(--rule); border-radius: 3px; min-width: 0; }
.hm-rack-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px clamp(15px, 2.5vw, 28px); border-bottom: 1px solid var(--rule); }
.hm-pill { flex-shrink: 0; font-size: .73rem; color: var(--ice); }
.ear-panel { display: grid; min-width: 0; gap: 12px; padding: clamp(16px, 2.5vw, 28px); align-content: start; }
.ear-panel, .hm-details { font-size: .9rem; }
.hm-details { border-top: 1px solid var(--rule); }
.hm-details summary { cursor: pointer; padding-block: 12px; color: var(--ice); }
.hm-details[open] > :not(summary) { margin-block: 0 12px; }
.ear-link, .hm-details a, .ear-footer a, .ear-console .ear-panel a { color: var(--ice); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #64747b; }
.earcal main a:not(.button):hover { color: var(--text); }
.ear-launch { margin-bottom: 24px; }
.earcal .ear-notes :is(input[type="text"], textarea, fieldset) { border-color: var(--line); }
.earcal .ear-notes :is(input[type="text"], textarea) { background: var(--surface); }
.ear-followup, .ear-footer { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 16px 30px; border-top: 1px solid var(--rule); padding-top: 24px; margin-top: 48px; }
.ear-followup h2 { margin-bottom: 6px; }
.ear-followup .ear-notes { width: min(100%, 34rem); }
.ear-notes > details { border-top: 0; }
.ear-footer { color: var(--muted); }
@media (max-width: 800px) {
  .ear-start { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .earcal .ear-nav { height: 58px; }
  .ear-intro h1 { margin-block: 12px; }
  .ear-flow { margin-block: 16px; }
  .ear-followup, .ear-footer { margin-top: 30px; }
}
@media (max-width: 520px) {
  .ear-console .brand { gap: 6px; font-size: .81rem; }
  .ear-console .brand svg { width: 22px; }
}
@media (prefers-reduced-motion: reduce) { :root:has(.earcal) { scroll-behavior: auto; } }
