/* =========================================================
   Parikshat Sharma Website
   Clean Saffron + White CSS System
   Replace the entire css/site.css with this file.
   ========================================================= */

:root {
  /* Colour system */
  --bg: #fffaf3;
  --surface: #ffffff;
  --surface-soft: #fff3e1;
  --surface-warm: #fff7ec;
  --ink: #241309;
  --ink-soft: #453529;
  --muted: #6d6258;
  --line: #f0ddc3;
  --accent: #ff7f11;
  --accent-soft: #ffe1bd;
  --accent-dark: #b94f00;
  --accent-deep: #823600;

  /* Layout system */
  --site-width: 1160px;
  --gutter: clamp(22px, 4vw, 52px);
  --radius: 22px;
  --radius-large: 30px;
  --shadow: 0 18px 45px rgba(130, 54, 0, 0.09);

  /* Type system */
  --font-main: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --h1-home: clamp(2.7rem, 5vw, 4.55rem);
  --h1-page: clamp(2.35rem, 4.4vw, 3.95rem);
  --h2: clamp(1.85rem, 3vw, 2.7rem);
  --h3: 1.22rem;
  --lead: clamp(1.08rem, 1.65vw, 1.34rem);
  --body: 1rem;

  /* Spacing system */
  --section-y: clamp(54px, 7vw, 88px);
  --hero-y: clamp(34px, 4.5vw, 56px);
  --page-hero-y: clamp(48px, 6vw, 74px);
}

/* Base ---------------------------------------------------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover { color: var(--accent-dark); }

p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: var(--body);
  line-height: 1.62;
}

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

h1 { font-size: var(--h1-page); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); letter-spacing: -0.018em; }

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl, dt, dd { margin: 0; }

/* Layout -------------------------------------------------- */

.wrap,
.container {
  width: min(var(--site-width), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.narrow {
  width: min(860px, calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
}

.quiet {
  background: var(--surface-soft);
}

.proof,
.recommendations-section {
  background: var(--surface);
}

.contrast {
  color: #ffffff;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 58%, var(--accent-deep) 100%);
}

.contrast h1,
.contrast h2,
.contrast h3,
.contrast strong,
.contrast dt { color: #ffffff; }

.contrast p,
.contrast span,
.contrast li,
.contrast dd { color: rgba(255, 255, 255, 0.88); }

.contrast .eyebrow,
.conversation-box .eyebrow { color: #fff7ec; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 99;
  padding: 10px 14px;
  background: var(--accent-deep);
  color: #ffffff;
}

.skip-link:focus { top: 16px; }

/* Header -------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-top: 5px solid var(--accent);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(130, 54, 0, 0.05);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  flex: 0 0 auto;
  min-width: 232px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
}

.brand-text {
  display: grid;
  line-height: 1.12;
}

.brand-text strong {
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.brand-text small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.84rem;
}

.nav-links a {
  padding: 7px 9px;
  border-radius: 999px;
  color: #4a3728;
  font-weight: 700;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.nav-links .nav-button {
  margin-left: 4px;
  padding: 8px 15px;
  border: 1px solid var(--accent);
  background: #ffffff;
  color: var(--accent-deep);
}

.nav-links .nav-button:hover,
.nav-links .nav-button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

/* Common content elements -------------------------------- */

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.lead {
  max-width: 880px;
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: var(--lead);
  line-height: 1.55;
}

.microcopy {
  max-width: 760px;
  margin-top: 16px;
  color: #776b60;
  font-size: 0.95rem;
}

.section-heading,
.section-heading.compact {
  max-width: 820px;
  margin-bottom: 32px;
}

.section-heading h2 {
  max-width: 900px;
}

.section-heading p {
  max-width: 760px;
  margin-top: 16px;
  font-size: 1.03rem;
}

.text-link {
  display: inline-flex;
  margin-top: 8px;
  border-bottom: 1px solid currentColor;
  color: var(--accent-dark);
  font-weight: 850;
}

/* Buttons ------------------------------------------------- */

.hero-actions,
.contact-actions,
.section-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.section-link-row.left { margin-top: 26px; }

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
  color: inherit;
}

.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(255, 127, 17, 0.24);
}

.primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #ffffff;
}

.secondary {
  background: #ffffff;
  border-color: var(--line);
  color: var(--accent-deep);
}

.secondary:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: var(--accent-deep);
}

