/* Sohni Sadak Yojna, guide pages stylesheet (from CP3's, T-017; the poster's colours, W-3)
   Standalone now, Django static file later. No framework, no build step. */

:root{
  --ink:#14263C; --brand:#1B4F8C; --brand-dark:#1B4F8C; --accent:#E8952B;
  --paper:#FBFAF7; --card:#FFFFFF; --rail:#DCD7CD; --tint:#EAF0F8;
  --muted:#5E584F; --faint:#938C82;
  --gut:16px; --radius:12px;
  /* Covers Latin, Gurmukhi and Devanagari from fonts already on the device.
     Nothing is downloaded, so the page opens on a slow connection. */
  --font:"Noto Sans","Nirmala UI","Noto Sans Gurmukhi","Noto Sans Devanagari",
         system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}

*{margin:0;padding:0;box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  font-family:var(--font); font-size:17px; line-height:1.5;
  background:var(--paper); color:var(--ink);
  -webkit-print-color-adjust:exact; print-color-adjust:exact;
}
img{max-width:100%;display:block}
a{color:var(--brand-dark)}
strong{font-weight:800;color:var(--ink)}
/* Something the reader presses on the portal. */
.act{font-weight:700;color:var(--brand-dark);
  background:var(--tint);border:1px solid #C6DED0;border-radius:5px;
  padding:0 5px;-webkit-box-decoration-break:clone;box-decoration-break:clone}

/* Gurmukhi and Devanagari need more vertical room than Latin. */
:lang(pa),:lang(hi){line-height:1.7}

.wrap{max-width:760px;margin:0 auto;padding:0 var(--gut)}
.rule-top{height:6px;background:var(--brand)}
.rule-bot{height:5px;background:var(--accent)}

