/*
Theme Name: OAIFR Publisher
Theme URI: https://oaifr.com
Author: OAIFR
Description: Corporate academic publishing site for Open Access Institute for Research. Multi-page, fully dashboard-editable: every page, cover image, journal plate, footer column and registry entry is edited from wp-admin. Light/dark, responsive, no page builder required.
Version: 3.12
Requires at least: 5.9
Tested up to: 6.6
Requires PHP: 7.2
License: GNU General Public License v2 or later
Text Domain: oaifr
*/

/* =========================================================================
   1. TOKENS
   Brand, accent and ground colours are overridden from
   Appearance -> Customize -> OAIFR Site -> Brand colours.
   ====================================================================== */
:root {
  --oa-brand:      #7A2231;   /* claret  - identity */
  --oa-accent:     #A98544;   /* brass   - rules, marks */
  --oa-ink:        #101820;   /* structural dark ground */

  --oa-brand-ink:  #5C1723;
  --oa-brand-wash: #F7EEEF;
  --oa-ink-soft:   #1B2530;
  --oa-ink-line:   #2A3642;

  --oa-paper:      #F6F4F0;
  --oa-surface:    #FFFFFF;
  --oa-surface-2:  #FBFAF8;
  --oa-line:       #DFDAD2;
  --oa-line-soft:  #ECE8E1;
  --oa-text:       #1B222B;
  --oa-sub:        #5D6873;
  --oa-muted:      #67717C;
  --oa-on-dark:    #EEF1F4;
  --oa-on-dark-sub:#98A5B2;

  --f-display: "Source Serif 4", "Source Serif Pro", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --f-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --oa-wrap: 1180px;
  --oa-radius: 3px;
  --oa-shadow: 0 1px 2px rgba(16,24,32,.05), 0 8px 24px -18px rgba(16,24,32,.35);
}

[data-theme="dark"] {
  --oa-brand-wash: rgba(200,107,120,.12);
  --oa-paper:      #0C1116;
  --oa-surface:    #131A21;
  --oa-surface-2:  #172029;
  --oa-line:       #26313B;
  --oa-line-soft:  #1E2830;
  --oa-text:       #E8ECEF;
  --oa-sub:        #9DA9B4;
  --oa-muted:      #74808B;
  --oa-ink:        #080C11;
  --oa-ink-soft:   #121A22;
  --oa-ink-line:   #223039;
}

/* =========================================================================
   2. BASE
   ====================================================================== */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; padding: 0; }

body {
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--oa-text);
  background: var(--oa-paper);
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }
ul, ol { list-style: none; }

:focus-visible {
  outline: 2px solid var(--oa-accent);
  outline-offset: 2px;
}

.oa-wrap { max-width: var(--oa-wrap); margin: 0 auto; padding: 0 24px; width: 100%; }
.oa-skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--oa-brand); color: #fff; padding: 10px 16px; font-size: 13px;
}
.oa-skip:focus { left: 8px; top: 8px; }

/* Headings — serif display face carries the institutional voice */
h1, h2, h3, .oa-serif {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -.012em;
  line-height: 1.22;
  color: var(--oa-text);
}

/* Signature: identifier lines and labels are set in mono, like a colophon */
.oa-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .17em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--oa-brand);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.oa-eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--oa-accent);
  flex: none;
}
.oa-eyebrow.is-plain::before { display: none; }
.oa-record {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--oa-sub);
}

/* =========================================================================
   3. UTILITY BAR + MASTHEAD
   ====================================================================== */
.oa-rule-top { height: 3px; background: var(--oa-brand); }
.oa-rule-top::after { content: ""; display: block; height: 1px; background: var(--oa-accent); }

.oa-utility {
  background: var(--oa-ink);
  color: var(--oa-on-dark-sub);
  border-bottom: 1px solid var(--oa-ink-line);
}
.oa-utility .oa-wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 38px;
}
.oa-utility-links { display: flex; flex-wrap: wrap; gap: 20px; }
.oa-utility-links a {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--oa-on-dark-sub);
  padding: 9px 0;
  transition: color .2s ease;
}
.oa-utility-links a:hover { color: #fff; }
.oa-utility-right { display: flex; align-items: center; gap: 16px; }
.oa-login {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--oa-on-dark);
  border: 1px solid var(--oa-ink-line);
  border-radius: var(--oa-radius);
  padding: 5px 12px;
  transition: border-color .2s ease, background .2s ease;
}
.oa-login:hover { border-color: var(--oa-accent); background: rgba(169,133,68,.12); }