.light {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--accent-deep);
  box-shadow: 0 14px 30px rgba(130, 54, 0, 0.16);
}

.light:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: var(--accent-deep);
}

.ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.48);
  color: #ffffff;
}

.ghost-light:hover {
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
}

/* Homepage hero ------------------------------------------ */

.hero {
  padding-top: var(--hero-y);
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 127, 17, 0.18), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, var(--surface-warm) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(28px, 4.6vw, 60px);
  align-items: center;
}

.hero h1 {
  max-width: 980px;
  font-size: var(--h1-home);
  line-height: 1.07;
  letter-spacing: -0.045em;
}

.truth-card,
.fit-box,
.content-panel,
.note-panel,
.approach-card,
.story-card,
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.truth-card,
.fit-box,
.content-panel,
.note-panel {
  padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--shadow);
}

.truth-card {
  position: relative;
  overflow: hidden;
}

.truth-card::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -64px;
  width: 180px;
  height: 180px;
  background: url('../img/ps-sun-logo.jpg') center / contain no-repeat;
  opacity: 0.09;
}

.truth-card > * {
  position: relative;
  z-index: 1;
}

.truth-card h2 {
  margin-bottom: 10px;
  font-size: 1.42rem;
}

.truth-card p {
  font-size: 0.98rem;
  line-height: 1.55;
}

.truth-card ul { margin-top: 18px; }

.truth-card li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
}

/* Inner page hero ---------------------------------------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding-top: var(--page-hero-y);
  padding-bottom: var(--page-hero-y);
  text-align: left;
}

.page-hero.quiet,
.quiet.page-hero {
  background:
    radial-gradient(circle at 86% 28%, rgba(255, 127, 17, 0.12), transparent 30%),
    var(--surface-soft);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: max(18px, calc((100vw - var(--site-width)) / 2));
  top: 50%;
  width: clamp(130px, 17vw, 220px);
  height: clamp(130px, 17vw, 220px);
  transform: translateY(-50%);
  background: url('../img/ps-sun-logo.jpg') center / contain no-repeat;
  opacity: 0.06;
  pointer-events: none;
}

.page-hero .wrap,
.page-hero .wrap.narrow {
  position: relative;
  z-index: 1;
  width: min(var(--site-width), calc(100% - (var(--gutter) * 2)));
}

.page-hero h1 {
  max-width: 940px;
  font-size: var(--h1-page);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.page-hero .lead {
  max-width: 820px;
  margin-top: 20px;
}

/* Cards and grids ---------------------------------------- */

.cards,
.steps,
.stories-list,
.contact-card-list,
.timeline {
  display: grid;
  gap: 18px;
}

.cards.three,
.quotes,
.recommendation-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  min-height: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
}

.card p { margin: 0; }

.card-number,
.story-kicker,
.recommendation-label {
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dark-cards .card {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.22);
}

.dark-cards .card-number { color: #fff7ec; }
.dark-cards .card p { color: rgba(255, 255, 255, 0.86); }

.two-column,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: start;
}

.approach-grid,
.fit-columns,
.split-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

/* Lists, steps, and panels ------------------------------- */

.check-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 22px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
}

