/*
Theme Name: The Rights Foundry
Theme URI: https://therightsfoundry.com/blog
Author: The Rights Foundry
Author URI: https://therightsfoundry.com
Description: Custom editorial blog theme for The Rights Foundry — matching the exact design system, header, typography, and footer of therightsfoundry.com.
Version: 1.0.2
Requires at least: 6.4
Requires PHP: 8.2
Text Domain: rights-foundry
*/

.rf {
  --teal: #0D4659; --ink: #072C38; --lime: #D6DF8C; --lime-soft: #EEF2C9;
  --dust: #EEE6E3; --paper: #F7F3F1; --white: #fff;
  --char: #212120; --graphite: #5E605F; --mist: #A9BFC6; --line: #DDD3CE; --line-dk: rgba(238,230,227,.16);
  --fd: 'League Spartan', Arial, sans-serif;
  --fb: 'Questrial', Arial, sans-serif;
  --fm: 'IBM Plex Mono', ui-monospace, monospace;
  --wrap: 1120px;
  background: var(--paper); color: var(--char);
  font-family: var(--fb); font-size: 17px; line-height: 1.62;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.rf main { flex: 1; }
.rf *, .rf *::before, .rf *::after { box-sizing: border-box; }
.rf :where(h1,h2,h3,h4,p,ul,ol,li,pre,figure) { margin: 0; padding: 0; }
.rf :where(a) { color: inherit; text-decoration: none; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.rf [id] { scroll-margin-top: 24px; }

.rf-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); width: 100%; }
.rf :where(h1,h2,h3,h4) { font-family: var(--fd); line-height: 1.05; letter-spacing: -.02em; font-weight: 700; }
.rf h1 { font-size: clamp(34px, 5.2vw, 54px); }
.rf h2 { font-size: clamp(27px, 3.4vw, 34px); }
.rf h3 { font-size: 21px; line-height: 1.2; }

