/* Trace Labs - shared site styles
   Layout: Penn Blue bands bracket a white page; content sits in a 1120px column
   with a 12-column feel (heading left, text right) that collapses to one column on phones.
   Brand: Trace Labs Brand Identity Guidelines (colours are official HEX values). */

:root {
  /* Brand colours */
  --penn: #1e225f;          /* Penn Blue - primary, text and bands */
  --bronze: #d38733;        /* Divine Bronze - calls to action, the one warm accent */
  --green: #91f5ad;         /* Light Green - highlights on Penn Blue only */
  --cadet: #8b9eb7;         /* Cadet Gray - quiet supporting text on Penn Blue */
  --pear: #c2e812;          /* Pear - reserved, not used on the site */

  /* Neutrals, tinted toward Penn Blue */
  --ink: #1e225f;
  --ink-soft: #4a4e7a;
  --paper: #ffffff;
  --mist: #f4f5f9;
  --rule: #dfe1ea;
  --penn-deep: #171a4c;

  /* Type - Avenir LT Pro is the brand face. Nunito Sans is the closest open
     fallback for devices without Avenir. */
  --font: "Avenir LT Pro", "Avenir Next", "Avenir", "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --fs-2xl: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);

  --wrap: 1120px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --section: clamp(56px, 8vw, 104px);
  --radius: 6px;

  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--bronze);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--bronze);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