.reverse li { color: rgba(255, 255, 255, 0.88); }
.reverse li::before { background: #ffffff; }

.not-fit {
  margin-bottom: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.step {
  padding: 19px 20px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
}

.step strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.step span {
  display: block;
  color: rgba(255, 255, 255, 0.86);
}

.light-steps .step {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(130, 54, 0, 0.05);
}

.light-steps .step span { color: var(--muted); }

.content-panel h3,
.service-detail h3,
.service-copy h3 {
  margin-top: 26px;
  margin-bottom: 6px;
}

.content-panel p:last-child,
.service-copy p:last-child { margin-bottom: 0; }

.approach-card,
.story-card {
  padding: clamp(24px, 3vw, 36px);
}

.approach-card h2 {
  margin: 12px 0 18px;
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
}

.timeline-item {
  position: relative;
  padding: 0 0 18px 28px;
  border-left: 2px solid var(--line);
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 0.35em;
  left: -7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.1rem;
}

.timeline-item p { margin: 0; }

.story-card {
  box-shadow: 0 18px 42px rgba(130, 54, 0, 0.07);
}

.story-card h2 {
  margin: 10px 0 22px;
  font-size: clamp(1.65rem, 2.7vw, 2.45rem);
}

.story-card dl {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 13px 24px;
}

.story-card dt {
  color: var(--accent-dark);
  font-weight: 850;
}

.story-card dd { color: var(--muted); }

.fit-box.large h2 {
  margin-bottom: 20px;
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
}

.warning-box { background: #fff8ef; }

.note-panel { text-align: center; }

.note-panel p {
  max-width: 760px;
  margin-inline: auto;
}

/* Quotes and LinkedIn recommendations -------------------- */

blockquote {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-warm);
}

blockquote p {
  margin: 0;
  color: #3d2d21;
  font-size: 1.04rem;
}

.recommendations-section {
  background:
    radial-gradient(circle at top right, rgba(255, 119, 0, 0.10), transparent 34%),
    #ffffff;
}

.recommendation-grid {
  display: grid;
  gap: 22px;
  margin-top: 34px;
}

.recommendation-card {
  padding: 26px;
  border: 1px solid rgba(255, 119, 0, 0.18);
  border-radius: var(--radius);
  background: #fffaf4;
  box-shadow: 0 18px 45px rgba(67, 34, 16, 0.08);
}

.recommendation-label {
  margin: 0 0 14px;
}

.recommendation-card blockquote {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.65;
}

.recommendation-person {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 119, 0, 0.16);
}

.person-initials {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 850;
}

.recommendation-person strong {
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
}

.recommendation-person span,
.recommendation-person small {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.recommendation-link {
  margin-top: 32px;
  text-align: center;
}

.recommendation-link a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 850;
  box-shadow: 0 14px 30px rgba(255, 119, 0, 0.22);
}

.recommendation-link a:hover {
  transform: translateY(-1px);
  background: var(--accent-dark);
  color: #ffffff;
}

/* Conversation and contact ------------------------------- */

.conversation {
  background: linear-gradient(180deg, var(--surface-soft), var(--bg));
}

.conversation-box {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 5vw, 58px);
  border-radius: var(--radius-large);
  background:
    radial-gradient(circle at 98% 0%, rgba(255, 255, 255, 0.24), transparent 32%),
    linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 65%, var(--accent-deep) 100%);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.conversation-box::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -70px;
  width: 230px;
  height: 230px;
  background: url('../img/ps-sun-logo.jpg') center / contain no-repeat;
  opacity: 0.12;
}

.conversation-box > * {
  position: relative;
  z-index: 1;
}

.conversation-box h2,
.conversation-box h3,
.conversation-box strong { color: #ffffff; }

.conversation-box p {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.9);
}

.conversation-box .secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.38);
  color: #ffffff;
}

.conversation-box .primary {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--accent-deep);
  box-shadow: 0 14px 30px rgba(130, 54, 0, 0.18);
}

.conversation-box .primary:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: var(--accent-deep);
}

.contact-line {
  margin-top: 22px;
  margin-bottom: 0;
}

