/* Afterward — calm, dignified design system.
 * Warm paper palette, humanist serif headings, generous space. No alarms, no clinic. */

/* Colour tokens are defined ONCE, in themes.css (the "Paper & Tide" + sage
 * palette that ships, with light/dark variants). themes.css loads after this
 * file. Only the non-colour tokens this stylesheet owns live here — shape,
 * shadow and the system font stacks consumed by var(--serif) / var(--sans). */
:root {
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(44,42,39,.04), 0 8px 24px rgba(44,42,39,.06);
  --shadow-soft: 0 1px 2px rgba(44,42,39,.04), 0 2px 8px rgba(44,42,39,.04);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.08rem; margin: 0; }
p  { margin: 0 0 .8em; }

.appbar {
  display: flex; align-items: center; gap: .6rem;
  padding: 1rem clamp(1rem, 4vw, 2rem);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  position: sticky; top: 0; z-index: 20;
}
.appbar .mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  display: grid; place-items: center; color: #fff; font-family: var(--serif);
  font-size: 1.1rem;
}
.appbar .name { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.appbar .tag { color: var(--ink-faint); font-size: .85rem; margin-left: auto; }

#app { max-width: 760px; margin: 0 auto; padding: clamp(1.2rem, 4vw, 2.6rem) clamp(1rem, 4vw, 1.6rem) 4rem; }
.view { animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---- buttons ---- */
.btn {
  font: inherit; font-weight: 600; cursor: pointer;
  border-radius: 999px; border: 1px solid transparent;
  padding: .7rem 1.4rem; transition: .15s ease;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-deep); }
.btn.ghost { background: transparent; color: var(--accent-deep); border-color: var(--line); }
.btn.ghost:hover { background: var(--accent-soft); border-color: var(--accent-soft); }
.btn.small { padding: .45rem .9rem; font-size: .9rem; }
.btn.tiny { padding: .35rem .8rem; font-size: .82rem; }

.kicker { color: var(--accent-deep); font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 .5rem; }

/* ---- intro ---- */
.intro-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.6rem, 5vw, 2.8rem);
  box-shadow: var(--shadow);
}
.intro-card .lede { color: var(--ink-soft); font-size: 1.1rem; margin-top: 1rem; }
.intro-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin: 1.6rem 0 .8rem; }
.reassure { color: var(--ink-faint); font-size: .9rem; margin: 0; }
.disclaimer { color: var(--ink-faint); font-size: .82rem; margin-top: 1.6rem; text-align: center; line-height: 1.5; }

/* ---- intake ---- */
.progressbar { height: 6px; background: var(--line-soft); border-radius: 999px; overflow: hidden; margin-bottom: 1.6rem; }
.progressbar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-deep)); border-radius: 999px; transition: width .3s ease; }
.progressbar.big { height: 9px; }
.q-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.2rem); box-shadow: var(--shadow); }
.q-count { color: var(--ink-faint); font-size: .85rem; margin: 0 0 .4rem; }
.q-help { color: var(--ink-soft); margin-top: .4rem; }
.options { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.4rem; }
.option {
  text-align: left; font: inherit; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: .9rem 1.1rem; transition: .15s ease;
}
.option:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateX(2px); }
.option.selected { border-color: var(--accent); background: var(--accent-soft); }
.q-nav { margin-top: 1.4rem; display: flex; }

