/* ============================================================
   THE GUANAJUATO REGISTER: Wonderful Guanajuato main site
   reskin. One design language for the whole property: the
   printed silver register of Guanajuato, opened to the street.
   (Design name before 2026-11-25: El Padrón de Plata. Paul
   renamed the register The Guanajuato Register on 2026-11-25;
   folio numbering is unchanged. Spanish: El Registro de
   Guanajuato, in the string table at inc/i18n.php.)
   Source of truth: design-elevation-round3-master-2026-11-24/
   DESIGN.md (owner app) and the approved public translation in
   wg-main-site-padron-mockups-2026-11-24/DESIGN-NOTE.md.
   Paul's unification ruling, 2026-11-24 06:57 CST.
   This layer loads last (deps wg-main + wg-directory). It
   remaps the legacy La Plata / Valley of Color variables onto
   the register tokens and restyles the public components.
   Cormorant Garamond is the only serif; Archivo the only
   functional face. Radius 0 everywhere except the seal.
   No pills, no shadows, no gradients, no card grid.
   ============================================================ */
@font-face{ font-family:'Cormorant Garamond'; src:url('fonts/cormorant-normal-500.woff2') format('woff2'); font-weight:500; font-display:swap; }
@font-face{ font-family:'Cormorant Garamond'; src:url('fonts/cormorant-normal-600.woff2') format('woff2'); font-weight:600; font-display:swap; }
@font-face{ font-family:'Cormorant Garamond'; src:url('fonts/cormorant-italic-500.woff2') format('woff2'); font-weight:500; font-style:italic; font-display:swap; }
@font-face{ font-family:'Archivo'; src:url('fonts/archivo-normal-100-900.woff2') format('woff2'); font-weight:100 900; font-display:swap; }

:root{
  /* register tokens */
  --desk:#E9E1CF; --paper-r:#FAF6ED; --sheet:#FFFFFF; --band:#F1EADA; --band2:#EFE6D2;
  --ink-r:#1D1A13; --ink2-r:#57503F; --silver:#59544A; --hair:#D8CFB8; --hair2:#B9AC8C;
  --gold:#74581A; --gold-deep:#5E4713; --gold-soft:#C6A15B;
  --seal:#9C2B1B; --seal-bg:#F7E4DC; --ok:#2C5F46; --ok-bg:#E7EDDF;
  --warn:#8A5A00; --warn-bg:#F6ECD2; --focus:#74581A; --field:#FFFFFF;
  /* legacy variable remap: the old sheets repaint themselves */
  --paper:#E9E1CF; --paper-soft:#FFFFFF; --paper-band:#F1EADA;
  --ink:#1D1A13; --ink2:#57503F; --label:#59544A;
  --line:#D8CFB8; --line-strong:#B9AC8C; --radius:0px;
  --fuchsia:#74581A; --fuchsia-deep:#5E4713; --marigold:#74581A; --turquoise:#2C5F46; --coral:#9C2B1B;
  --pl-paper:#FFFFFF; --pl-paper-2:#FFFFFF; --pl-mat:#E9E1CF; --pl-band:#F1EADA; --pl-band-2:#EFE6D2;
  --pl-ink:#1D1A13; --pl-ink-2:#57503F; --pl-silver:#59544A; --pl-hair:#D8CFB8; --pl-hair-2:#B9AC8C;
  --pl-gold:#74581A; --pl-gold-deep:#5E4713; --pl-gold-soft:#C6A15B; --pl-gold-pale:#D8BC7A;
  --pv-lilac:#74581A; --pv-lilac-tint:#F1EADA; --pv-lilac-pale:#C6A15B; --pv-lilac-mid:#74581A;
  --pv-emerald:#74581A; --pv-emerald-tint:#F1EADA; --pv-emerald-pale:#C6A15B;
  --pv-emerald-band:#211D15; --pv-emerald-band-2:#2A251B;
  --pv-apricot:#74581A; --pv-apricot-tint:#F1EADA; --pv-apricot-pale:#C6A15B; --pv-apricot-mid:#74581A;
  --pv-plum:#211D15; --pv-plum-2:#2A251B;
}
@media (prefers-color-scheme: dark){
  :root{
    --desk:#14110C; --paper-r:#1D1A15; --sheet:#211D15; --band:#2A251B; --band2:#2A251B;
    --ink-r:#F5EEDB; --ink2-r:#D9CFB4; --silver:#B4A888;
    --hair:rgba(245,238,219,.18); --hair2:rgba(245,238,219,.34);
    --gold:#D8BC7A; --gold-deep:#D8BC7A; --gold-soft:#C6A15B;
    --seal:#E08A76; --seal-bg:rgba(224,138,118,.12); --ok:#9CC5A5; --ok-bg:rgba(156,197,165,.12);
    --warn:#E8C87A; --warn-bg:rgba(232,200,122,.10); --focus:#D8BC7A; --field:#2A251B;
    --paper:#14110C; --paper-soft:#211D15; --paper-band:#2A251B;
    --ink:#F5EEDB; --ink2:#D9CFB4; --label:#B4A888;
    --line:rgba(245,238,219,.18); --line-strong:rgba(245,238,219,.34);
    --fuchsia:#D8BC7A; --fuchsia-deep:#D8BC7A; --marigold:#D8BC7A; --turquoise:#9CC5A5; --coral:#E08A76;
    --pl-paper:#211D15; --pl-paper-2:#211D15; --pl-mat:#14110C; --pl-band:#2A251B; --pl-band-2:#2A251B;
    --pl-ink:#F5EEDB; --pl-ink-2:#D9CFB4; --pl-silver:#B4A888;
    --pl-hair:rgba(245,238,219,.18); --pl-hair-2:rgba(245,238,219,.34);
    --pl-gold:#D8BC7A; --pl-gold-deep:#D8BC7A;
    --pv-lilac:#D8BC7A; --pv-lilac-tint:#2A251B; --pv-lilac-pale:#C6A15B; --pv-lilac-mid:#D8BC7A;
    --pv-emerald:#D8BC7A; --pv-emerald-tint:#2A251B; --pv-emerald-pale:#C6A15B;
    --pv-apricot:#D8BC7A; --pv-apricot-tint:#2A251B; --pv-apricot-pale:#C6A15B; --pv-apricot-mid:#D8BC7A;
  }
}