.oa-toggle {
  display: inline-flex; align-items: center;
  border: 1px solid var(--oa-ink-line); border-radius: 999px;
  background: transparent; padding: 2px; cursor: pointer;
}
.oa-toggle span {
  padding: 3px 9px; font-size: 12px; line-height: 1;
  border-radius: 999px; color: var(--oa-on-dark-sub);
  display: inline-flex; align-items: center;
  transition: background .2s ease, color .2s ease;
}
.oa-toggle .is-active { background: var(--oa-accent); color: #14181C; }

/* Masthead */
.oa-masthead {
  background: var(--oa-surface);
  border-bottom: 1px solid var(--oa-line);
  position: sticky; top: 0; z-index: 60;
}
.oa-masthead .oa-wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 76px;
}
.oa-brand { display: flex; align-items: center; gap: 12px; }
.oa-mark {
  width: 42px; height: 42px; flex: none;
  background: var(--oa-brand); color: #fff;
  display: grid; place-items: center;
  font-family: var(--f-display); font-size: 20px; font-weight: 600;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
}
.oa-brand-logo img { max-height: 46px; width: auto; }
.oa-brand-name {
  display: block;
  font-family: var(--f-display); font-size: 21px; font-weight: 600;
  letter-spacing: .04em; color: var(--oa-text); line-height: 1.1;
}
.oa-brand-tag {
  display: block;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--oa-muted); margin-top: 3px;
}

.oa-nav ul { display: flex; align-items: center; gap: 26px; }
.oa-nav a {
  font-size: 13.5px; font-weight: 500; color: var(--oa-text);
  padding: 28px 0; display: inline-block; position: relative;
  transition: color .2s ease;
}
.oa-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 22px;
  height: 2px; background: var(--oa-brand);
  transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.oa-nav a:hover { color: var(--oa-brand); }
.oa-nav a:hover::after { transform: scaleX(1); }
.oa-nav .current-menu-item > a,
.oa-nav .current_page_item > a { color: var(--oa-brand); }
.oa-nav .current-menu-item > a::after,
.oa-nav .current_page_item > a::after { transform: scaleX(1); }
.oa-nav .sub-menu { display: none; }

.oa-burger {
  display: none; background: none; border: 1px solid var(--oa-line);
  border-radius: var(--oa-radius); color: var(--oa-text);
  padding: 8px 11px; font-size: 18px; line-height: 1; cursor: pointer;
}

/* =========================================================================
   4. BUTTONS
   ====================================================================== */
.oa-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  padding: 12px 22px; border-radius: var(--oa-radius);
  border: 1px solid transparent; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.oa-btn-primary { background: var(--oa-brand); color: #fff; }
.oa-btn-primary:hover { background: var(--oa-brand-ink); }
.oa-btn-outline { border-color: var(--oa-line); color: var(--oa-text); background: transparent; }
.oa-btn-outline:hover { border-color: var(--oa-brand); color: var(--oa-brand); }
.oa-btn-onDark { border-color: rgba(255,255,255,.28); color: #fff; background: transparent; }
.oa-btn-onDark:hover { border-color: var(--oa-accent); background: rgba(169,133,68,.16); }
.oa-link-arrow {
  font-size: 13px; font-weight: 600; color: var(--oa-brand);
  display: inline-flex; align-items: center; gap: 7px;
}
.oa-link-arrow i { transition: transform .2s ease; }
.oa-link-arrow:hover i { transform: translateX(3px); }

/* =========================================================================
   5. COVER / HERO  (homepage + every page)
   ====================================================================== */
.oa-cover {
  position: relative;
  background: var(--oa-ink);
  color: var(--oa-on-dark);
  isolation: isolate;
  overflow: hidden;
}
.oa-cover-media {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
}
.oa-cover-veil {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(16,24,32,.94) 0%, rgba(16,24,32,.82) 46%, rgba(16,24,32,.55) 100%);
}
.oa-cover-inner { padding: 74px 0 68px; max-width: 660px; }
.oa-cover .oa-eyebrow { color: var(--oa-accent); }
.oa-cover .oa-eyebrow::before { background: var(--oa-accent); }
.oa-cover h1 {
  color: #fff;
  font-size: clamp(31px, 4.3vw, 49px);
  line-height: 1.14;
  margin: 18px 0 0;
}
.oa-cover-sub {
  color: var(--oa-on-dark-sub);
  font-size: 15.5px; line-height: 1.75;
  margin-top: 18px; max-width: 560px;
}
.oa-cover-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.oa-cover-keyline {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--oa-brand) 0 34%, var(--oa-accent) 34% 46%, transparent 46%);
}