/* ---- plan ---- */
.plan-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.plan-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.progress-summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; box-shadow: var(--shadow-soft); margin-bottom: 1rem; }
.progress-summary p { margin: .6rem 0 0; color: var(--ink-soft); font-size: .92rem; }
.jur-note { background: var(--gold-soft); border: 1px solid #E9DBC0; color: #6b5630; border-radius: var(--radius-sm); padding: .8rem 1rem; font-size: .9rem; }

.ts-banner { background: var(--terra-soft); border: 1px solid #E8CFC3; border-radius: var(--radius); padding: 1.1rem 1.3rem; margin: 1rem 0 1.6rem; }
.ts-title { font-weight: 700; color: var(--terra); margin: 0 0 .5rem; }
.ts-banner ul { margin: 0 0 .5rem; padding-left: 1.2rem; }
.ts-banner li { margin-bottom: .3rem; font-size: .95rem; }
.ts-foot { color: var(--ink-soft); font-size: .88rem; margin: 0; }

.phase { margin-bottom: 2rem; }
.phase-head h3 { margin: 0 0 .2rem; }
.phase-head p { color: var(--ink-faint); font-size: .92rem; margin: 0 0 1rem; }
.cards { display: flex; flex-direction: column; gap: .8rem; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow-soft); transition: .2s ease; }
.card.done { background: var(--surface-2); border-color: var(--line-soft); opacity: .72; }
.card.done h4 { text-decoration: line-through; text-decoration-color: var(--ink-faint); }
.card-top { display: flex; align-items: flex-start; gap: .8rem; }
.check {
  flex: 0 0 auto; width: 26px; height: 26px; margin-top: 2px;
  border-radius: 8px; border: 1.5px solid var(--line); background: var(--surface);
  cursor: pointer; color: #fff; font-weight: 700; line-height: 1; transition: .15s ease;
}
.check:hover { border-color: var(--sage); }
.card.done .check { background: var(--sage); border-color: var(--sage); }
.card-title { flex: 1 1 auto; }
.badges { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .4rem; }
.badge { font-size: .72rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; letter-spacing: .02em; }
.badge.ts { background: var(--terra-soft); color: var(--terra); }
.badge.verify { background: var(--gold-soft); color: #6b5630; }
.badge.cat { background: var(--accent-soft); color: var(--accent-deep); text-transform: capitalize; }
.badge.cat-wellbeing { background: var(--sage-soft); color: #3f5a3f; }
.badge.cat-financial { background: #EFEAF5; color: #5a4a78; }
.badge.cat-legal { background: var(--accent-soft); color: var(--accent-deep); }
.expand { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; font-size: 1.1rem; line-height: 1; color: var(--ink-soft); }
.expand:hover { border-color: var(--accent); color: var(--accent-deep); }
.why { color: var(--ink-soft); margin: .7rem 0 0; font-size: .96rem; }

.details { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.details-label { font-weight: 700; font-size: .85rem; color: var(--ink); margin: 0 0 .4rem; }
.how { margin: 0 0 1rem; padding-left: 1.2rem; }
.how li { margin-bottom: .4rem; color: var(--ink-soft); font-size: .95rem; }
.meta { display: flex; gap: 1rem; flex-wrap: wrap; color: var(--ink-faint); font-size: .85rem; margin-bottom: 1rem; }
.scams-inline { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.scam-chip { background: var(--terra-soft); color: var(--terra); border-radius: var(--radius-sm); padding: .5rem .8rem; font-size: .88rem; font-weight: 600; cursor: pointer; }
.scam-chip:hover { filter: brightness(.97); }

/* commons */
.commons { background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: .9rem 1rem; }
.commons-label { font-weight: 700; font-size: .82rem; color: var(--accent-deep); margin: 0 0 .5rem; text-transform: uppercase; letter-spacing: .05em; }
.commons-empty { color: var(--ink-faint); font-size: .88rem; margin: 0 0 .6rem; }
.contrib { font-size: .92rem; color: var(--ink-soft); padding: .5rem .7rem; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 8px; margin-bottom: .5rem; }
.contrib-kind { font-size: .72rem; font-weight: 700; color: var(--accent-deep); text-transform: uppercase; background: var(--accent-soft); padding: .1rem .45rem; border-radius: 999px; }

.note-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem; margin-bottom: .6rem; display: flex; flex-direction: column; gap: .5rem; }
.note-form select, .note-form input, .note-form textarea { font: inherit; padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.note-form textarea { resize: vertical; }
.note-actions { display: flex; gap: .5rem; }
.note-priv { color: var(--ink-faint); font-size: .78rem; margin: 0; }

.plan-foot { margin-top: 1.5rem; }

/* ---- scams view ---- */
.scams .lede { color: var(--ink-soft); margin-bottom: 1.4rem; }
.scam-list { display: flex; flex-direction: column; gap: .7rem; }
.scam { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .4rem 1.2rem; box-shadow: var(--shadow-soft); }
.scam summary { cursor: pointer; font-weight: 600; padding: .8rem 0; display: flex; align-items: center; gap: .6rem; list-style: none; }
.scam summary::-webkit-details-marker { display: none; }
.risk-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.risk-high .risk-dot { background: var(--terra); }
.risk-medium .risk-dot { background: var(--gold); }
.risk-low .risk-dot { background: var(--sage); }
.risk-tag { margin-left: auto; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-faint); }
.scam-what { color: var(--ink-soft); }
.protect { padding-left: 1.2rem; margin: .3rem 0 1rem; }
.protect li { margin-bottom: .4rem; color: var(--ink-soft); font-size: .95rem; }

/* ---- benefits view ---- */
.benefits .lede, .notify .lede { color: var(--ink-soft); margin-bottom: 1.4rem; }
.benefit-list { display: flex; flex-direction: column; gap: .8rem; }
.benefit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow-soft); }
.benefit-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; }
.benefit-head h3 { margin: 0; }
.benefit-who { color: var(--ink-soft); margin: .4rem 0 .8rem; font-size: .96rem; }
.benefit-facts { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 .8rem; }
.benefit-facts > div { flex: 1 1 200px; background: var(--surface-2); border-radius: var(--radius-sm); padding: .6rem .8rem; }
.benefit-facts dt { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-faint); margin: 0 0 .2rem; }
.benefit-facts dd { margin: 0; font-size: .92rem; }
.benefit-deadline { border: 1px solid var(--gold-soft); }
.benefit-deadline dd { color: var(--terra); font-weight: 600; }
.benefit-auth { color: var(--ink-faint); font-size: .85rem; margin: .6rem 0 0; }

/* ---- notify view ---- */
.notify-personalise { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem 1rem; margin-bottom: 1.4rem; }
.notify-personalise summary { cursor: pointer; font-weight: 600; color: var(--accent-deep); }
.np-fields { display: flex; flex-direction: column; gap: .5rem; margin-top: .8rem; }
.np-input { font: inherit; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--ink); }
.notify-group { margin-bottom: 1.6rem; }
.notify-group-label { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); margin: 0 0 .6rem; }
.notify-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: var(--shadow-soft); margin-bottom: .7rem; }
.notify-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.notify-head h3 { margin: 0; font-size: 1.12rem; }
.notify-item .why { margin: .5rem 0 .6rem; }
.notify-tip { background: var(--gold-soft); color: var(--ink); border-radius: var(--radius-sm); padding: .6rem .8rem; font-size: .9rem; margin: .6rem 0; }
.notify-template { font: inherit; font-size: .9rem; width: 100%; margin-top: .7rem; padding: .7rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink); resize: vertical; }

