/* ==========================================================================
   MOBILE FRAME — streamlined (v2)
   The hobby front page. Loads after the parent stylesheets.
   Everything is scoped to .mf-* so nothing leaks into the ledger,
   the records, or the reading pages.

   WHAT THIS STYLE IS, precisely — the angles carry it, not ornament:
     • chamfered corners at one consistent size (16px plates, 8px controls)
     • ONE hairline seam, on the masthead only
     • ONE lit element — the azure camera strip
     • ONE accent edge per plate, doing real work:
           azure = verified / good      brass = needs attention
     • unit designation and mono metadata
     • condensed uppercase for HEADINGS ONLY; body copy is Inter

   WHAT WAS DELIBERATELY REMOVED, and must stay removed:
     ✕ hazard chevron trim        ✕ thruster nozzles
     ✕ crest, pauldrons, skirt    ✕ rivets and vent slats
     ✕ the spine column           ✕ segmented condition gauges
     ✕ condensed type for body copy
   Each of those was decoration holding no information, competing with
   the content. A plain status line beats a gauge you have to count.
   ========================================================================== */

:root{
  --mf-chamfer:16px;
  --mf-chamfer-sm:8px;
  --mf-plate:#141c24;
  --mf-plate-hi:#18212b;
  --mf-edge:#28353f;
  --mf-edge-hi:#3d4d5a;
  --mf-seam:rgba(216,224,232,.08);
}

