/*
Theme Name: SteadyRetire
Theme URI:
Author: SteadyRetire
Author URI:
Description: SteadyRetire news portal theme â€” retirement planning editorial site.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chronicle
*/

/* =========================================================
   Chronicle â€“ Shared Stylesheet
   ========================================================= */

/*@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,700&display=swap');*/
@font-face {
    font-family: 'Inter';
    src: url('/wp-content/themes/steadyretire/assets/fonts/inter-normal.woff2') format('woff2');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

/* ----- CSS Variables ----- */
:root {
  --primary: hsl(221, 83%, 53%);
  --primary-light: hsl(221, 83%, 93%);
  --primary-dark: hsl(221, 83%, 44%);
  --foreground: hsl(222, 47%, 11%);
  --muted: hsl(215, 16%, 47%);
  --border: hsl(214, 32%, 91%);
  --bg: hsl(0, 0%, 100%);
  --bg-gray: hsl(210, 17%, 98%);
  --card-shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 0.5rem;
}

/* ----- Reset / Base ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  color: var(--foreground);
  background: var(--bg);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

main { flex: 1; }

/* ----- Container ----- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ----- Typography helpers ----- */
.font-serif { font-family: 'Playfair Display', Georgia, serif; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--muted); }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ----- Inputs ----- */
input[type="text"],
input[type="email"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 0.875rem;
  color: var(--foreground);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
input:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsl(221, 83%, 53%, 0.15);
}
textarea { resize: vertical; min-height: 120px; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

body.nav-locked { overflow: hidden; }

/* Logo left + right column (search top, nav bottom) */
.header-inner {
  display: flex;
  align-items: stretch;
  gap: 2rem;
}

.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0.6rem 0;
}

.logo-img {
  height: 76px;
  width: auto;
  display: block;
}

.logo-img--mobile { display: none; }

.header-right {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Top sub-row: search pinned top-right */
.header-top-row {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: 0.4rem;
}

/* Bottom sub-row: nav links */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
}
.main-nav a {
  display: block;
  padding: 0.6rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #374151;
  position: relative;
  white-space: nowrap;
  transition: color 0.2s;
}
.main-nav-right {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: 5rem;
}

.main-nav a:hover,
.main-nav a.active,
.main-nav .current-menu-item > a,
.main-nav .current-cat > a { color: var(--primary); }
.main-nav a.active::after,
.main-nav .current-menu-item > a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--primary);
}

/* Nav item wrapper */
.nav-item {
  list-style: none;
  position: relative;
  display: flex;
  align-items: stretch;
}

/* Desktop nav separators + underline tabs */
@media (min-width: 901px) {
  .main-nav > .nav-item {
    position: relative;
  }

  .main-nav > .nav-item:not(:last-child) {
    padding-right: 1.15rem;
    margin-right: 1.15rem;
  }

  /* horizontal line under each category */
  .main-nav > .nav-item::before {
    content: '';
    position: absolute;
    left: 0.95rem;
    right: 0.45rem;
    bottom: 0.35rem;
    height: 1px;
    background: linear-gradient(
      to right,
      rgba(112, 182, 213, 0),
      rgba(112, 182, 213, 0.38),
      rgba(112, 182, 213, 0.22)
    );
    pointer-events: none;
  }

  /* diagonal line after each category except the last */
  .main-nav > .nav-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3.1rem;
    width: 1px;
    height: 5.4rem;
    background: linear-gradient(
      to bottom,
      rgba(112, 182, 213, 0),
      rgba(112, 182, 213, 0.62),
      rgba(112, 182, 213, 0)
    );
    transform: rotate(22deg);
    transform-origin: center;
    pointer-events: none;
  }

  .main-nav > .nav-item > a {
    position: relative;
    z-index: 1;
  }
}

/* Dropdown panel (desktop hover) */
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 2px solid var(--primary);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--card-shadow);
  min-width: 180px;
  z-index: 300;
  padding: 0.25rem 0;
  list-style: none;
}
.nav-item.has-dropdown:hover .nav-dropdown { display: block; }
.nav-dropdown li a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--foreground);
  white-space: nowrap;
  position: static;
}
.nav-dropdown li a:hover {
  background: var(--bg-gray);
  color: var(--primary);
}

/* Hamburger button (hidden on desktop) */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--radius);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.hamburger:hover { background: var(--bg-gray); }

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--foreground);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

