/* Arch Craft design system (mockups).
   One stylesheet for the public website (body.site) and the CRM (body.crm).
   House rules: docs/style-rules.md. Corners are 2px, nothing is pill shaped,
   no gradients, no uppercase or letter-spaced labels. */

:root {
  --ink: #16263D;
  --ink-2: #22385A;
  --ink-3: #2F4A70;
  --red: #A8322D;
  --red-2: #8E2925;
  --text: #1B2430;
  --muted: #55606E;
  --line: #D5DBE2;
  --line-2: #AEB8C4;
  --line-3: #8A95A3;
  --bg: #FFFFFF;
  --bg-alt: #F3F5F7;
  --bg-cool: #E9EDF2;
  --paper-blue: #EEF2F7;
  --green: #2D6A4F;
  --green-bg: #EAF3EE;
  --green-line: #B8D5C5;
  --amber: #8A5A00;
  --amber-bg: #FBF3E2;
  --amber-line: #E5CF9E;
  --blue: #1F5B99;
  --blue-bg: #EAF1F9;
  --blue-line: #B9CDE4;
  --red-bg: #F9ECEB;
  --red-line: #E3B9B6;
  --gray: #5C6773;
  --gray-bg: #EEF1F4;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
  --radius: 2px;
  --shadow-float: 0 4px 16px rgba(22, 38, 61, 0.16);
}

