/* GroScore brand layer. Loaded after built/screen.css (Casper) and overrides it.
   Hand-written, not generated by gulp. Palette and type match groscore.in. */

:root {
  --gs-navy: #18186b;
  --gs-navy-soft: #2a2a8a;
  --gs-green: #01be87;
  --gs-green-d: #00a374;
  --gs-green-l: #e6f9f2;
  --gs-cream: #faf9f6;
  --gs-ink: #14143f;
  --gs-body: #4a4a6a;
  --gs-muted: #7b7b96;
  --gs-line: #e6e6f0;
  --gs-amber: #f5a623;
  --gs-red: #e5484d;
  --gs-radius: 16px;
  --gs-radius-lg: 24px;
  --gs-shadow-sm: 0 2px 8px rgba(24, 24, 107, 0.06);
  --gs-shadow: 0 8px 30px rgba(24, 24, 107, 0.08);
  --gs-shadow-lg: 0 24px 60px rgba(24, 24, 107, 0.14);

  /* Casper variables */
  /* Ghost Admin > Design > Typography can override these via --gh-font-body / --gh-font-heading */
  --gs-font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-sans: var(--gh-font-body, var(--gs-font));
  --font-serif: var(--gh-font-body, var(--gs-font));
  --font-heading: var(--gh-font-heading, var(--gs-font));
  --color-darkgrey: var(--gs-ink);
  --color-midgrey: var(--gs-muted);
  --color-secondary-text: var(--gs-muted);
  --color-border: var(--gs-line);
  --color-wash: var(--gs-green-l);
  /* Wins over the accent colour Ghost injects; set Admin > Settings > Brand to #01BE87 as well */
  --ghost-accent-color: #01be87;
}

html, body {
  font-family: var(--font-sans);
  color: var(--gs-body);
  background: #fff;
}

h1, h2, h3, h4, h5, h6,
.article-title, .post-card-title, .site-title {
  font-family: var(--font-heading);
  color: var(--gs-ink);
  letter-spacing: -0.015em;
}

a { color: var(--gs-green-d); }

.gs-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 max(4vmin, 20px);
}

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

.gs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.2;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.gs-btn-primary {
  color: #fff !important;
  background: var(--gs-green);
  box-shadow: 0 8px 20px rgba(1, 190, 135, 0.28);
}

.gs-btn-primary:hover {
  background: var(--gs-green-d);
  transform: translateY(-1px);
}

.gs-play-btn { display: inline-block; line-height: 0; }
.gs-play-badge { width: 162px; height: 48px; }

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

.gh-head {
  position: sticky;
  top: 0;
  height: 72px;
  color: var(--gs-ink);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--gs-line);
  z-index: 1000;
}

.has-cover:not(.home-template) .gh-head,
:is(.home-template, .paged:not(.tag-template):not(.author-template)).has-cover .gh-head {
  position: sticky;
  color: var(--gs-ink);
  background: rgba(255, 255, 255, 0.94);
}

.gh-head-logo {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  color: var(--gs-navy);
  padding-right: 0 !important;
}

.gh-head-logo .gs-logo { width: 150px; height: auto; }

.is-head-left-logo.home-template .gh-head:not(.is-header-hidden) .gh-head-menu { margin-left: 16px; }

.gh-head-menu { font-weight: 600; font-size: 1.5rem; }
.gh-head-menu .nav { gap: 28px; }
.gh-head-menu .nav a { color: var(--gs-ink); }
.gh-head-menu .nav a:hover,
.gh-head-menu .nav-current a { color: var(--gs-green-d); opacity: 1; }

.gh-head-actions { gap: 18px; }

.gs-login-btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 22px;
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff !important;
  background: var(--gs-navy);
  border-radius: 999px;
  transition: background 0.18s ease;
}

.gs-login-btn:hover { background: var(--gs-navy-soft); }

.gs-dl-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--gs-ink) !important;
}

.gs-dl-ico { width: 18px; height: 20px; }

