/* Archivo (SIL Open Font License, see /fonts/OFL-Archivo.txt), self-hosted:
   no third-party requests, so no visitor data goes to a font CDN (GDPR). */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/fonts/archivo-latin-standard-normal.woff2) format("woff2-variations");
  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: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/fonts/archivo-latin-ext-standard-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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;
}

/* ==========================================================================
   Tokens — printed circuit board: solder mask, ENIG gold, silkscreen, drawing sheet
   ========================================================================== */
:root {
  --mask: #0f4a33;          /* solder mask */
  --mask-2: #1f6b4a;        /* mask highlight / hover */
  --mask-deep: #0a3826;     /* footer */
  --trace: #3e8f65;         /* copper seen through the mask */
  --gold: #c8a04a;          /* ENIG pads — accents and focus only */
  --gold-ink: #6d5418;      /* gold readable on light backgrounds */
  --silk: #eef3ee;          /* silkscreen on mask */
  --sheet: #f4f6f2;         /* drawing sheet */
  --paper: #ffffff;
  --ink: #18211d;
  --muted: #5b6862;
  --rule: #cdd5d0;
  --danger: #a8321f;
  --ok: #1f6b4a;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wide: 118%;             /* font-stretch for display type */
  --radius: 4px;
  --wrap: 1160px;
  --gutter: 24px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--sheet);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-underline-offset: 0.18em; }

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

h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.12; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.75rem); font-stretch: var(--wide); line-height: 1.04; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-stretch: 112%; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.lead { font-size: 1.2rem; line-height: 1.55; max-width: 62ch; color: var(--muted); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* ==========================================================================
   Header & navigation
   ========================================================================== */
.site-header { background: var(--mask); color: var(--silk); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }

.wordmark { display: inline-flex; align-items: center; text-decoration: none; padding: 6px 0; }
.wordmark img { display: block; height: 50px; width: auto; }
@media (max-width: 720px) { .wordmark img { height: 40px; } }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { text-decoration: none; padding: 8px 12px; border-radius: var(--radius); }
.main-nav a:hover { background: var(--mask-2); }
.main-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 0.4em; }
.main-nav .nav-cta { border: 1px solid var(--gold); margin-left: 8px; }

.nav-toggle { display: none; font: inherit; color: inherit; background: none; border: 1px solid rgba(238, 243, 238, 0.4); border-radius: var(--radius); padding: 6px 12px; cursor: pointer; }

@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .js .nav-toggle { display: block; }
  .js .main-nav { display: none; }
  .header-row { flex-wrap: wrap; }
  .js .nav-open .main-nav { display: flex; flex-direction: column; align-items: stretch; width: 100%; padding-bottom: 12px; }
  .main-nav .nav-cta { margin-left: 0; }
}

/* ==========================================================================
   Buttons & links
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 10px 20px;
  border-radius: var(--radius); border: 1px solid transparent;
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #d8b35e; }
.btn-ghost { border-color: rgba(238, 243, 238, 0.55); color: var(--silk); }
.btn-ghost:hover { background: var(--mask-2); }
.btn-solid { background: var(--mask); color: var(--silk); }
.btn-solid:hover { background: var(--mask-2); }
.btn-line { border-color: var(--rule); background: var(--paper); color: var(--ink); }
.btn-line:hover { border-color: var(--muted); }
.btn-danger { border-color: #e2b9b0; background: var(--paper); color: var(--danger); }
.btn-danger:hover { background: #fbefec; }
.btn-small { min-height: 36px; padding: 6px 12px; font-size: 0.95rem; }

.text-link { color: var(--mask); font-weight: 650; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ==========================================================================
   Hero — the board
   ========================================================================== */