/* ------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 0.5em; line-height: 1.2; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin: 0.25em 0; }
a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
small { font-size: 0.85em; }
strong { font-weight: 600; }
table { border-collapse: collapse; }

.icon {
  display: inline-block;
  vertical-align: middle;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }

/* ------------------------------------------------------------ utilities */

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 880px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.xsmall { font-size: 13px; }
.mono { font-family: var(--mono); font-size: 0.94em; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.stack > * + * { margin-top: 16px; }
.stack-sm > * + * { margin-top: 8px; }
.cluster { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.between { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-main-side { grid-template-columns: minmax(0, 1fr) 340px; }
.grid-side-main { grid-template-columns: 260px minmax(0, 1fr); }

/* Placeholder text that the owner must replace, shown in light yellow. */
.ph { background: #FFF2C2; color: #4A3A00; padding: 0 3px; border-radius: var(--radius); }

/* Strip on top of every mockup page. Not part of the real design. */
.mockup-note {
  margin: 0;
  background: #FFF6D6;
  color: #4A3A00;
  font-size: 13px;
  line-height: 1.4;
  padding: 6px 16px;
  text-align: center;
  border-bottom: 1px solid #EAD9A0;
}

/* ------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  font: 500 16px/1.2 var(--sans);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--bg-alt); color: var(--ink); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); color: #fff; }
.btn-accent { background: var(--red); border-color: var(--red); color: #fff; }
.btn-accent:hover { background: var(--red-2); border-color: var(--red-2); color: #fff; }
.btn-quiet { border-color: var(--line-3); color: var(--text); }
.btn-danger { border-color: var(--red); color: var(--red); }
.btn-danger:hover { background: var(--red-bg); color: var(--red-2); }
.btn-link { border-color: transparent; background: transparent; padding-left: 0; padding-right: 0; text-decoration: underline; text-underline-offset: 3px; }
.btn-link:hover { background: transparent; color: var(--red); }
.btn-on-dark { border-color: #fff; color: #fff; background: transparent; }
.btn-on-dark:hover { background: #22385A; color: #fff; }
.btn-light { border-color: #fff; background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--bg-cool); color: var(--ink); }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.btn-block { width: 100%; }
.btn .icon { width: 18px; height: 18px; }
.btn-icon, .crm .btn-icon { padding: 0; width: 44px; }
.btn-icon.btn-sm, .crm .btn-icon.btn-sm { width: 36px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ------------------------------------------------------------ forms */

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.field > label, .field-label { font-weight: 500; font-size: 15px; color: var(--text); }
.hint { font-size: 14px; color: var(--muted); margin: 0; }
.field-error { font-size: 14px; color: var(--red); margin: 0; }
.req { color: var(--red); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="date"], input[type="time"], input[type="search"], input[type="password"],
input[type="url"], select, textarea {
  font: 400 16px/1.4 var(--sans);
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line-3);
  border-radius: var(--radius);
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
  margin: 0;
}
textarea { min-height: 128px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
input[readonly] { background: var(--bg-alt); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--ink); width: 18px; height: 18px; margin: 3px 0 0; flex: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin-bottom: 12px; }
.check label { font-weight: 400; }
fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
legend { font-weight: 600; font-size: 16px; margin-bottom: 10px; padding: 0; color: var(--ink); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.choice-list { display: grid; gap: 10px; }
.choice {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 14px 16px; background: #fff; font-size: 15px;
  border-color: var(--line-3);
}
.choice.is-selected { border-color: var(--ink); background: var(--paper-blue); }
.choice strong { display: block; color: var(--ink); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.input-group { display: flex; }
.input-group input { border-radius: var(--radius) 0 0 var(--radius); }
.input-group .btn { border-radius: 0 var(--radius) var(--radius) 0; }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: 11px; top: 50%; margin-top: -9px; width: 18px; height: 18px; color: var(--muted); }
.input-icon input, .crm .input-icon input { padding-left: 38px; }

/* ------------------------------------------------------------ tables */

.table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--ink); font-size: 15px; }
.table th.num, .table td.num { text-align: right; }
.table tfoot td { font-weight: 600; border-bottom: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.table-wrap .table thead th { border-bottom-width: 1px; }

/* Two-column table of key facts (course information). */
.facts { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); font-size: 16px; }
.facts th { width: 34%; text-align: left; font-weight: 600; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink); }
.facts td { padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }

/* ------------------------------------------------------------ labels and status */

.status { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; white-space: nowrap; color: var(--text); }
.status::before { content: ""; width: 9px; height: 9px; background: var(--gray); flex: none; }
.status-new::before { background: var(--blue); }
.status-progress::before, .status-open::before, .status-sent::before { background: var(--amber); }
.status-won::before, .status-ok::before, .status-published::before, .status-accepted::before, .status-confirmed::before { background: var(--green); }
.status-lost::before, .status-spam::before, .status-error::before, .status-declined::before, .status-cancelled::before { background: var(--red); }
.status-draft::before, .status-closed::before, .status-superseded::before, .status-planned::before { background: #fff; border: 1px solid var(--gray); }
.status-full::before { background: var(--ink); }

.tag {
  display: inline-block;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
  padding: 1px 7px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  color: var(--text);
  background: #fff;
  white-space: nowrap;
}
.tag-blue { border-color: var(--blue-line); background: var(--blue-bg); color: var(--blue); }
.tag-green { border-color: var(--green-line); background: var(--green-bg); color: var(--green); }
.tag-amber { border-color: var(--amber-line); background: var(--amber-bg); color: var(--amber); }
.tag-red { border-color: var(--red-line); background: var(--red-bg); color: var(--red); }
.tag-ink { border-color: var(--ink); background: var(--ink); color: #fff; }

.count {
  display: inline-block;
  min-width: 20px;
  padding: 0 6px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  text-align: center;
  background: var(--red);
  color: #fff;
  border-radius: var(--radius);
}

/* ------------------------------------------------------------ panels and notices */

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel-flush { padding: 0; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.panel-head h2, .panel-head h3 { margin: 0; }
.panel-section { padding: 16px 20px; border-top: 1px solid var(--line); }
.panel-section:first-child { border-top: 0; }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line-2); background: var(--bg-alt); border-radius: var(--radius); font-size: 15px; }
.notice p:last-child { margin-bottom: 0; }
.notice-info { border-color: var(--blue-line); background: var(--blue-bg); }
.notice-success { border-color: var(--green-line); background: var(--green-bg); }
.notice-warning { border-color: var(--amber-line); background: var(--amber-bg); }
.notice-error { border-color: var(--red-line); background: var(--red-bg); }

.photo-placeholder {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--bg-alt); border: 1px dashed var(--line-2); color: var(--muted);
  font-size: 14px; padding: 16px; aspect-ratio: 4 / 3;
}
.drawing { background: #fff; border: 1px solid var(--line); }
.drawing-blue { background: var(--paper-blue); border: 1px solid var(--line); }

/* ------------------------------------------------------------ breadcrumbs, tabs, pagination */

.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line-2); }
.breadcrumb a { color: var(--muted); }

