/* SEEK2LRN — single blog post, alternate design in the registration-page style.
 *
 * Used by seek2lrn-blog-post-alt.html. Borrows the React student register view
 * (react/src/pages/auth/auth.css `.hero-light`): the cover photo in a card under
 * a navy bottom gradient with a white Roboto Slab frame-word -- squared off and
 * flattened here, so it speaks the blog index's language.
 *
 * Layout: three columns and ONE scrollbar (the window's).
 *   left   a fixed CARD: cover photo, contents rail, stacked "seek2lrn / blog."
 *   centre the article, filling the space between the side columns
 *   right  a fixed FLAT panel, flush to the right edge and running from under
 *          the nav to the bottom of the viewport: "More from the blog"
 *          (flat, so the post cards inside do not read as cards in a card)
 * The right column is exactly the panel's width, so the article takes all the
 * room between the card and the panel, and grows with the screen.
 *
 * Tokens are design-system/DESIGN_SYSTEM.md (the blue system, not the tutor
 * violet ramp). Reading type keeps the light editorial weights of the first
 * design (seek2lrn-blog-post.html).
 */

.s2l-rpost {
  --rp-primary: #1558D6;
  --rp-primary-dark: #0E3FA3;
  --rp-primary-light: #8FB2F0;
  --rp-primary-fade: #F4F8FE;
  --rp-ink: #16203A;
  --rp-ink-2: #374151;
  --rp-muted: #475569;
  --rp-faint: #9CA3AF;
  --rp-line: #E3E8F3;
  --rp-panel: #0D1B3E;
  --rp-nav: 58px; /* fixed nav height */
  --rp-gutter: 3.5vw; /* page margin on the photo-card side */
  --rp-top: 80px; /* nav + breathing room, where the photo card sits */
  --rp-side: clamp(240px, 19vw, 360px); /* both side cards */
  --rp-card-h: calc(100vh - var(--rp-top) - 24px);

  background: #fff;
  padding: var(--rp-top) 0 4.5rem var(--rp-gutter);
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-weight: 300;
  color: var(--rp-ink-2);
}

.s2l-rpost-grid {
  display: grid;
  grid-template-columns: var(--rp-side) minmax(0, 1fr) auto; /* right: exactly the panel's width */
  gap: 2.75rem;
  align-items: start;
}

/* ── left: fixed card with the photo, contents rail and frame-word ── */
.s2l-rpost-side {
  position: sticky;
  top: var(--rp-top);
}
.s2l-rpost-photo {
  position: relative;
  height: var(--rp-card-h);
  min-height: 480px;
  overflow: hidden;
  background: var(--rp-panel);
}
.s2l-rpost-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; /* object-position is set per post, inline */
}
.s2l-rpost-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 27, 62, 0.94) 0%, rgba(13, 27, 62, 0.8) 38%, rgba(13, 27, 62, 0.2) 64%, rgba(13, 27, 62, 0) 78%);
  pointer-events: none;
}
.s2l-rpost-photo-foot {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 22px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
/* A scrim sized to the rail itself, so a long contents list never runs up
   into the light part of the photo: solid behind the text, fading out above. */
.s2l-rpost-photo-foot::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: -26px;
  right: -26px;
  bottom: -22px;
  top: -90px;
  background: linear-gradient(to top, rgba(13, 27, 62, 0.9) 0%, rgba(13, 27, 62, 0.82) calc(100% - 90px), rgba(13, 27, 62, 0) 100%);
  pointer-events: none;
}
.s2l-rpost-word {
  display: flex;
  flex-direction: column;
  color: #fff;
  font-family: 'Roboto Slab', Georgia, serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 2.4vw, 3rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  white-space: nowrap;
  pointer-events: none;
}
/* Two stacked lines: "seek2lrn", "blog." -- "blog" white at a lighter weight,
   as on a masthead, and the period white with it. */