.gh-search { color: var(--gs-ink); }
.gh-burger::before, .gh-burger::after { background-color: var(--gs-ink); }

@media (max-width: 767px) {
  .gh-head { height: 64px; }
  .gh-head-logo .gs-logo { width: 124px; }
  .gh-head-open #gh-head { background: #fff; }
  .gh-head-open #gh-head .nav a { font-size: 2rem; }
  .gh-head-open #gh-head .gh-head-actions { gap: 16px; }
  .gh-head-open #gh-head .gs-login-btn { width: 100%; justify-content: center; padding: 14px; }
}

/* Home hero
/* ---------------------------------------------------------- */

.gs-hero {
  padding-top: clamp(40px, 7vw, 88px);
  padding-bottom: clamp(32px, 5vw, 56px);
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(1, 190, 135, 0.14), transparent 60%),
    linear-gradient(180deg, var(--gs-cream), #fff);
  border-bottom: 1px solid var(--gs-line);
}

.gs-hero-inner { max-width: 900px; }

.gs-hero-kicker {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 14px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gs-green-d);
  background: var(--gs-green-l);
  border-radius: 999px;
}

.gs-hero-title {
  margin: 0;
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--gs-navy);
}

.gs-hero-sub {
  margin: 16px 0 0;
  max-width: 680px;
  font-size: clamp(1.6rem, 2vw, 1.9rem);
  line-height: 1.6;
  color: var(--gs-body);
}

.gs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.gs-hero-note { font-size: 1.4rem; font-weight: 600; color: var(--gs-muted); }

.gs-topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.gs-chip {
  padding: 8px 16px;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gs-navy) !important;
  background: #fff;
  border: 1px solid var(--gs-line);
  border-radius: 999px;
  text-decoration: none;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}

.gs-chip:hover { color: var(--gs-green-d) !important; border-color: var(--gs-green); background: var(--gs-green-l); }

/* Post cards
/* ---------------------------------------------------------- */

.site-main.outer { padding-top: clamp(32px, 5vw, 56px); }

.post-card-image { border-radius: var(--gs-radius); }

.post-card-primary-tag {
  color: var(--gs-green-d);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.post-card-title { color: var(--gs-ink); font-weight: 800; }
h2.post-card-title:hover,
.post-card-content-link:hover .post-card-title { color: var(--gs-green-d); opacity: 1; }
.post-card-excerpt { color: var(--gs-body); }
.post-card-meta { color: var(--gs-muted); }

.pagination a { color: var(--gs-navy); font-weight: 700; }

/* Article
/* ---------------------------------------------------------- */

.gs-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gs-muted);
}

.gs-breadcrumb a { color: var(--gs-green-d); text-decoration: none; }

.article-title { color: var(--gs-navy); font-weight: 800; }
.article-excerpt { color: var(--gs-body); }
.author-name a { color: var(--gs-ink); }
.byline-meta-content, .gs-updated { color: var(--gs-muted); font-size: 1.4rem; }
.gs-updated { margin-top: 2px; }

.article-image img { border-radius: var(--gs-radius); }

.gh-content { color: var(--gs-body); }
.gh-content > [id] { color: var(--gs-ink); font-weight: 800; }
.gh-content a { color: var(--gs-green-d); box-shadow: inset 0 -1px 0 var(--gs-green); }
.gh-content a:hover { color: var(--gs-navy); }
.gh-content strong { color: var(--gs-ink); }

.gh-content > blockquote:not([class]) {
  padding: 16px 20px;
  background: var(--gs-green-l);
  border-left: 4px solid var(--gs-green);
  border-radius: 0 12px 12px 0;
}

.gh-content > blockquote:not([class])::before { display: none; }

.kg-callout-card { border-radius: var(--gs-radius); }

/* Tables (posts use plenty of comparison tables) */
.gh-content table:not(.gist table) {
  display: table !important;
  width: 100% !important;
  margin: 24px 0;
  border-collapse: collapse;
  background: #fff;
  font-size: 1.5rem;
  white-space: normal !important;
  border: 1px solid var(--gs-line);
  border-radius: 12px;
  overflow: hidden;
}