.board { background: var(--mask); color: var(--silk); padding: 56px 0 72px; overflow: hidden; }
.board-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.board h1 { color: #fff; max-width: 16ch; }
.board .lead { color: rgba(238, 243, 238, 0.82); }

.traces { width: 100%; height: auto; }
.traces .outline { fill: none; stroke: rgba(238, 243, 238, 0.35); stroke-width: 1.5; }
.traces .hole { fill: var(--mask-deep); stroke: var(--gold); stroke-width: 3; }
.traces .trace { fill: none; stroke: var(--trace); stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; }
.traces .pad, .traces .pin { fill: var(--gold); }
.traces .via { fill: var(--mask); stroke: var(--gold); stroke-width: 2.5; }
.traces .connector { fill: none; stroke: var(--silk); stroke-width: 1.5; }
.traces .silk { fill: var(--silk); font-family: var(--font); font-size: 17px; font-weight: 600; font-stretch: 112%; }
.traces .silk-strong { font-size: 18px; font-weight: 700; }
.traces .silk-small { font-size: 11px; opacity: 0.6; letter-spacing: 0.04em; }

/* The page's one orchestrated moment: nets route themselves to production. */
@media (prefers-reduced-motion: no-preference) {
  .traces .trace { stroke-dasharray: 1; stroke-dashoffset: 1; animation: route 1.1s cubic-bezier(.5, 0, .2, 1) forwards; animation-delay: 0.25s; }
  .traces .net:nth-of-type(2) .trace { animation-delay: 0.39s; }
  .traces .net:nth-of-type(3) .trace { animation-delay: 0.53s; }
  .traces .net:nth-of-type(4) .trace { animation-delay: 0.67s; }
  .traces .net:nth-of-type(5) .trace { animation-delay: 0.81s; }
  .traces .pin { opacity: 0; animation: lit 0.3s ease forwards; animation-delay: 1.6s; }
  @keyframes route { to { stroke-dashoffset: 0; } }
  @keyframes lit { to { opacity: 1; } }
}

@media (max-width: 900px) {
  .board { padding: 40px 0 48px; }
  .board-grid { grid-template-columns: 1fr; gap: 32px; }
  .traces { max-width: 520px; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.band { padding: 72px 0; }
.band-tight { padding: 40px 0 72px; }
.band-ruled { border-top: 1px solid var(--rule); background: var(--paper); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }

.page-head { padding: 56px 0 8px; }
.page-head h1 { max-width: 20ch; }
.back-link { display: inline-block; margin-bottom: 20px; color: var(--muted); }
.back-link::before { content: "‹ "; }
.error-code { color: var(--muted); font-weight: 600; }

/* Three modes: plain columns separated like zones on a drawing */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 32px; }
.modes > div { padding: 4px 32px 0; border-left: 1px solid var(--rule); }
.modes > div:first-child { padding-left: 0; border-left: 0; }
.modes h3 { font-size: 1.35rem; font-stretch: 112%; }
.modes p { color: var(--muted); max-width: 40ch; }

@media (max-width: 820px) {
  .modes { grid-template-columns: 1fr; gap: 28px; }
  .modes > div, .modes > div:first-child { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--rule); }
}

/* Domains spec table */
.spec { width: 100%; border-collapse: collapse; margin-top: 24px; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 18px 20px 18px 0; border-bottom: 1px solid var(--rule); }
.spec thead th { font-size: 0.9rem; font-weight: 600; color: var(--muted); padding-top: 0; }
.spec tbody th { font-stretch: 112%; font-size: 1.1rem; white-space: nowrap; width: 16%; }
.spec td:last-child { color: var(--muted); width: 30%; }

@media (max-width: 760px) {
  .spec thead { display: none; }
  .spec tr { display: block; padding: 16px 0; border-bottom: 1px solid var(--rule); }
  .spec th, .spec td { display: block; width: auto !important; padding: 0 0 6px; border: 0; white-space: normal; }
}

/* Project process: a real sequence, drawn as one trace with four pads */
.process { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.process li { counter-increment: step; position: relative; padding: 36px 28px 0 0; border-top: 3px solid var(--trace); }
.process li::before {
  content: counter(step);
  position: absolute; top: -17px; left: 0;
  width: 31px; height: 31px; border-radius: 50%;
  background: var(--gold); color: var(--ink);
  display: grid; place-items: center;
  font-weight: 700; font-size: 0.95rem;
}
.process p { color: var(--muted); }

@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; }
  .process li { border-top: 0; border-left: 3px solid var(--trace); padding: 0 0 28px 32px; }
  .process li::before { top: -2px; left: -17px; }
}

