/* ============================================================
   Hip Connect — owner portal design system
   Brand: hipcampers.com.au public identity ("Stay Wild, Sleep Easy")
   Signature: the unit plate — your camper's compliance plate, on screen.
   ============================================================ */

@font-face {
  font-family: 'Outfit';
  src: url('/static/fonts/outfit-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/static/fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --orange: #D4712A;
  --orange-dark: #B85E1F;
  --orange-light: #E8923F;
  --ink: #1A1A1A;
  --ink-2: #2D2D2D;
  --plate: #26241F;
  --grey: #6B7280;
  --grey-light: #9CA3AF;
  --line: #E6E1D8;
  --surface: #FFFFFF;
  --cream: #FAF8F5;
  --sand: #F5F3F0;
  --green: #4A7C59;
  --amber: #C98A1B;
  --red: #B4432E;
  --font-head: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(26, 22, 15, 0.07);
  --shadow-lg: 0 12px 48px rgba(26, 22, 15, 0.12);
  --speed: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --maxw: 1080px;
  --tabbar-h: 62px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  min-height: 100vh;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; font-weight: 600; }

a { color: var(--orange-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- app chrome ---------- */

.topbar {
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 40;
}
.topbar-brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.topbar-brand:hover { text-decoration: none; }
.topbar-logo { height: 34px; width: auto; }
.topbar-name {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 15px;
}
.topnav { display: flex; gap: 4px; margin-left: 12px; }
.topnav a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background var(--speed), color var(--speed);
}
.topnav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); text-decoration: none; }
.topnav a.is-active { color: #fff; background: rgba(212, 113, 42, 0.28); }
.topbar-out { margin-left: auto; }

.btn-ghost-dark {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
  font: 500 13px var(--font-body);
  padding: 7px 14px;
  border-radius: 99px;
  cursor: pointer;
  transition: border-color var(--speed), color var(--speed);
}
.btn-ghost-dark:hover { border-color: #fff; color: #fff; }

.tabbar { display: none; }

.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 20px 64px;
}

@media (max-width: 720px) {
  .topnav { display: none; }
  .topbar { justify-content: center; height: 54px; position: relative; }
  .topbar-out { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); margin-left: 0; }
  .btn-ghost-dark { font-size: 12px; padding: 6px 11px; }
  .page { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 28px); }
  .tabbar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--ink);
    z-index: 40;
  }
  .tabbar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.02em;
  }
  .tabbar a:hover { text-decoration: none; }
  .tabbar svg { width: 23px; height: 23px; }
  .tabbar a.is-active { color: var(--orange-light); }
}

/* ---------- page furniture ---------- */

.page-head { margin-bottom: 22px; }
.page-head h1 { font-size: 26px; }
.page-head .sub { color: var(--grey); font-size: 14.5px; margin-top: 4px; }

.eyebrow {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange-dark);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }

.btn {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font: 600 15px var(--font-head);
  letter-spacing: 0.01em;
  padding: 12px 22px;
  border: none;
  border-radius: 99px;
  cursor: pointer;
  transition: background var(--speed), transform var(--speed);
}
.btn:hover { background: var(--orange-dark); text-decoration: none; transform: translateY(-1px); }
.btn:disabled { opacity: 0.55; cursor: default; transform: none; }
.btn-quiet {
  display: inline-block;
  background: var(--sand);
  color: var(--ink);
  font: 500 14px var(--font-body);
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 99px;
  cursor: pointer;
  transition: border-color var(--speed);
}
.btn-quiet:hover { border-color: var(--grey-light); text-decoration: none; }
.btn-danger-quiet { border-color: rgba(180, 67, 46, .4); color: var(--red); }

/* ---------- login ---------- */

.login-body { background: var(--ink); }
.login-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-card {
  width: 100%;
  max-width: 400px;
  text-align: center;
  color: #fff;
}
.login-logo { height: 84px; margin-bottom: 18px; }
.login-card h1 { font-size: 26px; margin-bottom: 6px; }
.login-card .tag { color: var(--orange-light); font-family: var(--font-head); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 30px; }
.login-card p { color: rgba(255, 255, 255, 0.7); font-size: 14.5px; }
.login-form { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.login-form input[type="email"], .login-form input[type="text"] {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-sm);
  color: #fff;
  font: 400 16px var(--font-body);
  padding: 13px 16px;
  text-align: center;
}
.login-form input[type="email"]::placeholder, .login-form input[type="text"]::placeholder { color: rgba(255, 255, 255, 0.4); }
.login-form input[type="email"]:focus, .login-form input[type="text"]:focus { border-color: var(--orange); outline: none; }
.login-note { margin-top: 26px; font-size: 13px; color: rgba(255, 255, 255, 0.45); }
.login-note a { color: rgba(255, 255, 255, 0.7); }
.login-sent {
  background: rgba(74, 124, 89, 0.18);
  border: 1px solid rgba(74, 124, 89, 0.55);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 24px;
  font-size: 14.5px;
  color: #DCEDE2;
}
.login-error {
  background: rgba(180, 67, 46, 0.16);
  border: 1px solid rgba(180, 67, 46, 0.5);
  border-radius: var(--radius);
  padding: 14px;
  margin-top: 20px;
  font-size: 14px;
  color: #F3D9D3;
}

