/* Brand tokens: the only place colours, fonts and sizes are defined. See docs/design/brand.md. */
:root {
  --bg: #0E0E0E;
  --surface: #252525;
  --surface-2: #1A1A1A;
  --text: #FFFFFF;
  --muted: #9E9E9E;
  --border: #616161;
  --text-soft: #D6D6D6;
  --line: #333333;
  --band-pill: rgba(255, 255, 255, 0.85);
  --blue: #0E9EFF;
  --blue-hover: #0C8FE6;
  --green: #61F161;
  --red: #FF3C3C;
  --purple: #9E61C3;
  --purple-hover: #8E58B0;
  --dev: #FFE680;
  --dev-stripe-1: #2A2A00;
  --dev-stripe-2: #1F1F00;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 4px;
  --gutter: 16px;
  --content-width: 80rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
}

a { color: var(--blue); }
a:hover { color: var(--blue-hover); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

h1, h2, h3 { line-height: 1.2; font-weight: 700; }
h1 { font-size: 1.8rem; margin: 0.4em 0 0.6em; }
h2 { font-size: 1.25rem; margin: 1.6em 0 0.6em; }
h3 { font-size: 1.05rem; margin: 1.2em 0 0.4em; }
.card > h2:first-child, .card > h3:first-child, section.card h2 { margin-top: 0; }

/* Header and navigation */
.site-header {
  display: flex;
  align-items: center;
  gap: var(--gutter);
  flex-wrap: wrap;
  min-height: 80px;
  padding: 0 var(--gutter);
  max-width: var(--content-width);
  margin: 0 auto;
}
.brand { display: inline-flex; }
.brand-wordmark { height: 32px; width: auto; }
.site-nav { display: flex; gap: 20px; align-items: center; margin-left: auto; flex-wrap: wrap; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: var(--blue); }

.dev-bar {
  background: repeating-linear-gradient(45deg, var(--dev-stripe-1), var(--dev-stripe-1) 10px, var(--dev-stripe-2) 10px, var(--dev-stripe-2) 20px);
  color: var(--dev);
  font-size: 0.85rem;
  padding: 6px var(--gutter);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.dev-bar a { color: var(--dev); }

.site-main {
  padding: var(--gutter) var(--gutter) 64px;
  max-width: var(--content-width);
  margin: 0 auto;
}

.eyebrow { color: var(--muted); font-size: 0.9rem; margin: 0; }
.eyebrow a { color: var(--muted); }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 0.85rem; }

/* Layout helpers */
.narrow { max-width: 28rem; margin: 8vh auto 0; }
.hero { max-width: 36rem; margin: 10vh auto 0; text-align: center; }
.hero h1 { font-size: 2.6rem; }
.title-screen { max-width: 1060px; margin-top: 6vh; }
.title-screen h1 { margin: 0 0 24px; line-height: 0; }
.title-screen img { display: block; width: 100%; height: auto; margin: 0 auto; }
@media (max-width: 640px) { .title-screen img { max-width: 358px; } }
.title-screen-action { margin-top: 32px; }

/* Pixel button for the title screen: notched white frame and a hard drop shadow that presses in */
.button.pixel {
  border-radius: 0;
  padding: 16px 22px;
  line-height: 0;
  box-shadow:
    0 -4px 0 0 var(--text), 0 4px 0 0 var(--text), -4px 0 0 0 var(--text), 4px 0 0 0 var(--text),
    8px 8px 0 0 var(--border);
}
.button.pixel img { display: block; }
.button.pixel:active {
  transform: translate(4px, 4px);
  box-shadow:
    0 -4px 0 0 var(--text), 0 4px 0 0 var(--text), -4px 0 0 0 var(--text), 4px 0 0 0 var(--text),
    4px 4px 0 0 var(--border);
}
.button.pixel:focus-visible { outline-offset: 8px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack > h2, .stack > h3, .stack > p, .stack > dl, .stack > ul { margin-top: 0; margin-bottom: 0; }
.stack > h3 { margin-top: 8px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.two-col { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 960px) {
  .two-col { grid-template-columns: 1fr 1fr; }
  .two-col.wide-left { grid-template-columns: 3fr 2fr; }
}
.two-col > * { min-width: 0; }
.two-col > div { display: flex; flex-direction: column; gap: 24px; }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: var(--gutter);
}
a.card { color: var(--text); text-decoration: none; display: block; }
a.card:hover { outline: 1px solid var(--border); }

.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); margin: 24px 0 16px; font-size: 0.85rem; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--border); }