.s2l-rpost-word .l2 { font-weight: 400; }
.s2l-rpost-word .two { color: var(--rp-primary-light); }
.s2l-rpost-word .dot { color: #fff; }

/* contents rail, light on the dark gradient */
.s2l-rpost-toc h2 {
  margin: 0 0 0.7rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.s2l-rpost-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}
.s2l-rpost-toc a {
  display: block;
  margin-left: -1px;
  padding: 0.3rem 0 0.3rem 0.85rem;
  border-left: 1px solid transparent;
  font-size: 0.8125rem;
  font-weight: 300;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}
.s2l-rpost-toc a:hover { color: #fff; }
.s2l-rpost-toc a.is-active {
  border-left-color: var(--rp-primary-light);
  color: #fff;
  font-weight: 400;
}
.s2l-rpost-toc a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* short screens: a tighter rail so a long contents list still fits the card */
@media (max-height: 860px) {
  .s2l-rpost-photo-foot { gap: 1rem; }
  .s2l-rpost-toc a { padding: 0.18rem 0 0.18rem 0.85rem; font-size: 0.75rem; line-height: 1.3; }
}

/* ── centre: the article fills everything between the photo card and the
   panel; the title block centres across that whole width ── */
.s2l-rpost-main {
  width: 100%;
}
.s2l-rpost-back {
  display: block;
  width: max-content;
  margin: 0.5rem 0 2rem;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--rp-primary-dark);
  text-decoration: none;
}
.s2l-rpost-back:hover { text-decoration: underline; }

.s2l-rpost-head {
  text-align: center;
  padding-bottom: 2.25rem;
  margin-bottom: 2.25rem;
  border-bottom: 1px solid var(--rp-line);
}
/* Category: plain larger text, no pill. */
.s2l-rpost-tag {
  display: inline-block;
  color: var(--rp-primary);
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.s2l-rpost-tag:hover { color: var(--rp-primary-dark); }
.s2l-rpost-title {
  margin: 0.9rem 0 0;
  font-family: 'Roboto Slab', Georgia, serif;
  font-weight: 300;
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--rp-ink);
}
.s2l-rpost-meta {
  margin: 1rem 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--rp-muted);
}
.s2l-rpost-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--rp-faint);
}

/* byline under the date: photo beside "Name." with its role underneath, one
   button below. The button carries .blm-btn-reg, the main page's nav Register
   style (s2l-components.css); only its box model is adjusted here for an <a>. */
.s2l-rpost-byline {
  position: relative;
  margin: 1.25rem 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.s2l-rpost-byline-who { display: flex; align-items: center; gap: 0.7rem; border-radius: 999px; padding-right: 0.4rem; }
.s2l-rpost-byline-who[tabindex]:focus-visible { outline: 2px solid var(--rp-primary); outline-offset: 3px; }
.s2l-rpost-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--rp-line);
}
.s2l-rpost-avatar--empty {
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  background: #F1F4FB; /* design-system card */
  fill: var(--rp-faint);
}
.s2l-rpost-who-text { display: flex; flex-direction: column; align-items: center; line-height: 1.3; text-align: center; }
.s2l-rpost-author { font-size: 0.95rem; font-weight: 400; color: var(--rp-ink); }
.s2l-rpost-role { font-size: 0.8rem; font-weight: 400; color: var(--rp-muted); }
.s2l-rpost-subjects { margin-top: 0.1rem; font-size: 0.78rem; font-weight: 400; color: var(--rp-primary); }
.s2l-blm .s2l-rpost-byline .blm-btn-reg { display: inline-block; text-decoration: none; line-height: 1.4; }

/* the hover card: the tutor's real Find a Tutor card (find-a-tutor.css styles it
   via .s2t-page); here it only gets positioned, and loses that page's canvas */
.s2l-tutor-pop {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  width: min(1100px, 94vw);
  text-align: left;
  background: none !important;
}
.s2l-tutor-pop[hidden] { display: none; }
.s2l-tutor-pop .s2t-grid { padding-bottom: 0; }

/* The card, reflowed for the popover (and ~half the Find a Tutor width):
   row 1 = photo + who they are + the 1:1 demo, row 2 = group classes + roadmap.
   Scoped to .s2l-tutor-pop, so the Find an Educator page is untouched. */
.s2l-tutor-pop.s2t-page { width: min(560px, 94vw); }
.s2l-tutor-pop.s2t-page .s2t-tcard { display: block; min-height: 0; --s2-slice-w: 150px; }
.s2l-tutor-pop.s2t-page .s2t-tcard:hover,
.s2l-tutor-pop.s2t-page .s2t-tcard:focus-within { transform: none; }
.s2l-tutor-pop.s2t-page .s2t-t-slice { bottom: auto; width: 150px; height: 190px; }
.s2l-tutor-pop.s2t-page .s2t-t-initials { top: calc(var(--s2-frame) + 95px); }
.s2l-tutor-pop.s2t-page .s2t-t-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 190px);
  grid-template-areas: "id cta" "groups road";
  gap: 0.9rem 1rem;
  align-items: stretch;
  padding: var(--s2-frame) 1rem 1rem calc(var(--s2-frame) + 150px + 0.9rem);
}
.s2l-tutor-pop.s2t-page .s2t-t-id { grid-area: id; min-height: 190px; }
.s2l-tutor-pop.s2t-page .s2t-t-cta { grid-area: cta; }
.s2l-tutor-pop.s2t-page .s2t-t-groups,
.s2l-tutor-pop.s2t-page .s2t-t-road {
  border-left: 0; margin-left: 0; padding-left: 0;
  border-top: 1px solid var(--s2l-line); padding-top: 0.9rem;
}
/* row 2 runs the full card width, under the photo too */
.s2l-tutor-pop.s2t-page .s2t-t-groups { grid-area: groups; margin-left: calc(-150px - 0.9rem); min-width: 0; }
.s2l-tutor-pop.s2t-page .s2t-t-road { grid-area: road; }