/* ---------- the unit plate (signature) ---------- */

.plate {
  position: relative;
  background:
    radial-gradient(circle at 12px 12px, #4a463f 2.2px, transparent 2.6px),
    radial-gradient(circle at calc(100% - 12px) 12px, #4a463f 2.2px, transparent 2.6px),
    radial-gradient(circle at 12px calc(100% - 12px), #4a463f 2.2px, transparent 2.6px),
    radial-gradient(circle at calc(100% - 12px) calc(100% - 12px), #4a463f 2.2px, transparent 2.6px),
    linear-gradient(160deg, #2f2c26 0%, var(--plate) 55%, #211f1a 100%);
  color: #fff;
  border-radius: var(--radius);
  border: 1px solid #3c3830;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 26px 26px 22px;
  overflow: hidden;
  animation: plate-rise 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
@keyframes plate-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .plate { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
.plate::after {
  /* brushed sheen */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.045) 50%, transparent 60%);
  pointer-events: none;
}
.plate-model {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.plate-sub {
  color: var(--orange-light);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 2px;
}
.plate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px 20px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.plate-field .k {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.plate-field .v {
  font-family: var(--font-mono);
  font-size: 14.5px;
  color: #F3EFE8;
  margin-top: 2px;
  word-break: break-word;
}
.plate-photo {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  max-height: 300px;
  object-fit: cover;
  display: block;
}
.plate-arriving {
  margin-top: 16px;
  background: rgba(212, 113, 42, 0.14);
  border: 1px solid rgba(212, 113, 42, 0.45);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  color: #F6DFC9;
}

/* ---------- warranty gauges ---------- */

.gauges { margin-top: 16px; display: grid; gap: 14px; }
.gauge-row { display: grid; gap: 5px; }
.gauge-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.gauge-name { font-weight: 500; font-size: 14.5px; }
.gauge-left { font-family: var(--font-mono); font-size: 13px; color: var(--grey); }
.gauge-track {
  height: 10px;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 99px;
  overflow: hidden;
}
.gauge-fill { height: 100%; border-radius: 99px; background: var(--green); transition: width 0.6s cubic-bezier(0.2, 0.7, 0.3, 1); }
.gauge-fill.is-mid { background: var(--amber); }
.gauge-fill.is-out { background: var(--grey-light); }
.gauge-dates { font-size: 12px; color: var(--grey-light); }
.gauge-flag { font-size: 11.5px; color: var(--orange-dark); }

/* ---------- quick actions / cards ---------- */

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.quick {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ink);
  transition: transform var(--speed), box-shadow var(--speed), border-color var(--speed);
}
.quick:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--grey-light); text-decoration: none; }
.quick svg { width: 24px; height: 24px; color: var(--orange-dark); }
.quick b { font-family: var(--font-head); font-weight: 600; font-size: 15px; }
.quick span { font-size: 12.5px; color: var(--grey); }

.section { margin-top: 34px; }
.section > h2 { font-size: 18px; margin-bottom: 12px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head h2 { font-size: 18px; }
.section-head a { font-size: 13.5px; }

/* ---------- status pills ---------- */

.pill {
  display: inline-block;
  font: 600 11.5px var(--font-head);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
  white-space: nowrap;
}
.pill-received { background: var(--sand); color: var(--grey); border: 1px solid var(--line); }
.pill-in_review { background: rgba(212, 113, 42, 0.13); color: #8f4512; }
.pill-waiting_owner { background: rgba(201, 138, 27, 0.14); color: #7d5407; border: 1px dashed rgba(201, 138, 27, 0.6); }
.pill-fix_in_progress { background: rgba(74, 124, 89, 0.13); color: var(--green); }
.pill-resolved { background: var(--green); color: #fff; }
.pill-closed { background: var(--sand); color: var(--grey-light); border: 1px solid var(--line); }

.pill-safety { background: rgba(180, 67, 46, 0.12); color: var(--red); }
.pill-functional { background: rgba(201, 138, 27, 0.13); color: #7d5407; }
.pill-cosmetic { background: var(--sand); color: var(--grey); border: 1px solid var(--line); }
.pill-draft { background: rgba(201, 138, 27, 0.13); color: var(--amber); }

/* ---------- lists (cases, docs, bulletins) ---------- */

.rowlist { display: grid; gap: 10px; }
.rowitem {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  transition: border-color var(--speed), box-shadow var(--speed);
}
a.rowitem:hover { border-color: var(--grey-light); box-shadow: var(--shadow); text-decoration: none; }
.rowitem-main { flex: 1 1 220px; min-width: 0; }
.rowitem-main b { font-size: 15px; font-weight: 600; display: block; }
.rowitem-main .meta { font-size: 12.5px; color: var(--grey); margin-top: 2px; }
.rowitem .ref { font-family: var(--font-mono); font-size: 12.5px; color: var(--grey); }
.rowitem > .mono { flex: 0 1 auto; font-size: 12px; color: var(--grey); text-align: right; max-width: 40%; }
img { max-width: 100%; }

.empty {
  text-align: center;
  padding: 44px 20px;
  color: var(--grey);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.empty b { display: block; font-family: var(--font-head); font-size: 17px; color: var(--ink); margin-bottom: 6px; }

/* ---------- guides ---------- */

.search-bar { margin-bottom: 22px; }
.search-bar input {
  width: 100%;
  font: 400 15px var(--font-body);
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--surface);
}
.search-bar input:focus { border-color: var(--orange); outline: none; }

.guide-cat { margin-top: 28px; }
.guide-cat h2 {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.guide-cat h2::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.guide-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform var(--speed), box-shadow var(--speed), border-color var(--speed);
}
.guide-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--grey-light); text-decoration: none; }
.guide-card b { font-family: var(--font-head); font-size: 15.5px; font-weight: 600; }
.guide-card p { font-size: 13px; color: var(--grey); }
.guide-flags { display: flex; gap: 6px; margin-top: auto; padding-top: 6px; }

.article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 4vw, 44px);
  max-width: 760px;
}
.article h1 { font-size: clamp(24px, 3.4vw, 32px); margin: 6px 0 4px; }
.article .lede { color: var(--grey); font-size: 15.5px; margin-bottom: 8px; }
.article-body { margin-top: 20px; }
.article-body h2 { font-size: 20px; margin: 28px 0 10px; }
.article-body h3 { font-size: 16.5px; margin: 22px 0 8px; }
.article-body p { margin: 10px 0; }
.article-body ul, .article-body ol { margin: 10px 0 10px 22px; }
.article-body li { margin: 5px 0; }
.article-body table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 14px; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.article-body th { background: var(--sand); font-family: var(--font-head); font-weight: 600; font-size: 13px; }
.article-body code { font-family: var(--font-mono); background: var(--sand); padding: 1px 5px; border-radius: 4px; font-size: 0.9em; }
.article-body input[type="checkbox"] { accent-color: var(--orange); margin-right: 6px; }

.variant {
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius-sm);
  padding: 12px 16px 4px;
  margin: 14px 0;
  background: var(--cream);
}
.variant-label {
  display: inline-block;
  font: 600 11px var(--font-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 4px;
}

mark.confirm {
  background: rgba(201, 138, 27, 0.14);
  color: var(--amber);
  border-radius: 4px;
  padding: 0 5px;
  font-size: 0.92em;
  font-style: italic;
}

.safety-banner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(180, 67, 46, 0.07);
  border: 1px solid rgba(180, 67, 46, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13.5px;
  color: #7c2f20;
  margin-top: 14px;
}

.still-stuck {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.still-stuck p { font-size: 14.5px; color: var(--grey); }

.related { margin-top: 26px; max-width: 760px; }

/* ---------- forms ---------- */

.form { display: grid; gap: 16px; max-width: 640px; }
.form label.f { display: grid; gap: 6px; font-weight: 500; font-size: 14px; }
.form input[type="text"], .form input[type="email"], .form input[type="date"], .form input[type="number"],
.form select, .form textarea {
  font: 400 15px var(--font-body);
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  width: 100%;
}
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--orange); outline: none; }
.hint { font-size: 12.5px; color: var(--grey); font-weight: 400; }

.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-row input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.choice-row label.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 99px;
  padding: 8px 15px;
  font-size: 13.5px;
  cursor: pointer;
  transition: border-color var(--speed), background var(--speed);
}
.choice-row label.chip:has(input:checked) {
  border-color: var(--orange);
  background: rgba(212, 113, 42, 0.1);
  color: var(--orange-dark);
  font-weight: 600;
}
.choice-row label.chip:has(input:focus-visible) { outline: 2px solid var(--orange); outline-offset: 2px; }

.photo-input { border: 1.5px dashed var(--line); border-radius: var(--radius-sm); padding: 14px; background: var(--surface); }
.photo-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.photo-chip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 3px 10px;
  color: var(--grey);
}
.photo-chip-warn { color: var(--amber); border-color: var(--amber); }

.warranty-note {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--grey);
}

.fieldset-plain { border: none; }
.hint-inline { margin-left: 10px; }
.chip-active { border-color: var(--orange); background: rgba(212,113,42,0.1); color: var(--orange-dark); font-weight: 600; }
a.chip { color: var(--ink); }
a.chip:hover { text-decoration: none; border-color: var(--grey-light); }

/* ---------- case timeline ---------- */

.case-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.case-head h1 { font-size: 22px; }
.case-meta { font-size: 13px; color: var(--grey); margin-bottom: 18px; }
.case-meta .ref { font-family: var(--font-mono); }
.status-note { font-size: 13.5px; color: var(--amber); font-weight: 500; }

.timeline { display: grid; gap: 12px; max-width: 720px; }
.bubble {
  border-radius: var(--radius);
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  max-width: 92%;
}
.bubble.owner { justify-self: end; background: #FBF1E8; border-color: #EFD9C4; }
.bubble.staff { justify-self: start; }
.bubble.system { justify-self: center; background: none; border: none; color: var(--grey-light); font-size: 12.5px; padding: 2px; }
.bubble-head { display: flex; gap: 8px; align-items: baseline; margin-bottom: 4px; }
.bubble-head b { font-size: 13px; font-family: var(--font-head); }
.bubble-head time { font-size: 11.5px; color: var(--grey-light); }
.bubble-body { font-size: 14.5px; white-space: pre-wrap; word-wrap: break-word; }
.bubble-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bubble-photos img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); }