.contact-card {
  display: grid;
  gap: 4px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.contact-card span {
  color: #fff7ec;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-card strong {
  color: #ffffff;
  font-size: 1.08rem;
}

/* Footer -------------------------------------------------- */

.site-footer {
  padding: 42px 0 26px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 42px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 1.16rem;
  font-weight: 850;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 50%;
}

.site-footer h2 {
  margin-bottom: 12px;
  color: var(--accent-dark);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer a {
  display: block;
  margin: 6px 0;
  color: var(--muted);
}

.site-footer a:hover { color: var(--accent-dark); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.footer-bottom p,
.site-footer p {
  margin: 0;
  font-size: 0.95rem;
}

/* Responsive --------------------------------------------- */

@media (max-width: 1180px) {
  .nav-wrap {
    min-height: auto;
    display: grid;
    align-items: start;
    padding: 14px 0;
  }

  .brand { min-width: 0; }

  .nav-links {
    justify-content: flex-start;
    gap: 6px;
    font-size: 0.86rem;
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .two-column,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .truth-card { max-width: 640px; }

  .cards.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards.three,
  .quotes,
  .footer-grid,
  .fit-columns,
  .approach-grid,
  .recommendation-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1081px) {
  .recommendation-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 721px) and (max-width: 1080px) {
  .cards.three,
  .recommendation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 20px;
    --section-y: 56px;
  }

  .brand-logo {
    width: 52px;
    height: 52px;
  }

  .brand-text strong { font-size: 1rem; }

  .nav-links {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .nav-links a { flex: 0 0 auto; }

  .split-list,
  .story-card dl {
    grid-template-columns: 1fr;
  }

  .story-card dl { gap: 6px; }
  .story-card dd { margin-bottom: 12px; }

  .page-hero::after {
    right: -34px;
    width: 180px;
    height: 180px;
    opacity: 0.045;
  }

  .footer-bottom { flex-direction: column; }
}

@media (max-width: 560px) {
  :root {
    --gutter: 15px;
    --h1-home: clamp(2.15rem, 10vw, 3.15rem);
    --h1-page: clamp(2.05rem, 9.5vw, 2.85rem);
    --lead: 1.05rem;
  }

  .button { width: 100%; }

  .cards.four { grid-template-columns: 1fr; }

  .card,
  .recommendation-card,
  blockquote {
    padding: 22px;
  }
}

/* =========================================================
   Story / Insights System Additions
   Keeps cards, in-depth reads, and voting aligned with the
   same type, spacing, and visual system across the site.
   ========================================================= */

.read-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.read-path-item {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.read-path-item strong {
  display: block;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.25;
}

.read-path-item span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.story-card.featured-story {
  border-color: rgba(255, 127, 17, 0.34);
  background:
    radial-gradient(circle at 95% 0%, rgba(255, 127, 17, 0.09), transparent 34%),
    var(--surface);
}

.story-card .lead,
.story-card .story-summary {
  max-width: 860px;
}

.story-card h2 + .story-summary,
.story-card h3 + p {
  margin-top: 12px;
}

.story-card h3 {
  font-size: clamp(1.3rem, 2vw, 1.72rem);
  line-height: 1.18;
}

.summary-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  line-height: 1;
  text-transform: uppercase;
}

.story-metrics,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 6px;
}

.metric {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-warm);
}

.metric strong {
  display: block;
  color: var(--accent-deep);
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.metric span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.story-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.story-expand {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  overflow: hidden;
}

.story-expand summary {
  min-height: 56px;
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 16px 20px;
  color: var(--accent-deep);
  font-weight: 900;
  list-style: none;
}

.story-expand summary::-webkit-details-marker { display: none; }

.story-expand summary::after {
  content: "+";
  margin-left: auto;
  color: var(--accent-dark);
  font-size: 1.35rem;
  line-height: 1;
}

.story-expand[open] summary {
  border-bottom: 1px solid var(--line);
  background: var(--surface-warm);
}

.story-expand[open] summary::after { content: "–"; }

.story-expand-content {
  padding: 22px;
}

.story-expand-content p:last-child { margin-bottom: 0; }

.story-points {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.story-point {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.story-point strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
}

.story-point p { margin: 0; }

.insight-feature-list,
.vote-grid {
  display: grid;
  gap: 18px;
}

.insight-feature-list {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: start;
}

.article-shell {
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 26px;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-warm);
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 850;
}

.article-body {
  max-width: 840px;
}

.article-body h2,
.article-body h3 {
  margin-top: 34px;
  margin-bottom: 12px;
}

.article-body h2:first-child,
.article-body h3:first-child { margin-top: 0; }

.article-body p,
.article-body li {
  color: var(--ink-soft);
  font-size: 1.04rem;
  line-height: 1.72;
}

.article-body ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 22px;
  padding-left: 1.15rem;
  list-style: disc;
}

.article-body li::marker { color: var(--accent-dark); }

.pull-quote {
  margin: 28px 0;
  padding: 24px;
  border-left: 5px solid var(--accent);
  border-radius: 18px;
  background: var(--surface-warm);
  color: var(--ink);
  font-size: clamp(1.12rem, 2vw, 1.38rem);
  font-weight: 800;
  line-height: 1.42;
}

.side-note {
  position: sticky;
  top: 104px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-warm);
}

.side-note h3 {
  margin-bottom: 14px;
  font-size: 1.16rem;
}

.side-note p:last-child { margin-bottom: 0; }

.vote-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.vote-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(130, 54, 0, 0.05);
}