/* Buttons */
.button {
  display: inline-block;
  background: var(--blue);
  color: var(--bg);
  border: 0;
  border-radius: var(--radius);
  padding: 0.6em 1.2em;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}
.button:hover { background: var(--blue-hover); color: var(--bg); }
.button.secondary { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.button.secondary:hover { box-shadow: inset 0 0 0 1px var(--blue); color: var(--blue); }
.button.small { padding: 0.35em 0.9em; font-size: 0.9rem; }
.button:disabled { background: var(--surface); color: var(--muted); cursor: not-allowed; box-shadow: inset 0 0 0 1px var(--border); }
.link-button {
  background: none; border: 0; padding: 0; font: inherit; color: var(--blue); cursor: pointer; text-decoration: underline;
}
.link-button:hover { color: var(--blue-hover); }
.link-button.danger { color: var(--red); }
form.inline { display: inline; }

/* Forms */
label { font-weight: 500; }
input, select, textarea {
  font: inherit;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5em 0.7em;
  max-width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: none; }
input[type="checkbox"] { accent-color: var(--blue); width: 1.1em; height: 1.1em; }
input[type="file"] { padding: 0.35em; }
textarea { width: 100%; resize: vertical; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field input, .field select { width: 100%; }
.field-row { display: flex; gap: 12px; flex-wrap: wrap; }
.field-row .field { flex: 1 1 10rem; }
.field-row .narrow-field { flex: 0 1 6rem; }
.field-error { color: var(--red); font-size: 0.85rem; }
.form-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); align-items: end; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form label { display: inline-flex; gap: 6px; align-items: center; font-weight: 400; }
input.short { width: 5em; }
.check { display: inline-flex; gap: 6px; align-items: center; font-weight: 400; }
.actions { display: flex; gap: 8px; }

/* Messages */
.flash { border-radius: var(--radius); padding: 10px 14px; margin: 0 0 16px; border-left: 4px solid; background: var(--surface); }
.flash.ok { border-color: var(--green); }
.flash.error { border-color: var(--red); }

/* Status: one meaning per colour. Green done, red needs attention, purple Activities, blue actions. */
.pill {
  display: inline-block; font-size: 0.78rem; line-height: 1.4; padding: 1px 8px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--muted); white-space: nowrap;
}
.pill.done { border-color: var(--green); color: var(--green); }
.pill.attention { border-color: var(--red); color: var(--red); }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.status { white-space: nowrap; font-size: 0.9rem; }
.status::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.status.ok { color: var(--text); }
.status.ok::before { background: var(--green); }
.status.missing, .status.attention { color: var(--red); }
.status.missing::before, .status.attention::before { background: var(--red); }
.status.none { color: var(--muted); }
.status.none::before { display: none; }
.status.activity { color: var(--text); }
.status.activity::before { background: var(--purple); }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #333; vertical-align: top; }
.table thead th { color: var(--muted); font-weight: 500; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; position: sticky; top: 0; background: var(--bg); }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody th { font-weight: 600; }
.table tbody th a { color: var(--text); text-decoration: none; }
.table tbody th a:hover { color: var(--blue); }
.table tr.selected { background: var(--surface); }
.table.compact td { padding: 4px 8px; }
.dashboard tbody tr.attention th { box-shadow: inset 3px 0 0 var(--red); }
.dashboard th.activity { color: var(--purple); }
.dashboard td.warnings .pill { margin: 0 4px 4px 0; }

.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar input[type="search"] { min-width: 14rem; flex: 0 1 20rem; }
.toolbar .spacer { flex: 1; }

