/* recruit/article — the reading template: a lifted reading surface, a 68ch measure, TOC + signup in the sidebar. */
.rc-article { padding-top: 48px; border-bottom: 0; }
.rc-article .rc-section__label { display: none; }
.rc-article__layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 296px; grid-template-areas: "body rail" "body signup";
  grid-template-rows: auto 1fr; gap: 24px 40px; align-items: start;
}
.rc-article__body { grid-area: body; min-width: 0; padding: 48px; border: 1px solid var(--rc-line); border-radius: 4px; background: var(--rc-reading); color: var(--rc-reading-text); }
.rc-article__rail { grid-area: rail; position: static; }
.rc-article__signup { grid-area: signup; }
.rc-article__body > * { max-width: 68ch; margin-inline: auto; }

/* TOC. */
.rc-toc { padding-top: 16px; border-top: 2px solid var(--rc-accent); }
.rc-toc summary { display: flex; justify-content: space-between; align-items: center; padding: 8px 0 16px; list-style: none; font: 500 14px/1.6 var(--rc-font-mono); color: var(--rc-accent); cursor: pointer; }
.rc-toc summary::-webkit-details-marker { display: none; }
.rc-toc summary::after { content: "+"; font-size: 18px; }
.rc-toc details[open] > summary::after { content: "−"; }
.rc-toc nav { display: grid; padding-top: 8px; border-top: 1px solid var(--rc-line); }
.rc-toc a { display: block; padding: 8px 0; font-size: 14px; line-height: 1.5; color: var(--rc-toc-text); }
.rc-toc a:hover, .rc-toc a[aria-current] { color: var(--rc-accent); }
@media (min-width: 1024px) {
  .rc-toc summary { pointer-events: none; }
  .rc-toc summary::after { content: none; }
}

/* Sidebar signup (desktop) and the compact CTA (narrow screens). */
.rc-article__full-form .rc-signup { padding: 24px; border: 1px solid var(--rc-line); border-radius: 4px; background: var(--rc-surface); }
.rc-article__full-form .rc-signup__title { margin-bottom: 20px; font-size: 22px; }
.rc-article__full-form .rc-signup__fields { grid-template-columns: 1fr; gap: 12px; }
.rc-article__full-form .rc-signup input:not([type="hidden"]) { height: 40px; }
.rc-article__full-form .rc-signup .rc-button[data-primary] { min-height: 48px; margin-top: 16px; font-size: 14px; }
.rc-article__compact-cta { display: none; margin-top: 24px; padding: 24px; border: 1px solid var(--rc-line); border-radius: 4px; background: var(--rc-surface); }
.rc-article__cta-title { font-size: 20px; }
.rc-article__compact-cta p { margin: 12px 0 20px; font-size: 15px; }
.rc-article__compact-cta .rc-button { width: 100%; }