/* ---- quick country switch (for travellers) ---- */
.country-switch { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: 1rem; }
.country-label { color: var(--ink-faint); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.jur-chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.jur-chip { font: inherit; font-size: .92rem; cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); border-radius: 999px; padding: .4rem .85rem; transition: border-color .15s ease, background-color .15s ease; }
.jur-chip:hover, .jur-chip:focus-visible { border-color: var(--accent); }
.jur-chip.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-deep); font-weight: 600; }

/* ---- Ask box (on-device search over the plan) ---- */
.ask { position: relative; margin: .2rem 0 1rem; }
.ask-input {
  width: 100%; font: inherit; font-size: 1rem;
  padding: .8rem 1rem; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.ask-input::placeholder { color: var(--ink-faint); }
.ask-input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ask-results {
  margin-top: .4rem; display: flex; flex-direction: column; gap: .25rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .4rem;
}
.ask-result {
  display: flex; justify-content: space-between; align-items: center; gap: .6rem;
  text-align: left; font: inherit; cursor: pointer;
  background: transparent; border: 0; border-radius: 8px; padding: .55rem .7rem; color: var(--ink);
}
.ask-result:hover, .ask-result:focus-visible { background: var(--accent-soft); }
.ask-label { font-weight: 600; }
.ask-sub { font-size: .76rem; color: var(--ink-faint); white-space: nowrap; }
.ask-empty { color: var(--ink-faint); padding: .4rem .7rem; font-size: .9rem; margin: 0; }

.tailor-note {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  background: var(--accent-soft); color: var(--accent-deep);
  border-radius: 10px; padding: .5rem .9rem; margin-bottom: 1rem; font-size: .9rem;
}
.ask-flash { animation: askflash 1.6s ease; border-radius: var(--radius); }
@keyframes askflash {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  25% { box-shadow: 0 0 0 3px var(--accent); }
}

/* ---- Prepare ahead (get your affairs in order) ---- */
.prepare-link { margin-top: 1.2rem; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: .92rem; color: var(--accent-deep); text-decoration: underline; cursor: pointer; }
.linkbtn:hover { color: var(--accent); }
.prepare-warn { display: flex; gap: .5rem; background: var(--gold-soft); color: #6b5630; border: 1px solid #E9DBC0; border-radius: 10px; padding: .7rem 1rem; margin: 0 0 1.2rem; font-size: .9rem; line-height: 1.5; }
.prepare-actions { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.6rem; }
.prepare-saved { color: var(--ink-faint); font-size: .82rem; }
.psec { margin-bottom: 1.8rem; }
.psec h3 { margin: 0 0 .25rem; font-family: var(--serif); }
.psec-help { color: var(--ink-faint); font-size: .88rem; margin: 0 0 .8rem; }
.pfield { display: block; margin-bottom: .75rem; }
.pfield > span { display: block; font-size: .85rem; color: var(--ink-soft); margin-bottom: .25rem; }
.pf { width: 100%; font: inherit; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.pf:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.pf { resize: vertical; }
.plist { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .6rem; }
.prow { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.prow .pf { flex: 1 1 30%; min-width: 8rem; }
.prow-x { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-faint); cursor: pointer; font-size: 1.2rem; line-height: 1; }
.prow-x:hover { border-color: var(--terra-caution); color: var(--terra-caution); }

/* ---- death-abroad banner (on the "Somewhere else" plan) ---- */
.abroad-banner { background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1rem; }
.abroad-banner p { margin: 0 0 .7rem; color: var(--ink-soft); font-size: .95rem; }

/* ---- destinations view ---- */
.destinations .lede { color: var(--ink-soft); margin-bottom: 1.2rem; }
.dest-universal { background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: .9rem 1.1rem; margin-bottom: 1.2rem; }
.dest-universal ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.dest-universal li { margin-bottom: .35rem; color: var(--ink-soft); font-size: .92rem; }
.dest-search { font: inherit; width: 100%; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); margin-bottom: 1.4rem; }
.dest-region { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); margin: 0 0 .6rem; }
.dest-group { margin-bottom: 1.6rem; }
.dest { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: var(--shadow-soft); margin-bottom: .7rem; }
.dest-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; }
.dest-head h3 { margin: 0; font-size: 1.12rem; }
.dest-intro { color: var(--ink-soft); margin: .4rem 0 .8rem; font-size: .95rem; }
.dest-facts { margin: 0; display: flex; flex-direction: column; gap: .55rem; }
.dest-row { display: grid; grid-template-columns: 170px 1fr; gap: .8rem; }
.dest-row dt { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-faint); margin: 0; }
.dest-row dd { margin: 0; font-size: .93rem; color: var(--ink-soft); }
.dest-empty { color: var(--ink-faint); text-align: center; padding: 1rem; }