.rf-eyebrow { font-family: var(--fd); font-weight: 600; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); display: flex; align-items: center; gap: 10px; }
.rf-eyebrow::before { content: ""; width: 18px; height: 6px; background: var(--lime); flex: none; }
.rf-dark .rf-eyebrow, .rf-hero .rf-eyebrow, .rf-foot .rf-eyebrow, .rf-blog-hero .rf-eyebrow { color: var(--lime); }
.rf-lede { font-size: 19px; line-height: 1.55; color: var(--graphite); max-width: 62ch; }
.rf-dark .rf-lede, .rf-blog-hero .rf-lede { color: var(--mist); }
.rf-band { padding: 78px 0; }
.rf-dark { background: var(--teal); color: var(--dust); }
.rf-dark.rf-ink { background: var(--ink); }
.rf-dark h2, .rf-dark h3 { color: #fff; }
.rf-dust { background: var(--dust); }
.rf-white { background: var(--white); }
.rf-hl { background: linear-gradient(transparent 58%, var(--lime) 58%, var(--lime) 92%, transparent 92%); padding: 0 .08em; }
.rf-mark { color: var(--ink); background: var(--lime); padding: .04em .2em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* focus */
.rf :is(a, button, input):focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.rf :is(.rf-dark, .rf-head, .rf-hero, .rf-foot, .rf-cta, .rf-blog-hero) :is(a, button, input):focus-visible { outline-color: var(--lime); }
.rf .rf-cta :is(a, button):focus-visible { outline-color: var(--ink); }

/* header */
.rf-head { background: var(--ink); color: var(--dust); padding: 0; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60; border-bottom: 1px solid var(--line-dk); }
.rf-head .rf-wrap { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.rf-logo { display: flex; align-items: center; gap: 11px; flex: none; }
.rf-rmark { color: var(--lime); }
.rf-logo b { font-family: var(--fd); font-weight: 700; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; line-height: 1.05; color: #fff; white-space: nowrap; }
.rf-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; font-family: var(--fd); font-weight: 500; font-size: 15px; }
.rf-nav-links { display: flex; align-items: center; gap: 4px; }
.rf-nav-links a { color: var(--dust); padding: 8px 11px; border-radius: 8px; white-space: nowrap; transition: color .15s; }
.rf-nav-links a:hover, .rf-nav-links a[aria-current="page"] { color: var(--lime); }
.rf-nav-ctas { display: flex; align-items: center; gap: 8px; flex: none; }
.rf-menu { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-dk); background: transparent; color: var(--dust); cursor: pointer; align-items: center; justify-content: center; flex: none; }
.rf-menu svg { width: 20px; height: 20px; }

.rf-btn { display: inline-block; font-family: var(--fd); font-weight: 600; font-size: 15px; line-height: 1.2; padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; text-align: center; white-space: nowrap; transition: filter .15s, background-color .15s, border-color .15s; }
.rf-btn:hover { filter: brightness(1.06); }
.rf-btn-lime { background: var(--lime); color: var(--ink); }
.rf-btn-teal { background: var(--teal); color: #fff; }
.rf-btn-teal:hover { background: var(--ink); filter: none; }
.rf-btn-ghost { border-color: currentColor; color: var(--teal); background: transparent; }
.rf-dark .rf-btn-ghost, .rf-hero .rf-btn-ghost, .rf-head .rf-btn-ghost, .rf-blog-hero .rf-btn-ghost { color: var(--dust); }
.rf-nav .rf-btn { padding: 10px 18px; font-size: 13px; }
.rf-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.rf-pill { display: inline-block; font-family: var(--fd); font-weight: 600; font-size: 14px; letter-spacing: .03em; color: var(--teal); background: var(--lime-soft); border-radius: 999px; padding: 8px 16px; margin: 4px 6px 0 0; }

/* CTA banner */
.rf-cta-section { padding: 16px 0 88px; }
.rf-cta { background: var(--lime); color: var(--ink); border-radius: 22px; padding: clamp(28px, 5vw, 54px); display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: end; }
.rf-cta h2 { color: var(--ink); }
.rf-cta p { font-size: 18px; max-width: 42ch; margin-top: 12px; color: var(--ink); }
.rf-cta .rf-sign { font-family: var(--fd); font-weight: 600; font-size: 14.5px; color: var(--teal); margin-top: 16px; letter-spacing: .02em; }
.rf-cta .rf-btns { justify-content: flex-end; }

/* footer */
.rf-foot { background: var(--ink); color: var(--mist); padding: 52px 0 30px; font-size: 14.5px; margin-top: auto; }
.rf-foot .rf-wrap { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 36px; }
.rf-foot h4 { font-family: var(--fd); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--lime); margin-bottom: 12px; }
.rf-foot nav a { display: block; color: var(--dust); padding: 3px 0; transition: color .15s; }
.rf-foot nav a:hover { color: var(--lime); }
.rf-foot .rf-tag { font-family: var(--fd); font-size: 20px; font-weight: 600; color: #fff; line-height: 1.3; margin-top: 16px; max-width: 26ch; }
.rf-foot .rf-bot { grid-column: 1 / -1; border-top: 1px solid var(--line-dk); margin-top: 36px; padding-top: 18px; display: flex; justify-content: space-between; font-size: 13px; gap: 16px; flex-wrap: wrap; }
.rf-foot .rf-bot a { color: var(--mist); }
.rf-foot .rf-bot a:hover { color: var(--lime); }

/* skip link */
.rf-skip { position: absolute; left: -9999px; top: 0; z-index: 100; }
.rf-skip:focus-visible { left: 16px; top: 12px; background: var(--lime); color: var(--ink); padding: 10px 18px; border-radius: 999px; font-family: var(--fd); font-weight: 600; font-size: 14px; outline: 3px solid var(--teal); outline-offset: 2px; }
.rf-vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* breadcrumbs */
.rf-crumbs { font-family: var(--fm); font-size: 12px; color: var(--graphite); }
.rf-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.rf-crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--mist); }
.rf-crumbs a { color: inherit; }
.rf-crumbs a:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.rf-crumbs [aria-current="page"] { color: var(--char); }
.rf-dark .rf-crumbs, .rf-blog-hero .rf-crumbs { color: var(--mist); }
.rf-dark .rf-crumbs a:hover, .rf-blog-hero .rf-crumbs a:hover { color: var(--lime); }
.rf-dark .rf-crumbs [aria-current="page"], .rf-blog-hero .rf-crumbs [aria-current="page"] { color: var(--dust); }

/* ── listing hero (with architectural grid matching homepage hero) ───────── */
.rf-blog-hero { background: var(--ink); color: var(--dust); padding: 58px 0 48px; position: relative; overflow: hidden; }
.rf-blog-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line-dk) 1px, transparent 1px), linear-gradient(90deg, var(--line-dk) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 78% 35%, #000 0, transparent 70%); mask-image: radial-gradient(ellipse at 78% 35%, #000 0, transparent 70%); opacity: .55; pointer-events: none; }
.rf-blog-hero .rf-wrap { position: relative; z-index: 1; }
.rf-blog-hero .rf-crumbs { margin-bottom: 26px; }
.rf-blog-hero h1 { color: #fff; margin: 16px 0 14px; font-size: clamp(32px, 4.6vw, 50px); max-width: 24ch; }
.rf-blog-hero .rf-lede { max-width: 58ch; }

.rf-blog-list { padding: 34px 0 72px; }

.rf-blog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.rf-blog-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px; margin: 0; }
.rf-blog-chip { flex: none; display: inline-block; font-family: var(--fd); font-weight: 600; font-size: 14px; letter-spacing: .03em; color: var(--teal); background: var(--lime-soft); border: 1.5px solid transparent; border-radius: 999px; padding: 8px 16px; transition: all .15s; }
.rf-blog-chip:hover { border-color: var(--teal); }
.rf-blog-chip.rf-on { background: var(--teal); color: #fff; border-color: var(--teal); }

.rf-search-form { display: flex; align-items: center; gap: 8px; }
.rf-search-input { font-family: var(--fb); font-size: 14.5px; color: var(--char); background: var(--white); border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 16px; min-width: 220px; transition: border-color .15s; }
.rf-search-input:focus { border-color: var(--teal); outline: none; }

.rf-blog-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 700px) { .rf-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .rf-blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.rf-post-card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.rf-post-card:hover { box-shadow: 0 12px 32px rgba(7, 44, 56, .09); transform: translateY(-2px); }
.rf-post-card:focus-within { outline: 3px solid var(--teal); outline-offset: 3px; }
@media (min-width: 960px) { .rf-post-card-featured { grid-column: span 2; } }

.rf-post-card-media { display: block; aspect-ratio: 16 / 9; background: var(--lime-soft); overflow: hidden; }
@media (min-width: 960px) { .rf-post-card-featured .rf-post-card-media { aspect-ratio: 2 / 1; } }
.rf-post-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.rf-post-card:hover .rf-post-card-media img { transform: scale(1.02); }
.rf-post-card-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--teal); }
.rf-post-card-placeholder svg { opacity: .2; }