/* ---------- base ---------- */
html{ background:var(--desk); scroll-behavior:auto; }
body{ background:var(--desk); color:var(--ink-r); font-family:'Archivo',sans-serif; }
h1,h2,h3,h4{ font-family:'Cormorant Garamond',Georgia,serif; color:var(--ink-r); }
a{ color:var(--gold); }
a:hover{ color:var(--gold-deep); }
::selection{ background:var(--gold); color:var(--sheet); }
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{ outline:2px solid var(--focus); outline-offset:3px; }
.num{ font-variant-numeric:tabular-nums; }

/* exclusions, enforced on the reskinned surfaces */
.wg-header,.wg-main,.wg-footer,.wgd,.wgd-single{ --radius:0px; }
.wg-main *, .wg-header *, .wg-footer *{ box-shadow:none !important; }
.pv-progress,.pv-facade{ display:none !important; }
.wg-main [data-parallax]{ transform:none !important; }
.wg-motion-ready [data-reveal], .pv-js [data-reveal]{ opacity:1 !important; transform:none !important; transition:none !important; }

/* ---------- header: the desk strip ---------- */
.wg-header{ background:var(--desk); border-bottom:1px solid var(--hair2); position:static; padding:20px 0; box-shadow:none !important; }
.wg-header-in{ display:flex; justify-content:space-between; align-items:center; gap:20px; }
.wg-brand{ font-family:'Cormorant Garamond',serif; font-weight:600; font-size:23px; color:var(--ink-r); text-decoration:none; }
.wg-brand span{ color:var(--ink-r); }
.wg-brand:hover{ color:var(--gold-deep); text-decoration:none; }
.wg-menu{ display:flex; gap:24px; list-style:none; margin:0; padding:0; }
.wg-menu a{ color:var(--ink2-r); font-weight:600; font-size:14.5px; padding:4px 0; border-radius:0; text-decoration:none; white-space:nowrap; }
.wg-menu a:hover{ color:var(--gold); text-decoration:none; }
.wg-nav-toggle{ background:var(--gold); color:var(--sheet); border:1px solid var(--gold); border-radius:0; font-family:'Archivo',sans-serif; font-weight:700; min-height:44px; padding:10px 18px; }
@media (prefers-color-scheme: dark){ .wg-nav-toggle{ color:#211D15; } }
.wg-skip{ border-radius:0; background:var(--ink-r); }

/* EN / ES toggle (header, 2026-11-25): two links in a ruled
   box, gold when active, 44px touch targets. The links point
   at the /es/ prefixed or unprefixed URL of the current page
   (inc/i18n.php); the string swap itself is server side. */
.wg-lang{ display:flex; border:1px solid var(--hair2); background:var(--sheet); flex:none; }
.wg-lang a{ color:var(--ink2-r); font-family:'Archivo',sans-serif; font-weight:700; font-size:13px; letter-spacing:.1em; padding:9px 14px; min-height:44px; display:flex; align-items:center; text-decoration:none; }
.wg-lang a + a{ border-left:1px solid var(--hair2); }
.wg-lang a[aria-pressed="true"]{ background:var(--gold); color:#FFFFFF; }
.wg-lang a:hover{ text-decoration:none; }
@media (prefers-color-scheme: dark){ .wg-lang a[aria-pressed="true"]{ color:#211D15; } }

/* The kicker as markup (2026-11-25): the directory kicker
   used to be a content: string on h1::before in this sheet,
   where it could never be translated or renamed centrally.
   It now prints in page.php through wg_t('dir_kicker') and
   takes its typography from this class. */
.wg-kicker{ font-family:'Archivo',sans-serif; font-size:11.5px; letter-spacing:.16em; text-transform:uppercase; color:var(--gold-deep); font-weight:700; margin:0 0 12px; }

/* ---------- shared furniture (from the R3 master, verbatim values) ---------- */
.seal-medallion{ width:92px; height:92px; border-radius:50%; border:2px solid var(--gold); background:var(--sheet); color:var(--gold-deep); display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; flex:none; }
.seal-medallion .sm-wg{ font-family:'Cormorant Garamond',serif; font-weight:600; font-size:30px; line-height:1; }
.seal-medallion .sm-sub{ font-size:7.5px; letter-spacing:.18em; text-transform:uppercase; font-weight:700; margin-top:3px; }
.kicker{ font-size:11.5px; letter-spacing:.16em; text-transform:uppercase; color:var(--gold-deep); font-weight:700; }
.dateline{ font-size:12.5px; color:var(--silver); white-space:nowrap; }
.subject{ font-family:'Cormorant Garamond',serif; font-weight:600; font-size:clamp(3.1rem,6.6vw,6.4rem); line-height:.96; letter-spacing:-.015em; margin-top:14px; }
.subject.mid{ font-size:clamp(2.6rem,5.2vw,4.6rem); }
.subject em{ font-style:italic; font-weight:500; }
.metaline{ margin-top:14px; font-size:14.5px; color:var(--ink2-r); display:flex; gap:10px; flex-wrap:wrap; }
.metaline b{ color:var(--ink-r); font-weight:700; }
.lede{ margin-top:14px; font-size:16.5px; color:var(--ink2-r); max-width:64ch; line-height:1.55; }
.doublerule{ border-top:3px solid var(--gold); position:relative; margin-top:26px; }
.doublerule::after{ content:""; position:absolute; left:0; right:0; top:3px; border-top:1px solid var(--gold-soft); }
.ledgerband{ display:grid; grid-template-columns:repeat(4,1fr); margin-top:30px; border-bottom:1px solid var(--hair); }
.ledgerband.three{ grid-template-columns:repeat(3,1fr); }
.figure{ padding:4px 22px 20px; border-left:1px solid var(--hair); }
.figure:first-child{ border-left:none; padding-left:0; }
.figure .value{ font-size:clamp(2.3rem,3.8vw,3.6rem); font-weight:800; letter-spacing:-.02em; line-height:1; font-variant-numeric:tabular-nums; }
.figure .flabel{ margin-top:9px; font-size:11.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--silver); font-weight:600; }
.chapter{ display:flex; align-items:center; gap:16px; margin-top:44px; }
.chapter .rn{ background:var(--gold); color:#FFFFFF; font-family:'Archivo',sans-serif; font-weight:800; font-size:13px; letter-spacing:.1em; padding:5px 11px; flex:none; }
@media (prefers-color-scheme: dark){ .chapter .rn{ color:#211D15; } }
.chapter h2{ font-family:'Cormorant Garamond',serif; font-weight:600; font-size:clamp(1.9rem,3vw,2.5rem); line-height:1; margin:0; }
.chapter .rule{ flex:1; border-top:1px solid var(--hair2); transform:translateY(-4px); }
.btn-gold{ display:inline-block; background:var(--gold); color:var(--sheet); font-weight:700; font-size:15px; padding:12px 22px; border:1px solid var(--gold); cursor:pointer; font-family:'Archivo',sans-serif; white-space:nowrap; text-decoration:none; }
.btn-gold:hover{ color:var(--sheet); text-decoration:none; }
@media (prefers-color-scheme: dark){ .btn-gold{ color:#211D15; } .btn-gold:hover{ color:#211D15; } }
.btn-line{ display:inline-block; border:1px solid var(--gold); color:var(--gold-deep); background:transparent; font-weight:700; font-size:14.5px; padding:10px 18px; cursor:pointer; font-family:'Archivo',sans-serif; white-space:nowrap; text-decoration:none; }
.btn-line:hover{ color:var(--gold-deep); text-decoration:none; }
.btn-quiet{ display:inline-block; border:1px solid var(--hair2); color:var(--ink-r); background:transparent; font-weight:600; font-size:14px; padding:10px 16px; cursor:pointer; font-family:'Archivo',sans-serif; white-space:nowrap; text-decoration:none; }
.openline{ margin-top:28px; background:var(--band); border-left:4px solid var(--seal); padding:20px 24px; }
.openline .ol-label{ font-size:11.5px; letter-spacing:.16em; text-transform:uppercase; color:var(--seal); font-weight:800; }
.openline .ol-action{ font-family:'Cormorant Garamond',serif; font-size:29px; font-weight:600; line-height:1.05; margin-top:6px; }
.openline .ol-help{ color:var(--ink2-r); font-size:14px; max-width:62ch; margin-top:8px; }

/* sheets: every top-level surface sits on the desk.
   Spacing scale (2026-11-25, Paul's homepage pass): one set
   of steps for every surface head. Desk gap between surfaces
   32px; sheet top padding 48px (the hero-to-seal step);
   article top padding 40px (directory and listing heads);
   masthead caption clearance 76px desktop and 52px mobile,
   which is the sheet overlap (64px desktop, 40px mobile)
   plus 12px of air, so the caption always renders on the
   photograph, never under the sheet. These are the values of
   the live caption fix applied 2026-11-25 (backup on the live
   theme at assets/padron.css.bak-2026-11-25-caption); this
   merge preserves them. */
.pd-sheet{ background:var(--sheet); border:1px solid var(--hair2); border-top:4px solid var(--gold); margin:32px 40px 0; padding:48px 48px 56px; position:relative; }
.pd-masthead{ position:relative; height:330px; overflow:hidden; margin-top:26px; background:#DAD0B8 url('https://wonderfulguanajuato.com/wp-content/uploads/2026/11/pipila-panorama-1024x682.jpg') center 62%/cover no-repeat; }
.pd-masthead img{ width:100%; height:100%; object-fit:cover; object-position:center 36%; display:block; }
.pd-masthead .mh-line{ position:absolute; left:0; right:0; bottom:0; height:6px; background:var(--gold); }
.pd-masthead figcaption{ position:absolute; left:40px; bottom:76px; max-width:min(430px, calc(100% - 80px)); background:var(--sheet); color:var(--ink2-r); font-size:12.5px; line-height:1.45; padding:6px 11px; }
.pd-sheet-first{ margin-top:-64px; z-index:2; }
.sheet-head{ display:flex; justify-content:space-between; align-items:flex-start; gap:20px; }
.pd-head-flex{ display:flex; gap:20px; align-items:flex-start; }

/* folios (homepage featured) */
.folio{ display:grid; grid-template-columns:118px 330px 1fr auto; gap:28px; padding:30px 0 34px; border-bottom:1px solid var(--hair); align-items:start; }
.folio:last-child{ border-bottom:none; }
.folio .f-num{ font-family:'Cormorant Garamond',serif; font-weight:600; font-size:31px; color:var(--gold-deep); line-height:1; }
.folio .f-claim{ margin-top:10px; font-size:12px; color:var(--silver); line-height:1.45; }
.folio .f-claim b{ color:var(--ink2-r); font-weight:700; display:block; font-size:12.5px; }
.folio .f-claim.open b{ color:var(--ink2-r); }
.folio .f-claim.claimed b{ color:var(--ok); }
.folio .photo{ width:330px; height:205px; object-fit:cover; display:block; }
.folio .mat{ width:330px; height:205px; background:var(--band2); border:1px solid var(--hair); display:flex; align-items:center; justify-content:center; }
.folio .mat span{ font-family:'Cormorant Garamond',serif; font-style:italic; font-weight:500; font-size:104px; line-height:1; color:var(--silver); opacity:.6; }
.folio h3{ font-family:'Cormorant Garamond',serif; font-weight:600; font-size:33px; line-height:1.02; margin:0; }
.folio h3 a{ color:var(--ink-r); text-decoration:none; }
.folio h3 a:hover{ color:var(--gold-deep); }
.folio .meta{ color:var(--ink2-r); font-size:14px; margin-top:6px; }
.folio .dataline{ margin-top:13px; font-size:14px; display:flex; gap:8px; flex-wrap:wrap; color:var(--ink2-r); }
.folio .dataline b{ font-weight:700; color:var(--ink-r); }
.folio .note{ margin-top:11px; font-size:14px; color:var(--ink2-r); max-width:52ch; }
.folio .f-actions{ display:flex; flex-direction:column; gap:10px; align-items:stretch; }
.pd-browse{ display:flex; align-items:baseline; gap:18px; padding:20px 0 4px; font-size:15px; }
.pd-browse b{ font-family:'Cormorant Garamond',serif; font-size:24px; font-weight:600; }
.pd-browse .pl-bignum{ margin-left:auto; font-size:clamp(2rem,3.4vw,3rem); font-weight:800; font-style:normal; line-height:1; font-variant-numeric:tabular-nums; }

/* chapter index rows (homepage) */
.chaprow{ display:flex; align-items:baseline; gap:18px; padding:17px 0; border-bottom:1px solid var(--hair); text-decoration:none; }
.chaprow:first-of-type{ border-top:1px solid var(--hair); }
.rn-tab{ background:var(--gold); color:#FFFFFF; font-family:'Archivo',sans-serif; font-weight:800; font-size:12.5px; letter-spacing:.1em; padding:4px 10px; flex:none; transform:translateY(-2px); }
@media (prefers-color-scheme: dark){ .rn-tab{ color:#211D15; } }
.chaprow .ch-name{ font-family:'Cormorant Garamond',serif; font-weight:600; font-size:27px; line-height:1; white-space:nowrap; color:var(--ink-r); }
.chaprow .ch-rule{ flex:1; border-top:1px solid var(--hair2); transform:translateY(-4px); }
.chaprow .ch-folios{ font-size:13px; color:var(--silver); font-weight:600; white-space:nowrap; }
a.chaprow:hover .ch-name{ color:var(--gold-deep); }

/* register ledger rows (directory) */
.regrow{ display:grid; grid-template-columns:112px 1fr auto; gap:26px; padding:21px 0 23px; border-bottom:1px solid var(--hair); align-items:start; }
.totalline{ margin-top:38px; }
.totalline .tl-rule{ border-top:3px solid var(--gold); position:relative; }
.totalline .tl-rule::after{ content:""; position:absolute; left:0; right:0; top:3px; border-top:1px solid var(--gold-soft); }
.totalline .tl-body{ display:flex; align-items:baseline; gap:20px; padding-top:18px; flex-wrap:wrap; }
.totalline .tl-label{ font-size:11.5px; letter-spacing:.16em; text-transform:uppercase; color:var(--silver); font-weight:700; }
.totalline .tl-value{ font-size:clamp(2.6rem,4.4vw,4rem); font-weight:800; letter-spacing:-.02em; line-height:1; font-variant-numeric:tabular-nums; }
.totalline .tl-word{ font-family:'Cormorant Garamond',serif; font-weight:600; font-size:clamp(1.6rem,2.6vw,2.2rem); line-height:1; color:var(--gold-deep); }
.totalline .tl-note{ margin-left:auto; font-size:13.5px; color:var(--ink2-r); font-weight:600; }

/* ---------- homepage legacy sections, repainted ---------- */
body.home .wg-main > section{ background:var(--sheet); border:1px solid var(--hair2); border-top:4px solid var(--gold); margin:32px 40px 0; padding-top:40px; padding-bottom:48px; }
body.home .wg-main > section.pd-masthead-wrap{ background:none; border:none; margin:0; padding:0; }
body.home .wg-main > .pd-sheet{ margin-top:-64px; }
body.home .wg-main > section.wg-descent{ background:var(--sheet); }
.pl-sec-head .pl-chapter-no{ display:none; }
.pl-sec-head h2{ font-family:'Cormorant Garamond',serif; font-weight:600; font-size:clamp(1.9rem,3vw,2.5rem); line-height:1.05; }
.pl-sec-head h2 em{ font-style:italic; font-weight:500; }
.wg-eyebrow{ color:var(--gold-deep); letter-spacing:.16em; text-transform:uppercase; font-size:11.5px; font-weight:700; }
.pl-btn,.wg-btn{ border-radius:0 !important; box-shadow:none !important; background:var(--gold); color:var(--sheet); border:1px solid var(--gold); font-family:'Archivo',sans-serif; font-weight:700; transform:none !important; }
.pl-btn:hover,.wg-btn:hover{ background:var(--gold); color:var(--sheet); }
@media (prefers-color-scheme: dark){ .pl-btn,.wg-btn{ color:#211D15; } .pl-btn:hover,.wg-btn:hover{ color:#211D15; } }
.pl-btn-ghost,.wg-btn-ghost,.pl-btn-sm{ background:transparent; color:var(--gold-deep); border:1px solid var(--gold); }
.pl-btn-ghost:hover,.wg-btn-ghost:hover{ background:transparent; color:var(--gold-deep); }
.wg-card,.pl-gcard{ background:var(--sheet); border:1px solid var(--hair); border-top:4px solid var(--gold); border-radius:0; padding:24px; }
.wg-card .rn{ color:var(--gold-deep); font-size:11.5px; letter-spacing:.14em; text-transform:uppercase; font-weight:700; font-family:'Archivo',sans-serif; }
.pl-needs .pl-need,.wg-need-chips .pl-need{ border:1px solid var(--hair2); border-radius:0; background:var(--sheet); color:var(--ink-r); padding:10px 14px; font-weight:600; }
.pl-needs .pl-need i{ color:var(--gold-deep); font-style:normal; font-weight:800; }
.pv-tint-lilac,.pv-tint-emerald,.pv-tint-apricot,.pv-band-emerald{ background:var(--sheet) !important; }
.pl-strip{ background:var(--band); border:1px solid var(--hair); border-radius:0; }
.pl-strip > div{ background:transparent !important; color:var(--ink-r) !important; border-radius:0; }
.pl-strip strong{ font-variant-numeric:tabular-nums; }
.wg-strip{ background:var(--band); }
.wg-heritage{ background:var(--band); color:var(--ink-r); }
.wg-heritage h2,.wg-heritage h3{ color:var(--ink-r); }
.wg-descent{ color:var(--ink-r); background:var(--sheet); }
.wg-descent h2{ color:var(--ink-r); }
.wg-descent svg circle{ fill:var(--gold-soft); stroke:var(--ink-r); }
.wg-descent svg path,.wg-route svg path{ stroke:var(--ink-r); }
.wg-route svg circle{ fill:var(--gold-soft); stroke:var(--ink-r); }
.wg-route-sheet{ background:var(--sheet); background-image:none; box-shadow:none !important; border:1px solid var(--hair2); }
.pl-plate .pl-lamina,.pl-lamina{ color:var(--gold-deep); font-family:'Archivo',sans-serif; letter-spacing:.14em; text-transform:uppercase; font-size:11px; font-weight:700; }
.wg-book-card{ background:var(--band); border:1px solid var(--hair); border-radius:0; }
.wg-findbiz input,.wg-dir-search input{ background:var(--field); border:1px solid var(--hair2); border-radius:0; color:var(--ink-r); font-family:'Archivo',sans-serif; }
.wg-scope-chip{ border-radius:0; border:1px solid var(--hair2); background:var(--sheet); color:var(--ink2-r); font-family:'Archivo',sans-serif; font-weight:600; }
.wg-scope-chip.is-on{ background:var(--gold); border-color:var(--gold); color:#FFFFFF; }
@media (prefers-color-scheme: dark){ .wg-scope-chip.is-on{ color:#211D15; } }
.wg-city{ border-radius:0; }
.wg-city.is-on{ background:var(--gold); color:#FFFFFF; }
@media (prefers-color-scheme: dark){ .wg-city.is-on{ color:#211D15; } }
.pd-partida{ background:var(--band); border-left:4px solid var(--seal); border-top:1px solid var(--hair); border-right:1px solid var(--hair); border-bottom:1px solid var(--hair); }
.pd-partida h2{ margin-top:6px; }
.pd-partida .wg-btn-ghost-dark{ background:transparent; color:var(--gold-deep); border:1px solid var(--gold); }
.wg-level-indicator{ display:none; }

/* ---------- directory (plugin markup, register grammar) ---------- */
.wgd .wgd-lede{ font-size:16.5px; color:var(--ink2-r); max-width:64ch; }
/* Category grid (merged from the approved redesign layer,
   2026-11-25): a true grid, one size for every chapter, at
   phone and desktop widths alike. The plugin sheet lays the
   catcard out as a column flex box with a full border and a
   76px minimum height; every one of those is reset here
   explicitly, so the two sheets stop fighting and no card
   can size itself to its own text again. */
.wgd-catrow{ display:grid; grid-template-columns:repeat(2,1fr); grid-auto-rows:1fr; gap:16px; margin-top:26px; border:none; background:transparent; }
@media (min-width:820px){ .wgd-catrow{ grid-template-columns:repeat(3,1fr); gap:20px; } }
@media (min-width:1180px){ .wgd-catrow{ grid-template-columns:repeat(4,1fr); } }
.wgd-catcard{ display:flex; flex-direction:column; min-height:0; height:100%; padding:0; gap:0; background:var(--sheet); border:1px solid var(--hair2); border-top:4px solid var(--gold); border-radius:0; box-shadow:none !important; text-decoration:none; }
.wgd-catcard:hover{ border-color:var(--gold); text-decoration:none; }
.wgd-catplate{ aspect-ratio:3/2; overflow:hidden; background:var(--band2); flex:none; display:block; }
.wgd-catplate img{ width:100%; height:100%; object-fit:cover; display:block; }
.wgd-catplate.mat{ display:flex; padding:10px; }
.wgd-catplate.mat .mat-in{ flex:1; border:1px solid var(--hair2); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; }
.wgd-catplate.mat .mat-rn{ font-family:'Cormorant Garamond',serif; font-style:italic; font-weight:500; font-size:56px; line-height:1; color:var(--silver); }
.wgd-catplate.mat .mat-word{ font-size:10.5px; letter-spacing:.16em; text-transform:uppercase; color:var(--silver); font-weight:700; }
.wgd-catbody{ padding:14px 16px 16px; display:flex; flex-direction:column; gap:5px; flex:1; }
.wgd-catbody .rn-tab{ align-self:flex-start; font-size:11px; color:#FFFFFF; }
/* The two class selectors below are deliberate: the plugin
   sheet sets .wgd-catcard span{font-size:.9rem;color:ink2},
   which outranks any single class rule, so the name, count
   and credit carry the extra class to keep their sizes. */
.wgd-catcard .wgd-catname{ font-family:'Cormorant Garamond',serif; font-weight:600; font-size:24px; line-height:1.04; color:var(--ink-r); }
.wgd-catcard:hover .wgd-catname{ color:var(--gold-deep); }
.wgd-catcard .wgd-catcount{ margin-top:auto; font-size:12.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--silver); font-weight:700; }
.wgd-catcard .wgd-catcount b{ color:var(--gold-deep); font-size:15px; font-variant-numeric:tabular-nums; }
.wgd-catcard .wgd-catcredit{ font-size:11px; line-height:1.4; color:var(--silver); }
.wgd-filter{ display:flex; gap:14px; flex-wrap:wrap; align-items:end; margin-top:26px; padding:18px 0; border-top:1px solid var(--hair); border-bottom:1px solid var(--hair); }
.wgd-filter label{ font-size:13.5px; font-weight:700; display:flex; flex-direction:column; gap:6px; }
.wgd-filter input,.wgd-filter select{ background:var(--field); border:1px solid var(--hair2); border-radius:0; color:var(--ink-r); font-family:'Archivo',sans-serif; font-size:15px; padding:10px 12px; }
/* Listing grid (merged from the approved redesign layer,
   2026-11-25): the plugin card restored to a card. The plate
   is the listing's own photo when it has one, its chapter
   photograph until the owner claims the folio, with the gold
   folio tab printed by the plugin patch. Equal heights per
   row; the actions pin to the foot of the body. */
.wgd-grid{ display:grid; grid-template-columns:1fr; gap:18px; margin-top:26px; }
@media (min-width:820px){ .wgd-grid{ grid-template-columns:repeat(2,1fr); gap:20px; } }
@media (min-width:1180px){ .wgd-grid{ grid-template-columns:repeat(3,1fr); } }
.wgd-card{ display:flex; flex-direction:column; height:100%; padding:0; background:var(--sheet); border:1px solid var(--hair2); border-radius:0; box-shadow:none !important; }
.wgd-card-img{ position:relative; aspect-ratio:16/10; overflow:hidden; background:var(--band2); flex:none; display:block; }
.wgd-card-img img{ width:100%; height:100%; object-fit:cover; display:block; }
.wgd-card-img.mat{ display:flex; padding:10px; }
.wgd-card-img.mat .mat-in{ flex:1; border:1px solid var(--hair2); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; }
.wgd-card-img.mat .mat-rn{ font-family:'Cormorant Garamond',serif; font-style:italic; font-weight:500; font-size:64px; line-height:1; color:var(--silver); }
.wgd-card-img.mat .mat-word{ font-size:10.5px; letter-spacing:.16em; text-transform:uppercase; color:var(--silver); font-weight:700; }
.wgd-foliotab{ position:absolute; left:0; bottom:0; background:var(--gold); color:#FFFFFF; font-family:'Archivo',sans-serif; font-weight:800; font-size:13px; letter-spacing:.1em; padding:6px 12px; }
@media (prefers-color-scheme: dark){ .wgd-foliotab{ color:#211D15; } }
.wgd-card-body{ padding:16px 18px 18px; display:flex; flex-direction:column; flex:1; }
/* Order guard: the ledger-row rules this block replaced set
   order:2 on .wgd-chips and order:3 on .wgd-addr. Inside a
   flex card those orders would push the actions above the
   chips, so the card body resets them explicitly. Keep this
   guard wherever the plugin card markup is restyled. */
.wgd-card-body .wgd-chips, .wgd-card-body .wgd-addr, .wgd-card-body .wgd-actions{ order:0; }
.wgd-card-body .wgd-chips{ margin:0; font-size:13.5px; color:var(--ink2-r); display:flex; gap:8px; flex-wrap:wrap; }
.wgd-card h3{ font-family:'Cormorant Garamond',serif; font-weight:600; font-size:27px; line-height:1.02; margin:7px 0 0; }
.wgd-card h3 a{ color:var(--ink-r); text-decoration:none; }
.wgd-card h3 a:hover{ color:var(--gold-deep); }
.wgd-chip{ background:none; border:none; border-radius:0; padding:0; color:var(--ink2-r); font-weight:600; text-decoration:none; }
.wgd-chip::after{ content:"·"; margin-left:8px; color:var(--silver); }
.wgd-chip:last-child::after{ content:""; }
.wgd-chip-claim{ color:var(--gold-deep); font-weight:700; }
.wgd-chip-founding{ color:var(--gold-deep); font-weight:700; }
.wgd-chip-closed{ color:var(--seal); font-weight:700; }
.wgd-card-body .wgd-addr{ margin:5px 0 0; font-size:13.5px; color:var(--ink2-r); }
.wgd-card-body .wgd-actions{ margin-top:auto; padding-top:15px; display:flex; gap:10px; flex-wrap:wrap; }
.wgd-platenote{ margin-top:16px; font-size:13.5px; color:var(--silver); max-width:72ch; }
.wgd-platenote b{ color:var(--ink2-r); }
.wgd-credits{ margin-top:8px; font-size:12px; line-height:1.5; color:var(--silver); max-width:72ch; }
.wgd-btn{ display:inline-block; background:var(--gold); color:var(--sheet); border:1px solid var(--gold); border-radius:0; font-family:'Archivo',sans-serif; font-weight:700; font-size:14.5px; padding:10px 18px; text-decoration:none; box-shadow:none !important; text-align:center; }
.wgd-btn:hover{ color:var(--sheet); text-decoration:none; }
@media (prefers-color-scheme: dark){ .wgd-btn{ color:#211D15; } .wgd-btn:hover{ color:#211D15; } }
.wgd-btn-ghost{ background:transparent; color:var(--gold-deep); border:1px solid var(--gold); }
.wgd-btn-ghost:hover{ color:var(--gold-deep); }
.wgd-btn-small{ font-size:13.5px; padding:8px 14px; }
.wgd-pagination{ margin-top:26px; display:flex; gap:10px; flex-wrap:wrap; font-weight:600; }
.wgd-pagination .page-numbers{ border:1px solid var(--hair2); padding:8px 13px; color:var(--ink2-r); text-decoration:none; }
.wgd-pagination .page-numbers.current{ background:var(--gold); border-color:var(--gold); color:#FFFFFF; }
@media (prefers-color-scheme: dark){ .wgd-pagination .page-numbers.current{ color:#211D15; } }
.wgd-cta{ margin-top:38px; background:var(--band); border-left:4px solid var(--seal); padding:20px 24px; border-radius:0; }
.wgd-cta h2{ font-family:'Cormorant Garamond',serif; font-size:29px; font-weight:600; margin:0 0 6px; }
.wgd-cta p{ color:var(--ink2-r); font-size:14.5px; max-width:62ch; }
.wgd-empty{ color:var(--ink2-r); padding:22px 0; }

/* ---------- single listing: the folio page ---------- */
.wgd-single .wg-crumb{ margin-bottom:10px; }
.pd-folio-line{ font-size:12.5px; color:var(--silver); font-weight:600; margin-top:4px; }
.pd-folio-line b{ color:var(--gold-deep); font-family:'Cormorant Garamond',serif; font-size:17px; font-weight:600; }
.wgd-single h1{ font-size:clamp(2.6rem,5.2vw,4.6rem); line-height:.98; }
.wgd-single .wgd-chips{ display:flex; gap:8px; flex-wrap:wrap; margin:0 0 8px; }
.wgd-nophoto{ background:var(--band2); border:1px solid var(--hair); color:var(--silver); font-family:'Cormorant Garamond',serif; font-style:italic; font-size:22px; padding:56px 24px; text-align:center; border-radius:0; }
.wgd-nophoto span{ font-family:'Archivo',sans-serif; font-style:normal; font-size:14px; }
.wgd-claimstrip{ background:var(--band); border-left:4px solid var(--seal); border-top:1px solid var(--hair); border-right:1px solid var(--hair); border-bottom:1px solid var(--hair); border-radius:0; padding:20px 24px; box-shadow:none !important; }
.wgd-facts{ border-top:3px solid var(--gold); margin-top:30px; }
.wgd-facts > p{ display:block; padding:11px 0; border-bottom:1px solid var(--hair); font-size:14.5px; margin:0; text-align:right; overflow:hidden; }
.wgd-facts > p > b:first-child{ float:left; color:var(--silver); font-size:12px; letter-spacing:.12em; text-transform:uppercase; font-weight:700; padding-top:3px; text-align:left; }
.wgd-actions-big{ display:flex; gap:10px; flex-wrap:wrap; margin-top:24px; }
.wgd-map iframe{ border:1px solid var(--hair2); filter:none; }
.wgd-gallery img{ border:1px solid var(--hair); }
.wgd-single-foot{ margin-top:30px; border-top:1px solid var(--hair); padding-top:18px; color:var(--ink2-r); font-size:14.5px; }

/* directory page head: the register's index sheet. The
   kicker prints as markup in page.php (wg_t('dir_kicker'))
   since 2026-11-25; it lived here as a content: string,
   where it could never be translated or renamed. The sheet
   runs wider than the 860px reading column the base sheet
   gives articles: at 860px the chapter grid's four columns
   would land near 150px each and the plates would shrink
   past the approved mockup's measure (246px cards at
   1440px). At 1060px the cards land at about 226px, the
   mockup's proportions, and the listing grid gets three
   honest columns. Directory page only; every other article
   keeps the reading column. The same reasoning exempts the
   directory body from the base sheet's 70ch prose measure:
   the directory's content is a grid and a filter, not prose,
   and the lede keeps its own 64ch measure in this sheet. */
.page-slug-directory .wg-article{ max-width:1060px; }
.page-slug-directory .wg-body{ max-width:none; }
.page-slug-directory .wg-article > h1{ font-size:clamp(2.6rem,5.2vw,4.6rem); line-height:.98; }
.page-slug-directory .totalline{ padding-bottom:10px; }

/* article furniture on pages and archives */
.wg-article{ background:var(--sheet); border:1px solid var(--hair2); border-top:4px solid var(--gold); padding:40px 48px 48px; margin-top:32px; }
.wg-crumb{ font-size:13px; color:var(--silver); font-weight:600; }
.wg-crumb a{ color:var(--ink2-r); }
.wg-footer{ background:var(--desk); border-top:1px solid var(--hair2); color:var(--silver); margin-top:44px; }
.wg-footer a{ color:var(--ink2-r); }
.wg-footer .wg-brand-foot{ color:var(--ink-r); }
.wg-footer-index a{ margin-right:6px; }

/* ---------- gate fixes, round 1 (2026-11-24) ----------
   The descent is the register's one charcoal plate, as its text
   was always designed for a dark ground; it keeps that ground in
   both schemes. The search form takes a field ground in both
   schemes (its literal cream card failed the dark census). The
   partida label takes ink on the band. */
body.home .wg-main > section.wg-descent{ background:#211D15; border-color:#211D15; border-top:4px solid var(--gold); color:#F5EEDB; }
.wg-descent{ background:#211D15; background-image:none; color:#F5EEDB; }
.wg-descent::before{ background:none; }
.wg-descent h2{ color:#F5EEDB; }
.wg-descent .wg-eyebrow{ color:#D8BC7A; }
.wg-descent .wg-descent-lede{ color:#D9CFB4; }
.wg-descent svg path{ stroke:#F5EEDB; }
.wg-descent svg circle{ fill:#C6A15B; stroke:#F5EEDB; }
.wg-descent .wg-lvl{ color:#F5EEDB; }
.wg-descent .wg-lvl b{ color:#D8BC7A; }
.wg-dir-search{ background:var(--field); border:1px solid var(--hair2); border-radius:0; box-shadow:none !important; padding:8px; }
.wg-dir-search input{ color:var(--ink-r); background:transparent; }
.wg-dir-search .wg-sr{ color:var(--ink2-r); }
.wg-dir-search .wg-scope-chip{ background:var(--band); color:var(--ink2-r); border:1px solid var(--hair2); border-radius:0; }
.wg-dir-search .wg-scope-chip.is-on{ background:var(--gold); border-color:var(--gold); color:#FFFFFF; }
@media (prefers-color-scheme: dark){ .wg-dir-search .wg-scope-chip.is-on{ color:#211D15; } }
.pd-partida label{ color:var(--ink-r); }
.pd-partida .wg-findbiz input{ background:var(--field); color:var(--ink-r); }
body.home .pd-partida .wg-findbiz label{ color:var(--ink-r); }
body.home .pd-partida .wg-findbiz input{ background:var(--field); border:1px solid var(--hair2); border-radius:0; color:var(--ink-r); }
body.home .pd-partida .wg-findbiz input::placeholder{ color:var(--silver); }
body.home .pd-partida .wg-findbiz button{ background:var(--gold); color:var(--sheet); border:1px solid var(--gold); border-radius:0; font-family:'Archivo',sans-serif; }
@media (prefers-color-scheme: dark){ body.home .pd-partida .wg-findbiz button{ color:#211D15; } }

/* ---------- gate fixes, round 2 (screenshot read, 2026-11-24) ----------
   The hero search submit is the register's primary action (gold,
   not the old charcoal pill). The claim strip's photo is squared:
   the seal is the only round element. The newsletter plate and
   the about-team cards lose their radius on reskinned pages. */
.wg-dir-search button[type="submit"]{ background:var(--gold); color:var(--sheet); border:1px solid var(--gold); border-radius:0; font-family:'Archivo',sans-serif; }
@media (prefers-color-scheme: dark){ .wg-dir-search button[type="submit"]{ color:#211D15; } }
.wgd-claimstrip .wgd-strip-photo, .wgd-claimstrip .wgd-strip-photo img{ border-radius:0 !important; }
.wg-newsletter{ border-radius:0; border-top:4px solid var(--gold); }
.wg-about-team, .wg-about-card, .wg-about-person, .wg-about-photos, .wg-about-team img{ border-radius:0 !important; }

/* ---------- responsive ---------- */
@media (max-width:760px){
  .pd-sheet{ margin:22px 0 0; border-left:none; border-right:none; padding:30px 18px 38px; }
  .pd-sheet-first{ margin-top:-40px; }
  .pd-masthead{ height:215px; margin-top:18px; }
  /* caption clearance at phone width: the 40px sheet
     overlap plus 12px of air, the live fix value. */
  .pd-masthead figcaption{ left:18px; bottom:52px; max-width:calc(100% - 36px); }
  body.home .wg-main > section{ margin:22px 0 0; padding:26px 18px 34px; border-left:none; border-right:none; }
  body.home .wg-main > section.pd-masthead-wrap{ margin:0; padding:0; }
  .sheet-head{ flex-direction:column; gap:4px; }
  .dateline{ white-space:normal; }
  .seal-medallion{ width:74px; height:74px; }
  .seal-medallion .sm-wg{ font-size:24px; }
  .ledgerband.three{ grid-template-columns:1fr 1fr; }
  .ledgerband.three .figure:nth-child(3){ border-left:none; padding-left:0; }
  .folio{ grid-template-columns:1fr; gap:14px; padding:24px 0 28px; }
  .folio .photo,.folio .mat{ width:100%; height:190px; }
  .folio .f-actions{ flex-direction:row; flex-wrap:wrap; }
  .folio .f-claim b{ display:inline; }
  .chaprow{ flex-wrap:wrap; gap:10px; }
  .chaprow .ch-rule{ display:none; }
  .chaprow .ch-folios{ width:100%; }
  .wgd-catcard .wgd-catname{ font-size:21px; }
  .wgd-catbody{ padding:12px 13px 14px; }
  .wgd-catplate.mat .mat-rn{ font-size:42px; }
  .wg-article{ padding:28px 18px 36px; border-left:none; border-right:none; }
  .wg-menu{ gap:13px; }
  .wg-brand{ font-size:19px; }
  .totalline .tl-note{ margin-left:0; width:100%; }
}
@media (max-width:480px){
  .wg-lang a{ padding:9px 10px; }
  .wg-header-in{ gap:9px; }
}