.gh-content table th {
  color: #fff !important;
  background: var(--gs-navy) !important;
  font-weight: 700;
}

.gh-content table th,
.gh-content table td {
  padding: 10px 14px !important;
  text-align: left !important;
  border: 1px solid var(--gs-line) !important;
  vertical-align: top;
}

.gh-content table tr:nth-child(even) td { background: var(--gs-cream); }

@media (max-width: 640px) {
  .gh-content table:not(.gist table) { display: block !important; overflow-x: auto; }
}

/* Table of contents (tocbot)
/* ---------------------------------------------------------- */

.gh-content { position: relative; }
.gh-sidebar { display: none; }
.gs-toc-title { margin-bottom: 8px; font-size: 1.3rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gs-navy); }
.gh-toc > .toc-list { position: relative; }
.toc-list { margin: 0; padding-left: 10px; overflow: hidden; list-style: none; }
.toc-list li { list-style: none; }
a.toc-link { display: inline-flex; padding: 6px 0; font-size: 1.4rem; line-height: 1.3; font-weight: 500; color: var(--gs-muted); text-decoration: none; box-shadow: none; transition: color 0.2s; }
a.toc-link:hover { color: var(--gs-ink); }
.is-collapsible { max-height: 1000px; overflow: hidden; transition: all 300ms ease-in-out; }
.is-collapsed { max-height: 0; }
.toc-link::before { content: " "; position: absolute; left: 0; display: inline-block; width: 2px; height: inherit; margin-top: -1px; background-color: var(--gs-line); }
a.is-active-link { color: var(--gs-green-d); font-weight: 700; }
.is-active-link::before { background-color: var(--gs-green); }

/* Desktop TOC now lives in the post sidebar: see "Post layout" at the end of this file. */

.gs-toc-btn { display: none; }

@media (max-width: 1099px) {
  .has-toc .gs-toc-btn {
    position: fixed;
    right: 16px;
    bottom: 84px;
    z-index: 1100;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    color: #fff;
    background: var(--gs-navy);
    border: 0;
    border-radius: 50%;
    box-shadow: var(--gs-shadow-lg);
    cursor: pointer;
  }
  .gs-toc-btn svg { width: 22px; height: 22px; }
  .gs-toc-open .gh-sidebar {
    display: block;
    position: fixed;
    right: 16px;
    bottom: 144px;
    left: 16px;
    z-index: 1100;
    max-height: 60vh;
    padding: 16px 16px 8px;
    overflow-y: auto;
    background: #fff;
    border-radius: var(--gs-radius);
    box-shadow: var(--gs-shadow-lg);
  }
}

@media (min-width: 768px) and (max-width: 1099px) {
  .has-toc .gs-toc-btn { bottom: 24px; }
  .gs-toc-open .gh-sidebar { left: auto; width: 360px; bottom: 84px; }
}

/* End-of-post app CTA
/* ---------------------------------------------------------- */

.gs-app-cta { margin-top: 48px; }

.gs-app-cta-inner {
  grid-column: wide-start / wide-end;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 4vw, 40px);
  color: #fff;
  background:
    radial-gradient(600px 240px at 100% 0%, rgba(1, 190, 135, 0.35), transparent 60%),
    var(--gs-navy);
  border-radius: var(--gs-radius-lg);
  box-shadow: var(--gs-shadow-lg);
}