/* Animate to Ã— when open */
.site-header.menu-open .hamburger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.menu-open .hamburger-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.site-header.menu-open .hamburger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* â”€â”€ Mobile layout â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 900px) {
  .logo-img--desktop { display: none; }
  .logo-img--mobile { display: block; height: 26px; }

  .header-inner { align-items: center; gap: 0; }

  .header-right {
    flex: 1;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
  }

  .header-top-row {
    flex: 0;
    padding-top: 0;
    gap: 0.25rem;
    align-items: center;
  }

  .hamburger { display: flex; }

  /* Hide desktop nav; show as absolute dropdown when open */
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 6px 20px rgba(0,0,0,0.09);
    flex-direction: column;
    padding: 0.5rem 0 1rem;
    z-index: 200;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .site-header.menu-open .main-nav { display: flex; }

  /* Tap-blocking backdrop while the mobile nav is open â€” sits below the
     header (z-index 100) so the header and nav panel stay undimmed */
  body.nav-locked::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 99;
  }

  .nav-item {
    flex-direction: column;
    width: 100%;
  }

  .main-nav a {
    padding: 0.85rem 1.5rem;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border);
    position: static;
    white-space: normal;
    text-align: center;
  }

  .main-nav-right {
    flex-direction: column;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  /* Dropdown shown as flat list on mobile */
  .nav-dropdown {
    display: block;
    position: static;
    border: none;
    border-top: none;
    border-radius: 0;
    box-shadow: none;
    background: var(--bg-gray);
    padding: 0;
    min-width: 0;
    width: 100%;
  }
  .nav-dropdown li a {
    padding: 0.7rem 1.5rem;
    font-size: 0.8rem;
    border-bottom: 1px solid var(--border);
    text-align: center;
    color: var(--muted);
    white-space: normal;
  }
  .nav-dropdown li:last-child a { border-bottom: none; }

  .main-nav-right .nav-item:last-child > a { border-bottom: none; }
  .main-nav a.active::after,
  .main-nav .current-menu-item > a::after { display: none; }
  .main-nav a.active,
  .main-nav .current-menu-item > a { background: hsl(221, 83%, 97%); }
}

/* Search toggle */
.search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  color: var(--foreground);
  transition: background 0.2s;
  display: flex;
  align-items: center;
}
.search-toggle:hover { background: var(--bg-gray); }
.search-toggle svg { width: 20px; height: 20px; }

/* Search bar (shown / hidden) */
.search-bar {
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
  display: none;
}
.search-bar.open { display: block; }
.search-bar form {
  display: flex;
  gap: 0.5rem;
  max-width: 560px;
  margin: 0 auto;
}
.search-bar input { flex: 1; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: hsl(210, 17%, 98%);
  padding: 2.5rem 1rem;
  text-align: center;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.footer-links a {
  color: var(--foreground);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary); }
.footer-links .dot {
  color: var(--muted);
  user-select: none;
}

.footer-disclaimer {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}
.footer-disclaimer a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.footer-disclaimer a:hover { color: var(--primary); }

/* =========================================================
   CARDS & GRID
   ========================================================= */
.article-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.article-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.14); }
.article-card a { display: flex; flex-direction: column; height: 100%; color: inherit; }

.card-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-gray);
}
.card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.article-card:hover .card-image img { transform: scale(1.05); }

.card-category {
  position: absolute;
  top: 10px; left: 10px;
  background: hsl(221, 83%, 53%, 0.9);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-title-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  color: var(--muted);
  flex-shrink: 0;
}
.card-meta span { opacity: 0.6; }

.card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
  transition: color 0.2s;
}
.article-card:hover .card-title { color: var(--primary); }

.card-excerpt {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-author {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: auto;
  padding: 0 20px 20px;
}
.author-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.card-author span { font-size: 0.85rem; font-weight: 700; color: var(--foreground); }
.card-author span a { color: var(--foreground); transition: color 0.2s; }
.card-author span a:hover { color: var(--primary); }

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

/* =========================================================
   FEATURED ARTICLE
   ========================================================= */
.featured-article {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  margin-bottom: 3rem;
  transition: box-shadow 0.3s;
}
.featured-article:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.14); }

.featured-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 768px) {
  .featured-inner { grid-template-columns: 1fr; }
}

.featured-image {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  background: var(--bg-gray);
}
.featured-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.featured-article:hover .featured-image img { transform: scale(1.05); }

.featured-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.cat-badge {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}
.cat-badge-white {
  background: hsl(221, 83%, 53%, 0.9);
  color: #fff;
}

.featured-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
  transition: color 0.2s;
}
.featured-article:hover .featured-title { color: var(--primary); }

.featured-excerpt { color: var(--muted); margin-bottom: 1.5rem; }

.featured-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.featured-author img {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}
.featured-author strong { display: block; font-size: 0.9rem; }
.featured-author small { font-size: 0.75rem; color: var(--muted); }

/* =========================================================
   MAIN LAYOUT (sidebar + content)
   ========================================================= */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 1024px) {
  .content-layout { grid-template-columns: 1fr; }
}

/* ----- Sidebar ----- */
.sidebar { display: flex; flex-direction: column; gap: 1.75rem; }

.sidebar-widget {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
}
.sidebar-widget h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

/* Category list */
.cat-list li + li { margin-top: 0.5rem; }
.cat-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  font-size: 0.9rem;
  color: #374151;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.cat-list a:hover { color: var(--primary); }