/* ---- masthead and language switch ---- */
.bar{background:var(--brand);color:#fff}
.bar .wrap{display:flex;align-items:center;gap:12px;
  min-height:56px;flex-wrap:nowrap;padding-top:8px;padding-bottom:8px}
.brand{font-size:15px;font-weight:800;letter-spacing:.06em;
  text-transform:uppercase;line-height:1.25;flex:1 1 auto;min-width:0}
/* D-70, section 2.19: the header stays on one line down to 360 px; the name's
   type gets smaller, and may wrap, so the globe never moves (Training 2's check). */
@media (max-width:400px){.brand{font-size:13px;letter-spacing:.03em}}
/* The globe: a native disclosure holding the three languages, as the portal's
   header does (D-70, doc 5 section 2.19); it opens with scripts off. */
.globe{position:relative;flex:none}
.globe summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;
  justify-content:center;min-width:44px;min-height:44px;color:#fff;border-radius:8px}
.globe summary::-webkit-details-marker{display:none}
.globe summary svg{width:24px;height:24px}
.globe summary:focus-visible{outline:3px solid #fff;outline-offset:2px}
.globe[open] summary{background:rgba(255,255,255,.18)}
.langlist{position:absolute;right:0;top:48px;z-index:20;min-width:11rem;margin:0;padding:6px;
  list-style:none;background:var(--card);color:var(--ink);border:1px solid var(--rail);
  border-radius:var(--radius);box-shadow:0 6px 18px rgba(22,48,31,.18);max-width:calc(100vw - 32px)}
.langlist button{display:flex;align-items:center;width:100%;min-height:44px;padding:0 10px 0 36px;
  border:0;border-radius:8px;background:none;color:var(--brand-dark);font:inherit;font-size:16px;
  font-weight:600;text-align:left;cursor:pointer}
.langlist button:hover,.langlist button:focus-visible{background:var(--tint)}
.langlist button[aria-current="true"]{font-weight:800;padding-left:10px}
.langlist button[aria-current="true"]::before{content:"\2713";width:26px;flex:none}
/* The long form, under the home page's heading (D-70, T-043 (2)). */
.langs-long ul{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 4px;padding:0;list-style:none}
.langs-long button{display:inline-flex;align-items:center;min-height:44px;min-width:48px;
  padding:0 14px;border:1.5px solid var(--brand);border-radius:8px;background:var(--card);
  color:var(--brand-dark);font:inherit;font-size:16px;font-weight:600;cursor:pointer}
.langs-long button[aria-current="true"]{background:var(--brand);color:#fff;border-color:var(--brand)}

/* ---- hero ---- */
/* Vertical only. Horizontal spacing is the wrap's job. */
.hero{padding-top:22px;padding-bottom:18px}
.hero .title-row{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.hero h1{font-size:30px;line-height:1.15;font-weight:800;letter-spacing:-.01em}
.badge{flex:none;display:inline-block;background:var(--accent);color:var(--ink);
  font-size:16px;font-weight:800;letter-spacing:.07em;border-radius:7px;padding:4px 11px}
.hero .lead{margin-top:12px;font-size:18px;color:#2B2721}
.hero .scope{margin-top:10px;font-size:16px;font-weight:700;color:var(--brand)}

.banner{position:relative;margin:18px 0 0}
.banner img{width:100%;height:auto;border-radius:var(--radius)}
.banner figcaption{position:absolute;top:10px;width:50%;text-align:center;pointer-events:none}
.banner .b-l{left:0}.banner .b-r{left:50%}
.banner figcaption span{display:inline-block;background:rgba(20,38,60,.86);color:#fff;
  font-size:13px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;
  padding:5px 14px;border-radius:6px}

/* ---- section heads ---- */
section{padding:26px 0}
section>.wrap>h2{font-size:13px;font-weight:800;letter-spacing:.14em;
  text-transform:uppercase;color:var(--faint);margin-bottom:16px}

/* ---- what the programme is ---- */
.what{display:grid;grid-template-columns:1fr;gap:14px}
.what li{display:flex;gap:14px;align-items:flex-start;list-style:none}
.what .ico{flex:none;width:52px;height:52px;border-radius:50%;
  background:var(--tint);display:flex;align-items:center;justify-content:center}
.what .ico svg{width:30px;height:30px}
.what h3{font-size:18px;font-weight:800;line-height:1.25}
.what p{font-size:16.5px;color:#403B34;margin-top:3px}

/* ---- stage strip ---- */
.stages{background:var(--tint);border-top:1px solid var(--rail);border-bottom:1px solid var(--rail)}
.stage-now{display:flex;gap:14px;align-items:center;
  background:var(--card);border:1px solid var(--rail);border-left:6px solid var(--brand);
  border-radius:var(--radius);padding:14px 16px}
.stage-now .n{flex:none;width:38px;height:38px;border-radius:50%;background:var(--brand);
  color:#fff;font-weight:800;font-size:17px;display:flex;align-items:center;justify-content:center}
.stage-now h3{font-size:19px;font-weight:800;line-height:1.2}
.stage-now p{font-size:15.5px;color:var(--muted);margin-top:2px}
.stage-later{margin-top:10px;font-size:15px;color:var(--muted);
  border:1px dashed var(--rail);border-radius:var(--radius);padding:12px 16px}

/* ---- audience buttons ---- */
.pick{display:grid;grid-template-columns:1fr;gap:12px}
.pick a,.pick .soon{
  display:flex;align-items:center;gap:14px;min-height:82px;
  background:var(--card);border:1.5px solid var(--rail);border-radius:var(--radius);
  padding:16px;text-decoration:none;color:var(--ink)}
.pick a{border-left:6px solid var(--brand)}
.pick a:hover,.pick a:focus{background:var(--tint);border-color:var(--brand);outline:none}
.pick .txt{flex:1 1 auto;min-width:0}
.pick strong{display:block;font-size:20px;font-weight:800;line-height:1.2}
.pick span.sub{display:block;font-size:16px;color:var(--muted);margin-top:3px}
.pick .chev{flex:none;color:var(--brand);font-size:26px;line-height:1}
.pick .soon{border-left:6px solid var(--rail);color:var(--faint)}
.pick .soon strong{color:var(--muted)}

/* ---- footer ---- */
footer{background:var(--ink);color:#fff;padding:22px 0}
footer p{font-size:15.5px;color:#CFCAC1}

/* ---- wider screens ---- */
@media (min-width:620px){
  .hero h1{font-size:38px}
  .what{grid-template-columns:1fr 1fr;gap:18px 26px}
  .pick{grid-template-columns:1fr 1fr}
}

/* ---- print: A4, body text at or above 11pt ---- */
@media print{
  @page{size:A4 portrait;margin:14mm}
  body{background:#fff;font-size:11.5pt;line-height:1.45}
  .globe,.langs-long,.pick .chev{display:none}
  .wrap{max-width:none;padding:0}
  .rule-top,.rule-bot{height:2mm}
  .bar{background:var(--brand)!important}
  .hero{padding-top:3mm;padding-bottom:2mm}
  .hero h1{font-size:22pt}
  .badge{font-size:12pt}
  .hero .lead{font-size:12pt;margin-top:2mm}
  .hero .scope{margin-top:1.5mm}
  .hero .scope,.what p,.pick span.sub,.stage-now p,footer p{font-size:11pt}
  .what h3,.pick strong,.stage-now h3{font-size:13pt}
  /* The banner is cropped in print so the whole page fits one A4 sheet. */
  .banner{margin-top:3mm}
  .banner img{height:55mm;object-fit:cover;object-position:center}
  section{padding:3mm 0;break-inside:avoid}
  section>.wrap>h2{margin-bottom:2.5mm}
  .what{gap:3.5mm 10mm}
  .stage-now{padding:3mm 4mm}
  .stage-later{margin-top:2mm;padding:2.5mm 4mm;font-size:10.5pt}
  .pick{gap:2.5mm}
  .pick a,.pick .soon{min-height:0;padding:3.5mm}
  footer{padding:3mm 0}
  .what li,.pick a,.pick .soon,.stage-now{break-inside:avoid}
  .banner img{border-radius:0}
  footer{background:#fff;color:var(--ink);border-top:1px solid var(--rail)}
  footer p{color:var(--muted)}
}

/* ==========================================================================
   Sub pages: the audience overview pages
   ========================================================================== */
.page-head{background:var(--tint);border-bottom:1px solid var(--rail);padding:16px 0 20px}
.crumb{display:inline-flex;align-items:center;gap:6px;min-height:40px;
  font-size:16px;font-weight:600;color:var(--brand-dark);text-decoration:none}
.page-head h1{font-size:28px;font-weight:800;line-height:1.15;margin-top:6px}
.stagebar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px}
.stagechip{display:inline-flex;align-items:center;gap:8px;background:var(--brand);color:#fff;
  border-radius:20px;padding:7px 15px;font-size:15.5px;font-weight:700}
/* The stage carries a name rather than a number, so no number is shown. */
.stagechip .n{display:none}
.stagebar .sub{font-size:15.5px;color:var(--muted)}
.page-head .lead{margin-top:14px;font-size:17.5px;color:#2B2721}

/* numbered steps */
.steps{list-style:none;display:grid;gap:16px}
.steps li{display:flex;gap:14px;align-items:flex-start}
.steps .n{flex:none;width:36px;height:36px;border-radius:50%;background:var(--brand);color:#fff;
  font-size:17px;font-weight:800;display:flex;align-items:center;justify-content:center;margin-top:1px}
.steps h3{font-size:18px;font-weight:800;line-height:1.25}
.steps p{font-size:16.5px;color:#403B34;margin-top:3px}

/* route cards */
.cards{display:grid;gap:12px}
/* An information panel. The thick left bar and the chevron are kept for
   things the reader can tap, so these read as text, not as buttons. */
.cards .c{display:flex;gap:13px;align-items:flex-start;
  background:var(--card);border:1px solid var(--rail);
  border-radius:var(--radius);padding:15px 16px}
.cards .ico{flex:none;width:46px;height:46px;border-radius:50%;background:var(--tint);
  display:flex;align-items:center;justify-content:center}
.cards .ico svg{width:26px;height:26px}
.cards.one{grid-template-columns:1fr}

.cards h3{font-size:18px;font-weight:800;line-height:1.25}
.cards p{font-size:16.5px;color:#403B34;margin-top:4px}

/* a plain block of prose */
.note-block{background:var(--card);border:1.5px solid var(--rail);border-radius:var(--radius);
  padding:15px 16px;font-size:16.5px;color:#403B34}

/* call to action */
.cta{display:grid;gap:12px;margin-top:8px}
.cta .btn{display:flex;align-items:center;justify-content:center;text-align:center;
  min-height:58px;padding:12px 18px;border-radius:10px;
  font-size:18px;font-weight:800;text-decoration:none}
.btn-primary{background:var(--brand);color:#fff;border:2px solid var(--brand)}
.btn-secondary{background:var(--card);color:var(--brand-dark);border:2px solid var(--brand)}
.btn svg{width:22px;height:22px;flex:none}
.cta .btn{gap:9px}

/* The bar above a sheet is navigation, so it is a pair of links, not buttons. */
.sheet-bar{display:flex;align-items:center;gap:10px 18px;flex-wrap:wrap;padding:14px 0 2px}
.sheet-bar a{display:inline-flex;align-items:center;gap:8px;min-height:44px;
  background:none;border:0;padding:0;border-radius:0;
  font-size:16.5px;font-weight:700;color:var(--brand-dark);text-decoration:none}
.sheet-bar a:hover,.sheet-bar a:focus{text-decoration:underline}
.sheet-bar a svg{width:20px;height:20px;flex:none}
.sheet-bar .dl{margin-left:auto;display:flex;align-items:center;gap:18px}
@media print{.sheet-bar{display:none}}
.cta p{font-size:16px;color:var(--muted)}

@media (min-width:620px){
  .page-head h1{font-size:34px}
  .steps{grid-template-columns:1fr 1fr;gap:18px 26px}
  .cards{grid-template-columns:1fr 1fr}
  .cta{grid-template-columns:1fr 1fr}
  .cta p{grid-column:1 / -1}
}

@media print{
  .page-head{padding:4mm 0 5mm}
  .page-head h1{font-size:22pt}
  .page-head .lead{font-size:12pt}
  .crumb{display:none}
  .stagechip{font-size:11pt}
  .steps{gap:4mm 10mm}
  .steps p,.cards p,.note-block,.cta p{font-size:11pt}
  .steps h3,.cards h3{font-size:12.5pt}
  .cards{gap:3mm}
  .cards .ico{width:11mm;height:11mm}
  .cards .ico svg{width:6.5mm;height:6.5mm}
  .cta{display:none}
  .steps li,.cards .c,.note-block{break-inside:avoid}
}

/* ==========================================================================
   The printable sheet (the one-pager)
   ========================================================================== */
.sheet{max-width:190mm;margin:0 auto;padding:0 var(--gut) 28px}
.sheet-head{display:flex;gap:16px;align-items:flex-start;flex-wrap:wrap;
  border-bottom:3px solid var(--brand);padding:20px 0 14px}
.sheet-head .who{flex:1 1 260px;min-width:0}
.sheet-head .mast{display:inline-flex;align-items:stretch;border-radius:5px;overflow:hidden}
.sheet-head .mast .cap{width:8px;background:var(--accent)}
.sheet-head .mast .txt{background:var(--brand);color:#fff;padding:7px 14px;
  font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.sheet-head h1{font-size:30px;font-weight:800;line-height:1.15;margin-top:10px}
.sheet-head .stagechip{margin-top:8px}
.portalbox{flex:none;display:flex;gap:12px;align-items:center;
  border:1.5px solid var(--rail);border-radius:10px;padding:10px 14px;background:var(--card)}
.portalbox .k{font-size:11px;font-weight:800;letter-spacing:.13em;text-transform:uppercase;
  color:var(--faint);display:block;margin-bottom:3px}
.portalbox .v{font-size:15px;font-weight:700;color:var(--brand-dark);word-break:break-all}
.qrbox{flex:none;width:26mm;height:26mm;border:1.5px dashed var(--rail);border-radius:6px;
  display:flex;align-items:center;justify-content:center;text-align:center;
  font-size:10px;color:var(--faint);letter-spacing:.06em;padding:4px}

.sheet .intro{font-size:17px;margin-top:16px;color:#2B2721}
.sheet .scope{font-size:16px;margin-top:8px;color:var(--muted)}
.sheet h2{font-size:19px;font-weight:800;color:var(--brand-dark);
  margin:22px 0 8px;padding-top:12px;border-top:2px solid var(--rail)}
.sheet h3{font-size:16.5px;font-weight:800;margin:14px 0 4px}
.sheet p{font-size:16px;line-height:1.5;margin-bottom:8px;color:#26231E}
.sheet ul.notes{list-style:none;margin:6px 0 8px;padding-left:0}
.sheet ul.notes li{font-size:15.5px;line-height:1.5;color:#403B34;
  padding-left:16px;position:relative;margin-bottom:6px}
.sheet ul.notes li:before{content:"";position:absolute;left:0;top:9px;width:6px;height:6px;
  border-radius:50%;background:var(--brand);opacity:.6}
.sheet .label{font-size:14px;font-weight:800;color:var(--muted);margin:10px 0 2px}
.sheet table{width:100%;border-collapse:collapse;margin-top:6px}
.sheet table td{font-size:15.5px;line-height:1.45;vertical-align:top;
  border:1px solid var(--rail);padding:8px 11px}
.sheet table td:first-child{width:42%;background:var(--tint);font-weight:600}
/* Panels that break up long runs of text. */
.sheet .panel{background:var(--tint);border-radius:10px;padding:13px 16px;margin:10px 0 12px}
.sheet .panel .label{margin-top:0}
.sheet .panel ul.notes{margin-bottom:0}
.sheet .panel ul.notes li:last-child{margin-bottom:0}
.sheet .aside{background:#FFFBEF;border-left:5px solid var(--accent);
  border-radius:0 8px 8px 0;padding:11px 15px;margin:10px 0 12px}
.sheet .aside p{margin-bottom:0}
.sheet .method{background:var(--card);border:1px solid var(--rail);
  border-radius:10px;padding:12px 15px;margin:8px 0}
.sheet .method p{margin-bottom:0}
.sheet .panel p:last-child{margin-bottom:0}
.sheet .method .mk{display:block;font-size:12px;font-weight:800;letter-spacing:.12em;
  text-transform:uppercase;color:var(--brand);margin-bottom:4px}
.sheet .foot-note{margin-top:20px;padding-top:12px;border-top:1px solid var(--rail);
  font-size:14px;color:var(--faint)}

@media print{
  @page{size:A4 portrait;margin:12mm}
  /* The green bar is for the screen. In print the sheet carries its own
     masthead, so the name is not set twice. */
  .sheet-page .bar,.sheet-page .rule-top,.sheet-page .rule-bot{display:none}
  .sheet{max-width:none;padding:0}
  .sheet-head{padding:0 0 3mm;break-after:avoid}
  .sheet-head h1{font-size:21pt;margin-top:2mm}
  .sheet-head .stagechip{margin-top:2mm}
  .sheet .intro{font-size:11pt;line-height:1.33;margin-top:2.5mm}
  .sheet .scope{font-size:11pt;line-height:1.33;margin-top:1.5mm}
  .sheet h2{font-size:12.5pt;margin:3mm 0 1.2mm;padding-top:1.6mm;break-after:avoid}
  .sheet h3{font-size:11pt;margin:2.5mm 0 0.8mm;break-after:avoid}
  .sheet p{font-size:11pt;line-height:1.33;margin-bottom:1.3mm}
  /* a label such as "Notes:" stays with the list it heads, as h2 and h3 do;
     5 October, Pages 2: it was left alone at a column's foot (T-015) */
  .sheet p.label{break-after:avoid}
  .sheet .label{font-size:11pt;margin:2mm 0 0.5mm}
  .sheet ul.notes{margin:1mm 0 1.5mm}
  .sheet ul.notes li{font-size:11pt;line-height:1.33;margin-bottom:1.2mm}
  .sheet ul.notes li:before{top:1.6mm}
  .sheet table td{font-size:11pt;line-height:1.35;padding:1.4mm 2.2mm}
  .sheet table,.sheet ul.notes li{break-inside:avoid}
  .qrbox{width:22mm;height:22mm}
  .portalbox{padding:2mm 3mm}
  .sheet .panel{padding:2.5mm 3.5mm;margin:2mm 0 2.5mm}
  .sheet .aside{padding:2.2mm 3.5mm;margin:2mm 0 2.5mm}
  .sheet .method{padding:2.2mm 3.5mm;margin:1.8mm 0}
  .sheet .method .mk{font-size:8.5pt;margin-bottom:0.8mm}
  .sheet .panel,.sheet .aside,.sheet .method{break-inside:avoid}
  .act{background:#EDF4EF;border-color:#C6DED0}
  .sheet .foot-note{margin-top:1.5mm;padding-top:1.2mm;font-size:9pt}
  /* Gurmukhi and Devanagari keep the taller line in print. The Punjabi and
     Hindi sheets may therefore run longer than the English one. */
  html:lang(pa) .sheet p,html:lang(hi) .sheet p,
  html:lang(pa) .sheet ul.notes li,html:lang(hi) .sheet ul.notes li,
  html:lang(pa) .sheet .intro,html:lang(hi) .sheet .intro{line-height:1.5}
}

/* ---- what to do if things go differently ---- */
/* Lower priority than the body, so no fill. A thin rule keeps them apart. */
.sheet .trs{display:grid;gap:0;margin-top:6px}
.sheet .tr{padding:9px 0;border-top:1px solid var(--rail)}
.sheet .tr:first-child{border-top:0}
.sheet .tr .q{font-weight:700;font-size:15.5px;margin-bottom:2px}
.sheet .tr .a{font-size:15.5px;color:#403B34;margin-bottom:0}

@media print{
  /* Two columns in print. At 11pt this keeps the sheet to two sides of one
     sheet of paper, and the line length stays comfortable. */
  .sheet-body{column-count:2;column-gap:8mm;column-fill:auto}
  .sheet-body h2:first-child{margin-top:0;padding-top:0;border-top:0}
  .sheet .panel{break-inside:auto}
  .sheet ul.notes li{break-inside:avoid}
  .sheet .aside,.sheet .method,.sheet .tr{break-inside:avoid}
  /* the footer never stands alone on a page: it goes with the last row.
     A grid would move whole, so in print the rows stack as a block;
     7 October, Pages 2 (eye check of the Sohni Sadak PDFs) */
  .sheet .trs{display:block;gap:0;margin-top:1.2mm;break-after:avoid}
  .sheet .tr{padding:1.5mm 0}
  .sheet .tr .q,.sheet .tr .a{font-size:11pt;line-height:1.3}
}

/* ==========================================================================
   Role switch: the supervisor pages serve faculty and volunteer supervisors
   ========================================================================== */
/* A choice the reader makes, so it is a band of its own in the second colour,
   clearly apart from the green stage chip above it. */
.rolebar{display:flex;align-items:center;gap:10px 20px;flex-wrap:wrap;margin-top:14px;
  background:#FDF4DC;border:1px solid #E7D5A2;border-left:5px solid var(--accent);
  border-radius:10px;padding:11px 15px}
.rolebar .lbl{font-size:15.5px;font-weight:700;color:var(--ink)}
.rolebar label{display:inline-flex;align-items:center;gap:9px;min-height:40px;
  font-size:16px;font-weight:600;color:var(--ink);cursor:pointer}
.rolebar input[type=radio]{flex:none;width:20px;height:20px;margin:0;accent-color:var(--brand)}
@media print{.rolebar{display:none}}

body[data-showrole="faculty"] [data-role="volunteer"],
body[data-showrole="volunteer"] [data-role="faculty"]{display:none}
/* Before the script runs, show the faculty text rather than both. */
body:not([data-showrole]) [data-role="volunteer"]{display:none}

/* ==========================================================================
   Stage spine on the longer overview pages
   ========================================================================== */
.stage{margin-top:26px}
.stage:first-of-type{margin-top:4px}
.stage>.hd{display:flex;align-items:center;gap:12px;margin-bottom:14px}
/* A bar rather than a number, so the only numbers on the page are the steps. */
.stage>.hd .n{flex:none;width:6px;height:26px;border-radius:3px;background:var(--brand);font-size:0}
.stage>.hd h2{font-size:20px;font-weight:800;line-height:1.2;letter-spacing:0;
  text-transform:none;color:var(--ink);margin:0}

/* ==========================================================================
   The daily numbers, as the nodal officer's screen shows them
   ========================================================================== */
.tiles{display:grid;grid-template-columns:1fr;gap:10px}
.tiles .t{background:var(--card);border:1px solid var(--rail);border-radius:10px;padding:12px 14px}
.tiles .t b{display:block;font-size:16.5px;font-weight:800;line-height:1.25}
.tiles .t span{display:block;font-size:15.5px;color:var(--muted);margin-top:2px}
@media (min-width:620px){ .tiles{grid-template-columns:1fr 1fr} }
@media print{
  .roles{display:none}
  .stage{margin-top:6mm}
  .stage>.hd h2{font-size:14pt}
  .stage>.hd .n{width:1.5mm;height:6mm}
  .tiles{gap:2mm}
  .tiles .t{padding:2mm 3mm;break-inside:avoid}
  .tiles .t b{font-size:11.5pt}
  .tiles .t span{font-size:11pt}
}

/* ==========================================================================
   The upload walk-through
   ========================================================================== */
.upstep{display:flex;gap:14px;align-items:flex-start;margin:18px 0}
.upstep>.n{flex:none;width:34px;height:34px;border-radius:50%;background:var(--brand);
  color:#fff;font-size:16px;font-weight:800;display:flex;align-items:center;justify-content:center;margin-top:2px}
.upstep>div{flex:1 1 auto;min-width:0}
.upstep h3{font-size:18px;font-weight:800;margin-bottom:5px}
.sheet table.cols{margin:10px 0 4px}
.sheet table.cols th{font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;
  color:var(--faint);text-align:left;border:1px solid var(--rail);padding:7px 11px;background:var(--tint)}
.sheet table.cols td:first-child{width:38%;background:#fff;font-weight:700}
@media print{
  .upstep{margin:3mm 0;break-inside:avoid}
  .upstep>.n{width:7mm;height:7mm;font-size:10.5pt}
  .upstep h3{font-size:12pt}
  .sheet table.cols{margin:2mm 0 1mm}
  .sheet table.cols th{font-size:8.5pt;padding:1.2mm 2.2mm}
}

/* ==== T-087: design A, "Calm cards", on screen (10 October 2026) ====
   The portal's look (doors/assets/portal.css, T-087), for the screen only: print and
   the PDFs keep the rules above until the T-034 reprint. The palette stays. */
@media screen{
  :root{--ground:#F4F1EA;--line:#EDE9E0;--card-r:20px;--row-r:16px}
  body{background:var(--ground)}
  .rule-top{display:none}
  .hero h1,.page-head h1,.sheet-head h1{letter-spacing:-.015em}

  /* pills: buttons, chips, the programme badge, the globe, a pressed name */
  .cta .btn{border-radius:999px;min-height:52px}
  .langs-long button{border-radius:999px;min-height:44px}
  .badge{border-radius:999px}
  .globe summary{border-radius:999px}
  .act{border-radius:999px;padding:0 7px;border-color:transparent}
  .langlist{border:0;border-radius:var(--row-r)}

  /* section labels: small, uppercase, quiet */
  section>.wrap>h2{font-weight:700;letter-spacing:.08em;color:var(--muted)}

  /* bands become the ground; cards are white, rounded, unbordered */
  .page-head{background:transparent;border-bottom:0}
  .stages{background:transparent;border-top:0;border-bottom:0}
  .stage-now,.cards .c,.note-block,.tiles .t,.portalbox{border:0;border-radius:var(--card-r)}
  .stage-now{border-left:0}
  .stage-later{border:1.5px dashed var(--rail);border-radius:var(--row-r)}
  .banner img{border-radius:var(--card-r)}

  /* menus of pages: white rows with their icon, no stripe; the chevron says "tap" */
  .pick a,.pick .soon{border:0;border-radius:var(--row-r)}
  .pick a:hover,.pick a:focus{background:var(--tint);outline:none}
  .pick a:focus-visible{outline:3px solid var(--brand);outline-offset:2px}

  /* the role choice: a soft amber card, as the portal's notification */
  .rolebar{background:#FFF6DC;border:0;border-radius:var(--row-r)}

  /* the sheet on screen: one white card; its own panels rounded, no stripes */
  .sheet{background:var(--card);border-radius:var(--card-r);margin-top:16px;margin-bottom:24px;padding-top:4px}
  .sheet .panel{border-radius:var(--row-r)}
  .sheet .aside{background:#FFF6DC;border-left:0;border-radius:var(--row-r)}
  .sheet .method{border:0;background:var(--ground);border-radius:var(--row-r)}
  .sheet table td{border-color:var(--line)}
  .sheet h2{border-top-color:var(--line)}
  .sheet .tr{border-top-color:var(--line)}
}

/* ==== the production address and its QR code on a sheet (11 October 2026) ==== */
.portalbox a.v{color:var(--brand-dark);text-decoration:underline;text-underline-offset:2px}
.qrbox.qr-on{border:0;padding:0;background:#fff;border-radius:6px;overflow:hidden}
.qrbox.qr-on svg{display:block;width:100%;height:100%}

/* ==== T-097, T-098: the Tour chip on a step's heading, as the portal's (D-67, D-73) ==== */
.tour-chip{display:inline-flex;align-items:center;gap:5px;float:right;margin:0 0 4px 10px;min-height:32px;
  padding:0 12px;border:1.5px solid var(--rail);border-radius:999px;background:var(--card);
  color:var(--brand-dark);font-size:14px;font-weight:600;text-decoration:none;position:relative;z-index:1}
.tour-chip svg{width:16px;height:16px;flex:none}
/* the 44 px tap area: 32 px of chip and about 6.5 px above and below (the inset counts from inside the border), over its neighbours */
.tour-chip::after{content:"";position:absolute;inset:-8px -5px}
.tour-chip:hover,.tour-chip:focus-visible{background:var(--tint);border-color:var(--brand)}
.hd .tour-chip{float:none;margin:0 0 0 auto}
@media print{.tour-chip{display:none}}

/* ==== T-187: the guide's band, a pale tint of the programme's colour, apart from the
   portal's dark band, the help's ruled light band and the tours' golden band ==== */
.bar.guide-bar{background:var(--tint);color:var(--brand-dark);border-bottom:1px solid var(--rail)}
.guide-bar .globe summary{color:var(--brand-dark)}
.guide-bar .globe summary:focus-visible{outline-color:var(--brand-dark)}
.guide-bar .globe[open] summary{background:rgba(0,0,0,.06)}
.guide-tag{display:inline-flex;align-items:center;gap:5px;flex:none;font-size:14px;font-weight:700;color:var(--brand-dark)}
.guide-tag svg{width:18px;height:18px;flex:none}
@media (max-width:400px){.guide-tag{font-size:13px}.guide-tag svg{width:16px;height:16px}}
@media print{.bar.guide-bar{background:var(--tint)!important;color:var(--brand-dark)}}

/* ==== D-133, items 9 and 10: the guide's brand leads back to the door ==== */
.guide-bar .brand a{color:inherit;text-decoration:none}
.guide-bar .brand a:hover{text-decoration:underline}
.guide-bar .brand a:focus-visible{outline:2px solid var(--brand-dark);outline-offset:2px;border-radius:2px}
