/* ============================================================
   case-study.css — shared styles for all case study pages
   ============================================================ */

/* ── Accessibility utilities ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-100%);
  padding: 8px 16px;
  background: #161616;
  color: #fff;
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
  border-radius: 0 0 4px 0;
}
.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid #0788f5;
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Page shell ── */
#page {
  background-color: #fffdfd;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px 24px;
  gap: 55px;
  box-sizing: border-box;
}

/* ── Navigation ── */
.top-nav,
.bottom-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 600px;
}

.bottom-nav {
  margin-top: auto;
}

.top-nav a,
.bottom-nav a {
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #6f6f6f;
  text-decoration: underline;
}

/* ── Content column ── */
.content {
  display: flex;
  flex-direction: column;
  gap: 55px;
  max-width: 600px;
  width: 100%;
  box-sizing: border-box;
}

/* ── Header ── */
.content header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

h1 {
  font-family: 'Figtree', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #161616;
  line-height: 26px;
}

.meta-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.company-tag {
  display: flex;
  align-items: center;
  gap: 4px;
}

.company-logo {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  display: block;
}

.meta-bar span {
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #525252;
}

.meta-sep {
  color: #6f6f6f;
}

.reading-time {
  color: #6f6f6f !important;
}

.meta-wip {
  color: #b45309;
  font-weight: 600;
}

/* ── Hero figure ── */
figure.hero {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

figure.hero img,
figure.hero video,
figure.hero iframe {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #e8e8e8;
  display: block;
}

/* ── Case meta block ── */
.case-meta {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.meta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.meta-item h2 {
  font-family: 'Figtree', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #161616;
  line-height: 1.4;
  margin-bottom: 4px;
}

/* ── Read-on block ── */
.read-on {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.read-on-label {
  font-family: 'Figtree', sans-serif !important;
  font-style: italic !important;
  font-weight: 400 !important;
  font-size: 16px !important;
  color: #161616 !important;
  line-height: 1.8 !important;
  text-decoration-line: underline;
  text-decoration-skip-ink: none;
  text-underline-offset: -100%;
  text-decoration-thickness: 120%;
  text-decoration-color: #fffb23;
}

/* ── Divider ── */
hr {
  border: none;
  height: 1px;
  background: #d9d9d9;
  margin: 0;
}

/* ── Sections ── */
section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Grouped section (e.g. "The process" with sub-sections) */
section.grouped {
  gap: 32px;
}

section.grouped > section {
  gap: 16px;
}

/* ── Headings ── */
h2 {
  font-family: 'Figtree', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #161616;
  line-height: 1.4;
}

h3 {
  font-family: 'Figtree', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #525252;
  line-height: 1.4;
}

/* ── Body text ── */
p {
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #525252;
  line-height: 1.8;
}

strong {
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  color: inherit;
}

em {
  font-family: 'Figtree', sans-serif;
  font-style: italic;
  font-weight: 400;
  color: inherit;
}

code {
  font-family: 'Source Code Pro', monospace;
  font-weight: 700;
  color: #0788f5;
}

/* ── Figcaption ── */
figcaption {
  font-family: 'Figtree', sans-serif;
  font-style: italic;
  font-weight: 400;
  font-size: 12px;
  color: #525252;
  line-height: 1.8;
}

/* ── Sidebar figures ── */
figure.sidebar {
  border-left: 2px solid #d9d9d9;
  padding: 12px 0 0 16px;
  max-width: 327px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

figure.sidebar img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

/* ── Lists ── */
ul,
ol {
  margin-inline-start: 21px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

ul {
  list-style: disc;
}

ol {
  list-style: decimal;
}

li {
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #525252;
  line-height: 1.8;
}

/* ── Links inside body text ── */
.content a {
  color: #525252;
  text-decoration: underline;
}

/* ── Desktop breakpoint (≥730px) ── */
@media (min-width: 730px) {
  #page {
    padding: 40px 62px 82px;
  }

  .top-nav,
  .bottom-nav,
  .content {
    max-width: 600px;
  }

  .meta-grid {
    grid-template-columns: 1fr 1fr;
    gap: 58px;
  }
}