.vote-card h3 {
  font-size: 1.13rem;
  line-height: 1.25;
}

.vote-card p {
  margin: 0;
  font-size: 0.96rem;
}

.vote-button {
  min-height: 42px;
  margin-top: auto;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: #ffffff;
  color: var(--accent-deep);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.vote-button:hover,
.vote-button.voted {
  background: var(--accent);
  color: #ffffff;
}

.vote-count {
  font-weight: 900;
}

.vote-note {
  margin-top: 18px;
  font-size: 0.94rem;
}

@media (max-width: 1080px) {
  .read-path,
  .insight-feature-list,
  .vote-grid {
    grid-template-columns: 1fr;
  }

  .story-metrics,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-note { position: static; }
}

@media (max-width: 560px) {
  .story-metrics,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .story-actions .button { width: 100%; }

  .story-expand summary,
  .story-expand-content,
  .article-shell {
    padding-inline: 18px;
  }
}

/* Insights page refinement: article-first layout + soft reader prompt ---- */

.insights-hero .lead {
  max-width: 900px;
}

.insight-article-section {
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 127, 17, 0.06), transparent 28%),
    var(--bg);
}

.insight-single {
  max-width: 1020px;
}

.article-main {
  margin-inline: auto;
}

.article-main > h2 {
  max-width: 900px;
  font-size: clamp(2.05rem, 4.1vw, 3.45rem);
  line-height: 1.08;
}

.article-main .article-body {
  max-width: 820px;
}

.reader-end-marker {
  width: 1px;
  height: 1px;
}

.reader-prompt {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  width: min(340px, calc(100vw - 32px));
  transform: translateY(18px);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}

.reader-prompt.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.reader-prompt-body {
  position: relative;
  padding: 20px;
  border: 1px solid rgba(255, 127, 17, 0.24);
  border-radius: 20px;
  background: rgba(255, 250, 243, 0.98);
  box-shadow: 0 18px 50px rgba(36, 19, 9, 0.14);
  backdrop-filter: blur(12px);
}

.reader-prompt-body strong {
  display: block;
  padding-right: 28px;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.25;
}

.reader-prompt-body p {
  margin: 8px 0 14px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.reader-prompt-actions {
  display: grid;
  gap: 9px;
}

.reader-prompt-link {
  min-height: 42px;
  padding: 10px 16px;
  font-size: 0.94rem;
}

.reader-prompt-text-link {
  justify-self: start;
  border-bottom: 1px solid currentColor;
  color: var(--accent-deep);
  font-size: 0.9rem;
  font-weight: 850;
}

.reader-prompt-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--surface-warm);
  color: var(--accent-deep);
  cursor: pointer;
  font: inherit;
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
}

.reader-prompt-close:hover {
  background: var(--accent-soft);
}

.reader-prompt-bubble {
  display: none;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(255, 127, 17, 0.24);
}

.reader-prompt.is-minimized {
  width: auto;
}

.reader-prompt.is-minimized .reader-prompt-body,
.reader-prompt.is-minimized .reader-prompt-close {
  display: none;
}

.reader-prompt.is-minimized .reader-prompt-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 720px) {
  .reader-prompt {
    right: 14px;
    bottom: 14px;
    width: min(330px, calc(100vw - 28px));
  }

  .reader-prompt-body {
    padding: 18px;
  }
}