/* ---- support view ---- */
.support .lede { color: var(--ink-soft); margin-bottom: 1rem; }
.support-emergency { background: var(--terra-soft); color: var(--terra); border: 1px solid var(--terra); border-radius: var(--radius-sm); padding: .7rem 1rem; font-size: .92rem; font-weight: 600; margin-bottom: 1.4rem; }
.support-section { margin: 1.6rem 0 .7rem; }
.support-lines { display: flex; flex-direction: column; gap: .7rem; }
.support-line { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; box-shadow: var(--shadow-soft); }
.support-line-top { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.support-contact { color: var(--accent-deep); font-weight: 700; }
.support-note { color: var(--ink-soft); font-size: .9rem; margin: .35rem 0 0; }
.support-scripts { display: flex; flex-direction: column; gap: .7rem; }
.support-script { background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: .8rem 1rem; }
.support-script h4 { margin: 0 0 .3rem; font-size: 1rem; }
.support-script p { margin: 0; color: var(--ink-soft); font-size: .94rem; }
.support-care { padding-left: 1.2rem; }
.support-care li { margin-bottom: .5rem; color: var(--ink-soft); }

/* ---- deadlines view ---- */
.deadlines .lede { color: var(--ink-soft); margin-bottom: 1rem; }
.deadline-dod { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.1rem; margin-bottom: 1.2rem; display: flex; flex-direction: column; gap: .7rem; }
.deadline-dod label { display: flex; flex-direction: column; gap: .4rem; font-size: .9rem; color: var(--ink-soft); }
.dod-input { font: inherit; padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--ink); max-width: 220px; }
.deadline-hint { color: var(--ink-faint); font-size: .88rem; margin: 0; }
.deadline-list { display: flex; flex-direction: column; gap: .7rem; }
.deadline { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--terra); border-radius: var(--radius); padding: .9rem 1.1rem; box-shadow: var(--shadow-soft); }
.deadline-when { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--terra); }
.deadline-date { color: var(--ink-faint); font-weight: 600; text-transform: none; letter-spacing: 0; }
.deadline h4 { margin: .3rem 0 0; }
.deadline-note { color: var(--ink-soft); font-size: .92rem; margin: .4rem 0 0; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  .appbar .tag { display: none; }
  .plan-head { flex-direction: column; }
  .dest-row { grid-template-columns: 1fr; gap: .15rem; }
  .dest-row dd { margin-bottom: .2rem; }
}

/* ---- print: a clean checklist of the plan ---- */
@media print {
  .appbar, .ml-notice, .plan-actions, .check, .expand, .scams-inline, .commons,
  .note-form, .abroad-banner { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  #app { max-width: none; padding: 0; }
  .card, .ts-banner, .progress-summary, .jur-note { box-shadow: none; border-color: #ccc; break-inside: avoid; }
  .details[hidden] { display: block !important; }   /* expand task steps on paper */
  a[href]:after { content: ''; }
}