/* Realisation tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px 32px; }
.tile-link { display: block; text-decoration: none; }
.tile-link:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--gold); }
.tile-media { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--mask); }
.tile-media img { width: 100%; height: 100%; object-fit: cover; }
.tile-placeholder { width: 100%; height: 100%; }
.tile-placeholder path { fill: none; stroke: var(--trace); stroke-width: 3; }
.tile-placeholder circle { fill: var(--gold); }
.tile-media.cat-embedded { background: #1d4239; }
.tile-media.cat-software { background: #173a45; }
.tile-media.cat-ai { background: #2d3448; }
.tile-media.cat-hardware { background: #3d3a28; }
.tile-media.cat-production { background: #26382b; }
.tile-body { padding-top: 16px; }
.tile-body h3 { font-size: 1.25rem; margin-bottom: 6px; }
.tile-body p { color: var(--muted); margin: 0; }
.tile-meta { display: flex; gap: 12px; align-items: center; font-size: 0.92rem; margin-bottom: 8px !important; }
.cat-tag { display: inline-block; padding: 1px 9px; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink); background: var(--paper); font-size: 0.88rem; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filters a { text-decoration: none; padding: 6px 14px; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); }
.filters a span { color: var(--muted); margin-left: 4px; }
.filters a:hover { border-color: var(--muted); }
.filters a[aria-current="page"] { background: var(--mask); border-color: var(--mask); color: var(--silk); }
.filters a[aria-current="page"] span { color: rgba(238, 243, 238, 0.7); }

.empty { padding: 48px 0; max-width: 56ch; }
.empty p { color: var(--muted); }

/* Case study */
.case { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.case-figure { margin: 0 0 32px; }
.case-figure img { border-radius: var(--radius); width: 100%; }
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.case-facts { position: sticky; top: 24px; border-top: 3px solid var(--mask); padding-top: 16px; }
.case-facts dl { margin: 0 0 24px; }
.case-facts dl > div { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.case-facts dt { font-size: 0.88rem; color: var(--muted); }
.case-facts dd { margin: 2px 0 0; }
.tags { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 0.9rem; padding: 1px 8px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); }
.draft-flag { display: inline-block; background: #fff4d6; border: 1px solid var(--gold); padding: 4px 10px; border-radius: var(--radius); font-size: 0.95rem; }

@media (max-width: 860px) {
  .case { grid-template-columns: 1fr; gap: 32px; }
  .case-facts { position: static; }
}

/* CTA band */
.cta-band { background: var(--mask); color: var(--silk); padding: 56px 0; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(238, 243, 238, 0.82); margin: 0; max-width: 54ch; }

/* ==========================================================================
   Forms
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 64px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.form { display: grid; gap: 20px; }
.form > .btn { justify-self: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; align-content: start; }
.field label, .form legend { font-weight: 600; }
.optional { font-weight: 400; color: var(--muted); font-size: 0.92rem; margin-left: 4px; }
.hint { font-size: 0.92rem; color: var(--muted); }

input[type=text], input:not([type]), input[type=email], input[type=tel], input[type=password],
input[type=number], input[type=url], select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--paper); border: 1px solid #b9c3bd; border-radius: var(--radius);
  padding: 10px 12px; min-height: 46px;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--mask); }
.input-validation-error { border-color: var(--danger) !important; }
.field-error { color: var(--danger); font-size: 0.95rem; }
.field-error:empty { display: none; }
.form-errors ul { margin: 0; padding: 12px 16px 12px 32px; background: #fbefec; border: 1px solid #e2b9b0; border-radius: var(--radius); color: var(--danger); }
.form-errors.validation-summary-valid { display: none; }

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.topic-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-pick legend { margin-bottom: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 8px 16px; border: 1px solid #b9c3bd; border-radius: 999px; background: var(--paper); cursor: pointer; }
.chip input:checked + span { background: var(--mask); border-color: var(--mask); color: var(--silk); }
.chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.checkbox { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.checkbox input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--mask); }

.contact-aside { border-top: 3px solid var(--mask); padding-top: 16px; }
.contact-aside h2 { font-size: 1.3rem; }
.contact-aside p { color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 0 0 20px; }
.checklist li { padding: 8px 0 8px 26px; border-bottom: 1px solid var(--rule); position: relative; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.direct > div { display: flex; gap: 12px; padding: 4px 0; }
.direct dt { color: var(--muted); min-width: 60px; }
.direct dd { margin: 0; }

.notice { padding: 24px; border-radius: var(--radius); border: 1px solid var(--rule); background: var(--paper); }
.notice-ok { border-left: 4px solid var(--ok); }
.notice-err { border-left: 4px solid var(--danger); }

/* ==========================================================================
   Footer — drawn as an engineering title block
   ========================================================================== */
.site-footer { background: var(--mask-deep); color: var(--silk); padding: 48px 0; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-end; }
.footer-logo { display: block; height: 44px; width: auto; margin-bottom: 14px; }
.footer-tagline { color: rgba(238, 243, 238, 0.72); max-width: 44ch; margin: 0; }
.title-block { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(110px, auto); margin: 0; border: 1px solid rgba(238, 243, 238, 0.3); }
.title-block > div { padding: 8px 14px; border-right: 1px solid rgba(238, 243, 238, 0.3); }
.title-block > div:last-child { border-right: 0; }
.title-block dt { font-size: 0.78rem; color: rgba(238, 243, 238, 0.6); }
.title-block dd { margin: 0; font-size: 0.95rem; }
@media (max-width: 640px) {
  .title-block { grid-auto-flow: row; grid-template-columns: 1fr 1fr; width: 100%; }
  .title-block > div { border-bottom: 1px solid rgba(238, 243, 238, 0.3); }
}

/* ==========================================================================
   Admin
   ========================================================================== */
.admin { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; background: var(--sheet); }
.admin-side { background: var(--mask); color: var(--silk); padding: 20px 16px; display: flex; flex-direction: column; gap: 24px; }
.admin-side .wordmark img { height: 34px; }
.admin-nav { display: grid; gap: 2px; }
.admin-nav a { text-decoration: none; padding: 9px 12px; border-radius: var(--radius); display: flex; justify-content: space-between; align-items: center; }
.admin-nav a:hover { background: var(--mask-2); }
.admin-nav a[aria-current="page"] { background: var(--mask-2); box-shadow: inset 3px 0 0 var(--gold); }
.badge { background: var(--gold); color: var(--ink); border-radius: 999px; padding: 0 8px; font-size: 0.82rem; font-weight: 700; }
.admin-side-foot { margin-top: auto; display: grid; gap: 8px; font-size: 0.95rem; }
.admin-side-foot a, .admin-side-foot button { color: rgba(238, 243, 238, 0.8); background: none; border: 0; padding: 0; font: inherit; text-align: left; cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; }
.admin-main { padding: 32px 40px 64px; max-width: 1100px; width: 100%; }
.admin-main h1 { font-size: 1.9rem; font-stretch: 112%; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.admin-head h1 { margin: 0; }
.panel { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.panel h2 { font-size: 1.2rem; }
.panel > :last-child { margin-bottom: 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px 20px; text-decoration: none; }
.stat strong { display: block; font-size: 2rem; font-stretch: 112%; line-height: 1.1; }
.stat span { color: var(--muted); }
a.stat:hover { border-color: var(--muted); }

.table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.table thead th { background: var(--sheet); font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.table tr:last-child td { border-bottom: 0; }
.table .unread td { font-weight: 650; }
.table .unread td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.table a { text-decoration: none; }
.table a:hover { text-decoration: underline; }
.table .num { text-align: right; white-space: nowrap; }
.table .nowrap { white-space: nowrap; }
.muted { color: var(--muted); }
.thumb { width: 64px; height: 40px; object-fit: cover; border-radius: 3px; background: var(--mask); }
.thumb-empty { display: inline-block; width: 64px; height: 40px; border-radius: 3px; background: var(--mask); }

.status { display: inline-block; font-size: 0.85rem; padding: 1px 9px; border-radius: 999px; border: 1px solid var(--rule); white-space: nowrap; }
.status-pub { background: #e3f1e9; border-color: #b9dcc8; color: var(--ok); }
.status-draft { background: #f3f3f0; color: var(--muted); }
.status-err { background: #fbefec; border-color: #e2b9b0; color: var(--danger); }
.status-feat { background: #fff4d6; border-color: #ecd18c; color: var(--gold-ink); }

.row-actions { display: flex; gap: 8px; justify-content: flex-end; }
.row-actions form { margin: 0; }

.flash { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 20px; border: 1px solid; }
.flash-ok { background: #e3f1e9; border-color: #b9dcc8; color: var(--ok); }
.flash-err { background: #fbefec; border-color: #e2b9b0; color: var(--danger); }

.msg-meta { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0 0 20px; }
.msg-meta dt { color: var(--muted); }
.msg-meta dd { margin: 0; }
.msg-body { white-space: pre-wrap; overflow-wrap: anywhere; border-top: 1px solid var(--rule); padding-top: 20px; max-width: 75ch; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.cover-preview { max-width: 320px; border-radius: var(--radius); margin-bottom: 8px; }

.login-page { min-height: 100vh; display: grid; place-items: center; background: var(--mask); padding: 24px; }
.login-card { width: 100%; max-width: 400px; background: var(--paper); border-radius: 6px; padding: 32px; }
.login-card h1 { font-size: 1.6rem; }
.login-logo { display: block; height: 44px; width: auto; margin-bottom: 28px; }

@media (max-width: 860px) {
  .admin { grid-template-columns: 1fr; }
  .admin-side { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; }
  .admin-nav { display: flex; flex-wrap: wrap; }
  .admin-side-foot { margin-top: 0; display: flex; gap: 16px; }
  .admin-main { padding: 24px 16px 48px; }
  .table-wrap { overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
.search-input { max-width: 280px; min-height: 36px !important; padding: 6px 12px !important; border-radius: 999px !important; }
.table .sub { font-weight: 400; color: var(--muted); font-size: 0.92rem; }