.rf-post-card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 20px 22px 22px; }
.rf-post-card-cat { font-family: var(--fm); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.rf-post-card-title { font-family: var(--fd); font-weight: 700; font-size: 22px; line-height: 1.15; letter-spacing: -.01em; color: var(--teal); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 960px) { .rf-post-card-featured .rf-post-card-title { font-size: 27px; } }
.rf-post-card-link { color: inherit; }
.rf-post-card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.rf-post-card-link:focus-visible { outline: none; }
.rf-post-card-link:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--lime); }
.rf-post-card-excerpt { color: var(--graphite); font-size: 15.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rf-post-card-meta { margin-top: auto; padding-top: 8px; font-family: var(--fm); font-size: 11.5px; color: var(--graphite); }

.rf-pagination { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 46px; }
.rf-pagination .rf-page-of { font-family: var(--fm); font-size: 12.5px; color: var(--graphite); }
.rf-btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

.rf-empty { background: var(--dust); border-radius: 16px; padding: 56px 32px; text-align: center; }
.rf-empty h2 { color: var(--teal); font-size: 24px; margin-bottom: 10px; }
.rf-empty p { color: var(--graphite); margin: 0 0 24px; }

/* ── single post page ────────────────────────────────────────────────────── */
.rf-post-top { padding-top: 30px; }
.rf-post-head { max-width: 820px; margin: 0 auto; padding: 40px 0 0; }
.rf-post-head h1 { font-size: clamp(32px, 4.6vw, 48px); color: var(--teal); margin: 16px 0 20px; }
.rf-post-head .rf-lede { font-size: 20px; }

.rf-post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 24px; font-family: var(--fm); font-size: 12.5px; color: var(--graphite); }
.rf-post-meta .rf-sep { color: var(--mist); }
.rf-post-ava { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: block; }
.rf-post-ava-init { width: 28px; height: 28px; border-radius: 50%; background: var(--lime-soft); color: var(--teal); display: inline-flex; align-items: center; justify-content: center; font-family: var(--fd); font-weight: 600; font-size: 11px; letter-spacing: .02em; }
.rf-post-updated { color: var(--graphite); }