/* Compact cover used on interior pages */
.oa-cover.is-page .oa-cover-inner { padding: 58px 0 52px; }
.oa-cover.is-page h1 { font-size: clamp(27px, 3.4vw, 39px); }

/* Light (paper) cover variant */
.oa-cover.is-paper { background: var(--oa-surface); color: var(--oa-text); border-bottom: 1px solid var(--oa-line); }
.oa-cover.is-paper h1 { color: var(--oa-text); }
.oa-cover.is-paper .oa-eyebrow { color: var(--oa-brand); }
.oa-cover.is-paper .oa-cover-sub { color: var(--oa-sub); }
.oa-cover.is-paper .oa-cover-veil { background: none; }

.oa-crumbs {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--oa-on-dark-sub);
  margin-bottom: 16px;
}
.oa-crumbs a:hover { color: var(--oa-accent); }
.oa-cover.is-paper .oa-crumbs { color: var(--oa-muted); }

/* =========================================================================
   6. SEARCH STRIP
   ====================================================================== */
.oa-searchstrip {
  background: var(--oa-surface); border-bottom: 1px solid var(--oa-line);
  padding: 18px 0;
}
.oa-search {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--oa-line); border-radius: var(--oa-radius);
  background: var(--oa-surface-2); padding: 4px 4px 4px 14px;
}
.oa-search i { color: var(--oa-muted); font-size: 17px; }
.oa-search input[type="search"] {
  flex: 1; border: 0; background: transparent; padding: 10px 4px;
  font: inherit; font-size: 14px; color: var(--oa-text); min-width: 0;
}
.oa-search input[type="search"]:focus { outline: none; }
.oa-search .oa-btn { padding: 10px 18px; }

/* =========================================================================
   7. SECTIONS
   ====================================================================== */
.oa-section { padding: 62px 0; }
.oa-section.is-tight { padding: 44px 0; }
.oa-section.is-alt { background: var(--oa-surface); border-top: 1px solid var(--oa-line); border-bottom: 1px solid var(--oa-line); }
.oa-section-head { max-width: 660px; margin-bottom: 34px; }
.oa-section-head h2 { font-size: clamp(23px, 2.5vw, 31px); margin: 14px 0 0; }
.oa-section-head p { color: var(--oa-sub); font-size: 15px; margin-top: 12px; }
.oa-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* =========================================================================
   8. REGISTRY STRIP (metrics)
   ====================================================================== */
.oa-registry {
  background: var(--oa-surface);
  border-bottom: 1px solid var(--oa-line);
}
.oa-registry .oa-wrap {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.oa-reg-item {
  padding: 26px 20px; text-align: center;
  border-left: 1px solid var(--oa-line-soft);
}
.oa-reg-item:first-child { border-left: 0; }
.oa-reg-num {
  font-family: var(--f-display); font-size: 27px; font-weight: 600;
  color: var(--oa-brand); line-height: 1.1;
}
.oa-reg-lbl {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--oa-muted); margin-top: 7px;
}

/* =========================================================================
   9. JOURNAL PLATES  (signature element)
   ====================================================================== */
