/* ==========================================================================
   EXPAT STORE — COMPONENTS
   The named parts: announcement bar, header, footer, controls, object frames,
   empty slots, the labelled blank, the claims table, the note band.
   Layout matches website/mockups/04-ferm-living/. All values via tokens.css.
   ========================================================================== */

/* ============================ ANNOUNCEMENT ==============================
   Block 1 of the homepage order: what this store is, in one sentence, no
   corridor. Deliberately quiet — small, no fill, one gold hairline. */
.announce {
  background: var(--expat-field);
  border-bottom: 1px solid var(--expat-gold);
  text-align: center;
  padding: var(--expat-space-3) var(--expat-gutter);
}
.announce p {
  margin: 0;
  font-size: var(--expat-t-11);
  line-height: var(--expat-lh-tight);
  letter-spacing: 0.06em;
  color: var(--expat-ink-mute);
}

/* ============================== HEADER ================================== */
.hdr {
  position: sticky;
  top: 0;
  z-index: var(--expat-z-header);
  background: var(--expat-field);
  border-bottom: 1px solid var(--expat-rule);
}
.admin-bar .hdr { top: var(--expat-admin-bar); }
.hdr__inner {
  max-width: var(--expat-wrap);
  margin: 0 auto;
  padding: var(--expat-space-4) var(--expat-gutter);
  display: flex;
  align-items: center;
  gap: var(--expat-space-5);
}

.brand { display: flex; align-items: center; gap: var(--expat-space-2); flex: 0 0 auto; min-height: var(--expat-tap-min); }
.brand__mark { color: var(--expat-gold); display: block; flex: 0 0 auto; }
.brand__word {
  font-family: var(--expat-serif);
  font-size: var(--expat-t-24);
  line-height: var(--expat-lh-tight);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--expat-navy);
}

.depts { display: flex; gap: var(--expat-space-4); margin-left: auto; flex-wrap: wrap; }
.depts a {
  font-size: var(--expat-t-11);
  line-height: var(--expat-lh-tight);
  letter-spacing: var(--expat-ls-nav);
  text-transform: uppercase;
  color: var(--expat-ink);
  min-height: var(--expat-tap-min);
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: border-color var(--expat-duration) var(--expat-ease), color var(--expat-duration) var(--expat-ease);
}
.depts a:hover { border-bottom-color: var(--expat-gold); color: var(--expat-navy); }
.depts__alt { color: var(--expat-ink-mute); }

.utils { display: flex; align-items: center; gap: var(--expat-space-3); flex: 0 0 auto; }
.utils__ico {
  font-size: var(--expat-t-11);
  letter-spacing: 0.08em;
  color: var(--expat-ink-mute);
  min-height: var(--expat-tap-min);
  display: inline-flex;
  align-items: center;
}
a.utils__ico:hover { color: var(--expat-navy); }

.switch {
  display: inline-flex;
  align-items: center;
  gap: var(--expat-space-2);
  border: 1px solid var(--expat-rule-2);
  border-radius: var(--expat-radius-pill);
  padding: 0 var(--expat-space-3);
  min-height: var(--expat-tap-min);
  font-size: var(--expat-t-11);
  line-height: var(--expat-lh-tight);
  color: var(--expat-ink-mute);
}
.switch__k { text-transform: uppercase; letter-spacing: var(--expat-ls-nav); }
.switch__v { color: var(--expat-ink); font-weight: 600; }
.switch__sep { color: var(--expat-rule-2); }

/* Mobile navigation. A native <details> element, so it works with no script at
   all — which is the only way to keep the performance budget with a menu that
   opens. */
.mtoggle { display: none; margin-left: auto; position: relative; }
.mtoggle summary {
  list-style: none;
  cursor: pointer;
  font-size: var(--expat-t-11);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--expat-navy);
  min-height: var(--expat-tap-min);
  display: flex;
  align-items: center;
  gap: var(--expat-space-2);
}
.mtoggle summary::-webkit-details-marker { display: none; }
.mtoggle summary::after { content: "+"; color: var(--expat-gold); }
.mtoggle[open] summary::after { content: "\2013"; }
.mtoggle__nav {
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--expat-field);
  border-bottom: 1px solid var(--expat-rule);
  padding: var(--expat-space-2) var(--expat-gutter) var(--expat-space-4);
  display: flex;
  flex-direction: column;
}
.mtoggle__nav a {
  font-family: var(--expat-serif);
  font-size: var(--expat-t-18);
  line-height: var(--expat-lh-h3);
  min-height: var(--expat-tap-min);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--expat-rule);
}
.mtoggle__note {
  font-size: var(--expat-t-11);
  line-height: var(--expat-lh-body);
  color: var(--expat-ink-mute);
  margin: var(--expat-space-3) 0 0;
}