.eyebrow {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--bronze); color: #fff; }
.btn-primary:hover { background: #bd7429; }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-dark { background: var(--penn); color: #fff; }
.btn-dark:hover { background: var(--penn-deep); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.text-link {
  font-weight: 700;
  color: var(--penn);
  text-decoration: none;
  border-bottom: 2px solid var(--bronze);
  padding-bottom: 2px;
}
.text-link:hover { color: var(--bronze); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 12px;
}
.brand img { height: 52px; width: auto; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 8px 12px;
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--penn);
  cursor: pointer;
}
.nav-toggle .bars { display: grid; gap: 4px; }
.nav-toggle .bars span { display: block; width: 18px; height: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  display: block;
  padding: 10px 14px;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
  border-radius: var(--radius);
}
.site-nav a:hover { color: var(--penn); background: var(--mist); }
.site-nav a[aria-current="page"] { color: var(--penn); box-shadow: inset 0 -2px 0 var(--bronze); border-radius: 0; }
.site-nav .nav-cta a { background: var(--penn); color: #fff; margin-left: 8px; }
.site-nav .nav-cta a:hover { background: var(--penn-deep); color: #fff; }

@media (max-width: 860px) {
  body::before {
    content: "";
    position: fixed;
    inset: 0 0 auto;
    height: env(safe-area-inset-top, 0px);
    z-index: 60;
    background: #fff;
  }
  .brand img { height: 44px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 18px 30px -18px rgba(30,34,95,.35);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter-r) 16px var(--gutter-l);
  }
  .site-nav a { padding: 14px 4px; font-size: var(--fs-base); border-bottom: 1px solid var(--rule); border-radius: 0; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--bronze); padding-left: 14px; }
  .site-nav .nav-cta a { margin: 14px 0 0; text-align: center; border-radius: var(--radius); border: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--penn);
  color: #fff;
  overflow: hidden;
}
.hero .wrap {
  position: relative;
  z-index: 1;
  padding-block: clamp(64px, 10vw, 128px) clamp(140px, 16vw, 200px);
  display: grid;
  gap: 28px;
  max-width: var(--wrap);
}
.hero .eyebrow { color: var(--green); }
.hero h1 {
  font-size: var(--fs-2xl);
  max-width: 17ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--green);
}
.hero .lede {
  font-size: var(--fs-lg);
  line-height: 1.55;
  color: #d6dbe6;
  max-width: 54ch;
}
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* The ion trace - where the Trace Labs name comes from */
.hero-trace {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(120px, 15vw, 190px);
  pointer-events: none;
}
.hero-trace svg { width: 100%; height: 100%; }
.hero-trace .line {
  fill: none;
  stroke: var(--green);
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
  opacity: .85;
}
.hero-trace .fill { fill: url(#traceFill); }
.hero-trace .axis { stroke: rgba(139,158,183,.45); stroke-width: 1; vector-effect: non-scaling-stroke; }
@media (prefers-reduced-motion: no-preference) {
  .hero-trace .line {
    stroke-dasharray: 3000;
    stroke-dashoffset: 0;
    animation: draw 2.4s cubic-bezier(.4,0,.2,1) both;
  }
  @keyframes draw { from { stroke-dashoffset: 3000; } to { stroke-dashoffset: 0; } }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-mist { background: var(--mist); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.split > * { min-width: 0; }
.split-head { display: grid; gap: 14px; }
.split-head h2 { font-size: var(--fs-xl); }
.split-head .note { color: var(--ink-soft); font-size: var(--fs-sm); }

.prose { display: grid; gap: 20px; max-width: 64ch; color: var(--ink-soft); }
.prose p:first-child { color: var(--ink); font-size: var(--fs-lg); line-height: 1.55; }

@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

/* Audience list */
.audience {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}
.audience li {
  padding: 22px 20px 0 0;
  font-weight: 700;
  line-height: 1.35;
  display: grid;
  gap: 10px;
}
.audience li::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--bronze);
}
@media (max-width: 860px) { .audience { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; } }

/* Services list */
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.service-list li {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 8px 32px;
  padding-block: 22px;
  border-bottom: 1px solid var(--rule);
}
.service-list h3 { font-size: var(--fs-base); font-weight: 800; }
.service-list p { color: var(--ink-soft); font-size: var(--fs-sm); }
@media (max-width: 600px) { .service-list li { grid-template-columns: minmax(0, 1fr); } }
.list-foot { margin-top: 28px; }

/* Founder band */
.founder {
  background: var(--penn);
  color: #fff;
}
.founder .split-head h2 { color: #fff; }
.founder .eyebrow { color: var(--green); }
.founder .split-head p { color: #d6dbe6; max-width: 46ch; }
.founder .text-link { color: #fff; }
.founder .text-link:hover { color: var(--green); }
.stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(139,158,183,.28);
  border: 1px solid rgba(139,158,183,.28);
}
.stats li {
  background: var(--penn);
  padding: 26px 24px;
  display: grid;
  gap: 4px;
}
.stats .num {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  font-weight: 300;
  line-height: 1;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
.stats .label { font-size: var(--fs-sm); color: var(--cadet); }

/* Closing call to action */
.cta-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
}
.cta-block h2 { font-size: var(--fs-xl); max-width: 22ch; }
.cta-block p { color: var(--ink-soft); max-width: 52ch; margin-top: 12px; }
.cta-block > div { min-width: 0; flex: 1 1 380px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--penn-deep);
  color: var(--cadet);
  font-size: var(--fs-sm);
}
.site-footer .wrap {
  padding-block: 56px 32px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
}
.site-footer img { height: 64px; width: auto; }
.footer-blurb { margin-top: 18px; max-width: 34ch; line-height: 1.6; }
.site-footer h2 {
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--green); }
.footer-base {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(139,158,183,.25);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: var(--fs-xs);
}
@media (max-width: 760px) {
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Inner page hero ---------- */
.page-hero {
  background: var(--penn);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  /* faint peak from the logomark, echoing the brand guidelines */
  content: "";
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: clamp(220px, 30vw, 380px);
  aspect-ratio: 978 / 1280;
  background: url("../images/icon.svg") no-repeat center / contain;
  opacity: .09;
  pointer-events: none;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(56px, 8vw, 96px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 64px;
}
.page-hero-text { display: grid; gap: 18px; flex: 1 1 420px; min-width: 0; }
.page-hero .eyebrow { color: var(--green); }
.page-hero h1 { font-size: var(--fs-2xl); }
.page-hero .lede { font-size: var(--fs-lg); line-height: 1.55; color: #d6dbe6; max-width: 54ch; }
.hero-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  min-width: 0;
}
.hero-facts li {
  display: grid;
  gap: 2px;
  padding-left: 16px;
  border-left: 2px solid var(--bronze);
  color: var(--cadet);
  font-size: var(--fs-sm);
}
.hero-facts span { color: #fff; font-weight: 700; font-size: var(--fs-base); }

/* ---------- Timeline ---------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-left: 2px solid var(--rule);
}
.timeline li {
  position: relative;
  padding: 0 0 32px 28px;
  display: grid;
  gap: 6px;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--mist);
  border: 2px solid var(--penn);
}
.timeline li.current::before { background: var(--bronze); border-color: var(--bronze); }
.timeline .when {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bronze);
  font-variant-numeric: tabular-nums;
}
.timeline h3 { font-size: var(--fs-base); font-weight: 800; }
.timeline p { color: var(--ink-soft); font-size: var(--fs-sm); max-width: 60ch; }

/* ---------- Footer extras ---------- */
.footer-social { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 6px; }
.site-footer li a { overflow-wrap: anywhere; }

/* ---------- Service steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.steps > li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  padding-block: 28px;
  border-bottom: 1px solid var(--rule);
}
.step-num {
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1;
  color: var(--bronze);
  font-variant-numeric: tabular-nums;
}
.step-body { display: grid; gap: 10px; min-width: 0; }
.step-body h3 { font-size: var(--fs-lg); font-weight: 800; }
.step-body p { color: var(--ink-soft); max-width: 60ch; }
.step-meta {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--penn) !important;
}
.chips {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--penn);
  background: var(--mist);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 5px 12px;
}
@media (max-width: 600px) {
  .steps > li { grid-template-columns: 36px minmax(0, 1fr); gap: 14px; }
  .step-num { font-size: 1.75rem; }
}

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Blog index ---------- */
.blog-bar { margin-bottom: 32px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
}
.filter:hover { color: var(--penn); border-color: var(--cadet); }
.filter[aria-pressed="true"] { background: var(--penn); border-color: var(--penn); color: #fff; }

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.post-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 8px 40px;
  padding-block: 26px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.post-card .post-meta { grid-row: span 2; }
.post-card h3 { font-size: var(--fs-lg); line-height: 1.3; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card:hover h3 a { color: var(--bronze); }
.post-card p { color: var(--ink-soft); font-size: var(--fs-sm); max-width: 62ch; }
.post-card.is-featured h3 { font-size: var(--fs-xl); }
.post-card.is-featured p { font-size: var(--fs-base); }

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.post-tag {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bronze);
}
@media (min-width: 701px) {
  .post-card .post-meta { flex-direction: column; gap: 4px; }
}
@media (max-width: 700px) {
  .post-card { grid-template-columns: minmax(0, 1fr); }
  .post-card .post-meta { grid-row: auto; }
}

/* ---------- Blog post ---------- */
.post-hero { background: var(--penn); color: #fff; }
.post-hero-inner {
  padding-block: clamp(40px, 6vw, 72px) clamp(48px, 7vw, 88px);
  display: grid;
  gap: 18px;
  max-width: 920px;
}
.post-hero h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); }
.post-hero .post-meta { color: var(--cadet); }
.post-hero .post-tag { color: var(--green); }
.byline { color: #d6dbe6; font-size: var(--fs-sm); }
.back-link { color: var(--cadet); font-size: var(--fs-sm); font-weight: 700; text-decoration: none; justify-self: start; }
.back-link:hover { color: #fff; }

.article {
  max-width: 68ch;
  margin-inline: auto;
  display: grid;
  gap: 20px;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--ink);
}
.article > * { min-width: 0; }
.article h2 { font-size: var(--fs-xl); margin-top: 20px; }
.article h3 { font-size: var(--fs-lg); margin-top: 12px; }
.article a { color: var(--penn); text-decoration-color: var(--bronze); text-underline-offset: 3px; overflow-wrap: anywhere; }
.article a:hover { color: var(--bronze); }
.article ul, .article ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.article blockquote {
  margin: 8px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--bronze);
  font-size: var(--fs-lg);
  color: var(--penn);
}
.article figure { margin: 12px 0; display: grid; gap: 10px; }
.article figure img { width: 100%; height: auto; border-radius: var(--radius); }
.article figcaption { font-size: var(--fs-sm); color: var(--ink-soft); }
.article .lead { font-size: var(--fs-lg); color: var(--penn); }
.paper-ref {
  background: var(--mist);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: grid;
  gap: 6px;
  font-size: var(--fs-sm);
  line-height: 1.6;
}
.paper-ref .label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze);
}
.paper-ref .paper-title { font-weight: 700; color: var(--penn); font-size: var(--fs-base); }

.post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-block: 0 var(--section);
}
.post-nav-link {
  display: grid;
  gap: 4px;
  text-decoration: none;
  font-weight: 700;
  color: var(--penn);
  border-top: 2px solid var(--rule);
  padding-top: 16px;
  line-height: 1.35;
}
.post-nav-link span { font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--bronze); }
.post-nav-link:hover { border-top-color: var(--bronze); }
.post-nav > :last-child { text-align: right; }
@media (max-width: 600px) {
  .post-nav { grid-template-columns: minmax(0, 1fr); }
  .post-nav > :last-child { text-align: left; }
}

/* ---------- Blog thumbnails and post art ---------- */
.post-card { grid-template-columns: 64px minmax(0, 1fr) minmax(0, 2fr); }
.post-thumb {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: var(--mist);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.post-thumb img { width: 52px; height: 52px; object-fit: contain; }
.post-thumb.is-mark img { width: 30px; height: 40px; opacity: .8; }
.post-card .post-meta { grid-column: 2; grid-row: 1 / 3; }
.post-card h3, .post-card p { grid-column: 3; }
@media (max-width: 700px) {
  .post-card { grid-template-columns: 52px minmax(0, 1fr); gap: 6px 16px; }
  .post-thumb { width: 52px; height: 52px; grid-row: 1 / 4; border-radius: 10px; }
  .post-thumb img { width: 42px; height: 42px; }
  .post-thumb.is-mark img { width: 24px; height: 32px; }
  .post-card .post-meta, .post-card h3, .post-card p { grid-column: 2; grid-row: auto; }
}

.post-hero-inner { position: relative; padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.post-hero-art {
  float: none;
  width: 112px;
  height: 112px;
  border-radius: 24px;
  background: #fff;
  display: grid;
  place-items: center;
  order: -1;
}
.post-hero-art img { width: 84px; height: 84px; object-fit: contain; }
.post-hero-art img.is-mark { width: 52px; height: 68px; }
@media (min-width: 861px) {
  .post-hero .wrap.post-hero-inner { max-width: var(--wrap); grid-template-columns: minmax(0, 1fr) 176px; column-gap: 64px; }
  .post-hero-inner > :not(.post-hero-art) { grid-column: 1; max-width: 820px; }
  .post-hero-art { grid-column: 2; grid-row: 1 / span 4; align-self: center; width: 176px; height: 176px; border-radius: 32px; order: 0; }
  .post-hero-art img { width: 132px; height: 132px; }
  .post-hero-art img.is-mark { width: 80px; height: 105px; }
}
@media (max-width: 860px) {
  .post-hero-art { display: none; }
}
.article .post-note { font-size: var(--fs-sm); color: var(--ink-soft); border-top: 1px solid var(--rule); padding-top: 20px; margin-top: 8px; }

/* ---------- Contact ---------- */
.contact-split { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); }
.contact-details { display: grid; gap: 28px; align-content: start; }
.contact-details h2 { font-size: var(--fs-xl); }
.contact-details dl { margin: 0; display: grid; gap: 18px; }
.contact-details dl > div { display: grid; gap: 2px; }
.contact-details dt {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze);
}
.contact-details dd { margin: 0; font-size: var(--fs-lg); font-weight: 700; overflow-wrap: anywhere; }
.contact-details dd a { text-decoration: none; color: var(--penn); }
.contact-details dd a:hover { color: var(--bronze); }
.contact-social { display: flex; flex-wrap: wrap; gap: 18px; font-size: var(--fs-base) !important; }
.contact-tip { background: var(--mist); border-radius: var(--radius); padding: 20px 22px; display: grid; gap: 10px; }
.contact-tip h3 { font-size: var(--fs-base); }
.contact-tip ul { margin: 0; padding-left: 1.2em; color: var(--ink-soft); font-size: var(--fs-sm); display: grid; gap: 4px; }

.contact-form-wrap { display: grid; gap: 20px; min-width: 0; }
.contact-form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field label { font-size: var(--fs-sm); font-weight: 700; color: var(--penn); }
.req { color: var(--bronze); }
.field input, .field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c9ccda;
  border-radius: var(--radius);
  padding: 12px 14px;
  width: 100%;
  min-width: 0;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--penn); box-shadow: 0 0 0 3px rgba(30,34,95,.15); }