.oa-plates { display: grid; gap: 18px; }
.oa-plate {
  position: relative;
  display: grid; grid-template-columns: 276px 1fr;
  background: var(--oa-surface);
  border: 1px solid var(--oa-line);
  border-radius: var(--oa-radius);
  overflow: hidden;
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.oa-plate::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: var(--plate-spine, var(--oa-brand)); z-index: 2;
}
.oa-plate:hover { border-color: var(--oa-accent); box-shadow: var(--oa-shadow); transform: translateY(-2px); }
.oa-plate-cover {
  position: relative;
  /* The mount is the page colour, so the cover artwork reads as a printed
     plate rather than a picture pasted onto a coloured tile. The journal's
     own colour survives on the spine strip down the left edge. */
  background: var(--oa-surface);
  display: grid; place-items: center;
  font-size: 30px;
  border-right: 1px solid var(--oa-line);
  /* Sized to the covers themselves. Both supplied covers are 1414 x 2000 px,
     which is 707:1000. The inner area here is 276 - 2x14 = 248 wide and
     379 - 28 = 351 tall — 1:1.4153 against the cover's 1:1.4144, so a
     1414x2000 cover renders at 248 x 350.8 and fills 99.9% of the box with
     an even 14px frame on all four sides. Any other shape still fits whole,
     centred, because the image is capped in both directions. */
  min-height: 379px;
  padding: 14px;
  overflow: hidden;
}
.oa-plate-cover img {
  position: static;
  width: auto; height: auto;
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  border-radius: 2px;
  /* A hairline keeps a cover with white margins from bleeding into the
     white mount; the lift reads as a physical plate on the page. */
  border: 1px solid var(--oa-line);
  box-shadow: 0 1px 2px rgba(16,24,32,.07), 0 12px 26px -16px rgba(16,24,32,.5);
}

/* No cover uploaded yet. The panel stays the page colour like every other
   journal, so the row reads consistently whether a cover is set or not. A
   quiet keyline marks out where the cover will sit, and the journal's own
   colour carries the icon. */
