/* Opensource Moth – theme inspired by north-wind.be
   dark slate green, white Raleway type, red call-to-action buttons */

:root {
  --bg: #2f4f4f;
  --bg-deep: #233c3c;
  --bg-soft: #3b6363;
  --panel: #365a5a;
  --line: rgba(255, 255, 255, .14);
  --text: #ffffff;
  --muted: #b9cccc;
  --accent: #e3231b;
  --accent-dark: #b81b14;
  --ok: #2e9e6a;
  --warn: #e0a526;
  --water: #9cc9cf;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .25);
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Raleway, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--water); }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
small, .muted { color: var(--muted); }
.small { font-size: .9rem; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 860px; }
.section { padding: 64px 0; }
.section-tight { padding: 32px 0 64px; }
.section-alt { background: var(--bg-deep); }
.section-title { text-align: center; margin-bottom: 32px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 32px 0 16px; flex-wrap: wrap; }
.section-head h2, .section-head .section-title { margin: 0; text-align: left; }
.link-more { font-weight: 700; text-decoration: none; }
.eyebrow { text-transform: uppercase; letter-spacing: .15em; font-size: .8rem; color: var(--water); font-weight: 700; margin-bottom: .5em; }
.lead { font-size: 1.15rem; color: #e3eeee; }

/* ---------------- header / nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(35, 60, 60, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; height: 68px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.2rem; letter-spacing: .02em; }
.brand strong { font-weight: 800; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 10px 14px; font-weight: 700; text-decoration: none; border-radius: 8px; }
.main-nav > ul > li > a:hover, .main-nav > ul > li.active > a { background: rgba(255, 255, 255, .08); color: var(--text); }
.main-nav > ul > li.active > a { box-shadow: inset 0 -3px 0 var(--accent); }
.has-sub > a::after { content: "▾"; font-size: .75em; margin-left: 6px; opacity: .7; }
.sub {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 220px;
  background: var(--bg-deep); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease;
}
.sub-right { left: auto; right: 0; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.open > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { font-weight: 500; padding: 8px 12px; }
.sub a:hover { background: var(--bg-soft); color: var(--text); }
.nav-cta { background: var(--accent); }
.main-nav a.nav-cta:hover { background: var(--accent-dark); }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); font-size: .75rem; text-align: center; line-height: 20px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .2s; }

@media (max-width: 900px) {
  /* backdrop-filter would make the fixed menu panel position itself inside the header */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg-deep); }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: 68px; left: 0; right: 0; bottom: 0; background: var(--bg-deep);
    overflow-y: auto; padding: 16px; transform: translateX(100%); transition: transform .25s ease;
  }
  body.nav-open .main-nav { transform: none; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav > ul { flex-direction: column; align-items: stretch; }
  .main-nav a { font-size: 1.1rem; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 16px; }
  .has-sub > a::after { display: none; }
}