/* ============================== CONTROLS ================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--expat-control-h);
  padding: var(--expat-control-pad) var(--expat-space-5);
  border-radius: var(--expat-radius);
  border: 2px solid transparent;
  font-family: var(--expat-sans);
  font-size: var(--expat-t-15);
  font-weight: 600;
  line-height: var(--expat-lh-tight);
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background var(--expat-duration) var(--expat-ease),
              color var(--expat-duration) var(--expat-ease),
              border-color var(--expat-duration) var(--expat-ease);
}
.btn--solid { background: var(--expat-dark); color: var(--expat-on-dark); border-color: var(--expat-dark); }
.btn--solid:hover { background: var(--expat-navy); border-color: var(--expat-navy); }
.btn--ghost { background: transparent; color: var(--expat-ink); border-color: var(--expat-rule-2); }
.btn--ghost:hover { border-color: var(--expat-gold); color: var(--expat-navy); }
.btn--gold { background: var(--expat-gold); color: var(--expat-navy-deep); border-color: var(--expat-gold); }
.btn--gold:hover { background: var(--expat-gold-soft); border-color: var(--expat-gold-soft); }

/* ========================= THE LABELLED BLANK ===========================
   A field whose value we expected and do not have. Silent for a buyer; visible
   only in the operator's blank-preview mode. See inc/fields.php. */
.blank,
.field--blank {
  display: block;
  font-size: var(--expat-t-13);
  font-style: italic;
  color: var(--expat-ink-mute);
  border-bottom: 1px solid var(--expat-rule-2);
  padding: var(--expat-space-2) 0;
  min-height: var(--expat-tap-min);
  width: 100%;
}
.blank::before { content: "\2014 "; color: var(--expat-rule-2); font-style: normal; }

/* The preview marker is deliberately ugly and deliberately aria-hidden: an operator
   screenshot must never be mistaken for the live page. */
.is-blank-preview {
  background: var(--expat-band-alt);
  outline: var(--expat-hairline) dashed var(--expat-gold);
  outline-offset: 2px;
  font-style: normal;
  padding: var(--expat-space-1) var(--expat-space-2);
}
.is-blank-preview code { font-size: var(--expat-t-11); }

/* ======================== EMPTY OBJECT FRAMES ===========================
   A SLOT THAT IS EMPTY BY DESIGN — no product chosen, no gateway open. Not the
   same thing as a blank field, and the difference is recorded in inc/fields.php.
   Drawn in CSS: no photograph, no stand-in photograph, no shadow. */
.slot { display: flex; flex-direction: column; gap: var(--expat-space-2); }
.slot__frame {
  display: block;
  aspect-ratio: var(--expat-ratio-frame);
  width: 100%;
  border: 1px solid var(--expat-rule-2);
  border-radius: var(--expat-radius);
  background: repeating-linear-gradient(
    135deg,
    var(--expat-field) 0 var(--expat-strip-band),
    var(--expat-band-alt) var(--expat-strip-band) var(--expat-seam)
  );
}
.slot__label {
  font-size: var(--expat-t-11);
  line-height: var(--expat-lh-tight);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--expat-ink-band);
}
.slot__note {
  display: block;
  font-size: var(--expat-t-11);
  line-height: var(--expat-lh-body);
  color: var(--expat-ink-mute);
}

/* A labelled object frame holding a shared stock atmosphere photograph. Used by
   the department grid and the supporting blocks. Every one carries a visible
   caption on the page; the caption is the record that the frame is not a product
   image, and it is not decoration to be removed later. */
.atmo { display: block; margin: 0 0 var(--expat-space-4); }
.atmo__frame {
  display: block;
  overflow: hidden;
  border: 1px solid var(--expat-rule-2);
  background: var(--expat-band-alt);
  aspect-ratio: var(--expat-ratio-frame);
}
.atmo__frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.atmo__cap {
  display: block;
  margin: var(--expat-space-2) 0 0;
  font-size: var(--expat-t-11);
  line-height: var(--expat-lh-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--expat-ink-mute);
}
.atmo--band { margin: 0 0 var(--expat-space-6); }
.atmo--band .atmo__frame { aspect-ratio: var(--expat-ratio-band); }
.atmo--ondark .atmo__frame { border-color: var(--expat-gold); background: var(--expat-navy-deep); }
.atmo--ondark .atmo__cap { color: var(--expat-on-dark); }

/* ============================ CLAIMS ===================================
   Rendered only when a live verified claim exists. data-claim-id and
   data-claim-hash carry the provenance, so a sentence on a page can be audited
   back to the ledger row that produced it. */
.claim { margin: 0; }
.claim--cell { display: block; }
.claims-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--expat-rule-2);
}
.claims-table caption {
  text-align: left;
  font-size: var(--expat-t-11);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--expat-ink-mute);
  padding: var(--expat-space-2) 0;
}
.claims-table th,
.claims-table td {
  text-align: left;
  vertical-align: top;
  padding: var(--expat-space-3) 0;
  border-bottom: 1px solid var(--expat-rule);
  font-size: var(--expat-t-13);
  line-height: var(--expat-lh-body);
}
.claims-table th { font-weight: 400; color: var(--expat-ink-mute); width: 14ch; }
.claim__src { border-bottom: 1px solid var(--expat-gold); }