.field.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: var(--fs-sm); color: var(--ink-soft); }
.contact-form .btn { justify-self: start; border: 0; cursor: pointer; font-family: inherit; }
.form-status { padding: 16px 18px; border-radius: var(--radius); font-weight: 700; }
.form-status.is-ok { background: #e6f9ec; color: #1d5b33; border: 1px solid #b7e7c6; }
.form-status.is-error { background: #fdf0e3; color: #7a4310; border: 1px solid #f0cfa8; }
@media (max-width: 860px) { .contact-split { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
@media (max-width: 520px) { .field-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Publications ---------- */
.pubs-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-bottom: 32px; }
.pubs-links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.oa-toggle { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-sm); font-weight: 700; color: var(--penn); cursor: pointer; }
.oa-toggle input { width: 18px; height: 18px; accent-color: var(--penn); }
.pub-year {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px 32px;
  border-top: 1px solid var(--rule);
  padding-block: 24px;
}
.pub-year-label {
  font-size: var(--fs-xl);
  font-weight: 300;
  color: var(--bronze);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.pub-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; min-width: 0; }
.pub { display: grid; gap: 4px; min-width: 0; }
.pub h3 { font-size: var(--fs-base); font-weight: 800; line-height: 1.4; }
.pub h3 a { text-decoration: none; color: var(--penn); }
.pub h3 a:hover { color: var(--bronze); text-decoration: underline; text-decoration-color: var(--bronze); }
.pub-authors { font-size: var(--fs-sm); color: var(--ink-soft); }
.pub-authors strong { color: var(--penn); }
.pub-source { font-size: var(--fs-sm); color: var(--ink-soft); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.pub-tag {
  font-style: normal;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--penn);
  background: var(--mist);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 2px 9px;
}
.pub-tag.is-oa { color: #1d5b33; background: #e6f9ec; border-color: #b7e7c6; }
@media (max-width: 600px) {
  .pub-year { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Sample guidelines ---------- */
.facts-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.facts-grid li { background: var(--paper); padding: 24px 22px; display: grid; gap: 8px; align-content: start; }
.fact-num { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); font-weight: 300; color: var(--bronze); line-height: 1.1; font-variant-numeric: tabular-nums; }
.fact-label { font-size: var(--fs-sm); color: var(--ink-soft); }
@media (max-width: 860px) { .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .facts-grid { grid-template-columns: minmax(0, 1fr); } }
.faq { margin: 0; display: grid; gap: 26px; min-width: 0; }
.faq > div { display: grid; gap: 6px; }
.faq dt { font-weight: 800; font-size: var(--fs-lg); line-height: 1.35; color: var(--penn); }
.faq dd { margin: 0; color: var(--ink-soft); max-width: 64ch; }

/* ---------- Legal pages ---------- */
.legal { font-size: 1rem; }
.legal h2 { font-size: var(--fs-lg); margin-top: 16px; }
.post-note-top { font-size: var(--fs-sm); color: var(--ink-soft); }
.footer-base a:hover { color: var(--green); }
.article figure.wordmark { margin: 0 0 8px; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(16px, 4vw, 32px); }
.article figure.wordmark img { border-radius: 0; }