.reply-box { margin-top: 22px; max-width: 720px; }

/* ---------- documents ---------- */

.doc-icon { width: 34px; height: 34px; flex: none; color: var(--orange-dark); }

/* ---------- bulletins ---------- */

.bulletin { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.bulletin + .bulletin { margin-top: 12px; }
.bulletin-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.bulletin-head b { font-family: var(--font-head); font-size: 16px; }
.affects { font: 600 11.5px var(--font-head); letter-spacing: 0.05em; text-transform: uppercase; color: var(--orange-dark); }
.bulletin-body { margin-top: 8px; font-size: 14.5px; }
.bulletin-body p { margin: 8px 0; }
.workaround { margin-top: 10px; background: var(--cream); border-left: 3px solid var(--green); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 14px; }
.workaround .k { font: 600 11px var(--font-head); letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); display: block; margin-bottom: 3px; }

/* ---------- admin ---------- */

.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 26px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat .n { font: 700 26px var(--font-head); }
.stat .k { font-size: 12px; color: var(--grey); letter-spacing: 0.04em; text-transform: uppercase; }

.admin-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.admin-nav a { font: 500 13.5px var(--font-body); border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 7px 14px; color: var(--ink); }
.admin-nav a:hover { border-color: var(--grey-light); text-decoration: none; }

.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 14px; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { background: var(--sand); font: 600 12px var(--font-head); letter-spacing: 0.05em; text-transform: uppercase; color: var(--grey); }
.table tr:last-child td { border-bottom: none; }

details.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-top: 12px; }
details.panel summary { cursor: pointer; padding: 13px 16px; font: 600 14px var(--font-head); }
details.panel .panel-body { padding: 4px 16px 16px; }

/* ---------- misc ---------- */

.error-wrap { text-align: center; padding: 80px 20px; }
.error-wrap .code { font: 700 60px var(--font-head); color: var(--line); }
.error-wrap h1 { font-size: 22px; margin: 8px 0; }
.error-wrap p { color: var(--grey); max-width: 420px; margin: 0 auto 22px; }

.footer-quiet { text-align: center; font-size: 12px; color: var(--grey-light); margin-top: 48px; }

.break-all { word-break: break-all; overflow-wrap: anywhere; }