/* =========================== NOTE BAND =================================
   Block 3: the one changeable statement on the page. Rendered from operator
   fields, never from a template literal, and NOT rendered at all when the
   statement field is empty. */
.noteband {
  background: var(--expat-band);
  border-top: 1px solid var(--expat-gold);
  padding: var(--expat-space-6) 0;
}
.noteband__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: var(--expat-space-8);
  align-items: end;
}
.noteband h2 {
  font-family: var(--expat-serif);
  font-size: var(--expat-t-band);
  line-height: var(--expat-lh-tight);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--expat-ink);
  max-width: 24ch;
  margin: 0;
}
.noteband__note {
  font-size: var(--expat-t-14);
  line-height: var(--expat-lh-body);
  color: var(--expat-ink-band);
  max-width: 56ch;
  margin: var(--expat-space-3) 0 0;
}
.noteband__side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--expat-space-3);
  border-top: 1px solid var(--expat-rule-2);
  padding-top: var(--expat-space-3);
}
.noteband__meta {
  margin: 0;
  font-size: var(--expat-t-11);
  line-height: var(--expat-lh-body);
  letter-spacing: 0.06em;
  color: var(--expat-ink-mute);
}
.noteband__k { color: var(--expat-ink-mute); }
.noteband__link {
  display: inline-block;
  font-size: var(--expat-t-13);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--expat-ink);
  border-bottom: 1px solid var(--expat-gold);
  padding-bottom: var(--expat-space-1);
  transition: color var(--expat-duration) var(--expat-ease), border-color var(--expat-duration) var(--expat-ease);
}
.noteband__link:hover { color: var(--expat-gold); border-color: var(--expat-ink); }

/* ★ THE SEASON BAND — Season Scheduler. Rendered from an operator field, never from a
   template literal, and NOT rendered at all when no campaign is live or when the campaign's
   end date has passed. Visually it sits a little forward of the note band, because a season is
   an invitation while a note band is a statement. Tokens only; no literal colour anywhere. */
.seasonband {
  background: var(--expat-field);
  border-top: 1px solid var(--expat-gold);
  border-bottom: 1px solid var(--expat-rule-2);
  padding: var(--expat-space-8) 0;
}
.seasonband__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: var(--expat-space-8);
  align-items: center;
}
.seasonband__eyebrow {
  margin: 0 0 var(--expat-space-2);
  font-size: var(--expat-t-11);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--expat-gold);
}
.seasonband h2 {
  font-family: var(--expat-serif);
  font-size: var(--expat-t-band);
  line-height: var(--expat-lh-tight);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--expat-ink);
  max-width: 26ch;
  margin: 0;
}
.seasonband__note {
  font-size: var(--expat-t-14);
  line-height: var(--expat-lh-body);
  color: var(--expat-ink-band);
  max-width: 58ch;
  margin: var(--expat-space-3) 0 0;
}
.seasonband__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--expat-space-3);
  border-top: 1px solid var(--expat-rule-2);
  padding-top: var(--expat-space-3);
}
.seasonband__link {
  display: inline-block;
  font-size: var(--expat-t-13);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--expat-ink);
  border-bottom: 1px solid var(--expat-gold);
  padding-bottom: var(--expat-space-1);
  transition: color var(--expat-duration) var(--expat-ease), border-color var(--expat-duration) var(--expat-ease);
}
.seasonband__link:hover { color: var(--expat-gold); border-color: var(--expat-ink); }
.seasonband__order {
  margin: 0;
  font-size: var(--expat-t-11);
  line-height: var(--expat-lh-body);
  letter-spacing: 0.06em;
  color: var(--expat-ink-mute);
}

/* ============================ ADMIN ONLY =============================== */
.expat-admin-notice {
  background: var(--expat-band-alt);
  border-left: 3px solid var(--expat-gold);
  padding: var(--expat-space-3) var(--expat-space-4);
  font-size: var(--expat-t-13);
  margin: 0 0 var(--expat-space-4);
}
.expat-admin-notice code { font-size: var(--expat-t-11); }

/* ============================ RESPONSIVE =============================== */
@media (max-width: 1200px) {
  .depts { gap: var(--expat-space-3); }
}

@media (max-width: 900px) {
  .noteband__grid { grid-template-columns: 1fr; gap: var(--expat-space-5); }
  .depts, .utils { display: none; }
  .mtoggle { display: block; }
  .hdr__inner { padding: var(--expat-space-3) var(--expat-gutter); gap: var(--expat-space-3); }
}

@media (max-width: 600px) {
  .noteband h2 { font-size: var(--expat-t-32); }
  .hdr__inner { padding: var(--expat-space-3) var(--expat-gutter-mobile); }
  .btn { width: 100%; }
  .claims-table th { width: auto; }
  .claims-table th,
  .claims-table td { display: block; padding: var(--expat-space-1) 0; border-bottom: 0; }
  .claims-table tr { display: block; border-bottom: 1px solid var(--expat-rule); padding: var(--expat-space-3) 0; }
}