.gs-app-cta-text { flex: 1 1 380px; }
.gs-app-cta-kicker { font-size: 1.3rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gs-green); }
.gs-app-cta h3 { margin: 6px 0 8px; font-size: clamp(2.2rem, 3vw, 2.8rem); font-weight: 800; color: #fff; }
.gs-app-cta p { margin: 0; font-size: 1.5rem; line-height: 1.6; color: rgba(255, 255, 255, 0.78); }
.gs-app-cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

/* Related posts: bottom grid (6 cards, all visible on every screen size)
/* ---------------------------------------------------------- */
.read-more-wrap { margin-top: 56px; padding-top: 48px; padding-bottom: 56px; background: var(--gs-cream); border-top: 1px solid var(--gs-line); }
.gs-read-more-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }
.gs-read-more-title { margin: 0; font-size: clamp(2.2rem, 3vw, 2.8rem); font-weight: 800; color: var(--gs-navy); }
.gs-read-more-all { font-size: 1.5rem; font-weight: 700; color: var(--gs-green-d); text-decoration: none; }
.gs-read-more-all:hover { color: var(--gs-navy); }
.read-more { grid-template-columns: repeat(3, 1fr); grid-gap: 32px; }
.read-more .post-card,
.read-more .post-card:nth-child(2),
.read-more .post-card:nth-child(3) { display: flex; grid-column: auto; }
.read-more .post-card { padding: 0 0 4px; background: #fff; border: 1px solid var(--gs-line); border-radius: var(--gs-radius); overflow: hidden; box-shadow: var(--gs-shadow-sm); transition: box-shadow 0.2s, transform 0.2s; }
.read-more .post-card:hover { box-shadow: var(--gs-shadow); transform: translateY(-2px); }
.read-more .post-card-image-link { margin-bottom: 0; }
.read-more .post-card-image { border-radius: 0; }
.read-more .post-card-content { padding: 16px 18px 6px; }
.read-more .post-card-title { font-size: 1.8rem; }
.read-more .post-card-excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 1.45rem; }

@media (max-width: 1000px) {
  .read-more { grid-template-columns: repeat(2, 1fr); grid-gap: 24px; }
}

@media (max-width: 700px) {
  .read-more { grid-template-columns: 1fr; }
  .read-more .post-card-image-link { display: none; }
}

/* Related reading box inside the article
/* ---------------------------------------------------------- */
.gs-related-inline {
  margin: 36px 0;
  padding: 20px 22px 14px;
  background: var(--gs-green-l);
  border-left: 4px solid var(--gs-green);
  border-radius: 0 var(--gs-radius) var(--gs-radius) 0;
}

.gs-related-inline-title {
  margin-bottom: 8px;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gs-green-d);
}

.gs-related-inline ul { margin: 0; padding: 0; list-style: none; }
.gs-related-inline li { margin: 0; padding: 7px 0; font-size: 1.6rem; line-height: 1.4; border-top: 1px solid rgba(1, 190, 135, 0.18); }
.gs-related-inline li:first-child { border-top: 0; }
.gh-content .gs-related-inline a { font-weight: 700; color: var(--gs-navy); box-shadow: none; text-decoration: none; }
.gh-content .gs-related-inline a::before { content: "\2192\00a0"; color: var(--gs-green-d); }
.gh-content .gs-related-inline a:hover { color: var(--gs-green-d); }

/* Footer (mirrors groscore.in)
/* ---------------------------------------------------------- */

.gs-footer {
  padding: clamp(48px, 6vw, 72px) 0 32px;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  background: var(--gs-navy);
}

.gs-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 40px;
}