/* Subcategory nested list */
.subcat-list {
  padding-left: 0.85rem;
  margin-top: 0.25rem;
}
.subcat-list li + li { margin-top: 0.15rem; }
.subcat-list a {
  font-size: 0.8rem;
  color: var(--muted);
  border-bottom-color: transparent;
  padding: 0.25rem 0;
}
.subcat-list a:hover { color: var(--primary); }
.cat-count {
  font-size: 0.75rem;
  background: var(--bg-gray);
  color: var(--muted);
  padding: 1px 8px;
  border-radius: 999px;
}

/* Popular articles */
.popular-list { display: flex; flex-direction: column; gap: 1rem; }
.popular-item { display: flex; gap: 0.85rem; }
.popular-thumb {
  width: 72px; height: 56px;
  border-radius: calc(var(--radius) - 2px);
  object-fit: cover;
  flex-shrink: 0;
}
.popular-info { flex: 1; }
.popular-info .card-title { font-size: 0.85rem; margin-bottom: 0.25rem; }
.popular-info .card-meta { margin-bottom: 0; font-size: 0.7rem; }

/* Newsletter widget */
.newsletter-form { display: flex; flex-direction: column; gap: 0.65rem; }
.newsletter-form p { font-size: 0.85rem; color: var(--muted); }

/* =========================================================
   PAGE SECTIONS
   ========================================================= */
.page-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.page-header h1, .page-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.3;
}
.divider {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* =========================================================
   PAGINATION
   ========================================================= */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 3rem;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px; height: 36px;
  padding: 0 0.5rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--foreground);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.page-btn:hover, .page-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* WordPress pagination */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 3rem;
}
.nav-links a,
.nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px; height: 36px;
  padding: 0 0.5rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--foreground);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.nav-links a:hover,
.nav-links span.current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* =========================================================
   ARTICLE DETAIL
   ========================================================= */
.article-detail { max-width: 820px; margin: 0 auto; }

.article-header { text-align: center; margin-bottom: 2.5rem; }

.article-cats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.article-cats a {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  transition: background 0.2s;
}
.article-cats a:hover { background: hsl(221, 83%, 87%); }

.article-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
@media (max-width: 768px) { .article-title { font-size: 1.8rem; } }

.article-excerpt {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}
.article-byline img {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.article-byline strong { display: block; font-size: 0.95rem; }
.article-byline strong a { color: var(--foreground); text-decoration: none; }
.article-byline strong a:hover { color: var(--primary); }
.article-byline small { font-size: 0.8rem; color: var(--muted); }
.article-edited-by { display: block; }
.article-edited-by a { color: var(--muted); text-decoration: none; }
.article-edited-by a:hover { color: var(--primary); }

.article-hero {
  border-radius: 0.75rem;
  overflow: hidden;
  aspect-ratio: 16/9;
  margin-bottom: 2.5rem;
}
.article-hero img { width: 100%; height: 100%; object-fit: cover; }

.article-body { font-size: 1.05rem; line-height: 1.8; max-width: 100%; overflow-x: hidden; }
.article-body h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
}
.article-body p { margin-bottom: 1.25rem; }
.article-body blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1.25rem;
  font-style: italic;
  margin: 1.5rem 0;
  color: var(--muted);
}
.article-body ul, .article-body ol {
  margin: 0 0 1.25rem 1.5rem;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 0.4rem; }
.article-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--primary-dark); }

/* =========================================================
   PROSE CONTENT (about, gdpr)
   ========================================================= */
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--foreground);
}
.prose p { margin-bottom: 1.1rem; color: #374151; line-height: 1.75; }
.prose ul, .prose ol {
  margin: 0 0 1.1rem 1.5rem;
}
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.4rem; line-height: 1.7; color: #374151; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--foreground); }

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}
.contact-info p { color: var(--muted); margin-bottom: 1.5rem; font-size: 0.95rem; }
.contact-detail { margin-bottom: 1rem; }
.contact-detail h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.15rem; }
.contact-detail p { color: var(--muted); font-size: 0.9rem; margin: 0; }

.contact-form-col h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.form-group { margin-bottom: 1rem; }

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* =========================================================
   SEARCH PAGE
   ========================================================= */
.search-results-count { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.5rem; }

.no-results {
  background: #fff;
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  box-shadow: var(--card-shadow);
}
.no-results h2 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.no-results p { color: var(--muted); }

/* =========================================================
   NOT FOUND
   ========================================================= */
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1rem;
}
.not-found .big-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 8rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 1rem;
}
.not-found h1 { font-size: 1.75rem; margin-bottom: 0.75rem; }
.not-found p { color: var(--muted); margin-bottom: 2rem; }

/* =========================================================
   EXPERT AUTHORS SECTION
   ========================================================= */
.authors-section {
  max-width: 720px;
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.authors-section h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--foreground);
}

.authors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
@media (max-width: 1024px) { .authors-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .authors-grid { grid-template-columns: 1fr; } }