.rf-post-cover { max-width: 1000px; margin: 44px auto 0; padding: 0 clamp(20px, 4vw, 40px); }
.rf-post-cover img { width: 100%; height: auto; border-radius: 16px; display: block; border: 1px solid var(--line); }

.rf-post-main { padding-top: 48px; padding-bottom: 48px; }
.rf-post-content { max-width: 68ch; margin: 0 auto; min-width: 0; }
.rf-post-aside { display: none; }
@media (min-width: 1100px) {
  .rf-post-layout { display: grid; grid-template-columns: minmax(0, 68ch) 260px; gap: 56px; justify-content: center; }
  .rf-post-content { max-width: none; margin: 0; }
  .rf-post-aside { display: block; }
  .rf-toc-details { display: none; }
}

/* table of contents */
.rf-toc-label { font-family: var(--fm); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--graphite); margin: 0 0 12px; }
.rf-toc-sticky { position: sticky; top: 28px; }
.rf-toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.rf-toc a { display: block; padding: 6px 0 6px 14px; color: var(--graphite); font-size: 14px; line-height: 1.4; transition: color .15s; }
.rf-toc a:hover { color: var(--teal); }
.rf-toc a.rf-on { color: var(--teal); font-weight: 600; box-shadow: -2px 0 0 var(--lime); }
.rf-toc .rf-toc-sub a { padding-left: 28px; font-size: 13px; }
.rf-toc-details { border: 1px solid var(--line); border-radius: 12px; background: var(--white); padding: 4px 18px; margin-bottom: 30px; }
.rf-toc-details summary { cursor: pointer; font-family: var(--fd); font-weight: 600; font-size: 15px; color: var(--teal); padding: 12px 0; }
.rf-toc-details .rf-toc { padding-bottom: 12px; }
.rf-toc-details .rf-toc ul { border-left: none; }
.rf-toc-details .rf-toc a { padding-top: 5px; padding-bottom: 5px; }