/* Body copy. */
.rc-article__body p, .rc-article__body li { font-size: 18px; line-height: 1.75; color: var(--rc-reading-text); }
.rc-article__body > p { margin-block: 24px; }
.rc-article__body > h2 { margin-top: 64px; margin-bottom: 24px; font-size: 30px; line-height: 1.3; scroll-margin-top: calc(var(--header-h) + 24px); }
.rc-article__body > h3 { margin-top: 40px; margin-bottom: 16px; font-size: 22px; scroll-margin-top: calc(var(--header-h) + 24px); }
.rc-article__body > ul, .rc-article__body > ol { margin-block: 24px; padding-left: 24px; }
.rc-article__body > ul { list-style: disc; }
.rc-article__body > ol { list-style: decimal; }
.rc-article__body > ul li, .rc-article__body > ol li { margin-block: 12px; padding-left: 8px; }
.rc-article__body li::marker { color: var(--rc-accent); }
.rc-article__body a:not(.rc-button) { color: var(--rc-accent); text-decoration: underline; text-underline-offset: 3px; }
.rc-article__body strong { color: var(--rc-text); }
.rc-article__body .wp-block-table { margin-block: 32px; overflow-x: auto; border: 1px solid var(--rc-table-frame); border-radius: 4px; }
.rc-article__body table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.rc-article__body th, .rc-article__body td { padding: 14px 16px; text-align: left; vertical-align: top; border-right: 1px solid var(--rc-table-line); border-bottom: 1px solid var(--rc-table-line); color: var(--rc-reading-text); }
.rc-article__body tr > :last-child { border-right: 0; }
.rc-article__body tbody tr:last-child > * { border-bottom: 0; }
.rc-article__body thead th, .rc-article__body thead td { font: 600 15px/1.4 var(--rc-font-heading); background: var(--rc-table-head); color: var(--rc-text); }
.rc-article__body tbody tr:nth-child(even) { background: var(--rc-table-stripe); }
.rc-article__body tbody td:first-child, .rc-article__body tbody th { font-weight: 600; color: var(--rc-text); }
.rc-article__body .wp-block-table figcaption { padding: 12px 16px; font-size: 13px; color: var(--rc-muted); }
.rc-article__body .wp-block-image { margin-block: 32px; }
.rc-article__body .wp-block-image img { border: 1px solid var(--rc-line); border-radius: 4px; }
.rc-article__body .wp-block-quote { margin-block: 32px; padding: 8px 0 8px 24px; border-left: 3px solid var(--rc-accent); font-size: 20px; line-height: 1.55; }
.rc-article__body .wp-block-separator { margin-block: 40px; border: 0; border-top: 1px solid var(--rc-line); }
.rc-article__body > .rc-note { margin-block: 32px; padding-top: 24px; padding-left: 0; border-left: 0; border-top: 1px solid var(--rc-line); font-size: 14px; color: var(--rc-reading-muted); }
.rc-article__body > .wp-block-recruit-faq { margin-top: 64px; }

@media (max-width: 1279px) {
  .rc-article__layout { grid-template-columns: minmax(0, 1fr) 260px; }
  .rc-article__body { padding: 32px; }
}
/* Narrow screens: TOC above the article, the compact CTA after it (the rail's children join the flow). */
@media (max-width: 1023px) {
  .rc-article__layout { display: flex; flex-direction: column; gap: 24px; max-width: 840px; margin-inline: auto; }
  .rc-article__rail { display: contents; }
  .rc-toc { order: 1; }
  .rc-article__body { order: 2; }
  .rc-article__compact-cta { display: block; order: 3; margin-top: 0; }
  .rc-article__signup { display: none; }
  .rc-toc a { display: flex; align-items: center; min-height: 44px; padding-block: 6px; }
}
@media (max-width: 767px) {
  .rc-article { padding-top: 24px; }
  .rc-article__body { padding: 20px 16px; }
  .rc-article__body p, .rc-article__body li { font-size: 17px; line-height: 1.65; }
  .rc-article__body > h2 { margin-top: 48px; font-size: 26px; }
  /* Tables with a header row become labelled rows (data-label from the plugin's TableLabels). */
  .rc-article__body table:has(td[data-label]) { min-width: 0; }
  .rc-article__body table:has(td[data-label]) tr { padding-inline: 14px; }
  .rc-article__body table:has(td[data-label]) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .rc-article__body table:has(td[data-label]) :is(tbody, tr, td) { display: block; }
  .rc-article__body table:has(td[data-label]) tr { padding: 12px 14px; border-bottom: 1px solid var(--rc-line); }
  .rc-article__body table:has(td[data-label]) td { display: grid; grid-template-columns: minmax(96px, 38%) minmax(0, 1fr); gap: 12px; padding: 6px 0; border: 0; }
  .rc-article__body table:has(td[data-label]) td::before { content: attr(data-label); font: 500 12px/1.6 var(--rc-font-mono); color: var(--rc-muted); }
  .rc-article__body table:has(td[data-label]) tbody tr > th { display: block; padding: 0 0 6px; border: 0; font-size: 17px; }
  .rc-article__body table:has(td[data-label]) tbody tr > th::before { content: none; }
  .rc-article__body table:not(:has(td[data-label])) { min-width: 540px; }
}