.author-card {
  display: flex;
  flex-direction: column;
}

.author-card-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  background: var(--bg-gray);
}

.author-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
  color: var(--foreground);
}

.author-card .author-role {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.65rem;
}

.author-card .author-bio {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}
.author-card .author-bio::first-letter {
  text-transform: uppercase;
}

/* =========================================================
   HERO â€” SteadyRetire retirement quiz (scoped with .sr-)
   ========================================================= */
.sr-hero-outer {
  background: linear-gradient(135deg, #0d1b2e 0%, #163451 45%, #1f5072 100%);
  padding: 0.5rem 2rem;
  overflow: hidden;
}

.sr-hero-page {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  max-width: 1240px;
  margin: 0 auto;
}

.sr-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  align-items: stretch;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.18);
  overflow: hidden;
  margin: 0 70px;
}

/* Left column gets padding; right column (.sr-topics-panel) handles its own */
.sr-hero-copy {
  padding: 0.75rem 1.5rem 0.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sr-kicker {
  color: var(--muted);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 13px;
  margin: 0 0 6px;
}

.sr-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.4vw, 36px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 900;
  color: #111;
}

.sr-highlight {
  display: inline-block;
  padding: 2px 10px 4px;
  border-radius: 10px;
  background: rgba(159,205,219,.55);
}

.sr-subcopy {
  margin: 0 0 8px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.55;
  max-width: 68ch;
}

.sr-bullets {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #111;
}

.sr-bullets li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.sr-check {
  color: #82CAE1;
  font-weight: 900;
  line-height: 1;
  margin-top: 2px;
}

/* Hero CTAs (left column) */
.sr-hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 18px;
}

.sr-btn-cta {
  display: inline-block;
  background: #cde6f2;
  color: #163451;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 14px;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  transition: filter .15s, transform .05s;
}

.sr-btn-cta:hover { filter: brightness(.95); }

.sr-hero-link {
  color: #163451;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.sr-hero-link:hover { text-decoration: underline; }

/* Topic cards (right column) */
.sr-topics-panel {
  padding: 1.5rem 1.5rem 1.75rem;
  margin: 1.5rem 1.5rem 1.5rem 0;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
}

.sr-topics-heading {
  font-size: 15px;
  font-weight: 800;
  color: #111;
  margin: 0 0 14px;
}

.sr-topic-stack {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sr-topic-card {
  background: #fff;
  border: 3px solid #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow: 0 6px 18px rgba(13,27,46,.12), 0 0 0 1px #e6e6e6;
}

.sr-topic-card--front {
  width: 46%;
  z-index: 3;
  box-shadow: 0 14px 34px rgba(13,27,46,.22);
  position: relative;
}

.sr-topic-card--left {
  width: 34%;
  z-index: 1;
  transform: rotate(-4deg) translateY(8px);
  margin-right: 1%;
}

.sr-topic-card--right {
  width: 34%;
  z-index: 2;
  transform: rotate(4deg) translateY(8px);
  margin-left: 1%;
}

.sr-topic-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.sr-topic-meta {
  padding: 10px 12px 14px;
  display: grid;
  gap: 4px;
}

.sr-topic-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #38729F;
}

.sr-topic-title {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  color: #111;
}

a.sr-topic-card:hover {
  transform: translateY(-3px);
  transition: transform .15s;
}

@media (max-width: 980px) {
  .sr-hero { grid-template-columns: 1fr; margin: 0; }
  .sr-topics-panel { display: none; }
}

@media (max-width: 700px) {
  .sr-hero-outer { padding: 2rem 1rem; }
  .sr-hero h1 { font-size: 34px; margin: 0 0 10px; }
  .sr-subcopy { font-size: 16px; line-height: 1.5; margin: 0 0 12px; }
  .sr-bullets { gap: 8px; margin: 12px 0 0; font-size: 16px; }
  .sr-hero-ctas { width: 100%; }
  .sr-btn-cta { width: 100%; text-align: center; }
  .sr-topic-stack { flex-direction: column; gap: 12px; }
  .sr-topic-card { width: 100% !important; transform: none; margin: 0; }
}

/* =========================================================
   PAGE WRAPPERS
   ========================================================= */
.page-bg { background: var(--bg-gray); padding: 2.5rem 0 4rem; }
.page-white { background: #fff; padding: 2.5rem 0 4rem; }
.page-inner { padding: 3rem 0; }

/* =========================================================
   CATEGORY PAGE â€” description + sub-category nav
   ========================================================= */
.cat-description {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 680px;
}

.subcat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.subcat-nav a {
  display: inline-flex;
  align-items: center;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.subcat-nav a:hover {
  background: var(--primary);
  color: #fff;
}

.subcat-breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.subcat-breadcrumb a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }

/* =========================================================
   SINGLE POST â€” sidebar layout override
   ========================================================= */
.single-main { min-width: 0; }
.single-main .article-detail { max-width: 100%; }

/* =========================================================
   SEARCH AUTOCOMPLETE
   ========================================================= */
.search-bar .container { position: relative; }

.search-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 1.5rem;
  right: 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  z-index: 300;
  overflow: hidden;
  max-height: 320px;
  overflow-y: auto;
}

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

.search-suggestions li a {
  display: block;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.search-suggestions li:last-child a { border-bottom: none; }
.search-suggestions li a:hover,
.search-suggestions li[aria-selected="true"] a {
  background: var(--primary-light);
  color: var(--primary);
}

/* =========================================================
   SHARE WIDGET
   ========================================================= */
.article-with-share {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.article-content-wrap {
  flex: 1;
  min-width: 0;
}

.share-widget {
  position: sticky;
  top: 100px;
  flex-shrink: 0;
  width: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.25rem;
}

.share-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.1rem;
}

.share-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--foreground);
  transition: background 0.2s, color 0.2s, transform 0.15s;
  cursor: pointer;
  position: relative;
  text-decoration: none;
}
.share-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.08);
}
.share-btn svg { width: 17px; height: 17px; }