/* body copy (same light editorial settings as the first design) */
.s2l-rpost-body {
  font-size: 1.0625rem;
  line-height: 1.8;
}
/* Section headings: light like the title, a size up from body copy, with
   generous space above so each section reads as its own block. */
.s2l-rpost-body h2,
.s2l-rpost-body h3 {
  margin: 3.75rem 0 1.1rem;
  font-family: 'Roboto Slab', Georgia, serif;
  font-weight: 300;
  font-size: 1.8rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--rp-ink);
  scroll-margin-top: var(--rp-top);
}
.s2l-rpost-body h3 { font-size: 1.6rem; margin-top: 3.25rem; }
/* minor headings (table titles, FAQ questions): kept out of the contents rail */
.s2l-rpost-body h4 {
  margin: 2.25rem 0 0.7rem;
  font-family: 'Roboto Slab', Georgia, serif;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--rp-ink);
}
.s2l-rpost-body > :first-child { margin-top: 0; }
.s2l-rpost-body p { margin: 0 0 1.2rem; }
.s2l-rpost-body ul { margin: 0 0 1.4rem; padding-left: 1.25rem; list-style: disc; } /* the shared .s2l-blm reset strips markers */
.s2l-rpost-body li { margin: 0 0 0.45rem; padding-left: 0.25rem; }
.s2l-rpost-body ol { margin: 0 0 1.4rem; padding-left: 1.4rem; list-style: decimal; }
.s2l-rpost-body li::marker { color: var(--rp-primary); }
/* in-article media: equation images at their natural size, videos full width */
.s2l-rpost-fig { margin: 1.5rem 0 1.75rem; text-align: center; }
.s2l-rpost-fig img { display: inline-block; max-width: 100%; height: auto; }
.s2l-rpost-video { margin: 2rem 0 2.25rem; }
.s2l-rpost-video video,
.s2l-rpost-video iframe { display: block; width: 100%; border: 0; border-radius: 10px; background: var(--rp-panel); }
.s2l-rpost-video--yt iframe { aspect-ratio: 16 / 9; height: auto; }
.s2l-rpost-video figcaption { margin-top: 0.6rem; font-size: 0.85rem; color: var(--rp-muted); text-align: center; }

/* comparison tables, editorial: heavy rules top and bottom, hairlines between,
   small-caps column heads, and type a step heavier than the body copy */
.s2l-rpost-table { margin: 2.25rem 0 2.5rem; overflow-x: auto; }
.s2l-rpost-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--rp-ink);
  border-top: 2px solid var(--rp-ink);
  border-bottom: 2px solid var(--rp-ink);
}
.s2l-rpost-table th,
.s2l-rpost-table td { padding: 0.8rem 1rem; text-align: left; vertical-align: top; }
.s2l-rpost-table td { border-top: 1px solid var(--rp-line); }
.s2l-rpost-table th {
  padding-top: 0.9rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--rp-ink);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.s2l-rpost-table tbody tr:first-child td { border-top: 0; }