/* Related guides after the article. */
.rc-related { background: var(--rc-surface); }
.rc-related h2 { margin-bottom: 32px; }
.rc-related-guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-bottom: 32px; }
.rc-related-guides > article { position: relative; padding: 28px; border: 1px solid var(--rc-index-line); border-radius: 4px; background: var(--rc-reading); }
.rc-related-guides > article > p:first-child { font: 500 13px/1.6 var(--rc-font-mono); color: var(--rc-accent); }
.rc-related-guides h3 { margin-top: 12px; font-size: 21px; line-height: 1.35; }
.rc-related-guides h3 a::after { content: ""; position: absolute; inset: 0; }
.rc-related-guides > article:hover h3 { color: var(--rc-accent); }
.rc-related-guides > article > p:last-child { margin-top: 12px; font-size: 15px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }

/* Review (Codex, 2026-12-02): narrow screens keep the reading panel inside the viewport (only the table scrolls),
   larger section headings as in the mockup, accent row labels in tables. */
@media (max-width: 1023px) {
  .rc-article__layout { align-items: stretch; }
  .rc-article__body { width: 100%; max-width: 100%; }
  .rc-article__body .wp-block-table { max-width: 100%; overflow-x: auto; }
}
@media (min-width: 1024px) {
  .rc-article__body > h2 { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.15; }
}
.rc-article__body tbody td:first-child, .rc-article__body tbody th { color: var(--rc-accent); }
/* Wide tables use the whole reading panel, not the 68ch text measure. */
.rc-article__body > .wp-block-table { max-width: none; }

/* a3 layout "summary": the guide's first Key takeaways sits beside the title as a ticket-like box (the cover photo stays below). */
/* (The guide-header rules in hero.css use :has(.rc-hero__byline); the selectors below outrank them.) */
.rc-hero.rc-hero--article-summary:has(.rc-hero__byline) .rc-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: start; }
.rc-hero.rc-hero--article-summary:has(.rc-hero__byline) h1 { font-size: clamp(36px, 4.5vw, 62px); }
.rc-hero.rc-hero--article-summary:not([style*="--hero-image"])::before { display: none; }
.rc-article__summary { min-width: 0; }
.rc-article__summary .rc-takeaways {
  position: relative; padding: 28px; border: 1px solid var(--rc-line); border-radius: var(--radius);
  background: var(--rc-surface); box-shadow: var(--rc-card-shadow);
}
.rc-article__summary .rc-takeaways::before {
  content: ""; position: absolute; top: -5px; left: 16px; right: 16px; height: 9px;
  background: radial-gradient(circle at center, var(--rc-bg) 3px, var(--rc-line) 3px, var(--rc-line) 4px, transparent 4px) repeat-x;
  background-size: 16px 9px;
}
.rc-article__summary .rc-takeaways__badge + h2 { margin-top: 0; padding-top: 20px; border-top: 1px dashed var(--rc-line); }
.rc-article__summary .rc-takeaways__badge { display: block; width: fit-content; margin-bottom: 20px; }
.rc-article__summary .rc-takeaways h2 { margin-bottom: 20px; font: 600 24px/1.3 var(--rc-font-heading); letter-spacing: 0; text-transform: none; color: var(--rc-text); }
.rc-article__summary .rc-takeaways h2 .rc-icon { display: none; }
.rc-article__summary .rc-takeaways ul { gap: 0; }
.rc-article__summary .rc-takeaways li { padding-block: 16px; border-top: 1px solid var(--rc-line); font-size: 14px; line-height: 1.6; color: var(--rc-body-text); }
.rc-article__summary .rc-takeaways li:not(.rc-takeaways__row) { padding-left: 24px; }
.rc-article__summary .rc-takeaways li:not(.rc-takeaways__row)::before { top: 25px; }
@media (max-width: 1023px) {
  .rc-hero.rc-hero--article-summary:has(.rc-hero__byline) .rc-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .rc-article__summary { max-width: 640px; }
}
@media (max-width: 767px) {
  .rc-article__summary .rc-takeaways { padding: 24px; }
}
@media (max-width: 560px) {
  .rc-hero.rc-hero--article-summary:has(.rc-hero__byline) h1 { font-size: 38px; }
}