.copy-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--foreground);
  color: #fff;
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
}
.share-btn.copied .copy-tooltip { display: block; }

@media (max-width: 768px) {
  .article-with-share {
    flex-direction: column;
  }
  .article-content-wrap {
    width: 100%;
  }
  .share-widget {
    position: static;
    flex-direction: row;
    width: auto;
    padding-top: 0;
    margin-bottom: 0.5rem;
  }
  .share-label { margin-bottom: 0; }
}

/* â”€â”€ Guest author box â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.author-box {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  margin: 2rem 0;
  background: var(--surface, #f9f9f9);
  border-radius: 8px;
  border: 1px solid var(--border, #e5e5e5);
}
.author-box img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.author-box-info { flex: 1; }
.author-box-name { display: block; font-size: 1rem; font-weight: 700; margin-bottom: 0.15rem; }
.author-box-title { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 0.5rem; }
.author-box-info p { font-size: 0.9rem; margin: 0; line-height: 1.6; color: var(--foreground); }
@media (max-width: 600px) {
  .author-box { flex-direction: column; align-items: center; text-align: center; }
}

/* â”€â”€ Author profile page (single-sr_author.php) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sr-author-profile { padding: 3rem 0 2rem; }
.sr-author-profile__header { display: flex; gap: 2rem; align-items: flex-start; }
.sr-author-profile__photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.sr-author-profile__name { font-size: 1.75rem; margin: 0 0 0.25rem; }
.sr-author-profile__title { font-size: 0.9rem; color: var(--muted); margin: 0 0 1rem; }
.sr-author-profile__bio { font-size: 0.95rem; line-height: 1.7; color: var(--foreground); }
@media (max-width: 540px) {
  .sr-author-profile__header { flex-direction: column; align-items: center; text-align: center; }
}


/* =========================================================
   RESTORED STEADYRETIRE ARTICLE STYLES â€” JULY 2026
   ========================================================= */

.article-body {
  line-height: 1.65;
}

.article-body li {
  margin-bottom: 0.55rem;
  line-height: 1.55;
}

/* =========================================================
   KEY TAKEAWAY STYLING
   ========================================================= */
/* Automatically style the opening Key Takeaways paragraph */
.article-body > p:first-of-type:has(+ ul.wp-block-list),
.article-body > p:first-of-type:has(+ ol.wp-block-list) {
  margin: 1.5rem 0 0 !important;
  padding: 1.15rem 1.35rem 0.7rem;

  background: #f7fbfc;
  border: 1px solid rgba(35, 107, 154, 0.18);
  border-bottom: 0;
  border-left: 4px solid #63c9df;
  border-radius: 10px 10px 0 0;

  color: var(--foreground);
  font-weight: 700;
}

/* Style the Gutenberg list immediately after it */
.article-body > p:first-of-type + ul.wp-block-list,
.article-body > p:first-of-type + ol.wp-block-list {
  margin: 0 0 1.75rem !important;
  padding: 0.15rem 1.35rem 1rem 2.75rem;

  background: #f7fbfc;
  border: 1px solid rgba(35, 107, 154, 0.18);
  border-top: 0;
  border-left: 4px solid #63c9df;
  border-radius: 0 0 10px 10px;
}

.article-body > p:first-of-type + ul.wp-block-list li:last-child,
.article-body > p:first-of-type + ol.wp-block-list li:last-child {
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .article-body > p:first-of-type:has(+ ul.wp-block-list),
  .article-body > p:first-of-type:has(+ ol.wp-block-list) {
    padding: 1rem 1rem 0.65rem;
  }

  .article-body > p:first-of-type + ul.wp-block-list,
  .article-body > p:first-of-type + ol.wp-block-list {
    padding: 0.1rem 1rem 0.85rem 2.3rem;
  }
}

