/* =====================================================================
   Connecticut Statewide AI Initiative
   Design tokens + components
   Display: Source Serif 4  |  Body/UI: Public Sans (both open-source public-sector faces)
   ===================================================================== */

:root {
  /* Color — Connecticut civic navy, warm paper, considered gold */
  --ink:        #0B1B33;
  --ink-deep:   #07142A;
  --ink-soft:   #16294A;
  --paper:      #F7F5EF;
  --paper-2:    #FBFAF6;
  --gold:       #E0A92E;
  --gold-soft:  #F0CE84;
  --slate:      #46536E;
  --slate-light:#6B7790;
  --line:       #DBDEE6;
  --line-dark:  rgba(255, 255, 255, 0.14);
  --white:      #FFFFFF;

  /* Type */
  --display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Rhythm */
  --maxw: 1140px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --radius: 4px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.eyebrow {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px; background: var(--gold); display: inline-block;
}
.eyebrow--center { justify-content: center; }
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.6; color: var(--slate); }

/* ---------- Accessibility ---------- */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 0.75rem 1.25rem;
}
.skip:focus { left: 1rem; top: 1rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--body); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.5rem; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--ink-deep); }
.btn--gold:hover { background: var(--gold-soft); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--line-dark); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--ink-soft); }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 20, 42, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line-dark);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--white); }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { font-family: var(--display); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; }
.brand__text span { font-size: 0.66rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--gold-soft); }

.nav__links { display: flex; align-items: center; gap: 0.4rem; list-style: none; padding: 0; }
.nav__links a {
  text-decoration: none; color: rgba(255,255,255,0.82); font-size: 0.93rem; font-weight: 600;
  padding: 0.5rem 0.85rem; border-radius: var(--radius); transition: color 0.18s ease, background 0.18s ease;
}
.nav__links a:hover { color: var(--white); background: rgba(255,255,255,0.07); }
.nav__links a[aria-current="page"] { color: var(--gold); }
.nav__links a.btn--gold[aria-current="page"] { color: var(--ink-deep); }
.nav__login { margin-left: 0.5rem; }