/* Event header */
.event-head { margin-bottom: 20px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid #333; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 14px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--text); border-bottom-color: var(--blue); }
.page-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.page-head h1 { margin-right: 4px; }

.event-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.event-list li { display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.event-link { font-size: 1.1rem; color: var(--text); }

.plain-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.plain-list li { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.plain-list li.removed strong { text-decoration: line-through; color: var(--muted); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

.sync-status { display: flex; gap: 12px; align-items: baseline; margin: 0; }
.sync-status strong::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }
.sync-status.ok strong::before { background: var(--green); }
.sync-status.error strong::before { background: var(--red); }

/* Activities (purple) */
.activity-title { color: var(--text); }
.activity-title::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--purple); margin-right: 10px; vertical-align: 2px; }
.activity-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.activity-card { border-top: 3px solid var(--purple); }
.activity-card h2 { margin: 0 0 6px; }
.meter { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.meter > div { height: 100%; background: var(--purple); }
.meter > div.over { background: var(--red); }
.slot { margin-bottom: 12px; border-left: 3px solid var(--purple); }
.slot.over { border-left-color: var(--red); }
.slot-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.slot-head h3 { margin: 0; }
.places { color: var(--muted); }
.places.full { color: var(--text); }
.places.attention { color: var(--red); }
.people { margin: 12px 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 4px; }
.people li > * { margin-right: 8px; }
details summary { cursor: pointer; color: var(--blue); }
details[open] summary { margin-bottom: 8px; }
.danger-zone { margin-top: 16px; }

.activity-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.activity-head h2 { margin: 0; }
.description { white-space: pre-line; margin: 0; }
.slots { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.slot-option {
  display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap;
  padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid #333;
}
.slot-option.mine { border-color: var(--purple); box-shadow: inset 4px 0 0 var(--purple); }
.slot-option.full { opacity: 0.6; }
.slot-time { display: flex; flex-direction: column; }
.slot-action { display: flex; gap: 12px; align-items: center; }

.portal-event .sessions li { flex-direction: column; gap: 0; }
.portal { max-width: 48rem; }
.portal-wide { max-width: 64rem; }

/* Speaker page: big type and colour tiles, after the hellostavanger.no layout. */
.speaker-page { display: flex; flex-direction: column; gap: 64px; padding-top: 8px; }
.kicker { margin: 0 0 8px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.sp-section { display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 16px; }
.sp-section > .kicker { margin: 0; }
.sp-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px 16px; flex-wrap: wrap; }
.sp-section-head p { margin: 0; }
.sp-title, .info-heading { margin: 0; font-size: clamp(1.9rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; }
.sp-subtitle { margin: 0; font-size: 1.75rem; font-weight: 800; }

.sp-hero-row { display: flex; flex-wrap: wrap; gap: var(--gutter); }
.sp-hero {
  flex: 2 1 34rem; min-width: 0; position: relative; overflow: hidden;
  background: var(--surface); border-radius: var(--radius); padding: clamp(32px, 5vw, 56px);
}
.sp-hero h1 { margin: 0; font-size: clamp(2.8rem, 6vw, 4.75rem); line-height: 1.02; font-weight: 800; letter-spacing: -0.02em; }
.sp-lead { margin: 20px 0 0; max-width: 36rem; font-size: 1.15rem; color: var(--text-soft); }
.sp-hero .switcher { margin: 16px 0 0; }
.sp-hero .switcher a { margin-left: 6px; }
.sp-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.button.big { min-height: 48px; display: inline-flex; align-items: center; padding: 0 22px; font-weight: 700; }
.brand-block { position: absolute; }
.bb-1 { top: 0; right: 72px; width: 14px; height: 28px; background: var(--red); }
.bb-2 { top: 40px; left: 0; width: 22px; height: 12px; background: var(--green); }
.bb-3 { bottom: 0; left: 46%; width: 12px; height: 26px; background: var(--purple); }
.bb-4 { bottom: 64px; right: 0; width: 22px; height: 12px; background: var(--blue); }
.bb-5 { top: 0; left: 120px; width: 14px; height: 28px; background: var(--blue); }
.bb-6 { bottom: 36px; right: 0; width: 22px; height: 12px; background: var(--red); }

/* Text on blue and purple tiles is near-black: white text is too faint on them below heading size. */
.sp-countdown {
  flex: 1 1 18rem; min-width: 0; background: var(--blue); color: var(--bg); border-radius: var(--radius);
  padding: clamp(32px, 4vw, 48px) 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
.sp-countdown .kicker { color: var(--bg); margin: 0; }
.sp-countdown-number { margin: 0; display: flex; flex-direction: column; }
.sp-countdown-number strong { font-size: clamp(5rem, 9vw, 7.5rem); line-height: 0.9; font-weight: 800; letter-spacing: -0.04em; }
.sp-countdown-number span { font-size: 1.75rem; font-weight: 700; line-height: 1.2; margin-top: 8px; }
.sp-countdown-when { margin: 0; font-weight: 500; }

.summary-grid { display: grid; gap: var(--gutter); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.summary-card { background: var(--surface); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.summary-card p { margin: 0; }
.summary-head { display: flex; align-items: center; gap: 14px; }
.summary-head h2 { margin: 0; font-size: 1.4rem; font-weight: 700; }
.icon-tile { width: 44px; height: 44px; flex: none; border-radius: var(--radius); background: var(--bg); display: inline-flex; align-items: center; justify-content: center; }
.summary-icon { width: 22px; height: 22px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.summary-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.summary-list li { display: flex; flex-direction: column; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); }
.summary-list li:first-child { padding-top: 0; border-top: 0; }
.summary-item-title { font-size: 1.2rem; line-height: 1.3; }
.summary-when { font-weight: 600; }
.summary-meta { color: var(--muted); font-size: 0.92rem; }
.summary-card .summary-foot { margin-top: auto; font-size: 0.9rem; }
.legs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.legs li { display: flex; flex-direction: column; background: var(--bg); border-radius: var(--radius); padding: 12px 16px; }

/* Activity sign-up cards: purple is the Activities colour. */
.activity-cards { display: grid; gap: var(--gutter); grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); align-items: start; }
.activity-section { background: var(--surface); border-radius: var(--radius); overflow: hidden; scroll-margin-top: 16px; }
.activity-band {
  background: var(--purple); padding: 24px 28px; min-height: 112px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
}
.activity-band h3 { margin: 0; font-size: 1.75rem; line-height: 1.15; font-weight: 800; color: var(--text); }
.band-pill { flex: none; font-size: 0.78rem; font-weight: 700; color: var(--bg); background: var(--band-pill); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.activity-body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 16px; }
.activity-body > p { margin: 0; }
.speaker-page .slot-option { background: var(--bg); border: 1px solid transparent; padding: 10px 10px 10px 16px; }
.speaker-page .slot-option.mine { border-color: var(--green); box-shadow: none; }
.speaker-page .slot-action .button { min-height: 44px; font-weight: 700; }
.youre-going { color: var(--green); font-weight: 700; white-space: nowrap; }
.decline-form .button { width: 100%; min-height: 44px; }
.answer { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border: 1px dashed var(--border); border-radius: var(--radius); padding: 12px 14px; }
.answer > div { display: flex; flex-direction: column; }
.answer .button { min-height: 44px; }

/* Your plans */
.plans { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--surface); }
.plan { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; padding: 16px 4px; border-bottom: 1px solid var(--surface); }
.plan-day { width: 8.5rem; flex: none; color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.plan-what { flex: 1 1 14rem; min-width: 0; display: flex; flex-direction: column; }
.plan-what .muted { font-size: 0.9rem; }
.tag {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 700; white-space: nowrap;
  border: 1px solid var(--border); color: var(--muted); border-radius: 999px; padding: 3px 12px; text-decoration: none;
}
.tag.speaking { border-color: var(--blue); color: var(--blue); }
.tag.going { border-color: var(--green); color: var(--green); }
.tag.going::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.tag.attention { border-color: var(--red); color: var(--red); }
.tag.attention:hover { color: var(--text); background: var(--red); }

.sp-contact {
  position: relative; overflow: hidden; background: var(--surface); border-radius: var(--radius); padding: clamp(32px, 5vw, 56px);
  display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-end; justify-content: space-between;
}
.sp-contact h2 { margin: 0; font-size: clamp(1.9rem, 4vw, 2.5rem); font-weight: 800; }
.sp-contact p { margin: 12px 0 0; font-size: 1.1rem; }
.sp-contact-links { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sp-contact-main { font-size: 1.5rem; font-weight: 800; overflow-wrap: anywhere; }

/* Info Page: a mosaic of tiles. Organisers may colour a section with {blue} or {purple}. */
.info-page { display: flex; flex-direction: column; }
.info-page > .kicker { margin-bottom: 8px; }
.info-page .info-heading { margin-bottom: 20px; }
.info-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.info-toc a {
  color: var(--text); text-decoration: none; font-size: 0.88rem; padding: 4px 12px;
  border: 1px solid var(--border); border-radius: 999px;
}
.info-toc a:hover { border-color: var(--blue); color: var(--blue); }
.info-intro { font-size: 1.1rem; max-width: 48rem; margin-bottom: 24px; color: var(--text-soft); }
.info-grid { display: grid; gap: var(--gutter); grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); grid-auto-flow: dense; }
.info-card { background: var(--surface); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); scroll-margin-top: 16px; }
@media (min-width: 720px) { .info-card.wide { grid-column: span 2; } }
.info-card.full { grid-column: 1 / -1; }
.info-card h3 { margin: 0 0 12px; font-size: 1.6rem; font-weight: 800; line-height: 1.15; }
.info-card.tone-blue { background: var(--blue); color: var(--bg); }
.info-card.tone-purple { background: var(--purple); color: var(--bg); }
.info-card.tone-purple h3 { color: var(--text); }
.info-card.tone-blue h3, .info-card.tone-purple h3 { font-size: 2.2rem; letter-spacing: -0.01em; }
.info-card.tone-blue :is(a, strong), .info-card.tone-purple :is(a, strong) { color: var(--bg); }
.info-card.tone-blue :is(p, li), .info-card.tone-purple :is(p, li) { font-weight: 500; }
/* A section that starts with a picture: the picture fills the left of the card, the text sits beside it (the picture above the text on phones).
   One that ends with a picture has it on the right (below the text on phones). */
.info-card.with-image { display: grid; grid-template-columns: 1fr; padding: 0; overflow: hidden; }
.info-card.with-image .info-image { display: block; width: 100%; height: 100%; max-height: 22rem; object-fit: cover; object-position: 50% 20%; }
.info-card.with-image .info-body { padding: clamp(24px, 3vw, 36px); }
@media (min-width: 720px) {
  .info-card.with-image { grid-template-columns: minmax(12rem, 38%) 1fr; }
  .info-card.with-image.image-right { grid-template-columns: 1fr minmax(12rem, 38%); }
  /* The text sets the card's height (at least 20rem); the picture is cropped to it, so a tall photo can't stretch the card. */
  .info-card.with-image { min-height: 20rem; }
  .info-card.with-image .info-image { max-height: none; height: 0; min-height: 100%; }
}
.prose p { margin: 0 0 0.8em; }
.prose p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { margin: 0 0 0.8em; padding-left: 1.3em; }
.prose li + li { margin-top: 4px; }
.prose strong { color: var(--text); }
.preview { border: 1px dashed var(--border); border-radius: var(--radius); padding: var(--gutter); max-width: none; }
textarea.mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 0.9rem; line-height: 1.5; }
.hint-list { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
.hint-list code { color: var(--text); }

.pick-list { list-style: none; padding: 0; display: grid; gap: 6px; }
.pick-list.columns { grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }

.mail .mail-body { width: 100%; height: 420px; border: 0; border-radius: var(--radius); margin: 12px 0; background: var(--bg); }
pre { white-space: pre-wrap; background: var(--surface-2); padding: 12px; border-radius: var(--radius); }

@media (min-width: 768px) {
  .brand-wordmark { height: 40px; }
}

/* Connect SpeakerTravel travellers */
.connect-table th .block { display: block; font-weight: 400; font-size: 0.85rem; }
.connect-table .guesses { display: flex; flex-direction: column; gap: 4px; }
.guess.likely { font-weight: 600; }
.guess.likely::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 6px; }
.row .spacer { flex: 1; }

/* Dashboard column filter */
.dashboard th .column-filter { display: block; margin-top: 4px; font-size: 0.8rem; padding: 2px 4px; min-height: 0; max-width: 12rem; }

/* Speaker-entered travel dates and hotel nights */
.travel-dates summary, .hotel-dates summary { font-weight: 600; }
.date-pair { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); }
.date-pair legend { font-weight: 700; padding: 0; margin-bottom: 6px; }
.date-pair label { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; }
.stack-label { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dashboard .select { width: 2rem; text-align: center; }
.reminder-bar { flex-wrap: wrap; align-items: center; }
.reminder-bar .muted { flex: 1 1 24rem; font-size: 0.85rem; }
.reminder-bar .flash { flex-basis: 100%; margin: 0; }
.dashboard .remind-one { font-size: 0.85rem; }
[hidden] { display: none !important; }

/* Sign-in page: "The Speakerator 3000" in 16-bit chrome (speakerator-title-turbo.svg) */
.signin-page { margin-top: 4vh; max-width: 34rem; }
.portal-title { margin: 0 0 8px; line-height: 0; }
.portal-title img { display: block; width: 100%; height: auto; }

/* Sign-in form as a pixel "enter your name" screen. Labels, help text and what people type stay in Inter. */
.pixel-panel {
  margin-top: 16px;
  border: 12px double var(--text);
  background: var(--bg);
  padding: 24px;
}
.pixel-panel-title { margin: 0 0 12px; line-height: 0; }
.pixel-panel-title img { display: block; max-width: 100%; height: auto; }
.pixel-panel p { margin: 0 0 20px; }
.pixel-panel input {
  border: 4px solid var(--border);
  border-radius: 0;
  background: var(--surface-2);
  padding: 0.6em 0.8em;
}
.pixel-panel input:focus { border-color: var(--blue); box-shadow: 6px 6px 0 0 var(--blue-hover); }
.pixel-panel .field-error:not(:empty) {
  border: 4px solid var(--red);
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 600;
}
.pixel-panel .button.pixel { align-self: flex-start; max-width: calc(100% - 12px); margin: 12px 0 8px 4px; }
.pixel-panel .button.pixel img { max-width: 100%; height: auto; }
@media (max-width: 480px) { .pixel-panel { border-width: 9px; padding: 16px; } }
#hotel-list tbody tr.attention th { box-shadow: inset 3px 0 0 var(--red); }
.wallet-links { display: flex; flex-wrap: wrap; gap: 8px; }

/* Conference Slack card on the speaker page: a slim full-width band above the Activities. On wide screens the heading and
   first paragraph make the left column, "Got a question?" the right one (level with the heading), and the button stays at
   the far right. */
.sp-slack {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 32px;
  background: var(--purple); color: var(--bg); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px);
}
.sp-slack .kicker { color: var(--bg); }
.sp-slack h2 { margin: 0 0 8px; font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; }
.sp-slack p { margin: 0; max-width: 40rem; }
.sp-slack .sp-slack-answers { margin-top: 12px; }
@media (min-width: 900px) {
  .sp-slack { flex-wrap: nowrap; padding: 24px 32px; }
  .sp-slack > div:first-child { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; align-items: start; }
  .sp-slack > div:first-child > * { grid-column: 1; }
  .sp-slack > div:first-child > .sp-slack-answers { grid-column: 2; grid-row: 2 / span 2; margin-top: 0; }
  .sp-slack .sp-slack-actions { align-items: flex-end; }
}

/* The Activity cards with "Your plans" to their right */
.activities-and-plans { display: grid; gap: 32px var(--gutter); align-items: start; }
@media (min-width: 1000px) { .activities-and-plans { grid-template-columns: minmax(0, 2fr) minmax(18rem, 1fr); } }
.sp-slack-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.sp-slack .button { background: var(--bg); color: var(--text); }
.sp-slack-open { color: var(--bg); font-weight: 600; }

/* Organisers' preview of a speaker page */
.preview-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  margin-bottom: 24px; padding: 14px 18px; border-radius: var(--radius);
  background: var(--dev-stripe-2); border: 1px solid var(--dev); color: var(--dev);
}
.preview-banner p { margin: 0; }
.preview-frame { border: 0; padding: 0; margin: 0; min-width: 0; }
.preview-frame button:disabled { cursor: not-allowed; opacity: 0.6; }
.page-head .spacer { flex: 1; }

/* Reimbursement claim: only the fields for the chosen account type are shown. */
.account-types { border: 0; padding: 0; margin: 0; display: flex; gap: 16px; flex-wrap: wrap; }
.account-types legend { font-weight: 600; margin-bottom: 4px; }
.bank-details .account-group { display: none; flex-direction: column; gap: 12px; }
.bank-details:has(#type-norwegian:checked) .account-norwegian,
.bank-details:has(#type-iban:checked) .account-iban,
.bank-details:has(#type-other:checked) .account-other { display: flex; }
.bank-details:not(:has(#type-norwegian:checked)) .account-norwegian-only { display: none; }
.claim-page .page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.claim-page .page-head h1 { margin-bottom: 0.2em; }
.attachment-list li { justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.attachment-list li > div { display: flex; flex-direction: column; }
.claim-page { display: flex; flex-direction: column; gap: 16px; }
.claim-page > p, .claim-page > .flash { margin: 0; }
.claim-page form.stack { gap: 16px; }
input[readonly] { background: transparent; color: var(--muted); }
.validation-summary-valid { display: none; }
.validation-summary-errors ul { margin: 0; padding-left: 1.2em; }