.oa-plate-cover.is-placeholder {
  background: var(--oa-surface);
  color: var(--plate-c1, #1E3A5F);
}
.oa-plate-cover.is-placeholder::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid currentColor;
  border-radius: 2px;
  opacity: .22;
  pointer-events: none;
}
.oa-plate-cover.is-placeholder i {
  position: relative;
  font-size: 38px;
  opacity: .38;
}
/* Opt-in crop, for a photo rather than real cover artwork. */
.oa-plate-cover.is-fill { padding: 0; }
.oa-plate-cover.is-fill img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 0; box-shadow: none;
}
.oa-plate-body { padding: 22px 24px; display: flex; flex-direction: column; }
.oa-plate-title { font-family: var(--f-display); font-size: 19px; font-weight: 600; line-height: 1.3; }
.oa-plate-title a:hover { color: var(--oa-brand); }
.oa-plate-ids { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.oa-plate-ids span { font-family: var(--f-mono); font-size: 11.5px; color: var(--oa-sub); }
.oa-plate-desc { color: var(--oa-sub); font-size: 14px; margin-top: 12px; }
.oa-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.oa-badge {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .05em;
  text-transform: uppercase; font-weight: 500;
  background: var(--oa-brand-wash); color: var(--oa-brand);
  padding: 4px 9px; border-radius: 2px;
}
.oa-badge.is-pending {
  background: transparent; color: var(--oa-muted);
  border: 1px dashed var(--oa-line);
}
.oa-plate-foot {
  margin-top: auto; padding-top: 16px;
  border-top: 1px solid var(--oa-line-soft);
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
}
.oa-plate-links { display: flex; flex-wrap: wrap; gap: 16px; }
.oa-plate-links a { font-size: 12.5px; color: var(--oa-sub); }
.oa-plate-links a:hover { color: var(--oa-brand); text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================================
   10. CARD GRIDS (pathways, commitments, news)
   ====================================================================== */
.oa-grid { display: grid; gap: 16px; }
.oa-grid-2 { grid-template-columns: repeat(2, 1fr); }
.oa-grid-3 { grid-template-columns: repeat(3, 1fr); }
.oa-grid-4 { grid-template-columns: repeat(4, 1fr); }

.oa-card {
  background: var(--oa-surface);
  border: 1px solid var(--oa-line);
  border-radius: var(--oa-radius);
  padding: 26px 22px;
  transition: border-color .22s ease, box-shadow .22s ease;
  display: flex; flex-direction: column;
}
.oa-card:hover { border-color: var(--oa-accent); box-shadow: var(--oa-shadow); }
.oa-card-ic {
  width: 40px; height: 40px; border-radius: 2px;
  background: var(--oa-brand-wash); color: var(--oa-brand);
  display: grid; place-items: center; font-size: 19px; margin-bottom: 16px;
}
.oa-card h3 { font-size: 16.5px; margin-bottom: 7px; }
.oa-card p { color: var(--oa-sub); font-size: 13.8px; }
.oa-card .oa-link-arrow { margin-top: 14px; }

/* Commitment cards get a top hairline instead of a box */
.oa-pillar {
  border-top: 2px solid var(--oa-brand);
  padding: 20px 0 0;
}
.oa-pillar .oa-card-ic { background: none; color: var(--oa-accent); font-size: 22px; width: auto; height: auto; margin-bottom: 12px; }
.oa-pillar h3 { font-size: 16.5px; margin-bottom: 7px; }
.oa-pillar p { color: var(--oa-sub); font-size: 13.8px; }

/* News */
.oa-news { display: flex; flex-direction: column; gap: 0; }
.oa-news-item {
  display: grid; grid-template-columns: 150px 1fr auto;
  gap: 20px; align-items: baseline;
  padding: 20px 0; border-top: 1px solid var(--oa-line);
}
.oa-news-item:last-child { border-bottom: 1px solid var(--oa-line); }
.oa-news-date { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .06em; color: var(--oa-muted); text-transform: uppercase; }
.oa-news-title { font-family: var(--f-display); font-size: 17px; font-weight: 600; line-height: 1.35; }
.oa-news-title a:hover { color: var(--oa-brand); }
.oa-news-tag {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--oa-accent); border: 1px solid var(--oa-line); border-radius: 2px; padding: 3px 8px;
  white-space: nowrap;
}
.oa-news-excerpt { color: var(--oa-sub); font-size: 13.8px; margin-top: 6px; }

/* =========================================================================
   11. PAGE CONTENT (block editor output)
   ====================================================================== */
.oa-page { padding: 56px 0 72px; }
.oa-page-body { max-width: 780px; }
.oa-page-body.is-wide { max-width: 100%; }
.oa-prose { font-size: 15.5px; line-height: 1.8; color: var(--oa-text); }
.oa-prose > * + * { margin-top: 18px; }
.oa-prose h2 { font-size: 25px; margin-top: 40px; padding-top: 4px; }
.oa-prose h3 { font-size: 19px; margin-top: 30px; }
.oa-prose h4 { font-family: var(--f-body); font-size: 15px; font-weight: 600; margin-top: 24px; }
.oa-prose p { color: var(--oa-text); }
.oa-prose a { color: var(--oa-brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.oa-prose ul, .oa-prose ol { padding-left: 22px; }
.oa-prose ul { list-style: disc; }
.oa-prose ol { list-style: decimal; }
.oa-prose li { margin-top: 8px; }
.oa-prose li::marker { color: var(--oa-accent); }
.oa-prose blockquote {
  border-left: 3px solid var(--oa-accent);
  padding: 4px 0 4px 20px;
  font-family: var(--f-display); font-size: 18px; color: var(--oa-sub);
}
.oa-prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.oa-prose th, .oa-prose td { border: 1px solid var(--oa-line); padding: 10px 12px; text-align: left; }
.oa-prose th { background: var(--oa-surface-2); font-weight: 600; }
.oa-prose img, .oa-prose figure { border-radius: var(--oa-radius); }
.oa-prose hr { border: 0; border-top: 1px solid var(--oa-line); margin: 34px 0; }
.oa-prose code { font-family: var(--f-mono); font-size: 13px; background: var(--oa-surface-2); padding: 2px 5px; border-radius: 2px; }

.oa-page-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 52px; align-items: start; }
.oa-aside { position: sticky; top: 104px; display: grid; gap: 16px; }
.oa-aside-box {
  background: var(--oa-surface); border: 1px solid var(--oa-line);
  border-radius: var(--oa-radius); padding: 22px;
}
.oa-aside-box h4 {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--oa-muted); margin-bottom: 14px;
}
.oa-aside-box ul li + li { margin-top: 10px; }
.oa-aside-box a { font-size: 14px; }
.oa-aside-box a:hover { color: var(--oa-brand); }
.oa-aside-box p { font-size: 14px; color: var(--oa-sub); }
.oa-contact-line { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; color: var(--oa-sub); }
.oa-contact-line + .oa-contact-line { margin-top: 13px; }
.oa-contact-line i { color: var(--oa-accent); font-size: 16px; margin-top: 3px; }

/* =========================================================================
   12. REGISTRY / "REGISTERED WITH" STRIP
   ====================================================================== */
.oa-registered {
  background: var(--oa-surface); border-top: 1px solid var(--oa-line);
  padding: 34px 0; text-align: center;
}
.oa-registered .oa-eyebrow { justify-content: center; color: var(--oa-muted); }
.oa-registered .oa-eyebrow::before { background: var(--oa-line); }
.oa-reg-list {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px 34px; margin-top: 18px;
}
.oa-reg-list a, .oa-reg-list span {
  font-family: var(--f-display); font-size: 15.5px; font-weight: 600;
  color: var(--oa-sub); letter-spacing: .01em;
  display: inline-flex; align-items: center; gap: 8px;
}
.oa-reg-list a:hover { color: var(--oa-brand); }
.oa-reg-list img { max-height: 26px; width: auto; }

/* =========================================================================
   13. FOOTER
   ====================================================================== */
.oa-footer { background: var(--oa-ink); color: var(--oa-on-dark-sub); padding: 54px 0 0; }
.oa-footer-grid {
  display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px;
  padding-bottom: 40px;
}
.oa-footer-brand .oa-mark { margin-bottom: 14px; }
.oa-footer-brand .oa-brand-name { color: #fff; }
.oa-footer-brand .oa-brand-tag { color: var(--oa-on-dark-sub); }
.oa-footer-blurb { font-size: 13.5px; color: var(--oa-on-dark-sub); margin-top: 14px; max-width: 300px; }
.oa-footer-contact { margin-top: 18px; display: grid; gap: 9px; }
.oa-footer-contact a, .oa-footer-contact span {
  font-family: var(--f-mono); font-size: 12px; color: var(--oa-on-dark-sub);
  display: flex; gap: 9px; align-items: flex-start;
}
.oa-footer-contact i { color: var(--oa-accent); font-size: 14px; margin-top: 2px; }
.oa-footer-contact a:hover { color: #fff; }
.oa-footer-col h4 {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--oa-accent); margin-bottom: 14px; font-weight: 500;
}
.oa-footer-col li + li { margin-top: 10px; }
.oa-footer-col a, .oa-footer-col span { font-size: 13.5px; color: var(--oa-on-dark-sub); }
.oa-footer-col a:hover { color: #fff; }
.oa-social { display: flex; gap: 10px; margin-top: 18px; }
.oa-social a {
  width: 34px; height: 34px; border: 1px solid var(--oa-ink-line); border-radius: 2px;
  display: grid; place-items: center; color: var(--oa-on-dark-sub); font-size: 16px;
  transition: border-color .2s ease, color .2s ease;
}
.oa-social a:hover { border-color: var(--oa-accent); color: #fff; }

.oa-footer-note {
  border-top: 1px solid var(--oa-ink-line);
  padding: 18px 0; font-size: 12.5px; color: var(--oa-on-dark-sub);
}
.oa-legal {
  border-top: 1px solid var(--oa-ink-line);
  padding: 16px 0 22px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
}
.oa-legal, .oa-legal a { font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; color: #8593A1; }
.oa-legal a:hover { color: var(--oa-accent); }
.oa-legal-links { display: flex; flex-wrap: wrap; gap: 18px; }

/* =========================================================================
   14. SEARCH RESULTS / 404 / SINGLE
   ====================================================================== */
.oa-result { padding: 22px 0; border-top: 1px solid var(--oa-line); }
.oa-result:last-child { border-bottom: 1px solid var(--oa-line); }
.oa-result h3 { font-size: 18px; }
.oa-result h3 a:hover { color: var(--oa-brand); }
.oa-result p { color: var(--oa-sub); font-size: 14px; margin-top: 6px; }
.oa-result .oa-record { display: block; margin-bottom: 6px; }
.oa-empty { padding: 40px 0; color: var(--oa-sub); }
.oa-pagination { display: flex; gap: 8px; margin-top: 30px; flex-wrap: wrap; }
.oa-pagination .page-numbers {
  border: 1px solid var(--oa-line); border-radius: 2px; padding: 7px 13px;
  font-family: var(--f-mono); font-size: 12px; color: var(--oa-sub);
}
.oa-pagination .page-numbers.current,
.oa-pagination .page-numbers:hover { border-color: var(--oa-brand); color: var(--oa-brand); }

/* =========================================================================
   15. ADMIN HELPER NOTE (front-end editor shortcut)
   ====================================================================== */
.oa-editlink {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--oa-muted); margin-top: 26px;
}
.oa-editlink:hover { color: var(--oa-brand); }

/* =========================================================================
   16. MOTION
   ====================================================================== */
@keyframes oa-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.oa-cover-inner > * { animation: oa-rise .5s cubic-bezier(.2,.7,.3,1) both; }
.oa-cover-inner > *:nth-child(2) { animation-delay: .06s; }
.oa-cover-inner > *:nth-child(3) { animation-delay: .12s; }
.oa-cover-inner > *:nth-child(4) { animation-delay: .18s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* =========================================================================
   17. RESPONSIVE
   ====================================================================== */
@media (max-width: 1024px) {
  /* 208 x 294 inner — the same 707:1000 shape, scaled down. */
  .oa-plate { grid-template-columns: 236px 1fr; }
  .oa-plate-cover { min-height: 322px; }
  .oa-footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .oa-page-layout { grid-template-columns: 1fr; gap: 40px; }
  .oa-aside { position: static; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .oa-nav { display: none; }
  .oa-burger { display: inline-block; }
  .oa-masthead.is-open .oa-nav {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--oa-surface); border-bottom: 1px solid var(--oa-line);
    padding: 8px 24px 20px; box-shadow: var(--oa-shadow);
  }
  .oa-masthead { position: relative; }
  .oa-masthead .oa-wrap { position: static; }
  .oa-masthead.is-open .oa-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .oa-masthead.is-open .oa-nav a { padding: 13px 0; border-bottom: 1px solid var(--oa-line-soft); display: block; }
  .oa-masthead.is-open .oa-nav a::after { display: none; }
  .oa-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .oa-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .oa-registry .oa-wrap { grid-template-columns: repeat(2, 1fr); }
  .oa-reg-item:nth-child(odd) { border-left: 0; }
  .oa-reg-item:nth-child(n+3) { border-top: 1px solid var(--oa-line-soft); }
  .oa-news-item { grid-template-columns: 1fr; gap: 6px; }
  .oa-news-tag { justify-self: start; }
}

@media (max-width: 700px) {
  .oa-wrap { padding: 0 18px; }
  .oa-utility .oa-wrap { flex-wrap: wrap; gap: 8px; padding-top: 6px; padding-bottom: 6px; }
  .oa-utility-links { gap: 14px; }
  .oa-utility-links a { padding: 4px 0; }
  .oa-plate { grid-template-columns: 1fr; }
  .oa-plate-cover { min-height: 400px; border-right: 0; border-bottom: 1px solid var(--oa-line); }
  .oa-plate::before { width: 100%; height: 4px; bottom: auto; }
  .oa-grid-3, .oa-grid-4, .oa-grid-2 { grid-template-columns: 1fr; }
  .oa-footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .oa-footer-brand { grid-column: 1 / -1; }
  .oa-aside { grid-template-columns: 1fr; }
  .oa-section { padding: 44px 0; }
  .oa-cover-inner { padding: 52px 0 46px; }
}

@media (max-width: 460px) {
  .oa-registry .oa-wrap { grid-template-columns: 1fr; }
  .oa-reg-item { border-left: 0; border-top: 1px solid var(--oa-line-soft); }
  .oa-reg-item:first-child { border-top: 0; }
  .oa-footer-grid { grid-template-columns: 1fr; }
  .oa-brand-name { font-size: 18px; }
}