/* article body */
.rf-post-body { font-size: 18px; line-height: 1.72; color: var(--char); }
.rf-post-body > :first-child { margin-top: 0; }
.rf-post-body p { margin: 0 0 1.25em; }
.rf-post-body h2 { font-size: clamp(24px, 2.6vw, 30px); color: var(--teal); margin: 2.2em 0 .7em; scroll-margin-top: 24px; }
.rf-post-body h3 { font-size: 21px; color: var(--teal); margin: 1.8em 0 .6em; scroll-margin-top: 24px; }
.rf-post-body h4 { font-size: 18px; color: var(--teal); margin: 1.6em 0 .5em; }
.rf-post-body a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.rf-post-body a:hover { text-decoration-color: var(--lime); }
.rf-post-body strong { color: var(--ink); }
.rf-post-body ul, .rf-post-body ol { padding-left: 1.4rem; margin: 0 0 1.25em; }
.rf-post-body ul { list-style: disc; }
.rf-post-body ol { list-style: decimal; }
.rf-post-body ul ul { list-style: circle; }
.rf-post-body li { margin-bottom: .4em; }
.rf-post-body li > p { margin-bottom: .4em; }
.rf-post-body blockquote { border-left: 4px solid var(--lime); padding-left: 1.2em; margin: 0 0 1.5em; color: var(--graphite); font-style: italic; }
.rf-post-body blockquote p { margin-bottom: .6em; }
.rf-post-body blockquote p:last-child { margin-bottom: 0; }
.rf-post-body pre { background: var(--ink); color: var(--dust); font-family: var(--fm); font-size: 14px; line-height: 1.7; padding: 18px 20px; border-radius: 12px; overflow-x: auto; margin: 0 0 1.5em; }
.rf-post-body code { font-family: var(--fm); font-size: .88em; background: var(--dust); padding: .1em .35em; border-radius: 4px; }
.rf-post-body pre code { background: transparent; padding: 0; border-radius: 0; color: inherit; }
.rf-post-body img { max-width: 100%; height: auto; border-radius: 12px; }
.rf-post-body figure, .rf-post-body figure.rf-fig, .rf-post-body .wp-block-image { margin: 2em 0; }
.rf-post-body figure img, .rf-post-body figure.rf-fig img { width: 100%; height: auto; border-radius: 12px; display: block; }
.rf-post-body figcaption { font-family: var(--fm); font-size: 12.5px; color: var(--graphite); margin-top: 10px; }
.rf-post-body table { width: 100%; border-collapse: collapse; margin: 1.8em 0; font-size: 15.5px; background: var(--white); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.rf-post-body th, .rf-post-body td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.rf-post-body th { font-family: var(--fd); font-weight: 600; color: var(--teal); background: var(--dust); }
.rf-post-body hr { border: 0; width: 56px; height: 6px; background: var(--lime); margin: 2.5em 0; }

/* FAQ */
.rf-faq { margin-top: 46px; }
.rf-faq h2 { color: var(--teal); margin-bottom: 18px; }
.rf-faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; }
.rf-faq-item summary { cursor: pointer; font-family: var(--fd); font-weight: 600; font-size: 16.5px; line-height: 1.35; color: var(--teal); padding: 15px 0; }
.rf-faq-item summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.rf-faq-item p { margin: 0 0 16px; color: var(--char); font-size: 16.5px; line-height: 1.65; }

/* tags + share */
.rf-post-tags { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 8px; }
.rf-tag-link { margin: 0; }
.rf-tag-link:hover { box-shadow: inset 0 0 0 1.5px var(--teal); }

.rf-share { margin-top: 34px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rf-share-label { font-family: var(--fm); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--graphite); }
.rf-share .rf-btn { padding: 9px 16px; font-size: 13px; }
.rf-copied { font-family: var(--fm); font-size: 12px; color: var(--teal); min-width: 48px; }

/* author card */
.rf-author { margin-top: 44px; background: var(--dust); border-radius: 16px; padding: 26px 28px; display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.rf-author-ava, .rf-author-ava-init { width: 56px; height: 56px; border-radius: 50%; flex: none; }
.rf-author-ava { object-fit: cover; display: block; }
.rf-author-ava-init { background: var(--teal); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--fd); font-weight: 600; font-size: 17px; }
.rf-author-body { flex: 1; min-width: 220px; }
.rf-author-name { font-family: var(--fd); font-weight: 600; font-size: 19px; color: var(--ink); }
.rf-author-bio { color: var(--graphite); font-size: 15.5px; line-height: 1.6; margin-top: 6px; }
.rf-author-link { display: inline-block; margin-top: 10px; color: var(--teal); font-size: 14.5px; text-decoration: underline; text-underline-offset: 3px; }

/* related + back link */
.rf-related { padding: 8px 0 64px; }
.rf-related h2 { color: var(--teal); margin-bottom: 24px; }
.rf-post-back { display: inline-block; margin: 44px 0 0; font-family: var(--fd); font-weight: 600; font-size: 15px; color: var(--teal); }
.rf-post-back:hover { text-decoration: underline; text-underline-offset: 3px; }