.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 15px; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"], .tabs a.is-active { color: var(--ink); border-bottom-color: var(--ink); }

.segmented { display: inline-flex; border: 1px solid var(--line-3); border-radius: var(--radius); background: #fff; overflow: hidden; }
.segmented a, .segmented button {
  padding: 7px 12px; border: 0; border-right: 1px solid var(--line-2); background: #fff;
  font: 500 14px/1.3 var(--sans); color: var(--text); text-decoration: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.segmented > :last-child { border-right: 0; }
.segmented .is-active, .segmented [aria-current="page"] { background: var(--ink); color: #fff; }

.pagination { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; }
.pagination a, .pagination span { min-width: 36px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: var(--radius); text-decoration: none; color: var(--text); padding: 0 10px; background: #fff; }
.pagination [aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ============================================================ WEBSITE */

.site h1, .site h2, .site h3 { font-family: var(--serif); font-weight: 600; }
.site h1 { font-size: 46px; line-height: 1.12; }
.site h2 { font-size: 32px; line-height: 1.2; }
.site h3 { font-size: 22px; line-height: 1.3; }
.site h4 { font-family: var(--sans); font-size: 17px; font-weight: 600; }
.lead { font-size: 20px; line-height: 1.55; color: var(--text); max-width: 38em; }

/* header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 28px; min-height: 80px; flex-wrap: wrap; }
.brand, .app-brand { display: inline-flex; align-items: baseline; gap: 7px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand:hover { color: var(--ink); }
/* Logo construction (brand/header-logo.html): mark 32 px, wordmark 30 px at optical size 32,
   mark shifted 6 px below the baseline so the frame overhangs the capitals by one wall. */
.brand-mark { flex: none; width: 32px; height: 32px; position: relative; top: 6px; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 32px; font-variation-settings: "opsz" 32; color: var(--ink); white-space: nowrap; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-left: auto; }
.site-nav a { text-decoration: none; color: var(--text); font-weight: 500; font-size: 16px; padding: 27px 0 25px; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--line-2); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--red); }
.header-cta { margin-left: 4px; }
.menu-button { display: none; }

/* hero */
.hero { padding: 72px 0 80px; border-bottom: 1px solid var(--line); }
.hero .container { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }
.hero .lead { margin-bottom: 0; }
.hero .actions { margin-top: 32px; }
.hero-note { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }

/* page header for inner pages */
.page-header { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 40px 0 44px; }
.page-header h1 { font-size: 42px; margin-bottom: 12px; }
.page-header .lead { margin-bottom: 0; }

/* sections */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-alt + .section { border-top: 0; }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 18px; margin-bottom: 0; }
.section-head-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.section-head-row h2 { margin: 0; }

/* course catalogue */
.course-list { border-top: 2px solid var(--ink); }
.course-item { display: grid; grid-template-columns: 220px minmax(0, 1fr) 250px; gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: start; }
.course-thumb { border: 1px solid var(--line); background: var(--paper-blue); aspect-ratio: 4 / 3; overflow: hidden; }
.course-thumb svg { width: 100%; height: 100%; }
.course-item h3 { font-size: 24px; margin-bottom: 6px; }
.course-item h3 a { text-decoration: none; }
.course-item h3 a:hover { text-decoration: underline; }
.course-sub { color: var(--muted); margin-bottom: 10px; }
.course-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--muted); font-size: 15px; margin: 0 0 12px; padding: 0; list-style: none; }
.course-meta li { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.course-side { border-left: 1px solid var(--line); padding-left: 24px; }
.price { font-family: var(--serif); font-size: 28px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.price-note { font-size: 14px; color: var(--muted); }

/* course page */
.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.aside-box { border: 1px solid var(--line); border-top: 2px solid var(--ink); padding: 24px; background: #fff; }
.aside-box h2 { font-size: 20px; }
.aside-list { list-style: none; margin: 0 0 20px; padding: 0; font-size: 15px; }
.aside-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); margin: 0; }
.aside-list li span:first-child { color: var(--muted); }

.programme { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.programme > li { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); margin: 0; }
.programme .time { font-family: var(--mono); font-size: 15px; color: var(--ink); line-height: 1.5; }
.programme .duration { display: block; color: var(--muted); font-family: var(--sans); font-size: 14px; margin-top: 4px; }
.programme h3 { font-size: 20px; margin-bottom: 8px; }
.programme ul { margin: 0; padding-left: 20px; list-style-type: disc; }
.programme ul li { margin: 3px 0; }
.programme > li.break { padding: 12px 0; background: var(--bg-alt); color: var(--muted); font-size: 15px; }
.programme > li.break .time { color: var(--muted); padding-left: 12px; }

.sessions .date { font-weight: 600; color: var(--ink); white-space: nowrap; }
.sessions .where { display: inline-flex; align-items: flex-start; gap: 6px; }
.sessions .where .icon { margin-top: 3px; }
.places { white-space: nowrap; }
.places-low { color: var(--red); font-weight: 500; }

/* numbered steps */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding: 0; margin: 0; }
.steps > li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 18px; margin: 0; }
.steps > li::before { content: counter(step); display: block; font-family: var(--serif); font-size: 32px; font-weight: 600; color: var(--red); line-height: 1; margin-bottom: 12px; }
.steps h3 { font-size: 20px; }
.steps p { margin: 0; color: var(--text); }

