/* Notbroken — Plan (v2.36.0). Shares abstain.css (tokens, panels, buttons, toast, the keep-your-data card); this file is
   the plan's own form rows, the crisis-line row, and the printed page. Large tap targets, one column, works at 320px. */
/* room for the Track switch pinned at the top (shell.css keeps this list per page; until "plan" is on it, the same here) */
html.app[data-page="plan"] { --nb-sw-top: 14px; --nb-sw-h: 48px; --nb-sw-gap: 14px; }
@media screen and (min-width: 1000px) { html.app[data-page="plan"] { --nb-sw-top: 28px; --nb-sw-gap: 18px; } }
html.app[data-page="plan"] .page-container { position: relative !important; margin-top: 0 !important; padding-top: calc(var(--nb-sw-top) + var(--nb-sw-h) + var(--nb-sw-gap)) !important; }
#pl-root { gap: 14px; }
.pl-head { padding-top: .2rem; }
.pl-head h1 { font-size: clamp(1.6rem, 4.5vw, 2.1rem); }
.pl-head p { margin: 8px 0 0; color: rgba(242,239,234,.8); font-size: 14.5px; line-height: 1.55; max-width: 560px; }

/* the one plain safety line, always visible */
.pl-safe { margin: 0; padding: 12px 14px; border-radius: 14px; background: rgba(232,163,117,.14); border: 1px solid rgba(232,163,117,.45); color: #F7E2D2; font-size: 14.5px; line-height: 1.5; }
.pl-safe strong { color: #FBD3B6; }

.pl-form { display: flex; flex-direction: column; gap: 14px; }
.pl-sec { padding: 14px 14px 12px; }
.pl-sec__h { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; line-height: 1.25; }
.pl-sec__n { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: var(--ink); font: 700 14px/28px 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; text-align: center; }
.pl-hint { margin: 6px 0 10px; font-size: 13.5px; line-height: 1.5; color: rgba(242,239,234,.75); }
.pl-hint a { color: rgba(242,239,234,.9); }

/* rows: an input (or name + phone) with a remove button; the list keeps its first rows' height before the script fills it */
.pl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pl-list--lines:empty { min-height: 160px; }   /* three 48px rows and their gaps */
.pl-list--people:empty { min-height: 104px; } /* two rows */
#pl-s6 .pl-list--lines:empty { min-height: 104px; }
.pl-row { display: flex; align-items: center; gap: 6px; }
.pl-row--p { flex-wrap: wrap; }
.pl-in { font: inherit; font-size: 16px; color: var(--text-light); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: 11px 12px; min-height: 48px; width: 100%; min-width: 0; flex: 1 1 160px; }
.pl-in:focus-visible { outline: 3px solid var(--terra); outline-offset: 1px; }
.pl-in::placeholder { color: rgba(242,239,234,.45); }
.pl-in--n { flex: 1 1 140px; }
.pl-in--p { flex: 1 1 120px; }
@media (max-width: 479.5px) { .pl-in--n { flex-basis: 100%; } }   /* phones: the name on its own line, then phone · Call · remove */
.pl-x { flex: 0 0 auto; width: 44px; min-height: 44px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: rgba(242,239,234,.6); font-size: 22px; line-height: 1; cursor: pointer; }
.pl-x:hover { background: rgba(255,255,255,.1); color: var(--text-light); }
.pl-x:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; }
.pl-call { flex: 0 0 auto; min-height: 44px; text-decoration: none; }
.pl-add { margin-top: 10px; align-self: flex-start; }
.pl-sec .nb-btn--sm, .pl-tools .nb-btn--sm { min-height: 44px; }   /* every button a full-size tap target */
.pl-why { font: inherit; font-size: 16px; color: var(--text-light); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: 11px 12px; min-height: 64px; width: 100%; resize: vertical; }
.pl-why:focus-visible { outline: 3px solid var(--terra); outline-offset: 1px; }

/* the crisis line for the chosen country */
.pl-crisis { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; padding: 10px 12px; margin: 0 0 12px; border-radius: 14px; background: rgba(132,192,160,.12); border: 1px solid rgba(132,192,160,.35); }
.pl-crisis__label { font-size: 13px; font-weight: 600; color: rgba(242,239,234,.85); }
.pl-select { font: inherit; font-size: 16px; color: var(--text-light); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: 8px 10px; min-height: 44px; min-width: 0; }
.pl-select:focus-visible { outline: 3px solid var(--terra); outline-offset: 1px; }
.pl-select option { color: #13171D; }
.pl-crisis__line { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 15px; line-height: 1.4; }
.pl-crisis__line:empty { min-height: 44px; }
.pl-crisis__name { flex: 1 1 180px; }
.pl-crisis__name small { display: block; font-size: 12.5px; color: rgba(242,239,234,.7); }
.pl-crisis__hint { grid-column: 1 / -1; margin: 0; font-size: 12.5px; }
@media (max-width: 379.5px) { .pl-crisis { grid-template-columns: 1fr; } }

/* how to use it, and keeping a copy (v2.38.0) */
.pl-how { margin: 0; padding: 12px 14px; border-radius: 14px; background: rgba(132,192,160,.10); border: 1px solid rgba(132,192,160,.30); color: rgba(242,239,234,.9); font-size: 14.5px; line-height: 1.5; }
.pl-how strong { color: #CFE6D9; }
.pl-keepnote { flex: 1 1 100%; margin: 0 0 4px; font-size: 13.5px; line-height: 1.5; color: rgba(242,239,234,.78); }

/* tools */
.pl-tools { align-items: center; }
.pl-tools [aria-busy="true"] { opacity: .7; cursor: progress; }
.pl-status { margin-left: auto; font-size: 12.5px; color: rgba(242,239,234,.65); }


/* ---- the plan on paper (v2.38.0): the printed page and the preview of the PDF on a phone share these styles (.pl-doc),
   laid out like the PDF itself — the Notbroken mark, the title and date, the emergency box, how to use it, the seven steps */
.pl-print { display: none; }
.pl-doc { color: #22262E; font: 400 11pt/1.42 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; text-align: left; }
/* v2.38.2: ink-friendly, like the PDF — no filled areas, near-black text, dark-grey secondary text, hairline rules */
.pl-doc a, .nb-pv__page.pl-doc a { color: inherit; text-decoration: none; }
.pl-doc__head { padding-bottom: 9pt; margin-bottom: 14pt; border-bottom: .6pt solid #33383F; }
.pl-doc__title { margin: 0; font: 600 27pt/1.1 'Literata', Georgia, serif; color: #171A1F; }
.pl-doc__meta { margin: 4pt 0 0; font-size: 9.4pt; color: #545C68; }
.pl-doc__safe { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26pt; margin: 0 0 14pt; padding: 11pt 13pt 10pt; border: .8pt solid #33383F; border-radius: 5pt; break-inside: avoid; }
.pl-doc__safe > div + div { border-left: .6pt solid #C2C7CF; padding-left: 13pt; margin-left: -13pt; }
.pl-doc__lab { margin: 0 0 3pt; font-size: 7.2pt; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #545C68; }
.pl-doc__big { margin: 0; font-size: 17pt; font-weight: 600; line-height: 1.2; color: #171A1F; }
.pl-doc__big--sm { font-size: 12.5pt; }
.pl-doc__sub { margin: 2pt 0 0; font-size: 8.9pt; color: #545C68; }
.pl-doc__fill { display: block; height: 22pt; border-bottom: .6pt solid #C2C7CF; }
.pl-doc__how { margin: 0 0 4pt; font-size: 9.6pt; color: #22262E; }
.pl-doc__how b { color: #171A1F; }
.pl-doc__step { position: relative; margin: 16pt 0 0; padding-left: 32pt; break-inside: avoid-page; }
.pl-doc__n { position: absolute; left: 0; top: -3pt; font: 600 21pt/1 'Literata', Georgia, serif; color: #737A87; }
.pl-doc__step h2 { margin: 0; font: 600 14.5pt/1.25 'Literata', Georgia, serif; color: #171A1F; break-after: avoid; }
.pl-doc__hint { margin: 1pt 0 3pt; font-size: 8.9pt; color: #545C68; }
.pl-doc ol { margin: 0; padding: 0 0 0 15pt; counter-reset: pl; }
.pl-doc ol > li { counter-increment: pl; }
.pl-doc__person::before { content: counter(pl) '.'; flex: 0 0 12pt; margin-left: -15pt; margin-right: 0; text-align: right; color: #737A87; font-size: 8.6pt; }   /* a flex row has no list marker */
.pl-doc li { margin: 0; padding: 3pt 0 4pt 3pt; border-bottom: .5pt solid #C2C7CF; break-inside: avoid; }
.pl-doc li::marker { color: #737A87; font-size: 8.6pt; }
.pl-doc__person { display: flex; align-items: baseline; gap: 6pt; }
.pl-doc__person > span { min-width: 0; overflow-wrap: anywhere; }
.pl-doc__person > i { flex: 1 1 auto; min-width: 12pt; border-bottom: 1.2pt dotted #959CA6; transform: translateY(-2pt); }
.pl-doc__person > a, .pl-doc__person > b { flex: 0 0 auto; font-weight: 600; color: #171A1F; white-space: nowrap; }
.pl-doc__person.is-strong > span { font-weight: 600; color: #171A1F; }
.pl-doc__blank li { height: 16pt; }
p.pl-doc__blank { margin: 0; }
p.pl-doc__blank span { display: block; height: 20pt; border-bottom: .5pt solid #C2C7CF; }
.pl-doc__why { margin: 2pt 0 0; padding: 0 0 4pt; border-bottom: .5pt solid #C2C7CF; }
.pl-doc__foot { margin-top: 16pt; padding-top: 5pt; border-top: .5pt solid #C2C7CF; font-size: 7.6pt; color: #545C68; }
.pl-doc__foot p { margin: 0 0 2pt; }
.pl-doc__foot p + p { font-size: 6.9pt; }
.pl-doc li, .pl-doc__why, .pl-doc__how { overflow-wrap: anywhere; }
/* in the preview on a phone (assets/nb-export.js): the same page, sized for the screen */
.nb-pv__page.pl-doc { font-size: 15px; padding: 20px 16px 24px; }
.nb-pv__page.pl-doc .pl-doc__title { font-size: 28px; }
@media (max-width: 480px) { .nb-pv__page.pl-doc .pl-doc__safe { grid-template-columns: 1fr; gap: 10px; } .nb-pv__page.pl-doc .pl-doc__safe > div + div { border-left: 0; border-top: .6pt solid #C2C7CF; padding: 10px 0 0; margin: 0; } }

@media print {
  html.app[data-page="plan"], html.app[data-page="plan"] body { background: #fff !important; color: #000 !important; height: auto !important; overflow: visible !important; }   /* (shell.css paints body with !important on screen and print alike) */
  html.app body > .page-container { background: #fff !important; animation: none !important; padding: 0 !important; display: block !important; min-height: 0 !important; }
  .page-container > .nb-switch, #pl-root, .nb-foot, .ab-toast, #app-footer-menu, .nb-consent, .nb-sheet, .nb-export, .nb-pv { display: none !important; }
  .pl-print { display: block; max-width: 18cm; margin: 0 auto; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { margin: 14mm 14mm 16mm; }
}
/* the remove buttons' × follows the page's font (v2.37.0) */
.pl-x { font-family: inherit; }

/* v2.42.2: the "Before you start" pop-up closes onto the emergency line or the crisis lines; their focus ring */
#pl-safe:focus, #pl-crisis:focus { outline: none; }
#pl-safe:focus-visible, #pl-crisis:focus-visible { outline: 3px solid #C17B4A; outline-offset: 3px; border-radius: 6px; }
