/* The guest's check-in page. Brand colours (brand/visual_identity.pdf), mobile first, no inline
   styles or scripts, so it works under a strict Content-Security-Policy. */
/* The brand font, from the same files as the public website (site/fonts), so a guest's phone shows
   Montserrat (Latin and Cyrillic) and Tajawal (Arabic) like the website, not its own system font. */
@font-face{font-family:Montserrat;font-style:normal;font-weight:400;font-display:swap;src:url(../site/fonts/montserrat-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Montserrat;font-style:normal;font-weight:600;font-display:swap;src:url(../site/fonts/montserrat-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Montserrat;font-style:normal;font-weight:700;font-display:swap;src:url(../site/fonts/montserrat-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Montserrat;font-style:normal;font-weight:400;font-display:swap;src:url(../site/fonts/montserrat-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Montserrat;font-style:normal;font-weight:600;font-display:swap;src:url(../site/fonts/montserrat-latin-ext-600-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Montserrat;font-style:normal;font-weight:700;font-display:swap;src:url(../site/fonts/montserrat-latin-ext-700-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Montserrat;font-style:normal;font-weight:400;font-display:swap;src:url(../site/fonts/montserrat-cyrillic-400-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Montserrat;font-style:normal;font-weight:600;font-display:swap;src:url(../site/fonts/montserrat-cyrillic-600-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Montserrat;font-style:normal;font-weight:700;font-display:swap;src:url(../site/fonts/montserrat-cyrillic-700-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Tajawal;font-style:normal;font-weight:400;font-display:swap;src:url(../site/fonts/tajawal-arabic-400-normal.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:Tajawal;font-style:normal;font-weight:700;font-display:swap;src:url(../site/fonts/tajawal-arabic-700-normal.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:"Montserrat Fallback";font-weight:400;src:local("Arial"),local("Helvetica"),local("Liberation Sans");size-adjust:114.5%;ascent-override:84.54%;descent-override:21.92%;line-gap-override:0%}
@font-face{font-family:"Montserrat Fallback";font-weight:600 700;src:local("Arial Bold"),local("Arial-BoldMT"),local("Helvetica Bold"),local("Liberation Sans Bold");size-adjust:111.17%;ascent-override:87.07%;descent-override:22.58%;line-gap-override:0%}
:root { --navy: #00203E; --blue: #004ACE; --ivory: #F4F4F4; --grey: #BABFC2; --err: #9b1c10; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: Montserrat, Tajawal, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--ivory); color: var(--navy); line-height: 1.5; font-size: 1rem; }
.bar { background: var(--navy); padding: 14px 16px; overflow: hidden; }
.brand { height: 36px; width: auto; aspect-ratio: 3240 / 420; object-fit: cover; margin-inline-start: calc(36px * -0.914); max-width: none; display: block; }
main { max-width: 640px; margin: 0 auto; padding: 16px; }
.intro h1 { font-size: 1.6rem; margin: 8px 0 .4em; }
.card { background: #fff; border-radius: 12px; padding: 20px 16px; margin: 0 0 16px;
  box-shadow: 0 6px 24px rgba(0, 32, 62, .08); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.card { padding: 20px 16px; }
legend { padding: 0; }
.section > legend { float: left; width: 100%; }
.section > legend + * { clear: both; }
h2 { font-size: 1.25rem; margin: 0 0 12px; }
h3 { font-size: 1rem; margin: 12px 0 8px; }
.q { margin: 0 0 18px; }
.q > label, .q legend { display: block; font-weight: 600; margin-bottom: 6px; }
.med legend { font-weight: 500; }
.num { font-weight: 700; }
input[type=text], input[type=date], input[type=email], input[type=tel], select, textarea {
  display: block; width: 100%; font: inherit; color: inherit; padding: 12px; border: 2px solid var(--grey);
  border-radius: 8px; background: #fff; min-height: 48px; }
input[type=file] { display: block; width: 100%; font: inherit; padding: 8px 0; }
input[type=file]::file-selector-button { font: inherit; font-weight: 600; color: var(--blue); background: #fff; border: 2px solid var(--blue);
  border-radius: 8px; padding: 10px 16px; margin-inline-end: 12px; min-height: 44px; cursor: pointer; }
/* the language choice: one chip per language. Without " · " between names, Arabic and Latin names
   no longer swap places on a right-to-left page. */
.langs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.langs a, .langs strong { display: inline-flex; align-items: center; min-height: 40px; padding: 4px 14px; border-radius: 999px;
  border: 1.5px solid var(--grey); background: #fff; color: var(--navy); text-decoration: none; font-weight: 600; }
.langs strong { background: var(--navy); border-color: var(--navy); color: #fff; }
.langs a:hover { border-color: var(--blue); color: var(--blue); }
input:focus, select:focus, textarea:focus, .choice:focus-within, .confirm:focus-within {
  outline: 3px solid var(--blue); outline-offset: 2px; }
.choices { display: grid; gap: 8px; }
.choices.inline { grid-template-columns: 1fr 1fr; max-width: 320px; }
.choice, .confirm { display: flex; align-items: center; gap: 10px; border: 2px solid var(--grey); border-radius: 8px;
  padding: 10px 12px; min-height: 48px; cursor: pointer; font-weight: 500; background: #fff; }
.confirm { align-items: flex-start; }
.choice input, .confirm input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--blue); }
.confirm input { margin-top: 2px; }
.box { border-inline-start: 4px solid var(--blue); padding-inline-start: 12px; margin: 12px 0 0; }
.req { color: var(--err); font-weight: 700; }
.small { font-size: .9rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.has-error input[type=text], .has-error input[type=date], .has-error input[type=email], .has-error input[type=tel],
.has-error select, .has-error textarea, .has-error .choice, .has-error .confirm { border-color: var(--err); }
.err { color: var(--err); font-weight: 600; margin: 6px 0 0; }
.error-summary { background: #fdecea; color: #5c130b; border: 2px solid var(--err); border-radius: 12px;
  padding: 16px; margin: 0 0 16px; }
.error-summary:focus { outline: 3px solid var(--blue); outline-offset: 2px; }
.error-summary h2 { margin-bottom: 8px; }
.error-summary a { color: #5c130b; font-weight: 600; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }   /* no left offset: in Arabic (right to left) it made the page scroll sideways */
.send { margin: 8px 0 40px; }
button { display: block; width: 100%; font: inherit; font-weight: 700; color: #fff; background: var(--blue);
  border: 0; border-radius: 999px; padding: 15px 18px; cursor: pointer; min-height: 52px; }
button:hover { background: var(--navy); }
button:disabled { background: var(--grey); color: var(--navy); cursor: wait; }
button:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
a { color: var(--blue); }

/* Staff screens (/checkin/staff/) */
select + .mt, .mt { margin-top: 12px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: start; padding: 8px 6px; border-bottom: 1px solid var(--grey); vertical-align: middle; }
.small-btn { width: auto; min-height: 40px; padding: 8px 14px; font-size: .9rem; }
.secondary { background: #fff; color: var(--blue); border: 2px solid var(--blue); }
.secondary:hover { background: var(--ivory); color: var(--navy); }
.actions { display: grid; gap: 10px; margin: 12px 0; }
.button { display: block; text-align: center; font-weight: 700; color: #fff; background: #1f7a45; border-radius: 999px;
  padding: 15px 18px; text-decoration: none; }
.qr-big { display: flex; justify-content: center; margin: 12px 0; }
.qr-big svg { width: min(320px, 80vw); height: auto; }
.link code { word-break: break-all; background: var(--ivory); padding: 4px 6px; border-radius: 4px; }
.print-only { display: none; }
@media print {
  .bar, .no-print { display: none !important; }
  body { background: #fff; }
  .printable { box-shadow: none; text-align: center; }
  .print-only { display: block; font-size: 1.3rem; }
  .print-title { font-size: 2.4rem; }
  .qr-big svg { width: 12cm; }
}

/* help line under a question; the owner's preview; the question editor (questions.py) */
.help { margin: 6px 0 0; color: #3b4a5a; }
.preview-note { border-left: 4px solid #004ACE; }
.ok { border-left: 4px solid #1f7a3f; }
.qedit { border-top: 1px solid #BABFC2; padding: 14px 0 6px; }
.qedit.not-asked { opacity: .65; }
.qedit > label, .questions-edit fieldset > label { display: block; font-weight: 600; margin: 10px 0 6px; }
.qedit > label:first-child { margin-top: 0; }
.qedit > .small { margin: 4px 0 0; }
.qopts { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 8px; }
.qopts .pos { display: flex; align-items: center; gap: 8px; }
.qopts .pos input { width: 4em; }

.langs { margin: 8px 0; }
.langs a, .langs strong { white-space: nowrap; }
/* Right-to-left pages: a text still in English (not translated yet) reads left to right on its own line. */
[dir="rtl"] :is(p, label, legend, h1, h2, h3, li, span.small) { unicode-bidi: plaintext; }
.policy { max-height: 22rem; overflow-y: auto; border: 1px solid #BABFC2; border-radius: 8px; padding: 0 1rem; margin: 0 0 1rem; background: #F4F4F4; }
.policy h3 { margin-top: 1rem; }
.decide { display: flex; gap: 8px; flex-wrap: wrap; }
.decide form { margin: 0; }
/* One step at a time (checkin.js); without the script every section shows. */
.stepping fieldset.section.off { display: none; }
.steps-head { margin: 0 0 12px; scroll-margin-top: 8px; }
.steps-bar { height: 8px; background: #fff; border-radius: 999px; overflow: hidden; border: 1px solid var(--grey); }
.steps-bar span { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 999px; transition: width .3s ease; }
.steps-label { margin: 6px 0 0; font-weight: 600; color: var(--navy); }
.steps-nav { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin: 8px 0 16px; }
.steps-nav .step-back[hidden] + .step-next { grid-column: 1 / -1; }
/* The liability release and the signature boxes */
.release-wrap { margin: 0 0 18px; }
.release-name { margin: 0 0 8px; }
.release-text { max-height: 24rem; overflow-y: auto; border: 1px solid var(--grey); border-radius: 8px; padding: 4px 14px;
  background: var(--ivory); font-size: .92rem; line-height: 1.45; }
.release-text:focus { outline: 3px solid var(--blue); outline-offset: 2px; }
.release-text h4 { font-size: .95rem; margin: 14px 0 6px; text-transform: uppercase; letter-spacing: .02em; }
.release-text p { margin: 0 0 10px; }
.release-text .fill { font-weight: 700; color: var(--blue); border-bottom: 1px solid currentColor; }
.release-text .youth { border-top: 2px dashed var(--grey); margin-top: 14px; padding-top: 6px; }
.release .source { color: #3b4a5a; margin: 6px 0 0; }
.card-inset { border: 2px solid var(--grey); border-radius: 12px; padding: 14px; margin: 0 0 16px; background: #fff; }
.sign h3 { margin-top: 0; }
.pad { border: 2px dashed var(--blue); border-radius: 8px; background: #fff; position: relative; }
.pad::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 36px; border-bottom: 1px solid var(--grey); pointer-events: none; }
.pad canvas { display: block; width: 100%; height: 180px; touch-action: none; cursor: crosshair; }
.has-error .pad { border-color: var(--err); }
.pad-clear { margin-top: 8px; }
#signed-note { color: #3b4a5a; }
/* Tap instead of type (owner, 11 Oct 2026: "make it fun"): short lists are big buttons, a ticked
   answer fills with the brand blue, the progress bar is a dive down to 18 m. */
.choices.tiles { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.choices.tiles.big { grid-template-columns: 1fr 1fr; }
.choice.tile { justify-content: center; text-align: center; font-weight: 700; border-radius: 14px; min-height: 56px;
  transition: transform .12s ease, background-color .12s ease; }
.choices.tiles.big .choice.tile { min-height: 84px; font-size: 1.02rem; }
.choice.tile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice:has(input:checked) { background: var(--blue); border-color: var(--blue); color: #fff; }
.choice.tile:has(input:checked) { box-shadow: 0 8px 20px rgba(0, 74, 206, .28); transform: translateY(-1px); }
.choice:active { transform: scale(.98); }
.steps-bar { height: 12px; background: var(--navy); border-color: var(--navy); }
.steps-bar span { position: relative; }
.steps-bar span::after { content: ""; position: absolute; right: 2px; top: 2px; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper input[type=text] { width: 6em; text-align: center; font-weight: 700; font-size: 1.2rem; }
.stepper button { width: 52px; min-height: 52px; padding: 0; border-radius: 50%; font-size: 1.5rem; line-height: 1; flex: none; }
@media (prefers-reduced-motion: reduce) { .choice.tile, .steps-bar span { transition: none; } .choice:active { transform: none; } }
/* Staff: everything entered on one check-in (answers.py) */
.answer-list { margin: 0; display: grid; gap: 0; }
.answer-list > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--ivory); }
.answer-list dt { font-weight: 600; color: #3b4a5a; }
.answer-list dd { margin: 0; word-break: break-word; }
.med-answers td { vertical-align: top; }
.med-answers .box-row td:first-child { padding-inline-start: 18px; }
.med-answers .said-yes { background: #fdecea; }
.sig-shown, .photo-shown { display: inline-block; margin: 0 12px 12px 0; vertical-align: top; }
.sig-shown img { display: block; max-width: 320px; width: 100%; height: auto; border: 1px dashed var(--grey); border-radius: 8px; background: #fff; }
.photo-shown img { display: block; width: 220px; height: 150px; object-fit: cover; border-radius: 8px; border: 1px solid var(--grey); }
@media (max-width: 520px) { .answer-list > div { grid-template-columns: 1fr; gap: 2px; } }
.sign-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 12px; }
input.readonly { background: var(--ivory); color: #3b4a5a; }

/* medical question 2 follows the date of birth: shown, never changed by hand */
.q.locked .choice { pointer-events: none; opacity: .75; }
.q.locked .choice:has(input:checked) { opacity: 1; }
.kept { list-style: none; padding: 0; margin: 6px 0; }
.kept li { margin: 4px 0; }
.kept label { font-weight: 400; }
select.pick + input { margin-top: 10px; }
select.pick + input[hidden] { display: none; }
/* Playful guest pages (owner, 21 Oct 2026, design "Playful guest pages"): a navy welcome band under
   the logo with a few bubbles, a depth gauge that counts the way down, icons on the tiles, a calm
   note when a medical answer is "Yes", a "Received" stamp on the thank-you page. Same colours,
   fonts and logo; the official medical and release wording is untouched. */
.card { border-radius: 18px; }
.intro { position: relative; overflow: hidden; background: var(--navy); color: #fff; margin: -16px -16px 20px; padding: 24px 16px 40px; }
.intro h1 { font-size: 1.75rem; margin-top: 0; }
.intro a { color: #fff; }
.intro .small, .intro .machine-note { color: #d7dde3; }
.intro .langs a { border-color: #ffffff88; color: #fff; background: transparent; }
.intro .langs a:hover { border-color: #fff; color: #fff; }
.intro .langs strong { background: #fff; color: var(--navy); border-color: #fff; }
.intro::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 88% 28%, #ffffff26 0 7px, transparent 8px),
              radial-gradient(circle at 93% 62%, #ffffff1c 0 4px, transparent 5px),
              radial-gradient(circle at 80% 78%, #ffffff14 0 11px, transparent 12px),
              radial-gradient(circle at 70% 18%, #ffffff12 0 3px, transparent 4px); }
.intro::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -14px; height: 30px; background: var(--ivory); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.preview-note + .intro { margin-top: 0; }
.steps-head { display: flex; align-items: center; gap: 14px; }
.gauge { position: relative; width: 64px; height: 64px; flex: none; }
.gauge svg { width: 64px; height: 64px; transform: rotate(-90deg); display: block; }
.g-track { fill: none; stroke: #fff; stroke-width: 6; }
.g-fill { fill: none; stroke: var(--blue); stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset .45s ease; }
.g-m { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; }
.steps-text { min-width: 0; }
.steps-label { margin: 0; }
.steps-sub { margin: 2px 0 0; font-size: .9rem; color: #3b4a5a; }
.choice.tile { position: relative; flex-direction: column; gap: 6px; padding: 12px 8px; }
.choice.tile .ti { width: 28px; height: 28px; }
.choices.tiles.big .choice.tile .ti { width: 34px; height: 34px; }
.q.med .calm { display: none; margin: 10px 0 0; font-size: .92rem; color: #5a3d00; background: #FFF4DD; border-radius: 10px; padding: 8px 12px; }
.q.med:has(input[value=yes]:checked) .calm { display: block; }
.q.med .choice:has(input[value=yes]:checked) { background: #B45309; border-color: #B45309; }
.splash { text-align: center; padding: 28px 16px 16px; }
.stamp { display: inline-flex; align-items: center; gap: 8px; border: 3px solid var(--blue); color: var(--blue); border-radius: 10px; padding: 6px 16px;
  font-weight: 800; text-transform: uppercase; letter-spacing: .12em; transform: rotate(-6deg); margin: 0 0 16px; animation: stamp .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.stamp .ti { width: 22px; height: 22px; }
@keyframes stamp { from { transform: rotate(-6deg) scale(1.9); opacity: 0; } to { transform: rotate(-6deg) scale(1); opacity: 1; } }
.splash h1 { margin: 0 0 .3em; font-size: 1.7rem; }
.next-steps { padding-inline-start: 1.4em; margin: 0 0 12px; }
.next-steps li { margin: 0 0 8px; }
@media (prefers-reduced-motion: reduce) { .stamp { animation: none; } .g-fill { transition: none; } }
/* The group leader's page: the boat fills up seat by seat, a pill per guest, initials in a circle. */
.boat { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.seat { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--grey); background: #fff; }
.seat.sent { border-color: #B45309; background: #FFF4DD; }
.seat.in { border-color: var(--blue); background: var(--blue); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: #E7EEFB; color: var(--blue); vertical-align: middle; }
.pill.ok { background: #E2F3E8; color: #1F5F3A; }
.pill.wait { background: #FFF4DD; color: #7A4B00; }
.av { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: var(--navy); color: #fff; font-weight: 800; font-size: .85rem; margin-inline-end: 10px; vertical-align: middle; }
.next-guest .av { background: #E7EEFB; color: var(--blue); }
.who { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin: 0 0 8px; }
.card-inset { border-radius: 14px; }
