/* Extends the public article shell with Novari's established Paper / Ink & Ember identity.
   Editorial panels are square; actions use the existing pill shape. No motion is required. */
@font-face {
  font-family: Figtree;
  src: url("/fonts/figtree-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: Fraunces;
  src: url("/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
body.public-study {
  --bg: #f7f4ed;
  --text: #1d252d;
  --muted: #526068;
  --dim: #626d74;
  --accent: #a9432b;
  --border: #d8d4cb;
  background: var(--bg);
  font-family: Figtree, system-ui, sans-serif;
}
.public-study .wrap.wide {
  max-width: 1200px;
  padding: 0 24px 64px;
}
.public-study h1,
.public-study h2 {
  font-family: Fraunces, Georgia, serif;
  letter-spacing: -0.04em;
}
.public-study h1 {
  font-size: clamp(36px, 4.6vw, 62px);
  line-height: 1.07;
}
.public-study h2 {
  line-height: 1.16;
  font-size: clamp(26px, 3vw, 38px);
}
.public-header {
  min-height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.public-header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.public-header nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.public-header .brand {
  font-size: 14px;
}
.public-study .breadcrumbs {
  font-size: 13px;
  letter-spacing: 0;
  line-height: 1.6;
  margin-bottom: 24px;
}
.public-study .breadcrumbs a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.skip-link {
  position: absolute;
  top: 8px;
  left: 12px;
  z-index: 10;
  transform: translateY(-160%);
  padding: 12px;
  background: var(--text);
  color: var(--bg);
}
.skip-link:focus {
  transform: translateY(0);
}
.public-study :focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
.public-study a:hover {
  text-decoration: underline;
}
.public-study a:active {
  opacity: 0.8;
}
.study-page {
  overflow-wrap: anywhere;
}
.study-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  margin: 32px 0 64px;
}
.study-hero .eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
}
.study-hero .dek {
  font-size: 20px;
  line-height: 1.5;
  margin: 22px 0 28px;
  max-width: 45ch;
}
.study-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: 999px;
  padding: 14px 23px;
  background: #a9432b;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  min-height: 48px;
  max-width: 100%;
  text-align: center;
}
.public-study a.study-action {
  color: #fff;
}
.study-action span {
  font-size: 20px;
}
.study-product {
  margin: 0;
  min-width: 0;
  background: #eae5db;
  padding: 14px;
  border: 1px solid var(--border);
}
.study-product img {
  display: block;
  width: 100%;
  height: auto;
  background: #eae5db;
}
.study-product.portrait {
  max-width: 320px;
  justify-self: center;
}
.study-product.portrait img {
  max-height: 380px;
  object-fit: contain;
}
.study-product figcaption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}
.study-note {
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid var(--border);
  padding: 28px;
  background: #eee9df;
}
.study-note > p:not(.eyebrow) {
  font:
    28px/1.3 Fraunces,
    Georgia,
    serif;
  color: var(--text);
}
.study-note a {
  font-weight: 600;
}
.public-study section {
  scroll-margin-top: 24px;
}
.study-introduction {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 48px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
  margin-bottom: 64px;
}
.study-introduction h2 {
  margin: 0;
  max-width: 15ch;
}
.public-study p {
  font-size: 17px;
  line-height: 1.75;
}
.study-introduction p:last-child {
  margin: 0;
}
.study-workflow {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 48px;
  padding: 38px 0;
  border-top: 1px solid var(--border);
}
.study-workflow h2 {
  margin: 0;
}
.study-workflow ol {
  padding: 0;
  list-style: none;
  margin: 0;
}
.study-workflow li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  margin: 0 0 24px;
}
.study-workflow li:last-child {
  margin: 0;
}
.step-number {
  font-size: 14px;
  color: var(--accent);
  border-top: 1px solid var(--accent);
  padding-top: 8px;
}
.study-workflow h3 {
  margin: 0 0 8px;
  font-size: 21px;
}
.study-workflow p {
  margin: 0;
}
.study-example {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 48px;
  background: #eae5db;
  border-top: 3px solid var(--accent);
  padding: 36px;
  margin: 24px 0 64px;
}
.study-example h2 {
  margin: 0;
}
.study-example p:last-child {
  margin: 0;
}
.study-example summary {
  cursor: pointer;
  color: var(--text);
  min-height: 44px;
  padding: 10px 0;
  font-weight: 700;
}
.study-example details p {
  padding-top: 12px;
}
.study-advice {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 48px;
}
.study-advice h2 {
  margin: 0;
}
.study-advice h3 {
  margin-top: 0;
  font-size: 22px;
}
.study-advice > div > div {
  margin-bottom: 28px;
}
.study-limitations {
  border-left: 3px solid var(--accent);
  padding: 12px 24px;
  margin: 32px 0 56px;
}
.study-limitations h2 {
  font-size: 26px;
  margin: 0 0 12px;
}
.study-limitations p {
  font-size: 15px;
}
.study-limitations p:last-child {
  margin: 0;
}
.study-sources {
  max-width: 760px;
  margin: 0 0 56px;
}
.study-sources h2 {
  font-size: 28px;
}
.study-sources p,
.study-sources li {
  font-size: 15px;
}
.study-sources a {
  display: inline-block;
  padding: 5px 0;
}
.study-sources .review-date {
  font-size: 13px;
}
.study-related {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.study-related nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
}
.study-related a {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  min-height: 48px;
}
.study-final {
  margin: 56px 0 0;
  padding: 36px 0;
  border-top: 1px solid var(--border);
}
.study-final h2 {
  margin: 0 0 16px;
  max-width: 650px;
}
.study-final p {
  max-width: 600px;
}
.public-study footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.public-study footer nav a {
  margin: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 14px;
}
.layout-exam .study-hero {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
}
.layout-exam .study-workflow {
  background: #eee9df;
  padding: 32px;
}
.layout-resource .study-hero {
  align-items: start;
}
.layout-resource .study-product {
  margin-top: 20px;
}
.layout-resource .study-example {
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 900px;
}
.layout-resource .study-workflow {
  grid-template-columns: 1fr;
  gap: 28px;
}
.layout-audience .study-hero {
  grid-template-columns: 1.4fr 1fr;
}
.layout-audience .study-note {
  transform: rotate(-2deg);
  margin: 20px;
}
.layout-audience .study-example {
  background: transparent;
  border: 1px solid var(--border);
  padding: 32px;
}
.layout-audience .study-advice {
  background: #eee9df;
  padding: 32px;
}
.study-directory {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
  margin-top: 48px;
}
.study-directory article {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}
.study-directory h2 {
  font-size: 28px;
  margin: 0 0 14px;
}
.study-directory h2 a {
  text-decoration: none;
  color: var(--text);
}
.consent-panel {
  position: fixed;
  bottom: 16px;
  right: 16px;
  max-width: 400px;
  padding: 20px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px #1d252d20;
  z-index: 20;
}
.consent-panel p {
  font-size: 14px;
  margin: 0 0 12px;
}
.consent-panel button {
  font:
    600 14px Figtree,
    system-ui;
  border: 1px solid var(--text);
  background: var(--bg);
  color: var(--text);
  padding: 12px;
  margin: 4px;
  min-height: 44px;
  cursor: pointer;
}
.consent-panel button[data-allow] {
  background: var(--text);
  color: var(--bg);
}
.consent-settings {
  font: inherit;
  border: 0;
  background: none;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
  min-height: 44px;
  padding: 6px 0;
}
@media (max-width: 767px) {
  .public-study .wrap.wide {
    padding: 0 20px 40px;
  }
  .public-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 18px 0 10px;
    margin-bottom: 18px;
  }
  .public-header nav {
    gap: 18px;
    flex-wrap: wrap;
  }
  .public-header nav a {
    font-size: 14px;
  }
  .study-hero,
  .layout-exam .study-hero,
  .layout-resource .study-hero,
  .layout-audience .study-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 28px 0 40px;
  }
  .study-hero h1 {
    max-width: 18ch;
  }
  .study-hero .dek {
    font-size: 18px;
    margin: 18px 0 22px;
  }
  .study-product {
    max-width: 560px;
  }
  .study-product.portrait {
    width: 100%;
    max-width: 300px;
    justify-self: start;
  }
  .study-product.portrait img {
    max-height: 300px;
  }
  .study-introduction,
  .study-workflow,
  .study-example,
  .study-advice {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
  }
  .study-introduction h2 {
    max-width: 100%;
  }
  .layout-exam .study-workflow,
  .study-example,
  .layout-audience .study-example,
  .layout-audience .study-advice {
    padding: 24px 20px;
  }
  .study-workflow li {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 12px;
  }
  .study-related nav,
  .study-directory {
    grid-template-columns: 1fr;
  }
  .layout-audience .study-note {
    margin: 0;
    transform: none;
  }
  .study-limitations {
    padding: 4px 0 4px 16px;
  }
  .public-study p {
    font-size: 16px;
  }
  .consent-panel {
    bottom: 8px;
    right: 8px;
    left: 8px;
    max-width: none;
  }
  .study-final {
    margin-top: 36px;
  }
  .public-study h1 {
    letter-spacing: -0.035em;
  }
  .study-action {
    font-size: 15px;
    padding: 12px 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .public-study * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