.nav__toggle {
  display: none; background: none; border: 1px solid var(--line-dark); border-radius: var(--radius);
  width: 44px; height: 40px; cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: #fff; position: relative; transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after { position: absolute; top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-deep); border-bottom: 1px solid var(--line-dark);
    padding: 0.5rem var(--gutter) 1.25rem;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav__links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 0.7rem 0.5rem; }
  .nav__login { margin: 0.85rem 0 0; }
  .nav__login .btn { width: 100%; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--ink); color: var(--white); overflow: hidden;
  padding-block: clamp(4.5rem, 11vw, 9rem);
}
.hero::after {
  /* gold "thread" — the statewide connective motif */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(1100px 520px at 88% -10%, rgba(224,169,46,0.16), transparent 60%),
    radial-gradient(800px 600px at -5% 110%, rgba(22,41,74,0.9), transparent 55%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero__inner { max-width: 760px; }
.hero h1 {
  font-size: clamp(2.7rem, 7vw, 5.2rem); margin-top: 1.4rem; color: var(--white);
  font-weight: 600;
}
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero__lede { margin-top: 1.6rem; max-width: 60ch; color: rgba(255,255,255,0.85); font-size: clamp(1.1rem, 2vw, 1.32rem); line-height: 1.6; }
.hero__cta { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero__meta {
  margin-top: 3.2rem; padding-top: 1.6rem; border-top: 1px solid var(--line-dark);
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.55rem; font-size: 0.86rem; color: rgba(255,255,255,0.62);
}
.hero__meta b { color: rgba(255,255,255,0.92); font-weight: 700; }
.credit-org { display: inline-flex; align-items: center; text-decoration: none; color: inherit; vertical-align: middle; }
.credit-org img { height: 22px; width: auto; display: block; }
.credit-org__name { display: none; font-weight: 700; color: rgba(255,255,255,0.92); }
.credit-org--name img { display: none; }
.credit-org--name .credit-org__name { display: inline; }
.credit-org:hover .credit-org__name, .credit-org:focus-visible .credit-org__name { color: #fff; text-decoration: underline; }
.credit-amp { color: rgba(255,255,255,0.55); }

/* ---------- Section headers ---------- */
.sec-head { max-width: 64ch; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin-top: 1rem; }
.sec-head p { margin-top: 1.1rem; }

/* ---------- Pillars (three levels) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.pillar {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.75rem; position: relative; overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.pillar::before { content: ""; position: absolute; top: 0; left: 0; height: 3px; width: 56px; background: var(--gold); }
.pillar:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(11,27,51,0.4); border-color: var(--gold-soft); }
.pillar__tag { font-family: var(--body); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate-light); }
.pillar h3 { font-size: 1.5rem; margin-top: 0.5rem; }
.pillar p { margin-top: 0.8rem; color: var(--slate); font-size: 0.99rem; }

/* ---------- Thesis / quote band ---------- */
.thesis { background: var(--ink-deep); color: var(--white); }
.thesis .wrap { max-width: 900px; }
.thesis p {
  font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  line-height: 1.35; letter-spacing: -0.01em;
}
.thesis p .hl { color: var(--gold-soft); font-style: italic; }
.thesis .attribution { font-family: var(--body); margin-top: 1.6rem; font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255,255,255,0.55); }

/* ---------- Partner names (typographic) ---------- */
.partners-band { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.partners-band .label { text-align: center; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate-light); }
.partner-names {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 0.4rem 0; margin: 1.8rem auto 0; max-width: 940px;
}
.partner-names span {
  position: relative; font-family: var(--display); font-weight: 600;
  font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--ink); line-height: 1.45;
  padding: 0.1rem 1.4rem;
}
.partner-names span:not(:last-child)::after {
  content: ""; position: absolute; right: -3px; top: 50%; transform: translateY(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
}
/* Org-name text links: look identical to plain text; reveal clickability on hover
   via a brand-gold color shift (no underline / no weight change). */
.partner-names a, .org-link { color: inherit; text-decoration: none; transition: color 0.15s ease; cursor: pointer; }
.partner-names a:hover, .partner-names a:focus-visible,
.org-link:hover, .org-link:focus-visible { color: var(--gold); }

/* Monogram — typographic stand-in for a logo on org cards */
.monogram {
  width: 96px; height: 96px; flex: none; display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--gold); border-radius: var(--radius);
  font-family: var(--display); font-weight: 600; font-size: 1.45rem; letter-spacing: 0.01em;
}

/* EdAdvance is shown as an actual logo (per partner request) */
.partner-names .pn-logo {
  display: inline-flex; align-items: center; margin: 0 0.7rem; padding: 6px 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.partner-names .pn-logo::after { content: none; }
.partner-names .pn-logo img { display: block; height: 24px; width: auto; }

.org-logo {
  width: 96px; height: 96px; flex: none; display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px;
}
.org-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ---------- Partners detail grid ---------- */
.org-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.org-card {
  display: grid; grid-template-columns: 96px 1fr; gap: 1.25rem; align-items: start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem;
}
.org-card .monogram { width: 96px; }
.org-card h3 { font-size: 1.2rem; }
.org-card .role { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-top: 0.15rem; }
.org-card p { margin-top: 0.55rem; font-size: 0.94rem; color: var(--slate); }
a.org-card { text-decoration: none; color: inherit; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
a.org-card:hover, a.org-card:focus-visible { transform: translateY(-3px); box-shadow: 0 16px 36px -24px rgba(11,27,51,0.45); border-color: var(--gold-soft); }
.pn-logo, .footer-delivered__chip { text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
/* Logo chips signal clickability on hover with a subtle lift + brand-gold ring,
   mirroring the gold color-shift used on the org-name text links. */
.pn-logo:hover, .pn-logo:focus-visible,
.footer-delivered__chip:hover, .footer-delivered__chip:focus-visible {
  transform: translateY(-2px); box-shadow: 0 0 0 2px var(--gold);
}
.pn-logo:hover, .pn-logo:focus-visible { border-color: var(--gold); }

/* ---------- Boards + map ---------- */
.boards-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; margin-top: 3rem; }
.ct-map { width: 100%; height: auto; }
.ct-map .region { fill: var(--ink-soft); stroke: var(--ink-deep); stroke-width: 1; }
.ct-map .pin { fill: var(--gold); stroke: #fff; stroke-width: 2; }
.ct-map .pin-label { font-family: var(--body); font-size: 17px; font-weight: 700; fill: #fff; }
.board-list { list-style: none; padding: 0; display: grid; gap: 0.85rem; }
.board-list li { list-style: none; }
.board-link { display: grid; grid-template-columns: 172px 1fr; gap: 1rem; align-items: baseline; padding: 0.45rem 0 0.85rem; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; transition: color 0.18s ease; }
.board-link:hover .board-name, .board-link:focus-visible .board-name { color: var(--gold); }
.board-list .region-name { font-family: var(--body); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.board-list .board-name { font-family: var(--display); font-size: 1.15rem; }
.board-list .board-name small { display: block; font-family: var(--body); font-size: 0.85rem; color: var(--slate-light); font-weight: 400; letter-spacing: 0; text-transform: none; }

/* ---------- Approach / workstreams ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 3rem; }
.work-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem; }
.work-card .num { font-family: var(--display); font-size: 1rem; color: var(--gold); font-weight: 600; }
.work-card h3 { font-size: 1.35rem; margin-top: 0.5rem; }
.work-card p { margin-top: 0.7rem; color: var(--slate); font-size: 0.97rem; }
.work-card ul { margin-top: 0.9rem; padding-left: 1.1rem; color: var(--slate); font-size: 0.92rem; }
.work-card li { margin-top: 0.3rem; }

/* ---------- Timeline ---------- */
.timeline { margin-top: 3rem; display: grid; gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.phase { position: relative; padding: 0 0 2rem 2.5rem; }
.phase:last-child { padding-bottom: 0; }
.phase::before { content: ""; position: absolute; left: 4px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); border: 3px solid var(--paper); }
.phase .when { font-family: var(--body); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate-light); }
.phase h3 { font-size: 1.3rem; margin-top: 0.2rem; }
.phase p { margin-top: 0.45rem; color: var(--slate); font-size: 0.96rem; }

/* ---------- Commitments callout ---------- */
.commit { background: var(--ink); color: #fff; }
.commit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.commit-item h3 { color: #fff; font-size: 1.15rem; }
.commit-item p { margin-top: 0.5rem; font-size: 0.9rem; color: rgba(255,255,255,0.72); }
.commit-item .ic { width: 34px; height: 34px; color: var(--gold); margin-bottom: 0.8rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--gold); color: var(--ink-deep); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { font-size: clamp(1.45rem, 3.5vw, 2.4rem); white-space: nowrap; }
.cta-band p { margin-top: 0.4rem; color: rgba(7,20,42,0.78); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: rgba(255,255,255,0.72); padding-block: 3.5rem 2rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; max-width: 38ch; }
.footer-col h4 { font-family: var(--body); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 0.9rem; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.footer-col a { text-decoration: none; font-size: 0.92rem; color: rgba(255,255,255,0.72); }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; font-size: 0.82rem; color: rgba(255,255,255,0.5); }

/* Delivered-by EdAdvance lockup */
.footer-delivered {
  margin-top: 2.75rem; padding-top: 2rem; border-top: 1px solid var(--line-dark);
  display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap;
}
.footer-delivered__label {
  font-family: var(--body); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-soft);
}
.footer-delivered__orgs { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0.75rem; }
.footer-delivered__jff { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: rgba(255,255,255,0.92); }
.footer-delivered__amp { font-family: var(--display); font-size: 1rem; color: rgba(255,255,255,0.5); }
.footer-delivered__chip { background: #fff; border-radius: var(--radius); padding: 7px 13px; display: inline-flex; align-items: center; }
.footer-delivered__chip img { height: 30px; width: auto; display: block; }
@media (max-width: 540px) {
  .footer-delivered { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
}

/* ---------- Login (coming soon) ---------- */
.coming { min-height: calc(100vh - 72px); display: grid; place-items: center; background: var(--ink); color: #fff; text-align: center; position: relative; overflow: hidden; }
.coming::after { content:""; position:absolute; inset:0; background: radial-gradient(900px 500px at 50% -10%, rgba(224,169,46,0.16), transparent 60%); }
.coming .wrap { position: relative; z-index: 1; max-width: 620px; }
.coming .lock { width: 56px; height: 56px; color: var(--gold); margin: 0 auto 1.5rem; }
.coming h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: #fff; }
.coming p { margin-top: 1.2rem; color: rgba(255,255,255,0.78); font-size: 1.1rem; }
.coming .btn { margin-top: 2rem; }
.coming .badge { display: inline-block; margin-bottom: 1.5rem; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--line-dark); padding: 0.4rem 1rem; border-radius: 100px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; }
  .org-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .boards-layout { grid-template-columns: 1fr; }
  .commit-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .commit-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .org-card { grid-template-columns: 1fr; }
  .org-card .monogram { width: 100%; }
  .org-card .org-logo { width: 100%; }
}

/* ---------- Resources page ---------- */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.res-list { list-style: none; padding: 0; margin-top: 2.25rem; display: grid; gap: 0.9rem; }
.res {
  display: grid; grid-template-columns: 1fr auto; gap: 1rem 1.5rem; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem;
}
/* NTEN card: the three exhibits live inside the same card as their parent template */
.res--group { display: block; }
.res__main { display: grid; grid-template-columns: 1fr auto; gap: 1rem 1.5rem; align-items: center; }
.res__ex-wrap { margin-top: 1rem; padding-top: 0.85rem; border-top: 1px solid var(--line); }
.res__ex-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); }
.res__ex-grid { list-style: none; padding: 0; margin-top: 0.55rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.res__ex { display: flex; flex-direction: column; gap: 0.2rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.6rem 0.75rem; }
.res__ex-title { font-family: var(--display); font-weight: 600; font-size: 0.88rem; line-height: 1.2; color: var(--ink); }
.res__ex-desc { font-size: 0.78rem; color: var(--slate); flex: 1; }
.res__ex-get {
  align-self: flex-start; margin-top: 0.3rem; display: inline-flex; align-items: baseline; gap: 0.4rem;
  font-size: 0.78rem; font-weight: 700; color: var(--ink); text-decoration: none;
  border: 1px solid var(--ink); border-radius: var(--radius); padding: 0.25rem 0.6rem;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.res__ex-get small { font-weight: 400; font-size: 0.7rem; color: var(--slate); }
.res__ex-get:hover, .res__ex-get:focus-visible { background: var(--ink); color: var(--white); box-shadow: 0 0 0 2px var(--gold); }
.res__ex-get:hover small, .res__ex-get:focus-visible small { color: rgba(255,255,255,0.8); }
.res__title { font-size: 1.2rem; }
.res__pub { margin-top: 0.25rem; font-size: 0.84rem; font-weight: 600; color: var(--slate); }
.res__pub a { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
.res__pub a:hover, .res__pub a:focus-visible { color: var(--ink); text-decoration-style: solid; }
.res__desc { margin-top: 0.5rem; font-size: 0.95rem; color: var(--slate); max-width: 62ch; }
.res__get {
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.15rem; min-width: 8rem;
  padding: 0.7rem 1.1rem; background: var(--ink); color: var(--white); border-radius: var(--radius);
  text-decoration: none; font-weight: 700; font-size: 0.92rem;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.res__get small { font-weight: 400; font-size: 0.74rem; color: rgba(255,255,255,0.78); }
.res__get:hover, .res__get:focus-visible { background: var(--ink-soft); box-shadow: 0 0 0 2px var(--gold); transform: translateY(-2px); }
@media (max-width: 760px) {
  .res__ex-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .res, .res__main { grid-template-columns: 1fr; }
  .res__get { flex-direction: row; justify-content: space-between; width: 100%; }
}