/* responsive */
@media (max-width: 1100px) {
  .rf-nav-links { gap: 16px; }
}
@media (max-width: 960px) {
  .rf-menu { display: inline-flex; }
  .rf-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); border-top: 1px solid var(--line-dk); padding: 12px clamp(20px, 4vw, 40px) 22px; flex-direction: column; align-items: stretch; gap: 14px; box-shadow: 0 18px 30px rgba(0,0,0,.25); }
  .rf-nav.rf-open { display: flex; }
  .rf-nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .rf-nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line-dk); font-size: 16px; }
  .rf-nav-ctas { flex-wrap: wrap; }
  .rf-nav .rf-btn { padding: 12px 20px; font-size: 14px; }
}
@media (max-width: 800px) {
  .rf-cta { grid-template-columns: 1fr; }
  .rf-cta .rf-btns { justify-content: flex-start; }
  .rf-foot .rf-wrap { grid-template-columns: 1fr 1fr; }
  .rf-foot .rf-wrap > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .rf { font-size: 16px; }
  .rf-band { padding: 56px 0; }
  .rf-lede { font-size: 17.5px; }
  .rf-blog-hero { padding: 40px 0 34px; }
  .rf-blog-list { padding: 24px 0 56px; }
  .rf-post-head { padding-top: 30px; }
  .rf-post-main { padding-top: 38px; }
  .rf-post-cover { margin-top: 34px; }
  .rf-post-body { font-size: 17px; line-height: 1.7; }
  .rf-author { padding: 22px; }
}
@media (max-width: 560px) {
  .rf-foot .rf-wrap { grid-template-columns: 1fr; gap: 26px; }
  .rf-foot .rf-bot { margin-top: 10px; flex-direction: column; gap: 6px; }
  .rf-btns .rf-btn { flex: 1 1 auto; }
  .rf-search-form { width: 100%; }
  .rf-search-input { width: 100%; }
}

/* 2026.10.22 Learn + dropdown & 5-col footer sync */
.rf-foot .rf-wrap { grid-template-columns: 1.4fr repeat(4, 1fr); }
.rf-nav-more { position: relative; cursor: pointer; }
.rf-nav-more > span { color: var(--dust); padding: 6px 4px; display: inline-block; transition: color .15s; }
.rf-nav-more:hover > span, .rf-nav-more:focus-within > span { color: var(--lime); }
.rf-nav-drop { position: absolute; right: 0; top: 100%; padding-top: 10px; min-width: 260px; display: none; z-index: 80; }
.rf-nav-drop-inner { background: var(--white); border-radius: 12px; box-shadow: 0 18px 50px rgba(7,44,56,.25); padding: 8px; border: 1px solid var(--line); }
.rf-nav-more:hover .rf-nav-drop, .rf-nav-more:focus-within .rf-nav-drop { display: block; }
.rf-nav-drop a { display: block !important; color: var(--char) !important; padding: 9px 12px !important; border-radius: 8px; font-family: var(--fd); font-weight: 600; font-size: 14px; }
.rf-nav-drop a b { display: block; font-weight: 600; color: inherit; }
.rf-nav-drop a small { display: block; font-family: var(--fb); font-weight: 400; font-size: 12.5px; color: var(--graphite); margin-top: 2px; }
.rf-nav-drop a:hover { background: var(--paper); color: var(--teal) !important; }
@media (max-width: 960px) {
  .rf-foot .rf-wrap { grid-template-columns: 1fr 1fr; }
  .rf-nav-more > span { display: none; }
  .rf-nav-drop { position: static; display: block; padding-top: 0; min-width: 0; }
  .rf-nav-drop-inner { background: transparent; box-shadow: none; border: 0; padding: 0; }
  .rf-nav-drop a { color: var(--dust) !important; padding: 6px 0 !important; }
  .rf-nav-drop a small { color: var(--mist); }
}