/* questions */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 22px; line-height: 1; color: var(--ink); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 12px 0 0; max-width: 46em; }

/* split block: text with figure */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }

/* band with call to action */
.cta-band { background: var(--ink); color: #fff; padding: 56px 0; }
.cta-band .container { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; font-size: 30px; margin-bottom: 8px; }
.cta-band p { color: #D9E0EA; margin: 0; max-width: 40em; }

/* contact details list */
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.contact-list .icon { margin-top: 3px; color: var(--ink); }

/* footer */
.site-footer { background: #0F1C2E; color: #C9D2DD; padding: 56px 0 28px; font-size: 15px; }
.site-footer a { color: #E8EDF3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid h2 { font-family: var(--sans); font-size: 15px; font-weight: 600; color: #fff; margin: 0 0 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 0 0 9px; }
.footer-brand .brand, .footer-brand .brand-name { color: #fff; }
.footer-brand p { margin-top: 16px; max-width: 30em; }
.footer-bottom { border-top: 1px solid #2A3B52; margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 14px; color: #A9B4C2; }
.footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-bottom li { margin: 0; }
.footer-legal { width: 100%; margin: 0; font-size: 13px; color: #A9B4C2; }

/* ============================================================ CRM */

.crm { font-size: 14px; line-height: 1.5; background: var(--bg-alt); }
.crm h1 { font-family: var(--sans); font-size: 22px; font-weight: 600; line-height: 1.3; }
.crm h2 { font-family: var(--sans); font-size: 16px; font-weight: 600; line-height: 1.35; }
.crm h3 { font-family: var(--sans); font-size: 14px; font-weight: 600; line-height: 1.4; }
:where(.crm) p { margin-bottom: 0.8em; }
.crm .btn { font-size: 14px; min-height: 36px; padding: 6px 14px; }
.crm .btn-lg { font-size: 15px; min-height: 44px; padding: 10px 18px; }
.crm input[type="text"], .crm input[type="email"], .crm input[type="tel"], .crm input[type="number"],
.crm input[type="date"], .crm input[type="time"], .crm input[type="search"], .crm input[type="password"],
.crm input[type="url"], .crm select, .crm textarea { font-size: 14px; min-height: 36px; padding: 7px 10px; }
.crm textarea { min-height: 96px; }
.crm .field { margin-bottom: 14px; gap: 4px; }
.crm .field > label, .crm .field-label { font-size: 13px; }
.crm .hint { font-size: 13px; }
.crm .panel { padding: 18px 20px; }
.crm .table { font-size: 14px; background: #fff; }
.crm .table th, .crm .table td { padding: 9px 12px; }
.crm .table thead th { font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line-2); background: #FAFBFC; font-weight: 600; white-space: nowrap; }
.crm .table tbody tr:hover { background: #F7F9FB; }
.crm .table td a { font-weight: 500; text-decoration: none; }
.crm .table td a:hover { text-decoration: underline; }
.crm .table .row-selected { background: var(--blue-bg); }
.crm .table .row-muted td { color: var(--muted); }
.crm .table td.check-cell, .crm .table th.check-cell { width: 36px; padding-right: 0; }

.app { display: flex; flex-wrap: wrap; min-height: 100vh; }
.app-sidebar { flex: 1 1 236px; background: var(--ink); color: #D9E0EA; padding: 16px 12px 24px; }
.app-brand { display: flex; padding: 6px 8px 22px; color: #fff; }
.app-brand:hover { color: #fff; }
.app-brand .brand-name { color: #fff; }
.app-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.app-nav li { margin: 0; }
.app-nav a { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 8px 10px; color: #D9E0EA; text-decoration: none; border-radius: var(--radius); font-size: 14px; font-weight: 500; }
.app-nav a:hover { background: #22385A; color: #fff; }
.app-nav a[aria-current="page"] { background: #fff; color: var(--ink); }
.app-nav .count { margin-left: auto; }
.app-nav-group { margin: 20px 10px 6px; font-size: 12px; color: #A9B8CA; font-weight: 500; }
.app-sidebar-foot { margin-top: 24px; padding: 12px 10px 0; border-top: 1px solid #2A3E5C; font-size: 12px; color: #A9B8CA; }

.app-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; }
.app-topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 28px; background: #fff; border-bottom: 1px solid var(--line); }
.app-search { flex: 1 1 320px; max-width: 520px; }
.app-user { display: flex; align-items: center; gap: 10px; margin-left: auto; font-size: 14px; }
.app-user .who { line-height: 1.25; }
.app-user .who small { display: block; color: var(--muted); font-size: 12px; }
.app-content { padding: 24px 28px 48px; flex: 1 1 auto; }

.avatar { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: var(--ink-3); color: #fff; font-size: 13px; font-weight: 600; border-radius: var(--radius); flex: none; }
.avatar-sm { width: 24px; height: 24px; font-size: 11px; }
.avatar-red { background: var(--red); }
.avatar-green { background: var(--green); }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 16px; margin-bottom: 20px; }
.page-head h1 { margin: 0; }
.page-head .sub { color: var(--muted); margin: 4px 0 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; }
.filters select, .filters input[type="search"], .filters input[type="date"] { width: auto; min-height: 34px; padding: 5px 9px; font-size: 14px; }
.filters .grow { flex: 1 1 220px; }
.filters + .table-wrap { border-radius: 0 0 var(--radius) var(--radius); }
.bulk-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 12px; background: var(--blue-bg); border: 1px solid var(--blue-line); font-size: 14px; }
.table-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; font-size: 13px; color: var(--muted); }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.kpi-label { font-size: 13px; color: var(--muted); font-weight: 500; margin: 0; }
.kpi-value { font-size: 28px; font-weight: 600; color: var(--ink); line-height: 1.2; margin: 6px 0 0; font-variant-numeric: tabular-nums; }
.kpi-note { font-size: 13px; color: var(--muted); margin: 4px 0 0; }

.kv { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 8px 12px; margin: 0; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--text); min-width: 0; overflow-wrap: anywhere; }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
.detail-side > * + * { margin-top: 20px; }
.detail-main > * + * { margin-top: 20px; }

/* sales stages as square segments */
.stage-bar { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.stage-bar li { flex: 1 1 0; margin: 0; text-align: center; font-size: 13px; font-weight: 500; padding: 8px 6px; background: var(--bg-cool); color: var(--muted); white-space: nowrap; }
.stage-bar li.done { background: #C9D4E2; color: var(--ink); }
.stage-bar li.current { background: var(--ink); color: #fff; }
.stage-bar li.lost { background: var(--red-bg); color: var(--red); }

/* pipeline board */
.kanban { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: flex-start; }
.kanban-col { flex: 1 1 0; min-width: 210px; background: var(--bg-cool); border: 1px solid var(--line); border-radius: var(--radius); }
.kanban-col-head { padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fff; }
.kanban-col-head h2 { font-size: 14px; margin: 0; display: flex; justify-content: space-between; gap: 8px; }
.kanban-col-head .meta { font-size: 12px; color: var(--muted); margin: 2px 0 0; }
.kanban-col-head.won { box-shadow: inset 0 3px 0 var(--green); }
.kanban-col-head.lost { box-shadow: inset 0 3px 0 var(--red); }
.kanban-col-head.cancelled { box-shadow: inset 0 3px 0 var(--gray); }
.kanban-cards { display: flex; flex-direction: column; gap: 8px; padding: 10px; min-height: 120px; }
.deal-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; font-size: 13px; color: var(--text); text-decoration: none; }
.deal-card:hover { border-color: var(--line-2); color: var(--text); }
.deal-card h3 { font-size: 14px; margin: 0 0 2px; color: var(--ink); }
.deal-org { color: var(--muted); margin: 0; }
.deal-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; }
.deal-value { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.deal-next { font-size: 12px; color: var(--muted); margin: 8px 0 0; display: flex; align-items: center; gap: 6px; }
.deal-next.is-late { color: var(--red); }
.deal-card.is-dragging { box-shadow: var(--shadow-float); border-color: var(--ink); }
.drop-target { border: 1px dashed var(--ink); background: #fff; min-height: 56px; padding: 12px; font-size: 13px; color: var(--muted); text-align: center; }

/* activity timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline > li { position: relative; padding: 0 0 18px 28px; margin: 0; }
.timeline > li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 9px; height: 9px; background: var(--ink); }
.timeline > li::after { content: ""; position: absolute; left: 8px; top: 19px; bottom: 2px; width: 1px; background: var(--line); }
.timeline > li:last-child::after { display: none; }
.timeline .t-in::before { background: var(--blue); }
.timeline .t-out::before { background: var(--ink-3); }
.timeline .t-stage::before { background: var(--amber); }
.timeline .t-note::before { background: #fff; border: 1px solid var(--gray); }
.timeline .t-won::before { background: var(--green); }
.timeline .when { font-size: 12px; color: var(--muted); }
.timeline .what { font-size: 14px; margin: 2px 0 0; }
.timeline blockquote { margin: 8px 0 0; padding: 10px 12px; background: var(--bg-alt); border: 1px solid var(--line); font-size: 13px; }

/* quote editor */
.quote-lines input, .quote-lines select { min-height: 34px; padding: 5px 8px; font-size: 14px; }
.quote-lines td { vertical-align: middle; }
.totals { width: 340px; max-width: 100%; margin-left: auto; border-collapse: collapse; font-size: 14px; }
.totals td { padding: 6px 0; }
.totals td.num { padding-left: 24px; }
.totals .grand td { border-top: 2px solid var(--ink); font-weight: 600; font-size: 16px; padding-top: 10px; color: var(--ink); }

/* capacity meter */
.meter { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.meter-track { flex: 1 1 auto; height: 8px; background: #DDE3EA; min-width: 72px; }
.meter-fill { height: 100%; background: var(--ink); }
.meter-fill.is-high { background: var(--red); }

/* shared mailbox */
.mail { display: grid; grid-template-columns: 210px 370px minmax(0, 1fr); border: 1px solid var(--line); background: #fff; border-radius: var(--radius); }
.mail-folders { border-right: 1px solid var(--line); padding: 12px 8px; }
.mail-folders a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 10px; text-decoration: none; color: var(--text); border-radius: var(--radius); font-size: 14px; }
.mail-folders a[aria-current="page"] { background: var(--bg-cool); color: var(--ink); font-weight: 600; }
.mail-folders h2 { font-size: 12px; color: var(--muted); font-weight: 500; margin: 16px 10px 6px; }
.mail-list { border-right: 1px solid var(--line); min-width: 0; }
.mail-item { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.mail-item:hover { background: #F7F9FB; color: var(--text); }
.mail-item.is-active { background: var(--blue-bg); }
.mail-item .mail-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.mail-item .mail-from { font-weight: 500; color: var(--ink); }
.mail-item.is-unread .mail-from { font-weight: 700; }
.mail-item .mail-subject { font-size: 14px; margin: 2px 0; }
.mail-item .mail-snippet { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-read { padding: 20px 24px; min-width: 0; }
.message { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; }
.message-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #FAFBFC; font-size: 13px; }
.message-body { padding: 14px; font-size: 14px; }
.composer { border: 1px solid var(--line-2); border-radius: var(--radius); }
.composer-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--line); background: #FAFBFC; }
.composer textarea { border: 0; min-height: 140px; }
.attachment { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 6px 10px; font-size: 13px; background: #fff; }

/* calendar month view */
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-left: 1px solid var(--line); border-top: 1px solid var(--line); background: #fff; }
.calendar .dow { font-size: 12px; color: var(--muted); padding: 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #FAFBFC; font-weight: 600; }
.calendar .day { min-height: 108px; padding: 6px 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12px; min-width: 0; }
.calendar .day .date { font-weight: 600; color: var(--text); font-size: 13px; }
.calendar .day.is-out { background: #FAFBFC; }
.calendar .day.is-out .date { color: var(--muted); font-weight: 400; }
.calendar .day.is-today .date { display: inline-block; background: var(--ink); color: #fff; padding: 0 5px; }
.cal-event { display: block; margin-top: 6px; padding: 4px 6px; border: 1px solid var(--blue-line); background: var(--blue-bg); color: var(--blue); font-size: 12px; line-height: 1.35; text-decoration: none; border-radius: var(--radius); overflow-wrap: anywhere; }
.cal-event:hover { color: var(--ink); border-color: var(--blue); }
.cal-event.is-private { border-color: var(--amber-line); background: var(--amber-bg); color: var(--amber); }
.cal-event.is-draft { border-style: dashed; border-color: var(--line-2); background: #fff; color: var(--muted); }

/* dialog shown over a dimmed area (static mockup of a modal) */
.overlay-demo { background: #8F9BAA; padding: 48px 24px; display: flex; justify-content: center; border: 1px solid var(--line); }
.dialog { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-float); width: 100%; max-width: 600px; }
.dialog-head { padding: 14px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dialog-head h2 { margin: 0; }
.dialog-body { padding: 20px; }
.dialog-foot { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; background: #FAFBFC; }

/* drag handle and sortable rows (course modules) */
.sortable { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.sortable > li { display: grid; grid-template-columns: 28px 120px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px; border-bottom: 1px solid var(--line); margin: 0; }
.sortable > li:last-child { border-bottom: 0; }
.sortable > li.is-break { background: var(--bg-alt); }
.handle { color: var(--muted); cursor: grab; padding-top: 6px; }

/* login */
.login-wrap { min-height: 100vh; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; align-content: center; justify-content: center; padding: 40px 16px; background: var(--bg-alt); }
.login-box { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--ink); padding: 32px; }

/* ============================================================ DOCUMENTS */

.doc-stage { background: var(--bg-cool); padding: 40px 24px; overflow-x: auto; }
.doc-a4 { width: 794px; min-height: 1123px; margin: 0 auto 32px; background: #fff; border: 1px solid var(--line); padding: 60px 68px; font-size: 13px; line-height: 1.5; color: var(--text); position: relative; }
.doc-a4 h1 { font-family: var(--serif); font-weight: 600; font-size: 30px; }
.doc-a4 h2 { font-family: var(--serif); font-weight: 600; font-size: 18px; margin-top: 24px; }
.doc-a4 h3 { font-size: 14px; }
.doc-a4 .table { font-size: 12.5px; }
.doc-a4 .table th, .doc-a4 .table td { padding: 7px 8px; }
.doc-a4 .facts { font-size: 12.5px; }
.doc-a4 .facts th, .doc-a4 .facts td { padding: 7px 8px 7px 0; }
.doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-bottom: 20px; border-bottom: 2px solid var(--ink); margin-bottom: 28px; }
.doc-foot { position: absolute; left: 68px; right: 68px; bottom: 28px; border-top: 1px solid var(--line); padding-top: 10px; font-size: 10.5px; color: var(--muted); display: flex; justify-content: space-between; gap: 16px; }

.email-stage { background: var(--bg-cool); padding: 32px 16px; }
.email-client { max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--line-2); }
.email-meta { font-size: 13px; color: var(--muted); padding: 14px 24px; border-bottom: 1px solid var(--line); }
.email-meta p { margin: 2px 0; }
.email-meta strong { color: var(--text); }
.email { max-width: 640px; margin: 0 auto; padding: 32px 32px 40px; font-size: 15px; line-height: 1.6; color: var(--text); }
.email h1 { font-family: var(--serif); font-weight: 600; font-size: 24px; }
.email .email-footer { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

/* ============================================================ RESPONSIVE */

@media (max-width: 1100px) {
  .detail { grid-template-columns: minmax(0, 1fr); }
  .mail { grid-template-columns: 180px minmax(0, 1fr); }
  .mail-read { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .container { padding: 0 20px; }
  .site-nav, .header-cta { display: none; }
  .menu-button { display: inline-flex; margin-left: auto; }
  .site-header .container { min-height: 68px; }
  .hero { padding: 48px 0 56px; }
  .hero .container, .split, .layout-aside, .grid-main-side, .grid-side-main { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  :where(.site) h1 { font-size: 34px; }
  .page-header h1 { font-size: 32px; }
  :where(.site) h2 { font-size: 26px; }
  .cta-band h2 { font-size: 24px; }
  .lead { font-size: 18px; }
  .section { padding: 48px 0; }
  .course-item { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .course-thumb { max-width: 320px; }
  .course-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .app-content { padding: 20px 16px 40px; }
  .app-topbar { padding: 10px 16px; }
}

@media (max-width: 640px) {
  .form-grid, .steps, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .programme > li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .facts th { width: 42%; }
  .actions .btn { width: 100%; }
  .kpis { grid-template-columns: minmax(0, 1fr); }
  .mail { grid-template-columns: minmax(0, 1fr); }
  .mail-folders, .mail-list { border-right: 0; border-bottom: 1px solid var(--line); }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .sortable > li { grid-template-columns: 24px minmax(0, 1fr); }
  .calendar .day { min-height: 72px; padding: 4px; }
}


/* ============================================================ FIXES AFTER THE FIRST BUILD
   Placed last on purpose: these rules settle cascade conflicts found by the page builders. */

figure { margin: 0; }
.table-wrap { position: relative; }
.table tbody th { text-align: left; font-weight: 500; }
.crm .table tbody th a { text-decoration: none; }
.contact-list li:last-child { border-bottom: 0; }
.cluster .check { margin-bottom: 0; }
legend.field-label { font-size: 15px; font-weight: 500; color: var(--text); margin-bottom: 8px; }
.crm legend { font-size: 13px; font-weight: 600; color: var(--text); }
.photo-placeholder.square { aspect-ratio: 1 / 1; }
.kpi-value { font-variant-numeric: normal; }
input.mono, .crm input.mono { font-family: var(--mono); }
.doc-a4 .table thead th { font-size: 12px; }
.status-planned::before { background: var(--blue-bg); border: 1px solid var(--blue); }
.status-tentative::before { background: var(--amber-bg); border: 1px solid var(--amber); }
.status-archived::before { background: var(--gray-bg); border: 1px solid var(--line-3); }
.status-qualifying::before { background: var(--blue); }
.filters.is-standalone { border-bottom: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.filters .grow input[type="search"], .filters input[type="search"].grow { width: 100%; }
.calendar-scroll { overflow-x: auto; }
.calendar-scroll .calendar { min-width: 700px; }

/* icon-only buttons and search fields in the CRM */
.btn.btn-icon, .crm .btn.btn-icon { padding: 0; width: 44px; }
.btn.btn-icon.btn-sm, .crm .btn.btn-icon.btn-sm, .crm .btn.btn-icon { width: 36px; }
.input-icon input, .input-icon input[type="search"], .crm .input-icon input,
.crm .input-icon input[type="search"], .filters .input-icon input[type="search"] { padding-left: 38px; }

/* CRM components that a generic .crm rule overrode */
.crm .panel.panel-flush { padding: 0; }
.crm .quote-lines input, .crm .quote-lines select { min-height: 34px; padding: 5px 8px; font-size: 14px; }
.totals th { text-align: left; font-weight: 400; padding: 6px 0; }
.totals .grand th { border-top: 2px solid var(--ink); font-weight: 600; font-size: 16px; padding-top: 10px; color: var(--ink); }

/* margin utilities repeated last so they win over components of equal specificity */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

@media (max-width: 800px) {
  .app { align-content: flex-start; }
}

@media (max-width: 640px) {
  .sortable > li { grid-template-columns: 24px minmax(0, 1fr) auto; }
  .sortable > li > :nth-child(2) { grid-column: 2 / 4; }
  .sortable > li > :nth-child(3) { grid-column: 2 / 3; }
  .stage-bar { flex-wrap: wrap; }
  .stage-bar li { flex: 1 1 40%; }
  .segmented { display: flex; flex-wrap: wrap; }
  .segmented > * { flex: 1 1 auto; justify-content: center; border-bottom: 1px solid var(--line-3); }
}