.s2l-rpost-table td:first-child {
  font-family: 'Roboto Slab', Georgia, serif;
  font-weight: 500;
}
.s2l-rpost-table th:first-child,
.s2l-rpost-table td:first-child { padding-left: 0; }
.s2l-rpost-table th:last-child,
.s2l-rpost-table td:last-child { padding-right: 0; }
.s2l-rpost-body strong { color: var(--rp-ink); font-weight: 500; }
.s2l-rpost-body a {
  color: var(--rp-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.s2l-rpost-body a:hover { color: var(--rp-primary-dark); }
.s2l-rpost-body blockquote {
  margin: 2.25rem 0;
  padding: 1.35rem 1.6rem;
  border-left: 1px solid var(--rp-primary);
  background: var(--rp-primary-fade);
  border-radius: 0 10px 10px 0;
}
.s2l-rpost-body blockquote p:last-child { margin-bottom: 0; }
.s2l-rpost-body blockquote strong { color: var(--rp-primary); }
/* the one most important line per paragraph: a touch heavier than the
   300-weight body copy, nothing else (no colour, no background). 360 needs
   Inter's variable range (wght@300..700) in the page's font link. */
.s2l-rpost-body mark.s2l-hl {
  background: none;
  color: inherit;
  font-weight: 360;
}

/* ── right: a fixed flat panel, flush to the right edge, holding more posts ──
   Only as wide as its cards plus padding; the rest of the right column is
   white page, so the article stays centred on the viewport. */
.s2l-rpost-more {
  /* card width; the cards are 4:3, so 3 of them plus the heading and Load all
     fit the panel: width = height x 4/3 */
  --rp-sq: min(240px, calc((100vh - var(--rp-nav) - 190px) / 3 * 4 / 3));
  justify-self: end;
  width: calc(var(--rp-sq) + 44px);
  position: sticky;
  top: var(--rp-nav);
  margin-top: calc(var(--rp-nav) - var(--rp-top)); /* start right under the nav */
  box-sizing: border-box;
  height: calc(100vh - var(--rp-nav));
  padding: 26px 22px 22px;
  background: #F6F8FD; /* design-system bg */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* heading + cards centred in the panel, both ways */
}
.s2l-rpost-more h2 { align-self: stretch; text-align: center; }
.s2l-rpost-more h2 {
  margin: 0 0 0.9rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rp-faint);
}
.s2l-rpost-more ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  width: var(--rp-sq);
}
/* flat rectangles with square corners, like the cards on the blog index */
.s2l-rpost-more li {
  aspect-ratio: 4 / 3;
  background: #fff;
  border: 1px solid var(--rp-line);
}

.s2l-blm .s2l-rpost-more .s2l-rpost-all { display: inline-block; margin-top: 1rem; text-decoration: none; line-height: 1.4; }

/* each card: the other post, photo under the same navy fade as the side card */
.s2l-rpost-card {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
}
.s2l-rpost-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.s2l-rpost-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 27, 62, 0.92) 0%, rgba(13, 27, 62, 0.55) 45%, rgba(13, 27, 62, 0.05) 80%);
}
.s2l-rpost-card-text {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.s2l-rpost-card-cat {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rp-primary-light);
}
.s2l-rpost-card-title {
  font-family: 'Roboto Slab', Georgia, serif;
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.25;
}
.s2l-rpost-card:hover img { transform: scale(1.04); }
.s2l-rpost-card:focus-visible { outline: 3px solid var(--rp-primary-dark); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .s2l-rpost-card img { transition: none; }
}

/* ── tablets: photo card + article; more posts drop below the article ── */
@media (max-width: 1180px) {
  .s2l-rpost { padding-right: var(--rp-gutter); }
  .s2l-rpost-grid { grid-template-columns: 260px minmax(0, 1fr); gap: 2.5rem; }
  .s2l-rpost-more { grid-column: 2; position: static; margin-top: 0; height: auto; width: auto; justify-self: stretch; }
  .s2l-rpost-more ul { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ── phones: one column, the photo card becomes a banner, no rail ── */
@media (max-width: 768px) {
  .s2l-rpost { --rp-nav: 52px; --rp-top: 66px; padding: var(--rp-top) 12px 2.5rem; }
  .s2l-rpost-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .s2l-rpost-side { position: static; }
  .s2l-rpost-photo { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .s2l-rpost-photo-foot { left: 18px; right: 18px; bottom: 14px; }
  .s2l-rpost-toc { display: none; }
  .s2l-rpost-word { font-size: 2.2rem; }
  .s2l-rpost-more { grid-column: 1; padding: 16px 14px; }
  .s2l-rpost-more ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .s2l-rpost-body { font-size: 1rem; }
  .s2l-rpost-body h2 { font-size: 1.55rem; margin-top: 3rem; }
  .s2l-rpost-body h3 { font-size: 1.4rem; margin-top: 2.75rem; }
}


/* phones: 44px tap targets in the post header and footer */
@media (max-width: 768px) {
  .s2l-rpost-back { display: flex; align-items: center; min-height: 44px; margin-bottom: 1rem; }
  .s2l-rpost-tag { display: inline-flex; align-items: center; min-height: 44px; }
  .s2l-blm .s2l-rpost-more .s2l-rpost-all, .s2l-blm .s2l-rpost-demo { display: flex; align-items: center; justify-content: center; min-height: 48px; width: 100%; }
  .s2l-rpost-main img { max-width: 100%; height: auto; }
}