@media (max-width: 768px) {
  .article-with-share {
    display: block;
  }

  .article-content-wrap {
    width: 100%;
  }

  .share-widget {
    display: none !important;
  }
}

/* Hide article counts for parent categories that contain subcategories */
.cat-list > li:has(> .subcat-list) > a .cat-count {
  display: none;
}

@media (max-width: 768px) {
  .article-header {
    margin-bottom: 1.25rem;
  }

  .article-cats {
    margin-bottom: 0.75rem;
  }

  .article-title {
    font-size: 1.65rem;
    line-height: 1.15;
    margin-bottom: 0.85rem;
  }

  .article-byline {
    margin-bottom: 1rem;
    gap: 0.65rem;
  }

  .article-byline img {
    width: 42px;
    height: 42px;
  }

  .article-hero {
    margin-bottom: 1.5rem;
  }
}

/* =========================================================
   ARTICLE REFERENCE DROPDOWNS
   ========================================================= */

/* =========================================================
   ARTICLE REFERENCE DROPDOWNS
   ========================================================= */

.sr-reference-dropdown {
  margin: 0;
  padding: 0;

  background: transparent;
  border: 0;
  border-top: 1px solid #d8e0e5;
  border-radius: 0;
  box-shadow: none;
}

.sr-reference-dropdown:last-of-type {
  border-bottom: 1px solid #d8e0e5;
}

.sr-reference-dropdown__summary {
  position: relative;
  display: block;
  padding: 1.15rem 3rem 1.15rem 0.15rem;

  color: var(--foreground);
  background: transparent;

  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;

  cursor: pointer;
  list-style: none;
  user-select: none;

  transition:
    color 160ms ease,
    background-color 160ms ease;
}

/* Remove the browserâ€™s default disclosure triangle */
.sr-reference-dropdown__summary::-webkit-details-marker {
  display: none;
}

.sr-reference-dropdown__summary::marker {
  content: "";
}

/* Minimal chevron */
.sr-reference-dropdown__summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.35rem;

  width: 10px;
  height: 10px;

  border-right: 2px solid #205f87;
  border-bottom: 2px solid #205f87;

  transform: translateY(-65%) rotate(45deg);
  transform-origin: center;
  transition: transform 180ms ease;
}

.sr-reference-dropdown[open]
  > .sr-reference-dropdown__summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.sr-reference-dropdown__summary:hover {
  color: #205f87;
}

.sr-reference-dropdown__summary:focus-visible {
  color: #205f87;
  outline: 2px solid rgba(99, 201, 223, 0.45);
  outline-offset: 3px;
}

.sr-reference-dropdown__content {
  padding: 0.1rem 0.15rem 1.35rem;
  color: #374151;
}

.sr-reference-dropdown__content > :first-child {
  margin-top: 0 !important;
}

.sr-reference-dropdown__content > :last-child {
  margin-bottom: 0 !important;
}

/* Slightly tighter lists inside Glossary and Sources */
.sr-reference-dropdown__content ul,
.sr-reference-dropdown__content ol {
  margin-bottom: 0.25rem;
}

.sr-reference-dropdown__content li {
  margin-bottom: 0.55rem;
}

/* Remove dropdown animation for visitors who disable motion */
@media (prefers-reduced-motion: reduce) {
  .sr-reference-dropdown__summary,
  .sr-reference-dropdown__summary::after {
    transition: none;
  }
}

@media (max-width: 700px) {
  .sr-reference-dropdown__summary {
    padding: 1rem 2.5rem 1rem 0.1rem;
    font-size: 1rem;
  }

  .sr-reference-dropdown__summary::after {
    right: 0.3rem;
    width: 9px;
    height: 9px;
  }

  .sr-reference-dropdown__content {
    padding: 0.1rem 0.1rem 1.15rem;
  }
}

/* Each FAQ question is its own disclosure row. */
.sr-faq-accordion {
  margin: 2.75rem 0 0;
}

.article-body .sr-faq-accordion__title {
  margin-top: 0;
}

.sr-faq-item {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-top: 1px solid #d8e0e5;
}

.sr-faq-item:last-child {
  border-bottom: 1px solid #d8e0e5;
}

.sr-faq-item__summary {
  position: relative;
  display: block;
  padding: 1.15rem 3rem 1.15rem 0.15rem;
  color: var(--foreground);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 160ms ease;
}

.sr-faq-item__summary::-webkit-details-marker {
  display: none;
}

.sr-faq-item__summary::marker {
  content: "";
}

.sr-faq-item__summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.35rem;
  width: 10px;
  height: 10px;
  border-right: 2px solid #205f87;
  border-bottom: 2px solid #205f87;
  transform: translateY(-65%) rotate(45deg);
  transform-origin: center;
  transition: transform 180ms ease;
}

.sr-faq-item[open] > .sr-faq-item__summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.sr-faq-item__summary:hover {
  color: #205f87;
}