.gs-f-brand .gs-logo { width: 170px; height: auto; margin-bottom: 16px; color: #fff; }
.gs-f-brand p { margin: 0 0 20px; max-width: 320px; line-height: 1.6; }

.gs-f-col { display: flex; flex-direction: column; gap: 10px; }
.gs-f-col h4 { margin: 0 0 6px; font-size: 1.5rem; font-weight: 700; color: #fff; }
.gs-f-col a { color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: color 0.18s; }
.gs-f-col a:hover { color: var(--gs-green); }

.gs-f-social { display: flex; gap: 10px; }
.gs-f-social a { display: grid; place-items: center; width: 38px; height: 38px; color: #fff; background: rgba(255, 255, 255, 0.1); border-radius: 50%; }
.gs-f-social a:hover { color: #fff; background: var(--gs-green); }
.gs-f-social svg { width: 18px; height: 18px; fill: currentColor; }

.gs-footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  font-size: 1.3rem;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.gs-footer-bottom p { margin: 0 0 8px; }
.gs-footer-bottom strong { color: #fff; }
.gs-disclaimer { color: rgba(255, 255, 255, 0.55); }

@media (max-width: 991px) {
  .gs-footer-grid { grid-template-columns: 1fr 1fr; }
  .gs-f-brand { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .gs-footer { padding-bottom: 96px; }
}

/* Mobile sticky app bar
/* ---------------------------------------------------------- */

.gs-app-bar { display: none; }

@media (max-width: 767px) {
  .gs-app-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    display: block;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -6px 24px rgba(24, 24, 107, 0.12);
  }
  .gs-app-bar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff !important;
    background: var(--gs-green);
    border-radius: 999px;
    text-decoration: none;
  }
  .gs-app-bar-btn img { width: 24px; height: 24px; background: #fff; border-radius: 6px; padding: 2px; }
  .gh-head-open .gs-app-bar { display: none; }
}

/* App popup
/* ---------------------------------------------------------- */

.gs-popup {
  position: fixed;
  inset: 0;
  z-index: 4000000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(16, 16, 18, 0.5);
}

.gs-popup[hidden] { display: none; }

.gs-popup-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 36px 28px 28px;
  text-align: center;
  background: #fff;
  border-radius: var(--gs-radius-lg);
  box-shadow: var(--gs-shadow-lg);
}

.gs-popup-close {
  position: absolute;
  top: 10px;
  right: 14px;
  padding: 4px 8px;
  font-size: 2.8rem;
  line-height: 1;
  color: var(--gs-muted);
  background: none;
  border: 0;
  cursor: pointer;
}

.gs-popup-badge {
  display: inline-block;
  padding: 5px 12px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gs-green-d);
  background: var(--gs-green-l);
  border-radius: 999px;
}

.gs-popup-card h3 { margin: 16px 0 10px; font-size: 2.4rem; font-weight: 800; line-height: 1.25; color: var(--gs-navy); }
.gs-popup-card p { margin: 0 0 22px; font-size: 1.5rem; line-height: 1.6; color: var(--gs-body); }
.gs-popup-card .gs-btn { width: 100%; }
.gs-popup-badge-link { display: inline-block; margin-top: 14px; line-height: 0; }

/* Error page
/* ---------------------------------------------------------- */

.error-code { color: var(--gs-navy); }
.error-description { color: var(--gs-body); }


/* Post layout: article + right sidebar, Groww-style type and spacing
/* ---------------------------------------------------------- */

.gs-post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 max(4vmin, 20px);
}

@media (min-width: 1100px) {
  .gs-post-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; }
}

/* Inside the main column every canvas is a single column (no centred 720px track) */
.gs-post-main .gh-canvas,
.gs-post-main .article-header.gh-canvas {
  grid-template-columns: [full-start wide-start main-start] minmax(0, 1fr) [main-end wide-end full-end];
}
.gs-post-main { padding-bottom: 0; }
.gs-post .article-header { padding: 32px 0 8px; }
.gs-post .article-image { margin-top: 24px; }
.gs-post .article-image img { width: 100%; }

/* Title, standfirst, byline */
.gs-post .article-title {
  font-size: clamp(2.6rem, 3vw, 3.2rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.gs-post .article-excerpt { margin-top: 12px; font-size: 1.7rem; line-height: 1.6; }
.gs-post .article-byline { margin-top: 20px; }
.gs-post .breadcrumb, .gs-post .gs-breadcrumb { font-size: 1.3rem; margin-bottom: 12px; }

/* Body copy */
.gs-post .gh-content {
  font-size: 1.6rem;
  line-height: 1.75;
  color: #44475b;
}
.gs-post .gh-content > * + * { margin-top: 16px; }
.gs-post .gh-content > [id]:not(:first-child) { margin: 36px 0 0; }
.gs-post .gh-content > [id] + * { margin-top: 12px !important; }
.gs-post .gh-content > h2 { font-size: 2.2rem; line-height: 1.35; font-weight: 700; }
.gs-post .gh-content > h3 { font-size: 1.8rem; line-height: 1.4; font-weight: 700; }
.gs-post .gh-content > h4 { font-size: 1.6rem; line-height: 1.4; font-weight: 700; }
.gs-post .gh-content ul,
.gs-post .gh-content ol { padding-left: 22px; }
.gs-post .gh-content li { margin: 6px 0; padding-left: 2px; font-size: 1.6rem; line-height: 1.7; }
.gs-post .gh-content li::marker { color: var(--gs-muted); }
.gs-post .gh-content figure { margin-top: 24px; margin-bottom: 8px; }
.gs-post .gh-content figcaption { font-size: 1.3rem; }

/* Tables: light header, thin rules, compact cells */
.gs-post .gh-content table:not(.gist table) {
  margin: 20px 0;
  font-size: 1.45rem;
  line-height: 1.5;
  border: 1px solid #e9e9ef;
  border-radius: 8px;
}
.gs-post .gh-content table th {
  color: var(--gs-ink) !important;
  background: #f5f6fa !important;
  font-weight: 600;
}
.gs-post .gh-content table th,
.gs-post .gh-content table td {
  padding: 12px 16px !important;
  border: 1px solid #e9e9ef !important;
}
.gs-post .gh-content table tr:nth-child(even) td { background: #fff; }

/* All Topics (end of post) */
.gs-all-topics { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--gs-line); }
.gs-all-topics-title { margin: 0 0 16px; font-size: 2rem; font-weight: 700; color: var(--gs-ink); }
.gs-all-topics-list { display: flex; flex-wrap: wrap; gap: 12px; }
.gs-topic {
  padding: 7px 16px;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.4;
  color: #44475b !important;
  background: #fff;
  border: 1px solid #dfe1e9;
  border-radius: 6px;
  text-decoration: none;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.gs-topic:hover { color: var(--gs-green-d) !important; border-color: var(--gs-green); background: var(--gs-green-l); }
.gs-post .gs-app-cta { margin-top: 40px; }
.gs-post .gs-app-cta-inner { grid-column: 1 / -1; }

/* Sidebar cards */
.gs-post-side { display: flex; flex-direction: column; gap: 24px; padding: 32px 0 48px; }
.gs-side-card {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e9e9ef;
  border-radius: 8px;
}
.gs-side-title { margin-bottom: 10px; font-size: 1.6rem; font-weight: 700; color: var(--gs-ink); }
.gs-side-list ul { margin: 0; padding: 0; list-style: none; }
.gs-side-list li { padding: 12px 0; border-top: 1px solid #eef0f4; }
.gs-side-list li:first-child { padding-top: 4px; border-top: 0; }
.gs-side-list li:last-child { padding-bottom: 0; }
.gs-side-list a { display: block; font-size: 1.4rem; line-height: 1.5; color: #44475b; text-decoration: none; }
.gs-side-list a:hover { color: var(--gs-green-d); }

.gs-side-app { text-align: center; background: var(--gs-green-l); border-color: rgba(1, 190, 135, 0.25); }
.gs-side-app-title { font-size: 1.8rem; font-weight: 700; color: var(--gs-navy); }
.gs-side-app p { margin: 6px 0 14px; font-size: 1.4rem; line-height: 1.5; color: var(--gs-body); }
.gs-side-app .gs-btn { width: 100%; padding: 12px 20px; font-size: 1.5rem; }

/* TOC card: hidden until tocbot finds 3+ H2s (body.has-toc) */
.gs-side-toc { display: none; }
.gs-side-toc .toc-list { padding-left: 10px; }
.gs-side-toc a.toc-link { font-size: 1.4rem; }

@media (min-width: 1100px) {
  .has-toc .gs-side-toc { display: block; }
  .gs-side-toc .gh-toc { max-height: 60vh; overflow-y: auto; }
  /* Last card sticks so the sidebar stays useful through a long article */
  .gs-post-side > :last-child { position: sticky; top: 92px; }
}

@media (max-width: 1099px) {
  .gs-post-side { padding-top: 0; }
  .gs-side-app { display: none; }  /* the mobile app bar and end CTA already cover this */
  .gs-toc-open .gh-sidebar.gs-side-toc { display: block; border: 0; }
}

@media (max-width: 767px) {
  .gs-post .gh-content { font-size: 1.6rem; }
  .gs-post .gh-content > h2 { font-size: 2rem; }
  .gs-post .gh-content > h3 { font-size: 1.7rem; }
}

/* Casper sets p / lists / blockquotes to 2rem (1.8rem on mobile) directly; bring them in line */
.gs-post .gh-content > p,
.gs-post .gh-content > ul,
.gs-post .gh-content > ol,
.gs-post .gh-content > dl,
.gs-post .gh-content > blockquote:not([class]),
.gs-post .gh-content .kg-callout-card .kg-callout-text,
.gs-post .gh-content .kg-toggle-card .kg-toggle-content > p,
.gs-post .gh-content .kg-toggle-card .kg-toggle-content > ul,
.gs-post .gh-content .kg-toggle-card .kg-toggle-content > ol {
  font-size: 1.6rem;
  line-height: 1.75;
}
.gs-post .gh-content .kg-toggle-card .kg-toggle-heading-text { font-size: 1.7rem; }
.gs-post .gh-content > hr,
.gs-post .gh-content > blockquote { margin-top: 28px; }
.gs-post .gh-content > hr + *,
.gs-post .gh-content > blockquote + * { margin-top: 28px !important; }
.gs-post .gs-post-main.article { padding: 0 0 48px; }
.gs-post .article-header { padding-bottom: 8px; }

/* Blog home: calmer type, latest posts first, topics at the end
/* ---------------------------------------------------------- */
.gs-hero { padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(24px, 4vw, 40px); }
.gs-hero-title { font-size: clamp(2.8rem, 3.6vw, 3.8rem); font-weight: 700; line-height: 1.2; }
.gs-hero-sub { font-size: 1.7rem; line-height: 1.6; }
.gs-hero-kicker { font-size: 1.2rem; }
.post-feed .post-card-title { font-size: 2rem; font-weight: 700; line-height: 1.35; }
.post-feed .post-card-large .post-card-title { font-size: clamp(2.2rem, 2.6vw, 2.8rem); }
.post-feed .post-card-excerpt { font-size: 1.5rem; line-height: 1.6; }
.post-feed .post-card-large .post-card-excerpt { font-size: 1.6rem; }
.post-feed .post-card-primary-tag { font-size: 1.2rem; }
.post-feed .post-card-meta { font-size: 1.3rem; }
.gs-home-topics { margin: 56px 0 8px; }

/* Footer: About GroScore (click to open)
/* ---------------------------------------------------------- */
.gs-about { margin-top: 40px; }
.gs-about-box { padding-top: 0; padding-bottom: 0; }
.gs-about-box summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  list-style: none;
}
.gs-about-box summary::-webkit-details-marker { display: none; }
.gs-about-box summary:hover { color: var(--gs-green); }
.gs-about-box summary:focus-visible { outline: 2px solid var(--gs-green); outline-offset: 4px; }
.gs-about-toggle { flex: none; width: 12px; height: 12px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.2s; }
.gs-about-box[open] .gs-about-toggle { transform: rotate(-135deg) translate(-3px, -3px); }
.gs-about-body { padding: 8px 0 24px; columns: 2 420px; column-gap: 48px; }
.gs-about-body h3 { margin: 18px 0 6px; font-size: 1.5rem; font-weight: 700; color: #fff; break-after: avoid; }
.gs-about-body p { margin: 0; font-size: 1.4rem; line-height: 1.7; color: rgba(255, 255, 255, 0.7); break-inside: avoid; }
.gs-about + .gs-footer-bottom { margin-top: 0; border-top: 0; }