/* ---------------- buttons */
.btn {
  display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 6px;
  padding: 12px 24px; font: 700 1rem Raleway, Arial, sans-serif; text-decoration: none; cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-small { padding: 7px 14px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn-ok { background: var(--ok); }
.btn-ok:hover { background: #237f54; }
.btn-danger { background: transparent; box-shadow: inset 0 0 0 2px var(--accent); }
.btn-danger:hover { background: var(--accent); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.icon-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1rem; padding: 6px; }
.icon-btn:hover { color: var(--accent); }

/* ---------------- flashes */
.flashes { padding-top: 16px; }
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 12px; border-left: 4px solid; background: rgba(0, 0, 0, .2); }
.flash ul { margin: 0; padding-left: 18px; }
.flash-success { border-color: var(--ok); }
.flash-error { border-color: var(--accent); }
.flash-info { border-color: var(--water); }

/* ---------------- hero + boat */
.hero { background: radial-gradient(1200px 500px at 70% 30%, var(--bg-soft), var(--bg) 70%); padding: 48px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; }
.hero-text h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.hero-boat { position: relative; }
.boat-svg { display: block; width: 100%; height: auto; max-height: 82vh; margin: 0 auto; border-radius: var(--radius); box-shadow: var(--shadow); }

/* boat drawing colours */
.boat-svg .shape { transition: fill .15s, opacity .15s; }
.boat-svg .hull-shape { fill: #ffffff; stroke: #aebfbf; stroke-width: 1; }
.boat-svg .wings { fill: #f3f7f7; stroke: #aebfbf; stroke-width: 1; }
.boat-svg .sail { fill: #0f1414; stroke: rgba(255, 255, 255, .22); stroke-width: 1.2; }
.boat-svg .spar { fill: #3a4545; }
.boat-svg .sail-logo { fill: #ff1a1a; pointer-events: none; transition: fill .15s; }
/* the sail itself turns red on hover, so the logo switches to white to stay visible */
.boat-svg .hotspot:hover .sail-logo, .boat-svg .hotspot.is-hot .sail-logo { fill: #fff; }
.boat-svg .sail-number { fill: #fff; font: 800 58px Raleway, Arial, sans-serif; letter-spacing: 3px; text-anchor: start; pointer-events: none; }
.boat-svg .carbon { fill: #151c1c; stroke: rgba(255, 255, 255, .35); stroke-width: .8; }
/* trim systems: fittings and control lines drawn as one uniform-width stroke */
.boat-svg .dot { fill: #151c1c; }
.boat-svg .line { fill: none; stroke: #151c1c; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .15s, opacity .15s; }

/* clickable components: the .hit copies are invisible but widen the click area */
.boat-svg .hotspot { cursor: pointer; }
.boat-svg .hotspot .hit { fill: transparent; stroke: transparent; stroke-width: 18; stroke-linejoin: round; pointer-events: all; }
.boat-svg .hotspot:hover .shape, .boat-svg .hotspot:focus .shape, .boat-svg .hotspot.is-hot .shape { fill: var(--accent); }
.boat-svg .hotspot:hover .spar, .boat-svg .hotspot.is-hot .spar { fill: #9b1510; }
.boat-svg .hotspot:hover .line, .boat-svg .hotspot:focus .line, .boat-svg .hotspot.is-hot .line { fill: none; stroke: var(--accent); }
.boat-svg .hotspot .hit-line { fill: none; stroke-linecap: round; stroke-width: 24; }
.boat-svg:hover .hotspot:not(:hover):not(.is-hot) .shape { opacity: .6; }
.boat-svg .hotspot:focus { outline: none; }
.boat-svg .sea { pointer-events: none; }
.boat-svg .lbl line { stroke: #fff; stroke-width: 3; opacity: .75; }
.boat-svg .lbl circle { fill: #fff; }
.boat-svg .lbl rect { fill: rgba(35, 60, 60, .92); stroke: rgba(255, 255, 255, .6); stroke-width: 2.5; }
.boat-svg .lbl text { fill: #fff; font: 700 36px Raleway, Arial, sans-serif; text-anchor: middle; }
.boat-svg .lbl.is-hot rect { fill: var(--accent); stroke: #fff; }
.boat-svg .lbl.is-hot circle { fill: var(--accent); }
.boat-hint { text-align: center; color: var(--muted); font-size: .9rem; margin: 10px 0 0; min-height: 1.4em; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------------- cards */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  display: flex; flex-direction: column; background: var(--panel); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; box-shadow: var(--shadow); transition: transform .2s;
  border: 1px solid var(--line);
}
.card:hover { transform: translateY(-4px); color: var(--text); }
.card-img { aspect-ratio: 4 / 3; background: var(--bg-soft); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin: 8px 0 6px; font-size: 1.1rem; }
.card-body p { color: var(--muted); font-size: .92rem; flex: 1; }
.card-meta { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; gap: 8px; }
.card-meta strong { color: #fff; font-size: 1.05rem; }
.tag { display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--water); font-weight: 700; }
.chip { display: inline-block; background: var(--bg-soft); border-radius: 20px; padding: 2px 12px; margin: 0 6px 6px 0; font-size: .88rem; }
.empty { text-align: center; padding: 32px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
@media (max-width: 1000px) { .card-grid, .card-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid, .card-grid-3 { grid-template-columns: 1fr; } }

/* ---------------- facts slider */
.facts { background: linear-gradient(135deg, var(--bg-deep), var(--bg-soft)); }
.fact-slider { position: relative; max-width: 820px; margin: 0 auto; text-align: center; padding: 0 48px; }
.fact-track { position: relative; min-height: 190px; overflow: hidden; }
.fact-slide {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; transform: translateX(60px); transition: opacity .6s ease, transform .6s ease; pointer-events: none;
}
.fact-slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.fact-slide.is-leaving { opacity: 0; transform: translateX(-60px); }
.fact-big { font-size: clamp(2.8rem, 8vw, 4.5rem); font-weight: 800; color: #fff; line-height: 1; text-shadow: 0 4px 0 var(--accent); margin-bottom: 18px; }
.fact-slide p { font-size: 1.15rem; max-width: 620px; }
.fact-nav { position: absolute; top: 40%; background: none; border: 2px solid rgba(255, 255, 255, .5); color: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.fact-nav:hover { background: var(--accent); border-color: var(--accent); }
.fact-nav.prev { left: 0; }
.fact-nav.next { right: 0; }
.fact-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.fact-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .35); cursor: pointer; padding: 0; }
.fact-dots button.is-active { background: var(--accent); width: 26px; border-radius: 5px; }
.fact-progress { height: 3px; background: var(--accent); width: 0; margin: 16px auto 0; max-width: 200px; }

/* ---------------- page head / breadcrumbs */
.page-head { background: var(--bg-deep); padding: 48px 0 32px; border-bottom: 1px solid var(--line); }
.page-head-slim { padding: 20px 0 12px; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: .6em; }
.crumbs a { color: var(--muted); }

/* ---------------- catalog */
.shop { display: grid; grid-template-columns: 250px 1fr; gap: 32px; align-items: start; }
.shop-side { background: var(--panel); border-radius: var(--radius); padding: 20px; position: sticky; top: 88px; border: 1px solid var(--line); }
.cat-list { list-style: none; padding: 0; margin: 0 0 20px; }
.cat-list a { display: block; padding: 6px 10px; border-radius: 6px; text-decoration: none; }
.cat-list a.active, .cat-list a:hover { background: var(--bg-soft); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.result-count { color: var(--muted); margin-bottom: 16px; }
@media (max-width: 800px) { .shop { grid-template-columns: 1fr; } .shop-side { position: static; } }

/* ---------------- forms */
.form label { display: block; margin-bottom: 16px; font-weight: 600; font-size: .95rem; }
.form label small { font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search], select, textarea {
  width: 100%; margin-top: 6px; padding: 11px 14px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(0, 0, 0, .18); color: #fff; font: 500 1rem Raleway, Arial, sans-serif;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--water); box-shadow: 0 0 0 3px rgba(156, 201, 207, .25); }
input:disabled { opacity: .6; }
select option, select optgroup { background: var(--bg-deep); color: #fff; }
input[type=file] { display: block; margin-top: 6px; color: var(--muted); font-family: inherit; }
input[type=file]::file-selector-button { background: var(--bg-soft); color: #fff; border: 0; padding: 8px 14px; border-radius: 6px; margin-right: 12px; cursor: pointer; font: 600 .9rem Raleway, sans-serif; }
textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
fieldset { border: 0; padding: 0; margin: 0 0 16px; }
legend { font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.radio-row .radio, .check { display: inline-flex !important; align-items: center; gap: 8px; margin-right: 24px; font-weight: 500 !important; }
input[type=radio], input[type=checkbox] { accent-color: var(--accent); width: 18px; height: 18px; }
.card-form { background: var(--panel); padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); max-width: 440px; margin: 0 auto; border: 1px solid var(--line); }
.card-form-wide { max-width: 720px; }
.form-foot { text-align: center; margin: 16px 0 0; color: var(--muted); }
.hint { color: var(--muted); font-size: .92rem; }
.hp { position: absolute; left: -9999px; }
.owner-fields { padding: 16px; border-left: 3px solid var(--accent); background: rgba(0, 0, 0, .12); border-radius: 0 8px 8px 0; margin-bottom: 16px; }
.owner-fields[hidden], [data-show-if-other][hidden] { display: none; }

.auth { max-width: 720px; }
.auth-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 24px; }
.auth-tabs a { padding: 10px 24px; border-radius: 30px; text-decoration: none; font-weight: 700; border: 2px solid var(--line); }
.auth-tabs a.is-active { background: var(--accent); border-color: var(--accent); }

.part-form .form-section { background: var(--panel); padding: 24px; border-radius: var(--radius); margin-bottom: 20px; border: 1px solid var(--line); }
.part-form .form-section h3 { color: var(--water); }
.part-form label em { color: var(--accent); font-style: normal; }
.mat-row { display: grid; grid-template-columns: 2fr .7fr 2fr auto; gap: 8px; margin-bottom: 8px; align-items: center; }
.mat-row input { margin-top: 0; }
@media (max-width: 700px) { .mat-row { grid-template-columns: 1fr 1fr; } .mat-row input:first-child { grid-column: 1 / -1; } }
.check-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 600px) { .check-grid { grid-template-columns: repeat(2, 1fr); } }
.thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; }
.current-files { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; color: var(--muted); }
.current { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; }
.thumb-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.thumb-pick { position: relative; margin: 0 !important; cursor: pointer; }
.thumb-pick img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; }
.thumb-pick input { position: absolute; top: 6px; left: 6px; }
.thumb-pick input:checked + img { border-color: var(--accent); opacity: .45; }
.licence-check { margin: 8px 0 20px; display: flex !important; }
.admin-box { border-color: var(--accent) !important; }

/* ---------------- part detail */
.product { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; margin-top: 8px; }
.gallery-main { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); box-shadow: var(--shadow); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; width: 84px; height: 64px; }
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs button.is-active { border-color: var(--accent); }
.price-box { background: var(--panel); border-radius: var(--radius); padding: 16px 20px; margin: 16px 0; display: grid; grid-template-columns: 1fr auto; align-items: center; border: 1px solid var(--line); }
.price-box strong { font-size: 2rem; grid-row: span 2; }
.price-box small { color: var(--muted); }
.facts-list { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; margin: 0 0 20px; }
.facts-list dt { color: var(--muted); }
.facts-list dd { margin: 0; }
.downloads { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.licence-note { font-size: .88rem; color: var(--muted); }
.stars { color: #ffc93c; letter-spacing: 2px; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; } }

.product-tabs { margin-top: 48px; }
.tab-bar { display: flex; gap: 4px; border-bottom: 2px solid var(--line); overflow-x: auto; }
.tab-bar button { background: none; border: 0; color: var(--muted); padding: 12px 18px; font: 700 1rem Raleway, sans-serif; cursor: pointer; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tab-bar button.is-active, .tab-bar button:hover { color: #fff; border-color: var(--accent); }
.tab-panel { display: none; padding: 24px 0; max-width: 860px; }
.tab-panel.is-active { display: block; }
.login-needed { padding: 20px; background: rgba(0, 0, 0, .15); border-radius: 10px; }
.review { border-bottom: 1px solid var(--line); padding: 16px 0; }
.review-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.form-inline-feedback { background: var(--panel); padding: 20px; border-radius: var(--radius); margin-bottom: 16px; }

/* ---------------- tables */
.table { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { background: var(--bg-deep); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.table tr:last-child td { border-bottom: 0; }
.table .actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.table .actions form { margin: 0; }
.row-muted td { opacity: .55; }
@media (max-width: 800px) {
  .table-admin, .table-admin tbody, .table-admin tr, .table-admin td { display: block; width: 100%; }
  .table-admin thead { display: none; }
  .table-admin tr { border-bottom: 2px solid var(--line); padding: 8px 0; }
  .table-admin td { border: 0; padding: 6px 14px; }
  .table { overflow-x: auto; display: block; }
}
.status { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.status-approved { background: rgba(46, 158, 106, .25); color: #7fe0b2; }
.status-pending { background: rgba(224, 165, 38, .25); color: #ffd27a; }
.status-rejected { background: rgba(227, 35, 27, .25); color: #ff8f8a; }

/* ---------------- inbox */
.inbox { display: flex; flex-direction: column; gap: 8px; margin-bottom: 32px; }
.msg { background: var(--panel); border-radius: 10px; padding: 12px 16px; border: 1px solid var(--line); }
.msg summary { cursor: pointer; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.msg.unread { border-left: 4px solid var(--accent); }
.msg p { margin: 12px 0; white-space: pre-line; }
.msg .btn-row form { margin: 0; }

/* ---------------- admin */
.admin-head h1 { margin-bottom: 12px; }
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-tabs a { padding: 8px 16px; border-radius: 30px; text-decoration: none; font-weight: 700; background: rgba(255, 255, 255, .06); }
.admin-tabs a.is-active { background: var(--accent); }
.stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-bottom: 16px; }
.stat { background: var(--panel); border-radius: var(--radius); padding: 20px; text-align: center; border: 1px solid var(--line); }
.stat strong { display: block; font-size: 2.2rem; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .88rem; }
.stat-hot { border-color: var(--accent); }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 500px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.toolbar { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.toolbar .inline-search { flex: 1; min-width: 220px; }
.toolbar .inline-search input { margin: 0; }
.pill-filter { display: flex; gap: 4px; background: rgba(0, 0, 0, .15); padding: 4px; border-radius: 30px; }
.pill-filter a { padding: 6px 14px; border-radius: 30px; text-decoration: none; font-weight: 600; font-size: .9rem; }
.pill-filter a.is-active { background: var(--accent); }
.edit-pop { position: relative; }
.edit-pop summary { list-style: none; }
.edit-pop summary::-webkit-details-marker { display: none; }
.edit-pop[open] form { position: absolute; right: 0; top: 110%; z-index: 20; width: 300px; background: var(--bg-deep); padding: 16px; border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.fact-edit { display: grid; grid-template-columns: 140px 1fr auto auto auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.fact-edit input[type=text] { margin: 0; }
.fact-edit .check { margin: 0 !important; }
@media (max-width: 700px) { .fact-edit { grid-template-columns: 1fr; } }

/* ---------------- project page */
.prose h2 { margin-top: 1.6em; }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 32px 0; }
.pillars > div { background: var(--panel); border-radius: var(--radius); padding: 24px; text-align: center; border: 1px solid var(--line); }
.pillars span { display: inline-flex; width: 64px; height: 64px; border-radius: 50%; align-items: center; justify-content: center; background: var(--accent); font-size: 1.8rem; margin-bottom: 12px; }
.pillars p { color: var(--muted); margin: 0; }
@media (max-width: 700px) { .pillars { grid-template-columns: 1fr; } }
.licence-card { display: flex; gap: 20px; align-items: center; background: var(--panel); border-radius: var(--radius); padding: 20px 24px; border-left: 4px solid var(--accent); margin-bottom: 20px; }
.licence-card p { margin: 0; }
.cc-badge { flex-shrink: 0; background: #fff; color: var(--bg-deep); font-weight: 800; padding: 10px 14px; border-radius: 8px; text-decoration: none; white-space: nowrap; }
.cc-badge:hover { color: var(--accent); }
@media (max-width: 600px) { .licence-card { flex-direction: column; align-items: flex-start; } }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 24px 0; align-items: start; }
.two-col .card-form { max-width: none; margin: 0; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
.ok-box, .no-box { background: var(--panel); padding: 20px 24px; border-radius: var(--radius); border-top: 4px solid var(--ok); }
.no-box { border-top-color: var(--accent); }

/* ---------------- footer */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 32px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid p { color: var(--muted); }
.footer-note { text-align: center; color: var(--muted); font-size: .88rem; margin: 32px 0 0; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