.sr-faq-item__summary:focus-visible {
  color: #205f87;
  outline: 2px solid rgba(99, 201, 223, 0.45);
  outline-offset: 3px;
}

.sr-faq-item__content {
  padding: 0.1rem 0.15rem 1.35rem;
  color: #374151;
}

.sr-faq-item__content > :first-child {
  margin-top: 0 !important;
}

.sr-faq-item__content > :last-child {
  margin-bottom: 0 !important;
}

@media (max-width: 700px) {
  .sr-faq-accordion {
    margin-top: 2.25rem;
  }

  .sr-faq-item__summary {
    padding: 1rem 2.5rem 1rem 0.1rem;
    font-size: 0.96rem;
  }

  .sr-faq-item__content {
    padding: 0.1rem 0.1rem 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sr-faq-item__summary,
  .sr-faq-item__summary::after {
    transition: none;
  }
}

/* =========================================================
   IN THIS ARTICLE NAVIGATION
   ========================================================= */

.sr-article-toc[hidden] {
  display: none !important;
}

.article-body > h2[id] {
  scroll-margin-top: 120px;
}

.sr-article-toc__list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sr-article-toc__item {
  margin: 0;
}

.sr-article-toc__link {
  display: block;
  padding: 0.48rem 0.65rem;
  color: #526570;
  border-left: 3px solid transparent;
  border-radius: 0 6px 6px 0;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.sr-article-toc__link:hover {
  color: #205f87;
  background: #f1f8fa;
}

.sr-article-toc__link.is-active {
  color: #205f87;
  background: #edf7f9;
  border-left-color: #63c9df;
  font-weight: 650;
}

.sr-article-toc--desktop {
  display: none;
}

.sr-article-toc--mobile {
  display: none;
}

@media (min-width: 1025px) {
  .sr-article-toc--desktop {
    position: sticky;
    top: 96px;
    z-index: 5;
    display: block;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .sidebar-widget .sr-article-toc__title {
    margin-bottom: 0.75rem;
  }
}

@media (max-width: 1024px) {
  .sr-article-toc--mobile {
    display: block;
    margin: 0 0 1.25rem;
    background: #f7fbfc;
    border: 1px solid #d8e6eb;
    border-radius: 9px;
  }

  .sr-article-toc__mobile-summary {
    position: relative;
    display: block;
    padding: 0.82rem 2.75rem 0.82rem 1rem;
    color: #205f87;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
    list-style: none;
  }

  .sr-article-toc__mobile-summary::-webkit-details-marker {
    display: none;
  }

  .sr-article-toc__mobile-summary::marker {
    content: "";
  }

  .sr-article-toc__mobile-summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 1rem;
    width: 8px;
    height: 8px;
    border-right: 2px solid #2b7fa5;
    border-bottom: 2px solid #2b7fa5;
    transform: translateY(-65%) rotate(45deg);
    transition: transform 180ms ease;
  }

  .sr-article-toc--mobile[open] > .sr-article-toc__mobile-summary::after {
    transform: translateY(-30%) rotate(225deg);
  }

  .sr-article-toc--mobile .sr-article-toc__nav {
    padding: 0 0.75rem 0.8rem;
    border-top: 1px solid #e1ebef;
  }

  .sr-article-toc--mobile .sr-article-toc__list {
    padding-top: 0.55rem;
  }

  .sr-article-toc--mobile .sr-article-toc__link {
    padding: 0.48rem 0.6rem;
    font-size: 0.82rem;
  }
}

/* =========================================================
   ARTICLE BREADCRUMBS
   ========================================================= */

.sr-breadcrumbs {
  width: 100%;
  margin: 0 0 1.25rem;
}

.sr-breadcrumbs__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;

  margin: 0;
  padding: 0;

  list-style: none;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.4;
}

.sr-breadcrumbs__item {
  display: flex;
  align-items: center;
  min-width: 0;
  margin: 0;
}

.sr-breadcrumbs__item:not(:last-child)::after {
  content: "›";
  margin: 0 0.55rem;
  color: #9aa8b2;
  font-size: 1rem;
  font-weight: 400;
}

.sr-breadcrumbs a {
  color: #2b7fa5;
  text-decoration: none;
  text-underline-offset: 3px;
}

.sr-breadcrumbs a:hover {
  color: #205f87;
  text-decoration: underline;
}

.sr-breadcrumbs__current {
  color: #647481;
  font-weight: 500;
}

@media (max-width: 700px) {
  .sr-breadcrumbs {
    margin-bottom: 0.85rem;
    overflow: hidden;
  }

  .sr-breadcrumbs__list {
    flex-wrap: nowrap;
    font-size: 0.7rem;
  }

  .sr-breadcrumbs__item {
    flex: 0 0 auto;
  }

  .sr-breadcrumbs__current {
    flex: 1 1 auto;
    overflow: hidden;
  }

  .sr-breadcrumbs__current span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sr-breadcrumbs__item:not(:last-child)::after {
    margin: 0 0.4rem;
  }
}

/* =========================================================
   Highlighting H2's
   ========================================================= */

.article-body h2 {
  position: relative;
  margin: 2.75rem 0 1rem;
  padding-left: 0.85rem;

  font-size: 1.55rem;
  line-height: 1.25;
}

.article-body h2::before {
  content: "";
  position: absolute;
  top: 0.12em;
  bottom: 0.12em;
  left: 0;

  width: 4px;
  background: #36a9b8;
  border-radius: 999px;
}

@media (max-width: 700px) {
  .article-body h2 {
    margin-top: 2.25rem;
    padding-left: 0.7rem;
    font-size: 1.35rem;
  }

  .article-body h2::before {
    width: 3px;
  }
}

/* =========================================================
   ARTICLE DISCLAIMER
   ========================================================= */

.article-disclaimer {
  margin: 2rem 0 0;
  padding: 1rem 1.15rem;

  color: #526570;
  background: #f7f9fa;
  border: 1px solid #dce4e8;
  border-left: 4px solid #9aabb5;
  border-radius: 8px;

  font-family: inherit;
  font-size: 0.84rem;
  line-height: 1.55;
}

.article-disclaimer__title {
  display: block;
  margin-bottom: 0.35rem;

  color: #334955;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.article-disclaimer p {
  margin: 0 !important;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

@media (max-width: 700px) {
  .article-disclaimer {
    margin-top: 1.5rem;
    padding: 0.9rem 1rem;
    font-size: 0.82rem;
  }
}

/* =========================================================
   ARTICLE SIDEBAR REFINEMENT
   ========================================================= */

/*
 * Give the desktop TOC the entire article-height sidebar rail.
 * This prevents it from stopping at the Newsletter widget.
 */
@media (min-width: 1025px) {
  .single-post .sidebar {
    align-self: stretch;
  }

  /* The TOC replaces the other sidebar widgets on article pages. */
  .single-post .sr-sidebar-secondary {
    display: none;
  }

  /*
   * Integrate the TOC into the page instead of presenting it
   * as another large floating card.
   */
  .single-post .sr-article-toc--desktop {
    top: 92px;
    padding: 1rem 0;
    background: transparent;
    border-top: 1px solid #d8e0e5;
    border-bottom: 1px solid #d8e0e5;
    border-radius: 0;
    box-shadow: none;
  }

  .single-post
    .sidebar-widget
    .sr-article-toc__title {
    margin: 0 0 0.65rem;
    padding: 0 0.7rem 0.7rem;

    border-bottom: 1px solid #e2e8ec;

    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #526570;
  }

  .single-post .sr-article-toc__link {
    padding: 0.48rem 0.7rem;
    border-left-width: 3px;
    border-radius: 0 6px 6px 0;
    font-size: 0.8rem;
  }
}


/* =========================================================
   GLOSSARY AND SOURCES CARDS
   ========================================================= */

.sr-reference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1rem;

  margin: 2.75rem 0 0;
}

.sr-reference-grid .sr-reference-dropdown {
  width: 100%;
  margin: 0;
  overflow: hidden;

  background: #ffffff;
  border: 1px solid #d9e2e7;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(24, 82, 116, 0.05);
}

/* Override the old dropdown border rules. */
.sr-reference-grid .sr-reference-dropdown:last-of-type {
  border-bottom: 1px solid #d9e2e7;
}

.sr-reference-grid .sr-reference-dropdown__summary {
  position: relative;
  display: block;

  min-height: 112px;
  padding: 1.15rem 3rem 1.15rem 1.15rem;

  background: #ffffff;
  color: #263f4d;
}

.sr-reference-card__title {
  display: block;
  margin-bottom: 0.35rem;

  color: #205f87;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.sr-reference-card__description {
  display: block;
  max-width: 240px;

  color: #687b86;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.45;
}

.sr-reference-grid
  .sr-reference-dropdown__summary::after {
  right: 1.15rem;
  width: 8px;
  height: 8px;
}

.sr-reference-grid
  .sr-reference-dropdown__summary:hover {
  background: #f8fbfc;
}

.sr-reference-grid
  .sr-reference-dropdown__content {
  padding: 0 1.15rem 1.15rem;

  color: #405663;
  border-top: 1px solid #e4eaed;
  font-size: 0.88rem;
  line-height: 1.6;
}

.sr-reference-grid
  .sr-reference-dropdown__content
  > :first-child {
  margin-top: 1rem !important;
}

@media (max-width: 700px) {
  .sr-reference-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 2.25rem;
  }

  .sr-reference-grid
    .sr-reference-dropdown__summary {
    min-height: 0;
    padding: 1rem 2.75rem 1rem 1rem;
  }

  .sr-reference-card__description {
    max-width: none;
  }

  .sr-reference-grid
    .sr-reference-dropdown__content {
    padding: 0 1rem 1rem;
  }
}