/* Always dark — this style does not work on white. */
body.mf-front{ background:#0a0e13; color:var(--tx-2); }
body.mf-front .mf{
  --bg:#0e131a;
  --bg-2:#151c25;
  --bg-3:#1b2430;
  --line:#232e3b;
  --line-soft:#1c2530;
  --tx:#f0f5fa;
  --tx-2:#b9c3d0;
  --tx-3:#8b96a5;
  --accent:#4d9be6;
  --gold:#d8b26b;
  --btn-tx:#0b1016;
}

.mf{ max-width:1040px; margin:0 auto; background:#0e131a; }

/* --------------------------------------------------------------------------
   MASTHEAD PLATE
   One angled plate, one seam, one lit strip. That is the whole header.
   -------------------------------------------------------------------------- */
.mf-plate{
  position:relative;
  padding:32px 34px 28px;
  background:linear-gradient(180deg,var(--mf-plate-hi) 0%, var(--mf-plate) 100%);
  border-bottom:1px solid var(--mf-edge);
  clip-path:polygon(0 0,100% 0,100% calc(100% - 22px),calc(100% - 22px) 100%,0 100%);
}
/* the single seam */
.mf-plate::after{
  content:""; position:absolute; left:34px; right:34px; top:58px;
  height:1px; background:var(--mf-seam);
}

.mf-desig{ display:flex; align-items:center; gap:14px; position:relative; flex-wrap:wrap; }

/* the one lit element */
.mf-cam{
  width:34px; height:9px; flex:none; background:var(--accent);
  clip-path:polygon(0 0,100% 0,calc(100% - 5px) 100%,5px 100%);
  box-shadow:0 0 12px rgba(77,155,230,.5);
}
.mf-unit{
  font-family:var(--font-mono); font-size:9.5px; letter-spacing:.2em;
  text-transform:uppercase; color:var(--tx-3);
}
.mf-unit b{ color:var(--accent); font-weight:500; }

/* condensed uppercase — headings only */
.mf-plate h1{
  font-family:var(--font-condensed); font-weight:700; text-transform:uppercase;
  font-size:clamp(34px,6vw,50px); line-height:.92; letter-spacing:.005em;
  color:var(--tx); margin:22px 0 0; position:relative;
}
.mf-plate h1 .lt{ color:var(--gold); }

/* body copy is Inter, always */
.mf-lede{
  font-family:var(--font-body); font-size:16px; line-height:1.68;
  color:var(--tx-2); max-width:54ch; margin-top:16px; position:relative;
}

/* plain mono metadata row — no gauges */
.mf-meta{ display:flex; gap:22px; margin-top:16px; flex-wrap:wrap; position:relative; }
.mf-meta div{
  font-family:var(--font-mono); font-size:9.5px; letter-spacing:.13em;
  text-transform:uppercase; color:#57616e;
}
.mf-meta div span{ color:var(--tx-2); }
.mf-meta div span.br{ color:var(--gold); }

@media(max-width:640px){
  .mf-plate{ padding:26px 20px 24px; }
  .mf-plate::after{ left:20px; right:20px; }
}

/* --------------------------------------------------------------------------
   BODY
   -------------------------------------------------------------------------- */
.mf-body{ padding:26px 34px 40px; }
@media(max-width:640px){ .mf-body{ padding:22px 20px 32px; } }

/* Section header — a label and a rule. No numbering ornament. */
.mf-sec{ display:flex; align-items:baseline; gap:12px; margin:0 0 16px; }
.mf-sec__t{
  font-family:var(--font-condensed); font-weight:700; font-size:20px;
  text-transform:uppercase; letter-spacing:.02em; color:var(--tx); margin:0;
}
.mf-sec__ln{ flex:1; height:1px; background:var(--mf-edge); }
.mf-sec__c{
  font-family:var(--font-mono); font-size:9.5px; letter-spacing:.12em;
  text-transform:uppercase; color:#57616e;
}

/* --------------------------------------------------------------------------
   FILTER BAR — chamfered controls, matching the ledger
   -------------------------------------------------------------------------- */
.mf-bar{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:16px; }
.mf-filt{
  font-family:var(--font-mono); font-size:10px; letter-spacing:.1em;
  text-transform:uppercase; padding:7px 12px;
  border:1px solid var(--mf-edge); color:var(--tx-3); background:transparent;
  cursor:pointer; transition:all .13s ease;
  clip-path:polygon(0 0,calc(100% - 7px) 0,100% 7px,100% 100%,7px 100%,0 calc(100% - 7px));
}
.mf-filt:hover{ color:var(--tx-2); border-color:var(--mf-edge-hi); }
.mf-filt[aria-pressed="true"]{ border-color:var(--accent); color:var(--accent); }
.mf-count{
  font-family:var(--font-mono); font-size:10px; letter-spacing:.12em;
  text-transform:uppercase; color:#57616e; margin-left:auto;
}

/* --------------------------------------------------------------------------
   PLATE — the single card pattern, used for posts and records alike
   The left edge is a status signal, not trim.
   -------------------------------------------------------------------------- */
.mf-plate-card{
  background:var(--mf-plate); border:1px solid var(--mf-edge);
  position:relative; display:block; text-decoration:none; margin-bottom:9px;
  clip-path:polygon(0 0,calc(100% - var(--mf-chamfer)) 0,100% var(--mf-chamfer),100% 100%,var(--mf-chamfer) 100%,0 calc(100% - var(--mf-chamfer)));
  transition:border-color .14s ease;
}
.mf-plate-card:hover{ border-color:var(--mf-edge-hi); }

/* the working accent edge */
.mf-plate-card__edge{ position:absolute; left:0; top:0; bottom:0; width:2px; background:var(--accent); }
.mf-plate-card.is-attention .mf-plate-card__edge{ background:var(--gold); }
.mf-plate-card.is-info .mf-plate-card__edge{ background:#4e5865; }

.mf-plate-card__hd{
  padding:14px 20px 14px 22px;
  display:flex; justify-content:space-between; align-items:baseline;
  gap:16px; flex-wrap:wrap;
}
.mf-plate-card__t{
  font-family:var(--font-condensed); font-weight:600; font-size:23px;
  text-transform:uppercase; letter-spacing:.01em; line-height:1;
  color:var(--tx); transition:color .13s ease;
}
.mf-plate-card:hover .mf-plate-card__t{ color:var(--accent); }
.mf-plate-card.is-attention:hover .mf-plate-card__t{ color:var(--gold); }

/* body copy in the card — Inter, not condensed */
.mf-plate-card__d{
  font-family:var(--font-body); font-size:14.5px; line-height:1.62;
  color:var(--tx-3); margin:6px 0 0; max-width:66ch;
}

.mf-plate-card__r{ display:flex; align-items:baseline; gap:14px; flex:none; }
.mf-plate-card__meta{ text-align:right; }
.mf-plate-card__id{
  font-family:var(--font-mono); font-size:9.5px; letter-spacing:.12em;
  text-transform:uppercase; color:#57616e; white-space:nowrap;
}
/* plain status line — replaces the segmented gauge */
.mf-plate-card__st{
  font-family:var(--font-mono); font-size:9.5px; letter-spacing:.12em;
  text-transform:uppercase; color:var(--accent); margin-top:3px; white-space:nowrap;
}
.mf-plate-card.is-attention .mf-plate-card__st{ color:var(--gold); }
.mf-plate-card.is-info .mf-plate-card__st{ color:#57616e; }

@media(max-width:640px){
  .mf-plate-card__r{ width:100%; }
  .mf-plate-card__meta{ text-align:left; }
}

/* Lead plate — larger title only. No thruster bar, no extra ornament. */
.mf-plate-card--lead .mf-plate-card__t{ font-size:clamp(27px,4.6vw,36px); line-height:1.02; }
.mf-plate-card--lead .mf-plate-card__d{ font-size:15.5px; margin-top:10px; }
.mf-plate-card--lead .mf-plate-card__hd{ padding:18px 22px 20px 24px; }

/* --------------------------------------------------------------------------
   BADGES — language and build style, from the ledger vocabulary
   -------------------------------------------------------------------------- */
.mf-badge{
  display:inline-block; font-family:var(--font-mono); font-size:9px;
  letter-spacing:.08em; text-transform:uppercase; padding:2px 7px;
  border:1px solid var(--mf-edge); color:#8b96a5; white-space:nowrap;
  clip-path:polygon(0 0,calc(100% - 4px) 0,100% 4px,100% 100%,4px 100%,0 calc(100% - 4px));
}
.mf-badge--Professional{ border-color:var(--accent); color:var(--accent); }
.mf-badge--Hobby{ border-color:var(--gold); color:var(--gold); }
.mf-badge--Entry{ border-color:var(--mf-edge); color:#8b96a5; }
.mf-badge--Vibe{ border-color:#232e3b; color:#57616e; }
.mf-badges{ display:inline-flex; gap:7px; margin-left:11px; flex-wrap:wrap; vertical-align:middle; }

/* --------------------------------------------------------------------------
   BUTTON — chamfered, matching the filter controls
   -------------------------------------------------------------------------- */
.mf-btn{
  display:inline-block; font-family:var(--font-mono); font-size:10px;
  font-weight:500; letter-spacing:.13em; text-transform:uppercase;
  padding:10px 16px; border:1px solid var(--accent); color:var(--accent);
  background:transparent; text-decoration:none; margin-top:14px;
  clip-path:polygon(0 0,calc(100% - var(--mf-chamfer-sm)) 0,100% var(--mf-chamfer-sm),100% 100%,var(--mf-chamfer-sm) 100%,0 calc(100% - var(--mf-chamfer-sm)));
  transition:background .14s ease,color .14s ease;
}
.mf-btn:hover{ background:var(--accent); color:#0b1016; }

/* --------------------------------------------------------------------------
   EMPTY STATE
   -------------------------------------------------------------------------- */
.mf-empty{
  border:1px dashed var(--mf-edge); padding:36px 20px; text-align:center;
  font-family:var(--font-mono); font-size:10px; letter-spacing:.14em;
  text-transform:uppercase; color:#57616e;
}

/* Tighten the join with the parent's dark nav band above. */
body.mf-front .nav{ border-bottom-color:rgba(216,178,107,.28); }

/* --------------------------------------------------------------------------
   RATING on the front page plates
   Same meter as the ledger, sized for the plate meta column and given the
   chamfer the rest of this style uses.
   -------------------------------------------------------------------------- */
.mf-plate-card .rating{ display:inline-flex; align-items:center; gap:3px; justify-content:flex-end; margin-bottom:5px; }
.mf-plate-card .rating i{
  width:8px; height:13px; display:block; flex:none;
  background:rgba(216,224,232,.14);
  clip-path:polygon(0 0,100% 0,100% calc(100% - 3px),calc(100% - 3px) 100%,0 100%);
}
.mf-plate-card .rating i.on{ background:var(--accent); }
.mf-plate-card.is-attention .rating i.on{ background:var(--gold); }
.mf-plate-card.is-info .rating i.on{ background:#57616e; }
@media(max-width:640px){
  .mf-plate-card .rating{ justify-content:flex-start; }
}

/* --------------------------------------------------------------------------
   TAG STRIP on plates
   Categories, game systems, and worlds — visible without opening anything.
   Chamfered to match the rest of the vocabulary; worlds get the accent so
   "where is this actually running" is separable at a glance.
   -------------------------------------------------------------------------- */
.mf-tags{ display:flex; flex-wrap:wrap; gap:5px; margin-top:11px; }
.mf-tag{
  display:inline-block; font-family:var(--font-mono); font-size:9px;
  letter-spacing:.08em; text-transform:uppercase; padding:3px 8px;
  border:1px solid var(--mf-edge); color:#8b96a5; white-space:nowrap;
  clip-path:polygon(0 0,calc(100% - 4px) 0,100% 4px,100% 100%,4px 100%,0 calc(100% - 4px));
}
.mf-tag.is-world{ border-color:rgba(77,155,230,.5); color:var(--accent); }
.mf-plate-card.is-attention .mf-tag.is-world{ border-color:rgba(216,178,107,.5); color:var(--gold); }

/* --------------------------------------------------------------------------
   CATEGORY TINTS on plates
   Same rule as the ledger: a dot, and a border tint. The plate's accent
   edge still owns status, so the dot has to stay quieter than the edge.
   The chamfer means no border-radius, so the dot is the only round shape
   on the plate — which is exactly why it reads as a marker.
   -------------------------------------------------------------------------- */
.mf-tag.has-tint{
  position:relative;
  padding-left:19px;
  border-color:color-mix(in srgb, var(--tint) 45%, var(--mf-edge));
  color:var(--tx-2);
}
.mf-tag.has-tint::before{
  content:"";
  position:absolute; left:7px; top:50%; transform:translateY(-50%);
  width:6px; height:6px; border-radius:50%;
  background:var(--tint);
}
@supports not (color: color-mix(in srgb, red 50%, blue)){
  .mf-tag.has-tint{ border-color:var(--mf-edge); }
}
