/*
Theme Name: Grey Smiles Editorial
Author: ThinkStart Private Limited
Author URI: https://thinkstartpl.com/
Copyright: Copyright (c) 2026 ThinkStart Private Limited
Description: A fast, accessible editorial WordPress theme for retirement, finance, legal, health, and lifestyle publishers. Includes flexible article layouts and four interactive planning calculators.
Version: 2.0.6
Requires at least: 6.6
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: grey-smiles
Tags: blog, news, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks
*/

:root {
  --gs-primary: #123466;
  --gs-utility: #081c3a;
  --gs-accent: #da7707;
  --gs-success: #059467;
  --gs-danger: #e63746;
  --gs-ink: #1d283a;
  --gs-muted: #64748b;
  --gs-border: #e1e7ef;
  --gs-surface: #ffffff;
  --gs-background: #f8fafc;
  --gs-container: 1152px;
  --gs-radius: 6px;
  --gs-shadow: 0 1px 3px rgba(8, 28, 58, .1);
  --gs-font-body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gs-font-heading: "Be Vietnam Pro", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--gs-background);
  color: var(--gs-ink);
  font-family: var(--gs-font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
body.admin-bar .site-nav { top: 32px; }
body.admin-bar .site-nav--static { top: auto; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gs-accent); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--gs-primary);
  font-family: var(--gs-font-heading);
  line-height: 1.25;
}
p { margin-top: 0; }
:focus-visible { outline: 3px solid var(--gs-accent); outline-offset: 3px; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  z-index: 100000; top: 8px; left: 8px; width: auto; height: auto;
  padding: 12px 16px; clip: auto; background: #fff; color: var(--gs-primary);
  font-weight: 700; box-shadow: var(--gs-shadow);
}
.gs-container { width: min(calc(100% - 32px), var(--gs-container)); margin-inline: auto; }
.site-main { min-height: 55vh; }

/* Header */
.utility-bar { display: block; padding: 6px 0; background: var(--gs-utility); color: #94a3b8; font-size: 12px; border-bottom: 1px solid rgba(255,255,255,.1); }
.utility-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px; }
.utility-location-date { flex: 0 0 auto; }
.utility-links { display: flex; align-items: center; gap: 10px; }
.utility-links a:hover { color: #fff; }
.main-header { padding: 16px 0; background: #fff; border-bottom: 1px solid var(--gs-border); }
.main-header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.site-branding { flex: 0 0 auto; }
.custom-logo-link, .default-logo-link { display: inline-flex; align-items: center; }
.custom-logo { width: auto; max-height: 52px; }
.default-logo { width: 170px; height: auto; }
.site-title-text { color: var(--gs-primary); font: 800 26px/1 var(--gs-font-heading); }
.header-ad {
  display: flex; flex: 1 1 420px; align-items: center; justify-content: center; width: auto; max-width: 728px; min-height: 90px;
  padding: 12px; background: #f8fafc; color: #64748b; border: 1px dashed #cbd5e1;
  border-radius: var(--gs-radius); text-align: center; font-size: 14px; font-weight: 600;
}
.header-search { flex: 0 1 360px; margin-left: auto; }
.header-search-form { display: flex; min-height: 44px; overflow: hidden; background: #fff; border: 1px solid #b8c4d3; border-radius: 5px; box-shadow: 0 1px 2px rgba(8,28,58,.06); }
.header-search-form:focus-within { border-color: var(--gs-accent); box-shadow: 0 0 0 3px rgba(218,119,7,.16); }
.header-search-form input[type="search"] { min-width: 0; flex: 1; padding: 9px 13px; color: var(--gs-ink); background: transparent; border: 0; outline: 0; }
.header-search-form input[type="search"]::placeholder { color: #6b7788; opacity: 1; }
.header-search-form button { position: relative; display: grid; width: 48px; flex: 0 0 48px; place-items: center; padding: 0; color: #fff; background: var(--gs-primary); border: 0; }
.header-search-form button:hover { background: var(--gs-accent); }
.header-search-icon { position: relative; display: block; width: 15px; height: 15px; border: 2px solid currentColor; border-radius: 50%; }
.header-search-icon::after { content: ""; position: absolute; width: 7px; border-top: 2px solid currentColor; right: -6px; bottom: -3px; transform: rotate(45deg); transform-origin: left center; }
.site-nav { position: sticky; z-index: 1000; top: 0; background: var(--gs-primary); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.site-nav .gs-container { width: min(calc(100% - 32px), 1440px); }
.site-nav--static { position: relative; top: auto; }
.primary-menu { display: flex; width: 100%; align-items: stretch; justify-content: space-between; margin: 0; padding: 0; overflow: visible; list-style: none; }
.primary-menu li { position: relative; min-width: 0; list-style: none; }
.primary-menu > li { display: flex; flex: 1 1 auto; align-items: stretch; }
.primary-menu > li > a { width: 100%; min-height: 50px; white-space: nowrap; }
.primary-menu a { display: flex; align-items: center; justify-content: center; padding: 13px 10px; color: #fff; font-size: clamp(11px, .82vw, 13px); font-weight: 700; letter-spacing: .015em; line-height: 1.25; text-align: center; text-transform: uppercase; }
.primary-menu > .menu-item-has-children > a { padding-right: 30px; }
.primary-menu .current-menu-item > a, .primary-menu .current-menu-ancestor > a, .primary-menu .current_page_item > a { background: rgba(255,255,255,.1); color: var(--gs-accent); }
@media (hover: hover) and (pointer: fine) { .primary-menu a:hover { background: rgba(255,255,255,.1); color: var(--gs-accent); } }
.primary-menu .sub-menu { position: absolute; z-index: 1001; top: 100%; left: 0; display: none; width: max-content; min-width: 260px; max-width: 360px; max-height: calc(100vh - 150px); margin: 0; padding: 8px; overflow-y: auto; background: #fff; border: 1px solid var(--gs-border); border-radius: 0 0 6px 6px; box-shadow: 0 14px 30px rgba(8,28,58,.22); list-style: none; }
.primary-menu > li:nth-last-child(-n+3) > .sub-menu { right: 0; left: auto; }
.primary-menu .sub-menu a { justify-content: flex-start; min-height: 42px; padding: 10px 12px; color: var(--gs-primary); font-size: 13px; line-height: 1.35; text-align: left; text-transform: none; }
.primary-menu .sub-menu .current-menu-item > a { background: #eef3f8; color: var(--gs-accent); }
@media (hover: hover) and (pointer: fine) { .primary-menu .sub-menu a:hover { background: #eef3f8; color: var(--gs-accent); } }
.primary-menu > .menu-item-has-children:hover > .sub-menu, .primary-menu > .submenu-open > .sub-menu { display: block; }
.submenu-toggle { position: absolute; z-index: 2; top: 50%; right: 4px; display: grid; width: 28px; height: 32px; place-items: center; padding: 0; color: #fff; background: transparent; border: 0; border-radius: 4px; transform: translateY(-50%); }
@media (hover: hover) and (pointer: fine) { .submenu-toggle:hover { background: rgba(255,255,255,.12); } }
.submenu-toggle span { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px,-2px); transition: transform .2s ease; }
.submenu-toggle[aria-expanded="true"] span { transform: rotate(225deg) translate(-1px,-1px); }
.menu-toggle { display: none; width: 100%; align-items: center; justify-content: space-between; padding: 12px 0; color: #fff; background: transparent; border: 0; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.menu-icon { position: relative; width: 24px; height: 18px; border-block: 2px solid currentColor; }
.menu-icon::after { content: ""; position: absolute; top: 6px; left: 0; width: 100%; border-top: 2px solid currentColor; }
.menu-toggle[aria-expanded="true"] .menu-icon { border: 0; }
.menu-toggle[aria-expanded="true"] .menu-icon::before,
.menu-toggle[aria-expanded="true"] .menu-icon::after { content: ""; position: absolute; top: 8px; left: 0; width: 24px; border-top: 2px solid currentColor; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: rotate(-45deg); }

/* Shared components */
.section-title { margin-bottom: 24px; padding-left: 12px; border-left: 4px solid var(--gs-accent); font-size: clamp(21px, 2.2vw, 26px); font-weight: 800; text-transform: uppercase; }
.badge { display: inline-flex; align-items: center; width: fit-content; margin-bottom: 8px; padding: 4px 9px; color: #fff; background: var(--gs-primary); border-radius: 4px; font-size: 12px; font-weight: 800; letter-spacing: .025em; text-transform: uppercase; }
.badge--green { background: var(--gs-success); }
.badge--red { background: var(--gs-danger); }
.meta-line { color: #64748b; font-size: 13px; }
.button, input[type="submit"], .wp-element-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 24px;
  color: #fff; background: var(--gs-accent); border: 0; border-radius: 4px; font-weight: 800;
  transition: filter .2s ease, transform .2s ease;
}
.button:hover, input[type="submit"]:hover, .wp-element-button:hover { color: #fff; filter: brightness(.93); transform: translateY(-1px); }
.button--secondary { background: var(--gs-primary); }
.card { background: #fff; border: 1px solid var(--gs-border); border-radius: var(--gs-radius); box-shadow: var(--gs-shadow); }

/* Home */
.home-content { padding: 32px 0 0; }
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; margin-bottom: 48px; }
.hero-story {
  position: relative; display: flex; min-height: 416px; align-items: flex-end; overflow: hidden;
  padding: 24px; background: var(--gs-primary); border-radius: 7px; color: #fff;
}
.hero-story-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-story::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, rgba(8,28,58,.18), rgba(8,28,58,.9)); pointer-events: none; }
.hero-story::after { content: ""; position: absolute; z-index: 1; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.12), transparent 42%); pointer-events: none; }
.hero-story-content { position: relative; z-index: 2; max-width: 780px; }
.hero-story h1 { margin: 8px 0 12px; color: #fff; font-size: clamp(31px, 3.1vw, 43px); font-weight: 800; }
.hero-story:hover h1 { color: var(--gs-accent); }
.hero-story .meta-line { color: rgba(255,255,255,.72); font-size: 14px; }
.hero-side { display: grid; gap: 24px; }
.hero-side-card { display: flex; min-height: 196px; flex-direction: column; justify-content: space-between; padding: 20px; }
.hero-side-card h3 { font-size: 19px; }
.hero-side-card:hover { box-shadow: 0 6px 16px rgba(8,28,58,.1); }
.strategy-section { margin-bottom: 48px; }
.strategy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.strategy-card { min-height: 206px; padding: 20px; }
.strategy-card h3 { margin-bottom: 10px; font-size: 19px; }
.strategy-card p { color: #64748b; }
.newsletter-cta { position: relative; overflow: hidden; margin-bottom: 48px; padding: 48px 32px; background: var(--gs-primary); border-radius: 7px; color: #fff; text-align: center; box-shadow: 0 10px 22px rgba(8,28,58,.13); }
.newsletter-cta::before, .newsletter-cta::after { content: ""; position: absolute; width: 210px; height: 210px; background: rgba(255,255,255,.035); border-radius: 50%; }
.newsletter-cta::before { top: -100px; left: -80px; }
.newsletter-cta::after { right: -80px; bottom: -120px; }
.newsletter-cta > * { position: relative; z-index: 1; }
.newsletter-cta h2 { margin-bottom: 12px; color: #fff; font-size: clamp(26px, 3vw, 34px); }
.newsletter-cta p { max-width: 680px; margin: 0 auto 24px; color: #cbd5e1; }
.signup-form { display: flex; max-width: 620px; margin: 0 auto; gap: 14px; justify-content: center; }
.signup-form label { flex: 1; }
.signup-form input[type="email"] { width: 100%; min-height: 48px; padding: 11px 15px; color: var(--gs-ink); background: #fff; border: 1px solid #cbd5e1; border-radius: 4px; }
.form-notice { max-width: 620px; margin: 14px auto 0; padding: 8px 12px; border-radius: 4px; font-size: 14px; }
.form-notice--success { background: rgba(5,148,103,.25); }
.form-notice--error { background: rgba(230,55,70,.25); }
.hp-field { position: absolute !important; left: -9999px !important; }
.newsletter-cta--compact { margin-bottom: 24px; padding: 26px 20px; }
.newsletter-cta--compact h2 { font-size: 21px; }
.newsletter-cta--compact p { margin-bottom: 18px; font-size: 14px; }
.newsletter-cta--compact .signup-form { flex-direction: column; gap: 10px; }
.newsletter-cta--compact .button { width: 100%; }
.content-sidebar-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(270px, 1fr); gap: 32px; }
.content-sidebar-grid > *, .single-grid > * { min-width: 0; }
.content-sidebar-grid--single, .single-grid--single { grid-template-columns: minmax(0, 1fr); }
.latest-list { display: grid; gap: 16px; }
.latest-card { display: grid; grid-template-columns: 144px 1fr; gap: 16px; min-height: 132px; padding: 16px; }
.latest-card--no-image { grid-template-columns: 1fr; }
.latest-card-image { overflow: hidden; min-height: 96px; background: #e2e8f0; border-radius: 4px; }
.latest-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.latest-card:hover img { transform: scale(1.045); }
.latest-card h4 { margin-bottom: 5px; font-size: 17px; }
.latest-card p { margin: 0; color: #64748b; font-size: 14px; line-height: 1.4; }
.sidebar-stack { display: grid; align-content: start; gap: 24px; }
.sidebar-box { padding: 20px; }
.sidebar-box h3 { margin-bottom: 16px; padding-bottom: 9px; border-bottom: 2px solid var(--gs-border); font-size: 16px; text-transform: uppercase; }
.sidebar-box .wp-block-paragraph { font-size: 15px !important; line-height: 1.65 !important; }
.sidebar-box .wp-block-paragraph.mt-0 { display: -webkit-box; overflow: hidden; font-size: 15px !important; line-height: 1.65 !important; text-align: left !important; -webkit-box-orient: vertical; -webkit-line-clamp: 10; }
.trending-list { margin: 0; padding: 0; counter-reset: trending; list-style: none; }
.trending-list li { position: relative; min-height: 34px; margin-bottom: 12px; padding-left: 36px; font-size: 14px; font-weight: 700; line-height: 1.35; }
.trending-list li::before { counter-increment: trending; content: counter(trending); position: absolute; left: 0; top: 0; display: grid; width: 24px; height: 24px; place-items: center; background: #f1f5f9; border-radius: 50%; color: var(--gs-primary); font-size: 12px; }
.tool-links { display: grid; gap: 9px; }
.tool-links a { padding: 10px; background: #f8fafc; border: 1px solid var(--gs-border); border-radius: 4px; color: var(--gs-primary); text-align: center; font-size: 14px; font-weight: 700; }
.tool-links a:hover { background: var(--gs-primary); color: #fff; }

/* Archives */
.archive-wrap, .page-wrap, .single-wrap, .search-wrap { padding-top: 32px; }
.page-header { margin-bottom: 32px; padding-bottom: 30px; border-bottom: 1px solid var(--gs-border); }
.page-header h1 { margin-bottom: 10px; font-size: clamp(34px, 4vw, 42px); }
.page-header p { max-width: 780px; margin: 0; color: #64748b; font-size: 18px; }
.archive-featured { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; margin-bottom: 40px; }
.archive-card { overflow: hidden; }
.archive-card-image { aspect-ratio: 16 / 9; overflow: hidden; background: #dfe7f0; }
.archive-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.archive-card:hover img { transform: scale(1.04); }
.archive-card-body { padding: 18px; }
.pinned-article-label { display: inline-flex; align-items: center; margin: 0 7px 8px 0; padding: 4px 9px; color: #7c3f00; background: #fff1db; border: 1px solid #f2c47e; border-radius: 4px; font-size: 12px; font-weight: 800; letter-spacing: .025em; text-transform: uppercase; }
.archive-card h2, .archive-card h3 { margin-bottom: 10px; font-size: 20px; }
.archive-card p { color: #64748b; }
.pagination { margin-top: 32px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { display: grid; min-width: 40px; height: 40px; place-items: center; padding: 0 12px; background: #fff; border: 1px solid var(--gs-border); border-radius: 4px; }
.page-numbers.current { background: var(--gs-primary); color: #fff; }

/* Single and page content */
.breadcrumbs { margin-bottom: 20px; color: #64748b; font-size: 14px; }
.breadcrumbs a:hover { color: var(--gs-accent); }
.single-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 32px; }
.single-grid article, .single-grid aside, .single-header, .single-byline, .entry-content, .entry-footer, .related-section, .author-box, .comments-area { min-width: 0; max-width: 100%; }
.single-header h1 { margin: 14px 0 18px; font-size: clamp(35px, 4.2vw, 48px); }
.single-deck { margin-bottom: 18px; color: #64748b; font-size: 19px; }
.single-byline { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; padding-block: 14px; border-block: 1px solid var(--gs-border); color: #64748b; font-size: 14px; }
.single-byline strong { color: #475569; }
.single-hero { overflow: hidden; margin-bottom: 28px; background: #dfe7f0; border-radius: 7px; }
.single-hero img { width: 100%; height: auto; object-fit: contain; }
.entry-content { color: #334155; font-size: 17px; line-height: 1.75; overflow-wrap: anywhere; }
.entry-content > * { min-width: 0; max-width: 100%; }
.entry-content p, .entry-content ul, .entry-content ol, .entry-content blockquote { margin: 0 0 1.35em; }
.entry-content h2 { margin: 1.65em 0 .65em; font-size: 28px; }
.entry-content h3 { margin: 1.4em 0 .55em; font-size: 22px; }
.entry-content ul, .entry-content ol { padding-left: 1.5em; }
.entry-content a { color: #075ea8; text-decoration: underline; }
.entry-content blockquote { padding: 18px 24px; background: #fff; border-left: 4px solid var(--gs-accent); }
.entry-content table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--gs-border); }
.entry-content pre { overflow-x: auto; padding: 18px; background: var(--gs-utility); color: #fff; border-radius: 4px; }
.entry-content iframe, .entry-content embed, .entry-content object, .entry-content video, .entry-content canvas, .entry-content svg { max-width: 100%; }
.entry-footer { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--gs-border); color: #64748b; font-size: 14px; }
.related-section { margin-top: 48px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.related-grid .archive-card h3 { font-size: 17px; }
.comments-area { margin-top: 48px; }
.comment-list { padding-left: 0; list-style: none; }
.comment-body { margin-bottom: 20px; padding: 20px; background: #fff; border: 1px solid var(--gs-border); border-radius: 5px; }
.comment-form input:not([type="submit"]), .comment-form textarea { width: 100%; padding: 10px 12px; background: #fff; border: 1px solid #cbd5e1; border-radius: 4px; }
.page-article { padding: 28px; background: #fff; border: 1px solid var(--gs-border); border-radius: 6px; }
.page-article .entry-title { margin-bottom: 24px; font-size: clamp(34px,4vw,44px); }
.page-meta { margin: -12px 0 24px; color: var(--gs-muted); font-size: 14px; }

/* Authors */
.author-box { display: grid; grid-template-columns: auto 1fr; gap: 22px; margin-top: 36px; padding: 24px; }
.author-box h2 { margin: 2px 0 4px; font-size: 23px; }
.author-box p:last-child { margin-bottom: 0; }
.author-avatar img, .author-profile-avatar img { border-radius: 50%; }
.author-box-label { margin-bottom: 2px; color: var(--gs-accent); font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.author-role { margin-bottom: 10px; color: var(--gs-muted); font-weight: 700; }
.author-social-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.author-social-links a { display: inline-flex; padding: 6px 10px; background: #eef2f7; border-radius: 4px; color: var(--gs-primary); font-size: 13px; font-weight: 700; }
.author-profile { display: grid; grid-template-columns: auto 1fr; gap: 28px; margin-bottom: 42px; padding: 30px; }
.author-profile h1 { margin: 4px 0 6px; font-size: clamp(34px, 4vw, 46px); }
.author-profile .author-bio { max-width: 760px; }

/* Contact */
.contact-shell { max-width: var(--gs-container); padding-bottom: 64px; }
.contact-hero { position: relative; overflow: hidden; margin-bottom: 26px; padding: clamp(34px,5vw,54px); background: linear-gradient(135deg, #0c2b56, var(--gs-primary) 64%, #165d72); border-radius: 18px; color: #fff; box-shadow: 0 16px 34px rgba(18,52,102,.16); }
.contact-hero::before, .contact-hero::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; pointer-events: none; }
.contact-hero::before { width: 250px; height: 250px; top: -135px; right: -42px; }
.contact-hero::after { width: 150px; height: 150px; right: 100px; bottom: -108px; }
.contact-hero > * { position: relative; z-index: 1; }
.contact-hero__eyebrow, .about-hero__eyebrow { display: block; margin-bottom: 9px; color: #f6a33a; font-size: 12px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.contact-hero h1 { margin-bottom: 12px; color: #fff; font-size: clamp(36px,5vw,52px); }
.contact-hero p { max-width: 720px; margin: 0; color: #dbe8f5; font-size: clamp(17px,2vw,20px); line-height: 1.65; }
.contact-layout { display: grid; grid-template-columns: minmax(280px,.82fr) minmax(480px,1.18fr); align-items: start; gap: 26px; }
.contact-layout--form-only { display: block; max-width: 820px; margin-inline: auto; }
.contact-page-content { margin: 0; padding: 30px; overflow: hidden; border-radius: 14px; }
.contact-page-content h2 { margin: 0 0 10px; color: var(--gs-primary); font-size: 24px; }
.contact-page-content h2:not(:first-of-type) { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--gs-border); font-size: 20px; }
.contact-page-content p { margin: 0 0 16px; color: var(--gs-muted); font-size: 14px; }
.contact-page-content strong { display: block; margin: 18px 0 5px; color: var(--gs-primary); font-size: 14px; }
.contact-page-content p:has(> strong) { margin-bottom: 5px; }
.contact-page-content strong + p, .contact-page-content p:has(> strong) + p { padding: 0 0 16px 13px; border-bottom: 1px solid #e4ebf2; border-left: 3px solid #d5e2ee; }
.contact-page-content p:last-child { margin-bottom: 0; padding: 14px 15px; background: #edf8f8; border: 1px solid #c8e3e1; border-left: 4px solid #167c80; border-radius: 0 9px 9px 0; color: #194f52; }
.contact-form-panel { overflow: hidden; padding: 30px; border-radius: 14px; box-shadow: 0 12px 30px rgba(18,52,102,.09); }
.contact-form-panel__header { margin: -30px -30px 28px; padding: 25px 30px; background: linear-gradient(180deg, #f5f9fd, #fff); border-bottom: 1px solid #dce6ef; }
.contact-form-panel__header > span { display: block; margin-bottom: 5px; color: var(--gs-accent); font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.contact-form-panel__header h2 { margin-bottom: 6px; font-size: clamp(25px,3vw,31px); }
.contact-form-panel__header p { margin: 0; color: var(--gs-muted); font-size: 14px; }
.contact-form { padding: 0; }
.contact-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.contact-form p { margin: 0 0 18px; }
.contact-form label { display: block; margin-bottom: 7px; color: var(--gs-primary); font-size: 13px; font-weight: 750; }
.contact-form input:not([type="checkbox"]), .contact-form textarea { width: 100%; padding: 12px 14px; background: #fff; border: 1px solid #c8d5e2; border-radius: 8px; color: var(--gs-ink); transition: border-color .2s ease, box-shadow .2s ease; }
.contact-form input:not([type="checkbox"]) { min-height: 48px; }
.contact-form textarea { min-height: 178px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 0; border-color: #6f96bd; box-shadow: 0 0 0 3px rgba(18,52,102,.1); }
.contact-consent label { display: flex; align-items: flex-start; gap: 9px; color: var(--gs-muted); font-size: 12px; font-weight: 500; }
.contact-consent input { margin-top: 4px; }
.contact-form .button { min-height: 50px; padding-inline: 28px; border-radius: 8px; box-shadow: 0 7px 16px rgba(218,119,7,.2); }
.recaptcha-field { margin: 4px 0 18px; padding: 14px 16px; background: #f7fafc; border: 1px solid #d5e2ee; border-radius: 9px; }
.g-recaptcha { min-height: 78px; overflow-x: auto; }
.recaptcha-active { display: flex; margin: 0 0 8px !important; align-items: center; gap: 8px; color: #176b36; font-size: 13px; }
.recaptcha-active span { display: grid; width: 24px; height: 24px; flex: 0 0 24px; place-items: center; background: #e9f8ef; border-radius: 50%; }
.recaptcha-active strong { font-weight: 750; }
.recaptcha-active.is-pending { color: #7a5517; }
.recaptcha-active.is-pending span { color: #9a650b; background: #fff5d9; }
.recaptcha-active.is-error { color: #9f1239; }
.recaptcha-active.is-error span { color: #9f1239; background: #fff1f2; }
.recaptcha-disclosure { margin: 7px 0 0 !important; color: var(--gs-muted); font-size: 11px; line-height: 1.45; }
.recaptcha-disclosure a { color: #075ea8; text-decoration: underline; }

/* About */
.about-shell { max-width: 1040px; padding-bottom: 68px; }
.about-hero { display: grid; grid-template-columns: minmax(0,1fr) 190px; margin-bottom: 28px; padding: clamp(34px,5vw,54px); align-items: center; gap: 34px; overflow: hidden; background: linear-gradient(135deg, #eef6fb, #fff 62%, #f5fbf8); border: 1px solid #d6e3ed; border-radius: 18px; box-shadow: 0 14px 32px rgba(18,52,102,.08); }
.about-hero h1 { margin-bottom: 14px; font-size: clamp(38px,5vw,54px); }
.about-hero__copy > p { max-width: 720px; margin: 0; color: #506176; font-size: clamp(17px,2vw,20px); line-height: 1.7; }
.about-hero__mark { display: grid; width: 164px; height: 164px; place-items: center; justify-self: end; background: var(--gs-primary); border: 12px solid rgba(255,255,255,.75); border-radius: 50%; box-shadow: 0 12px 28px rgba(18,52,102,.2); }
.about-hero__mark svg { width: 96px; height: 96px; fill: #f4a33f; }
.about-hero__image { overflow: hidden; aspect-ratio: 1; border: 10px solid rgba(255,255,255,.75); border-radius: 50%; box-shadow: 0 12px 28px rgba(18,52,102,.18); }
.about-hero__image img { width: 100%; height: 100%; object-fit: cover; }
.about-story { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 42px; padding: clamp(28px,5vw,52px); border-radius: 16px; box-shadow: 0 12px 30px rgba(18,52,102,.07); }
.about-story__label { align-self: start; padding: 10px 0 10px 14px; color: var(--gs-accent); border-left: 4px solid var(--gs-accent); font-family: var(--gs-font-heading); font-size: 13px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.about-page-content { max-width: 720px; color: #334155; font-size: 17px; line-height: 1.82; }
.about-page-content > div { margin: 0 !important; text-align: left !important; }
.about-page-content h3 { margin: 38px 0 13px; padding-top: 30px; border-top: 1px solid #dde6ef; font-size: clamp(23px,3vw,28px); }
.about-page-content h3:first-child { margin-top: 0; padding: 0 0 18px; border-top: 0; border-bottom: 3px solid var(--gs-accent); font-size: clamp(27px,3.4vw,34px); }
.about-page-content p { margin-bottom: 1.25em !important; }
.about-page-content strong { color: #173f5f; }
.about-page-content p:last-child { margin-bottom: 0 !important; padding: 18px 20px; background: #eef7f7; border-left: 4px solid #167c80; border-radius: 0 9px 9px 0; color: #194f52; }

/* Retirement tools */
.calculators-shell { width: min(calc(100% - 32px), 1040px); margin-inline: auto; padding-top: 32px; }
.calculators-header { position: relative; overflow: hidden; margin-bottom: 18px; padding: clamp(30px,5vw,48px); background: linear-gradient(130deg,#eaf3fb 0,#fff 58%,#fff2df 100%); border: 1px solid #d4e1ec; border-radius: 20px; box-shadow: 0 16px 38px rgba(18,52,102,.08); }
.calculators-header::before, .calculators-header::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.calculators-header::before { width: 88px; height: 88px; top: -34px; left: 48%; background: rgba(22,124,128,.09); }
.calculators-header::after { width: 190px; height: 190px; right: -72px; bottom: -108px; border: 24px solid rgba(218,119,7,.1); }
.calculators-header > * { position: relative; z-index: 1; }
.calculators-header h1 { margin-bottom: 10px; }
.calculators-header p { max-width: 780px; color: #53657c; }
.calculators-eyebrow { display: block; margin-bottom: 8px; color: var(--gs-accent); font-size: 12px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.calculator-tabs-intro { display: none; margin: 0 4px 9px; align-items: center; gap: 8px; color: #65758a; font-size: 13px; }
.calculators-shell.is-tabbed .calculator-tabs-intro { display: flex; }
.calculator-tabs-intro span { width: 8px; height: 8px; flex: 0 0 8px; background: var(--gs-accent); border-radius: 50%; box-shadow: 0 0 0 4px rgba(218,119,7,.12); }
.calculator-tabs { display: none; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 7px; margin: 0 0 18px; padding: 7px; background: #fff; border: 1px solid #d4e0eb; border-radius: 15px; box-shadow: 0 8px 22px rgba(18,52,102,.07); }
.calculators-shell.is-tabbed .calculator-tabs { display: grid; }
.calculator-tab { position: relative; display: inline-flex; min-height: 64px; padding: 11px 14px; align-items: center; justify-content: flex-start; gap: 9px; overflow: hidden; color: var(--gs-primary); background: #f7fafc; border: 1px solid transparent; border-radius: 10px; font-size: 14px; font-weight: 800; line-height: 1.25; text-align: left; transition: color .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease, transform .22s ease; }
.calculator-tab::after { content: ""; position: absolute; height: 3px; right: 13px; bottom: 0; left: 13px; background: var(--gs-accent); border-radius: 3px 3px 0 0; transform: scaleX(0); transform-origin: center; transition: transform .22s ease; }
.calculator-tab span { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; color: var(--gs-primary); background: #e6eef6; border-radius: 9px; font-size: 15px; transition: color .22s ease, background .22s ease, transform .22s ease; }
.calculator-tab:hover { background: #eef4f8; border-color: #d8e3ed; transform: translateY(-1px); }
.calculator-tab:hover span { transform: scale(1.05); }
.calculator-tab:focus-visible { outline: 3px solid rgba(218,119,7,.3); outline-offset: 2px; }
.calculator-tab.is-active { color: #fff; background: linear-gradient(135deg,var(--gs-primary),#1b4d7b); border-color: var(--gs-primary); box-shadow: 0 9px 20px rgba(18,52,102,.2); }
.calculator-tab.is-active::after { transform: scaleX(1); }
.calculator-tab.is-active span { color: #fff; background: rgba(255,255,255,.14); }
.calculator-panel { scroll-margin-top: 110px; }
.calculators-shell.is-tabbed .calculator-panel { display: none; }
.calculators-shell.is-tabbed .calculator-panel.is-active { display: block; animation: calculator-panel-in .38s cubic-bezier(.2,.75,.25,1) both; }
@keyframes calculator-panel-in { from { opacity: 0; transform: translateY(12px) scale(.995); } to { opacity: 1; transform: translateY(0) scale(1); } }
.calculator-card { margin-bottom: 24px; padding: clamp(22px,3vw,32px); border-color: #d7e2ec; border-radius: 18px; box-shadow: 0 14px 34px rgba(18,52,102,.09); }
.calculator-panel-heading { display: flex; margin-bottom: 26px; align-items: flex-start; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--gs-border); }
.calculator-panel-heading h2 { margin: 0 0 5px; font-size: clamp(22px,3vw,28px); }
.calculator-panel-heading p { margin: 0; color: var(--gs-muted); }
.calculator-panel-icon { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; color: #fff; background: linear-gradient(135deg,var(--gs-accent),#ef9d3d); border-radius: 13px; font-size: 21px; font-weight: 850; box-shadow: 0 8px 18px rgba(218,119,7,.22); }
.calculator-grid { display: grid; grid-template-columns: minmax(0,1.04fr) minmax(0,.96fr); gap: 0; overflow: hidden; background: #fbfdff; border: 1px solid #d8e3ed; border-radius: 15px; }
.calculator-fields { display: grid; align-content: start; gap: 17px; padding: clamp(22px,3vw,30px); background: linear-gradient(150deg,#fff,#f8fbfd); border-right: 1px solid #d8e3ed; }
.calculator-section-title { margin: 0 0 2px; color: var(--gs-primary); font-size: 15px; letter-spacing: .02em; }
.calculator-fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.calculator-field label { display: block; margin-bottom: 6px; color: #415268; font-size: 13px; font-weight: 750; }
.calculator-field input:not([type="range"]), .calculator-field select { width: 100%; min-height: 47px; padding: 9px 12px; color: var(--gs-ink); background: #fff; border: 1px solid #b9c9d8; border-radius: 9px; box-shadow: 0 2px 5px rgba(18,52,102,.04); transition: border-color .18s ease, box-shadow .18s ease; }
.calculator-field input:not([type="range"]):focus, .calculator-field select:focus { border-color: #2c6798; outline: 0; box-shadow: 0 0 0 3px rgba(18,52,102,.12); }
.calculator-field small { display: block; margin-top: 5px; color: var(--gs-muted); font-size: 12px; }
.calculator-range { --range-progress: 50%; width: 100%; height: 20px; margin: 5px 0 -3px; padding: 0; appearance: none; background: transparent; border: 0; cursor: pointer; }
.calculator-range::-webkit-slider-runnable-track { height: 5px; background: linear-gradient(to right,var(--gs-accent) 0,var(--gs-accent) var(--range-progress),#dbe5ed var(--range-progress),#dbe5ed 100%); border-radius: 999px; }
.calculator-range::-webkit-slider-thumb { width: 18px; height: 18px; margin-top: -6.5px; appearance: none; background: #fff; border: 5px solid var(--gs-primary); border-radius: 50%; box-shadow: 0 2px 6px rgba(18,52,102,.25); transition: transform .15s ease; }
.calculator-range::-moz-range-track { height: 5px; background: #dbe5ed; border: 0; border-radius: 999px; }
.calculator-range::-moz-range-progress { height: 5px; background: var(--gs-accent); border-radius: 999px; }
.calculator-range::-moz-range-thumb { width: 10px; height: 10px; background: #fff; border: 5px solid var(--gs-primary); border-radius: 50%; box-shadow: 0 2px 6px rgba(18,52,102,.25); }
.calculator-range:hover::-webkit-slider-thumb { transform: scale(1.12); }
.calculator-range:focus-visible { outline: 3px solid rgba(218,119,7,.3); outline-offset: 3px; border-radius: 999px; }
.calculator-results { display: flex; min-height: 330px; flex-direction: column; justify-content: center; padding: clamp(24px,3vw,32px); color: #fff; background: linear-gradient(145deg,#0d2a52,#174a75); }
.calculator-results-header { display: flex; margin-bottom: 25px; padding-bottom: 13px; align-items: center; justify-content: space-between; gap: 12px; color: #dce9f5; border-bottom: 1px solid rgba(255,255,255,.16); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.calculator-live-indicator { display: inline-flex; padding: 5px 9px; align-items: center; gap: 6px; color: #d6faea; background: rgba(49,196,141,.15); border: 1px solid rgba(110,231,183,.3); border-radius: 999px; font-size: 10px; letter-spacing: .05em; }
.calculator-live-indicator i { width: 7px; height: 7px; background: #6ee7b7; border-radius: 50%; box-shadow: 0 0 0 4px rgba(110,231,183,.12); animation: calculator-live-pulse 2s ease-in-out infinite; }
@keyframes calculator-live-pulse { 50% { box-shadow: 0 0 0 7px rgba(110,231,183,0); } }
.result-block + .result-block { margin-top: 22px; }
.calculator-results .result-label { margin-bottom: 7px; color: #c2d3e4; font-size: 13px; font-weight: 650; }
.result-value { overflow-wrap: anywhere; color: #fff; font-family: var(--gs-font-heading); font-size: clamp(25px,4vw,34px); font-weight: 850; line-height: 1.15; }
.result-value.is-refreshing { animation: calculator-value-refresh .3s ease both; }
@keyframes calculator-value-refresh { 50% { opacity: .58; transform: translateY(-2px); } }
.result-value--small { font-size: 20px; }
.calculator-results .result-value--green { color: #7de8bf; }
.calculator-results .result-value--red { color: #ffc0c6; }
.result-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.calculator-results .meta-line { color: #c2d3e4; }
.calculator-balance-meter { margin-top: 24px; }
.calculator-balance-meter__heading { display: flex; margin-bottom: 8px; align-items: center; justify-content: space-between; gap: 12px; color: #c2d3e4; font-size: 12px; }
.calculator-balance-meter__heading strong { color: #fff; font-size: 13px; }
.calculator-balance-meter__track { height: 8px; overflow: hidden; background: rgba(255,255,255,.14); border-radius: 999px; }
.calculator-balance-meter__track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg,#f4a33f,#6ee7b7); border-radius: inherit; transition: width .42s cubic-bezier(.2,.75,.25,1); }
.calculator-status { margin: 19px 0 0; padding: 11px 13px; border-radius: 8px; font-size: 13px; font-weight: 750; }
.calculator-status.is-success { color: #d6faea; background: rgba(5,148,103,.2); border: 1px solid rgba(110,231,183,.3); }
.calculator-status.is-warning { color: #ffead2; background: rgba(218,119,7,.2); border: 1px solid rgba(251,191,36,.34); }
.calculator-disclaimer { margin: 12px 0 40px; padding: 16px 18px; background: #fff7ed; border: 1px solid #fed7aa; border-left: 4px solid var(--gs-accent); border-radius: 0 7px 7px 0; color: #7c2d12; font-size: 13px; }
.calculator-empty { margin-bottom: 30px; padding: 34px; text-align: center; }
.calculators-editor-content { margin-bottom: 38px; }

/* Footer */
.site-footer { margin-top: 64px; padding: 48px 0 24px; background: var(--gs-primary); color: #fff; }
.footer-grid { display: grid; grid-template-columns: minmax(190px,1.35fr) repeat(4,minmax(0,1fr)); gap: clamp(18px,2vw,28px); margin-bottom: 28px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.2); }
.footer-grid > * { min-width: 0; }
.footer-brand .custom-logo, .footer-brand .default-logo { width: auto; max-width: 150px; max-height: 42px; margin-bottom: 16px; padding: 4px; background: #fff; border-radius: 4px; }
.footer-brand p { color: #cbd5e1; font-size: 14px; line-height: 1.6; }
.footer-column h3 { margin-bottom: 16px; color: #fff; font-size: 18px; letter-spacing: .04em; text-transform: uppercase; }
.footer-menu { margin: 0; padding: 0; list-style: none; }
.footer-menu li { margin-bottom: 10px; }
.footer-menu a { color: #cbd5e1; font-size: 14px; }
.footer-menu a:hover { color: var(--gs-accent); }
.footer-social { margin: 0 0 26px; padding: 0 0 28px; border-bottom: 1px solid rgba(255,255,255,.18); }
.footer-social h3 { margin-bottom: 14px; color: #fff; font-size: 15px; letter-spacing: .055em; text-transform: uppercase; }
.footer-social-links { display: flex; margin: 0; padding: 0; align-items: center; flex-wrap: wrap; gap: 10px; list-style: none; }
.footer-social-link { display: inline-flex; min-height: 42px; padding: 9px 16px; align-items: center; gap: 9px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #fff; font-size: 14px; font-weight: 750; box-shadow: 0 5px 12px rgba(0,0,0,.12); transition: filter .2s ease, transform .2s ease, box-shadow .2s ease; }
.footer-social-link svg { width: 20px; height: 20px; flex: 0 0 20px; fill: currentColor; }
.footer-social-link:hover, .footer-social-link:focus-visible { color: #fff; filter: brightness(1.08); box-shadow: 0 8px 18px rgba(0,0,0,.18); transform: translateY(-2px); }
.footer-social-link--facebook { background: #1877f2; }
.footer-social-link--twitter { background: #111827; }
.footer-social-link--instagram { background: linear-gradient(135deg,#7c3aed,#ec0a78 65%,#f59e0b); }
.footer-social-link--linkedin { background: #0a66c2; }
.footer-social-link--youtube { background: #ff1f1f; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #cbd5e1; font-size: 13px; }
.footer-bottom p { margin-bottom: 0; }
.footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; max-width: 760px; margin: 0 auto 26px; }

/* Image display controls */
.archive-card-image--contain img, .latest-card-image--contain img, .hero-story-image--contain { object-fit: contain; background: #f5f8fb; }
.archive-card-image--cover img, .latest-card-image--cover img, .hero-story-image--cover { object-fit: cover; }

/* Subscription verification */
.subscriber-otp-form { display: flex; max-width: 620px; margin: 14px auto 0; align-items: end; justify-content: center; gap: 10px; }
.subscriber-otp-form label { color: #fff; text-align: left; font-size: 14px; }
.subscriber-otp-form label span { display: block; margin-bottom: 5px; }
.subscriber-otp-form input { width: 180px; min-height: 45px; padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 4px; letter-spacing: .2em; text-align: center; }

/* Categories and dated archives */
.category-children { margin: 28px 0 4px; padding-top: 22px; border-top: 1px solid var(--gs-border); animation: gs-fade-up .45s ease both; }
.category-children__heading { display: flex; margin-bottom: 14px; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; }
.category-children__eyebrow { color: var(--gs-accent); font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.category-children h2 { margin: 0; font-size: 22px; }
.category-tabs { display: flex; max-width: 100%; margin: 0; padding: 2px 2px 10px; gap: 10px; overflow-x: auto; list-style: none; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #a9b9cb transparent; }
.category-tabs li { flex: 0 0 auto; scroll-snap-align: start; animation: gs-tab-in .45s ease both; }
.category-tabs li:nth-child(2) { animation-delay: .05s; }
.category-tabs li:nth-child(3) { animation-delay: .1s; }
.category-tabs li:nth-child(4) { animation-delay: .15s; }
.category-tabs li:nth-child(5) { animation-delay: .2s; }
.category-tabs li:nth-child(6) { animation-delay: .25s; }
.category-tab { position: relative; display: inline-flex; min-height: 52px; padding: 8px 10px 8px 16px; align-items: center; gap: 9px; overflow: hidden; background: #fff; border: 1px solid #cfdae6; border-radius: 999px; box-shadow: 0 3px 10px rgba(18,52,102,.06); color: var(--gs-primary); font-weight: 750; white-space: nowrap; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease, background-color .2s ease; }
.category-tab::before { position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--gs-accent); content: ""; transform: scaleY(0); transition: transform .2s ease; }
.category-tab:hover, .category-tab:focus-visible { background: #f8fbff; border-color: #88a5c4; box-shadow: 0 8px 18px rgba(18,52,102,.13); color: var(--gs-primary); transform: translateY(-2px); }
.category-tab:hover::before, .category-tab:focus-visible::before { transform: scaleY(1); }
.category-count { padding: 4px 8px; background: #edf3f9; border-radius: 999px; color: #52657b; font-size: 11px; font-weight: 700; }
.category-tab svg { width: 18px; height: 18px; padding: 3px; background: var(--gs-primary); border-radius: 50%; fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; transition: transform .2s ease, background-color .2s ease; }
.category-tab:hover svg, .category-tab:focus-visible svg { background: var(--gs-accent); transform: translateX(2px); }
@keyframes gs-fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes gs-tab-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }
.widget_archive, .archive-sidebar-card { position: relative; overflow: hidden; padding: 0; }
.widget_archive::before, .archive-sidebar-card::before { position: absolute; top: 0; right: 0; left: 0; height: 4px; background: linear-gradient(90deg, var(--gs-accent), #efaa55); content: ""; }
.sidebar-box.widget_archive h3, .sidebar-box.archive-sidebar-card h3 { display: grid; margin: 0; padding: 20px 20px 15px; grid-template-columns: 32px 1fr; grid-template-rows: auto auto; column-gap: 11px; align-items: center; border-bottom: 1px solid var(--gs-border); font-size: 17px; letter-spacing: .015em; text-transform: uppercase; }
.sidebar-box.widget_archive h3::before, .sidebar-box.archive-sidebar-card h3::before { grid-column: 1; grid-row: 1 / 3; display: grid; width: 32px; height: 32px; place-items: center; background: #fff4e8; border: 1px solid #f2c58e; border-radius: 9px; color: var(--gs-accent); content: "▦"; font-size: 18px; line-height: 1; }
.sidebar-box.widget_archive h3::after, .sidebar-box.archive-sidebar-card h3::after { grid-column: 2; grid-row: 2; color: var(--gs-muted); content: "Browse by month"; font-size: 10px; font-weight: 650; letter-spacing: .045em; line-height: 1.3; text-transform: none; }
.widget_archive nav { display: block; }
.widget_archive ul, .archive-sidebar-card .monthly-archives { display: block; margin: 0; padding: 8px 16px 16px !important; list-style: none; }
.widget_archive li, .archive-sidebar-card .monthly-archives li { position: relative; display: grid; min-width: 0; min-height: 46px; margin: 0; padding: 11px 4px 11px 23px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; color: var(--gs-muted); border-bottom: 1px solid #e7edf3; font-size: 13px; transition: padding-left .2s ease, background-color .2s ease; }
.widget_archive li:first-child, .archive-sidebar-card .monthly-archives li:first-child { margin-top: 4px; background: #f7fafc; border-radius: 8px 8px 0 0; }
.widget_archive li:last-child, .archive-sidebar-card .monthly-archives li:last-child { border-bottom: 0; }
.widget_archive li::before, .archive-sidebar-card .monthly-archives li::before { position: absolute; top: 50%; left: 5px; width: 7px; height: 7px; background: #b8c7d7; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #b8c7d7; content: ""; transform: translateY(-50%); transition: background-color .2s ease, box-shadow .2s ease; }
.widget_archive li:hover, .widget_archive li:focus-within, .archive-sidebar-card .monthly-archives li:hover, .archive-sidebar-card .monthly-archives li:focus-within { padding-left: 26px; background: #f7fafc; }
.widget_archive li:hover::before, .widget_archive li:focus-within::before, .archive-sidebar-card .monthly-archives li:hover::before, .archive-sidebar-card .monthly-archives li:focus-within::before { background: var(--gs-accent); box-shadow: 0 0 0 1px var(--gs-accent); }
.widget_archive li a, .archive-sidebar-card .monthly-archives li a { min-width: 0; overflow: hidden; color: var(--gs-primary); font-size: 14px; font-weight: 700; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.widget_archive li a:hover, .widget_archive li a:focus-visible, .archive-sidebar-card .monthly-archives li a:hover, .archive-sidebar-card .monthly-archives li a:focus-visible { color: var(--gs-accent); }
.archive-count { display: inline-flex; min-width: 31px; min-height: 25px; padding: 3px 7px; align-items: center; justify-content: center; background: #fff; border: 1px solid #d5e0eb; border-radius: 999px; color: var(--gs-accent); font-size: 11px; font-weight: 800; line-height: 1; }

/* Article listening, sharing and reactions */
.article-actions { position: relative; display: flex; margin: 0 0 30px; padding: 13px 16px; align-items: center; justify-content: space-between; gap: 16px; background: rgba(255,255,255,.98); border: 1px solid #d3deea; border-radius: 14px; box-shadow: 0 10px 30px rgba(18,52,102,.1); }
.article-actions[hidden], .listen-controls[hidden] { display: none !important; }
.article-actions--over-hero { margin: -24px 18px 30px; z-index: 2; }
.article-actions.has-listen:not(.has-share) { display: block; }
.listen-controls { position: relative; display: grid; min-width: 0; flex: 1 1 auto; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px 14px; }
.article-listen-button { display: flex; min-width: 0; padding: 0; align-items: center; gap: 12px; background: transparent; border: 0; color: var(--gs-primary); cursor: pointer; text-align: left; }
.article-listen-button:focus-visible { outline: 3px solid rgba(218,119,7,.3); outline-offset: 4px; border-radius: 9px; }
.article-listen-button:disabled { cursor: not-allowed; opacity: .62; }
.listen-icon { position: relative; display: grid; width: 52px; height: 52px; flex: 0 0 52px; place-items: center; background: linear-gradient(135deg, #ed8a16, var(--gs-accent)); border-radius: 50%; box-shadow: 0 7px 16px rgba(218,119,7,.28); transition: transform .2s ease, box-shadow .2s ease; }
.article-listen-button:hover .listen-icon { box-shadow: 0 9px 20px rgba(218,119,7,.38); transform: scale(1.04); }
.listen-play-icon { width: 0; height: 0; margin-left: 4px; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 12px solid #fff; }
.listen-pause-icon { position: relative; display: none; width: 14px; height: 17px; }
.listen-pause-icon::before, .listen-pause-icon::after { position: absolute; top: 0; width: 5px; height: 17px; background: #fff; border-radius: 2px; content: ""; }
.listen-pause-icon::before { left: 0; }
.listen-pause-icon::after { right: 0; }
.listen-controls[data-state="playing"] .listen-play-icon { display: none; }
.listen-controls[data-state="playing"] .listen-pause-icon { display: block; }
.listen-controls[data-state="playing"] .listen-icon { animation: gs-listen-pulse 1.8s ease-in-out infinite; }
.listen-button-copy { display: block; min-width: 0; }
.listen-button-copy strong { display: block; font-family: var(--gs-font-heading); font-size: 17px; line-height: 1.2; }
.listen-button-copy small { display: block; margin-top: 3px; color: var(--gs-muted); font-size: 12px; font-weight: 500; line-height: 1.35; }
.listen-secondary { display: flex; min-width: 116px; align-items: center; justify-content: flex-end; gap: 8px; }
.listen-status { color: var(--gs-muted); font-size: 12px; font-weight: 650; }
.listen-stop-button { display: inline-flex; min-height: 34px; padding: 6px 10px; align-items: center; gap: 5px; background: #f5f8fb; border: 1px solid #cfdae6; border-radius: 999px; color: var(--gs-primary); cursor: pointer; font-size: 12px; font-weight: 750; }
.listen-stop-button[hidden] { display: none; }
.listen-stop-button svg { width: 15px; height: 15px; fill: currentColor; }
.listen-progress-track { position: absolute; right: 0; bottom: -8px; left: 64px; height: 3px; overflow: hidden; background: #e5edf5; border-radius: 999px; }
.listen-progress-track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--gs-accent), #f3a84e); border-radius: inherit; transition: width .35s ease; }
.share-buttons { display: flex; flex: 0 0 auto; align-items: center; flex-wrap: wrap; gap: 7px; }
.share-label { margin-right: 2px; color: var(--gs-muted); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.share-button { display: grid; width: 38px; height: 38px; place-items: center; background: var(--gs-primary); border-radius: 50%; box-shadow: 0 4px 10px rgba(18,52,102,.16); color: #fff; transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease; }
.share-button svg { width: 20px; height: 20px; fill: currentColor; }
.share-button:hover, .share-button:focus-visible { color: #fff; box-shadow: 0 7px 15px rgba(18,52,102,.24); transform: translateY(-2px); }
.share-button--facebook:hover { background: #1877f2; }
.share-button--linkedin:hover { background: #0a66c2; }
.share-button--whatsapp:hover { background: #25d366; }
.share-button--email:hover { background: var(--gs-accent); }
@keyframes gs-listen-pulse { 0%, 100% { box-shadow: 0 7px 16px rgba(218,119,7,.28); } 50% { box-shadow: 0 7px 22px rgba(218,119,7,.5), 0 0 0 7px rgba(218,119,7,.09); } }
.pld-like-dislike-wrap.pld-template-1 { display: flex !important; margin: 28px 0 !important; padding: 18px 20px !important; align-items: center; flex-wrap: wrap; gap: 12px; background: #fff; border: 2px solid #cbdce5; border-radius: 10px; box-shadow: var(--gs-shadow); }
.pld-like-dislike-wrap.pld-template-1::before { content: "Was this article helpful?"; flex-basis: 100%; color: var(--gs-primary); font-weight: 800; }
.pld-like-dislike-wrap.pld-template-1 a { display: inline-flex !important; min-height: 44px; padding: 9px 15px !important; align-items: center; gap: 7px; background: #eef5f8; border: 1px solid #c9dce5; border-radius: 999px; color: var(--gs-primary) !important; font-weight: 750; }
.pld-like-dislike-wrap.pld-template-1 .pld-count-wrap { font-size: 16px; font-weight: 800; }
.pld-like-dislike-wrap.pld-template-1, .pld-like-dislike-wrap.pld-template-1 .pld-common-wrap { min-width: 0; max-width: 100%; }
.author-all-articles { display: inline-flex; margin-top: 8px; }

/* Verified community discussion */
.comments-area { margin-top: 52px; overflow: hidden; background: #fff; border: 1px solid #d3deea; border-radius: 16px; box-shadow: 0 12px 34px rgba(18,52,102,.09); animation: gs-fade-up .45s ease both; }
.discussion-header { display: flex; padding: 28px 30px; align-items: flex-end; justify-content: space-between; gap: 24px; background: linear-gradient(135deg, #102f5d, var(--gs-primary)); color: #fff; }
.discussion-header > div:first-child { max-width: 640px; }
.discussion-eyebrow { display: block; margin-bottom: 7px; color: #f4a33f; font-size: 12px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.discussion-header h2 { margin: 0 0 7px; color: #fff; font-size: clamp(25px,3vw,32px); }
.discussion-header p { margin: 0; color: #d8e4f2; font-size: 15px; }
.discussion-trust { display: flex; flex: 0 0 auto; flex-direction: column; gap: 8px; }
.discussion-trust span { display: inline-flex; align-items: center; gap: 7px; color: #edf5ff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.discussion-trust svg { width: 18px; height: 18px; fill: #f4a33f; }
.discussion-notice { margin: 20px 28px 0; padding: 13px 15px; border-radius: 8px; font-weight: 650; }
.discussion-notice--success { background: #e9f8ef; border: 1px solid #a7dbba; color: #176b36; }
.discussion-notice--error { background: #fff1f2; border: 1px solid #fecdd3; color: #9f1239; }
.comment-thread { padding: 28px 30px; border-bottom: 1px solid var(--gs-border); }
.comment-thread__heading { display: flex; margin-bottom: 18px; align-items: baseline; justify-content: space-between; gap: 16px; }
.comment-thread__heading h3 { margin: 0; font-size: 21px; }
.comment-thread__heading span { color: var(--gs-muted); font-size: 12px; }
.comment-list, .comment-list .children { margin: 0; padding: 0; list-style: none; }
.comment-list { display: grid; gap: 14px; }
.comment-list .children { display: grid; margin: 12px 0 0 34px; gap: 12px; }
.comment-list .comment-body { position: relative; min-height: 88px; padding: 18px 18px 18px 88px; background: #f8fafc; border: 1px solid #dce5ee; border-radius: 12px; }
.comment-list .bypostauthor > .comment-body { background: #f3f8ff; border-color: #adc4dc; }
.comment-list .pingback .comment-body, .comment-list .trackback .comment-body { min-height: 0; padding-left: 18px; }
.comment-author .avatar { position: absolute; top: 18px; left: 18px; width: 52px; height: 52px; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 3px 10px rgba(18,52,102,.14); }
.comment-author .fn { color: var(--gs-primary); font-family: var(--gs-font-heading); font-style: normal; font-weight: 800; }
.comment-author .says { color: var(--gs-muted); font-size: 12px; }
.comment-metadata { margin: 3px 0 10px; font-size: 11px; }
.comment-metadata a { color: var(--gs-muted); }
.comment-content p:last-child { margin-bottom: 0; }
.comment-awaiting-moderation { display: inline-block; margin: 6px 0; padding: 4px 8px; background: #fff7ed; border-radius: 5px; color: #9a4c08; font-size: 12px; }
.comment-list .reply { margin-top: 10px; }
.comment-list .reply a, .comment-edit-link { display: inline-flex; padding: 5px 10px; background: #eaf1f8; border-radius: 999px; color: var(--gs-primary); font-size: 11px; font-weight: 750; }
.comment-list .reply a:hover, .comment-edit-link:hover { color: #fff; background: var(--gs-primary); }
.comment-navigation { display: flex; margin-top: 18px; justify-content: space-between; gap: 12px; }
.comment-navigation a { font-weight: 750; }
.comment-form-card { padding: 28px 30px 30px; background: #f7f9fc; }
.comment-respond { margin: 0; }
.comment-form-heading { margin-bottom: 6px; }
.comment-form-heading > span { display: block; margin-bottom: 5px; color: var(--gs-accent); font-size: 11px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.comment-reply-title { display: flex; margin: 0; align-items: center; justify-content: space-between; gap: 12px; font-size: 23px; }
.cancel-reply a { padding: 5px 10px; background: #fff; border: 1px solid #d4dee9; border-radius: 999px; color: var(--gs-muted); font-family: var(--gs-font-body); font-size: 11px; font-weight: 700; }
.comment-form--themed { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.comment-form--themed > p, .comment-form--themed > div { margin: 0 0 16px; }
.comment-form--themed .community-verification-note { order: 1; }
.comment-form--themed .reddit-login-form { order: 2; }
.comment-form--themed .comment-notes, .comment-form--themed .logged-in-as { order: 3; }
.comment-form--themed .comment-form-first-name { order: 4; grid-column: 1; }
.comment-form--themed .comment-form-last-name { order: 4; grid-column: 2; }
.comment-form--themed .comment-form-email { order: 5; grid-column: 1 / -1; }
.comment-form--themed .comment-form-comment { order: 6; grid-column: 1 / -1; }
.comment-form--themed .comment-form-cookies-consent { order: 7; grid-column: 1 / -1; }
.comment-form--themed .form-submit { order: 8; grid-column: 1 / -1; }
.comment-form--themed .recaptcha-field { order: 7; grid-column: 1 / -1; margin-bottom: 2px; }
.comment-notes, .logged-in-as { color: var(--gs-muted); font-size: 13px; }
.comment-form--themed label { display: block; margin-bottom: 7px; color: var(--gs-primary); font-size: 13px; font-weight: 750; }
.comment-form--themed .required { color: var(--gs-accent); }
.comment-form--themed input:not([type="checkbox"]), .comment-form--themed textarea { width: 100%; padding: 12px 14px; background: #fff; border: 1px solid #c8d5e2; border-radius: 8px; color: var(--gs-ink); transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }
.comment-form--themed input:not([type="checkbox"]) { min-height: 48px; }
.comment-form--themed textarea { min-height: 176px; resize: vertical; }
.comment-form--themed input:focus, .comment-form--themed textarea:focus { outline: 0; background: #fff; border-color: #6f96bd; box-shadow: 0 0 0 3px rgba(18,52,102,.1); }
.comment-form--themed input::placeholder, .comment-form--themed textarea::placeholder { color: #8a99aa; }
.field-help { display: block; margin-top: 6px; color: var(--gs-muted); font-size: 11px; line-height: 1.4; }
.community-verification-note { display: flex; grid-column: 1 / -1; padding: 14px 16px; align-items: flex-start; gap: 12px; background: #eef7f7; border: 1px solid #bcdcdc; border-radius: 9px; color: #194f52; }
.community-verification-note__icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; background: #167c80; border-radius: 50%; }
.community-verification-note__icon svg { width: 20px; height: 20px; fill: #fff; }
.community-verification-note strong, .community-verification-note small { display: block; }
.community-verification-note strong { margin-bottom: 3px; color: #115f63; font-size: 13px; }
.community-verification-note small { font-size: 12px; line-height: 1.45; }
.community-verified-notice { grid-column: 1 / -1; padding: 11px 13px; background: #e9f8ef; border: 1px solid #a7dbba; border-radius: 7px; color: #176b36; font-weight: 700; }
.reddit-login-form { display: flex; grid-column: 1 / -1; align-items: center; gap: 10px; color: var(--gs-muted); font-size: 12px; }
.reddit-login-button { display: inline-flex; min-height: 38px; padding: 7px 14px; align-items: center; gap: 7px; background: #ff4500; border: 0; border-radius: 999px; color: #fff; font-weight: 800; }
.reddit-login-button svg { width: 19px; height: 19px; fill: currentColor; }
.reddit-login-button:hover { color: #fff; background: #d93b00; transform: translateY(-1px); }
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 8px; }
.comment-form-cookies-consent input { margin-top: 4px; }
.comment-form-cookies-consent label { margin: 0; color: var(--gs-muted); font-size: 12px; font-weight: 500; }
.form-submit { display: flex; justify-content: flex-start; }
.comment-submit { min-height: 48px; padding: 11px 22px; border: 0; border-radius: 8px; box-shadow: 0 7px 16px rgba(218,119,7,.2); font-weight: 800; }
.comment-submit:hover { box-shadow: 0 9px 20px rgba(218,119,7,.3); }
.comments-closed { margin: 0; padding: 22px 30px; background: #f7f9fc; color: var(--gs-muted); }
.verified-identity-badge { display: inline-flex; margin-left: 6px; padding: 2px 7px; background: #e7f5ff; border-radius: 999px; color: #075ea8; font-size: 10px; font-weight: 800; }

/* Core alignments and common plugin output */
.alignwide { width: min(100%, var(--gs-container)); max-width: var(--gs-container); }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.wp-caption, .gallery-caption { max-width: 100%; }
.heateor_sss_sharing_container, .heateor_sss_horizontal_sharing, .heateor_sss_horizontal_sharing .heateor_sss_sharing_ul { min-width: 0; max-width: 100%; }
div.heateor_sss_horizontal_sharing div.heateor_sss_sharing_ul { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
div.heateor_sss_horizontal_sharing div.heateor_sss_sharing_ul a { float: none !important; flex: 0 0 auto; margin: 2px !important; }
.bypostauthor { outline: 0; }
.widget ul { margin: 0; padding-left: 1.15em; }
.widget select, .widget input:not([type="checkbox"]),
.wpcf7 input:not([type="checkbox"]), .wpcf7 textarea, .wpcf7 select,
.wpforms-container input:not([type="checkbox"]), .wpforms-container textarea, .wpforms-container select,
.gform_wrapper input:not([type="checkbox"]), .gform_wrapper textarea, .gform_wrapper select {
  max-width: 100%; padding: 10px 12px; background: #fff; border: 1px solid #cbd5e1; border-radius: 4px;
}
.woocommerce .button, .woocommerce button.button, .woocommerce input.button { color: #fff; background: var(--gs-accent); }
.woocommerce span.onsale { background: var(--gs-success); }

.nothing-found, .error-404 { padding: 64px 0; text-align: center; }
.nothing-found h1, .error-404 h1 { margin-bottom: 15px; font-size: 42px; }
.search-form { display: flex; max-width: 520px; margin: 24px auto 0; gap: 10px; }
.search-form label { flex: 1; }
.search-field { width: 100%; min-height: 46px; padding: 10px 12px; background: #fff; border: 1px solid #cbd5e1; border-radius: 4px; }

@media (max-width: 1180px) {
  .utility-links { display: none; }
  .site-nav, body.admin-bar .site-nav { position: relative; top: auto; }
  .site-nav .gs-container { position: static; width: 100%; padding-inline: 16px; }
  .menu-toggle { display: flex; min-height: 48px; padding-block: 15px; }
  .primary-menu { position: static; display: none; width: 100%; max-height: none; overflow: visible; background: var(--gs-primary); border-top: 1px solid rgba(255,255,255,.1); box-shadow: none; }
  .primary-menu.is-open { display: block; }
  .primary-menu > li { display: block; width: 100%; border-bottom: 1px solid rgba(255,255,255,.08); }
  .primary-menu > li > a { justify-content: flex-start; min-height: 48px; padding: 13px 62px 13px 16px; font-size: 13px; text-align: left; white-space: normal; }
  .primary-menu .sub-menu { position: static; display: none; width: 100%; min-width: 0; max-width: none; max-height: none; padding: 4px 8px 8px 20px; overflow: visible; background: #0c2852; border: 0; border-radius: 0; box-shadow: none; }
  .primary-menu > li:nth-last-child(-n+3) > .sub-menu { right: auto; left: auto; }
  .primary-menu .sub-menu a { justify-content: flex-start; color: #e5edf7; }
  .primary-menu > .menu-item-has-children:hover > .sub-menu,
  .primary-menu > .menu-item-has-children:focus-within > .sub-menu { display: none; }
  /* Must outrank the :hover rule above: iOS keeps :hover on the tapped item. */
  .mobile-extra-menu { display: none; width: 100%; list-style: none; margin: 0; padding: 8px 0 12px; border-top: 1px solid rgba(255,255,255,.18); }
  .primary-menu.is-open ~ .mobile-extra-menu { display: block; }
  .mobile-extra-menu li { margin: 0; }
  .mobile-extra-menu a { display: flex; align-items: center; min-height: 44px; padding: 10px 16px; color: rgba(255,255,255,.85); font-size: 13px; text-decoration: none; }
  .mobile-extra-menu a:hover, .mobile-extra-menu a:focus { color: var(--gs-accent); }
  .primary-menu > li.submenu-open > .sub-menu,
  .primary-menu > li.submenu-open:hover > .sub-menu,
  .primary-menu > li.submenu-open:focus-within > .sub-menu { display: block; }
  .submenu-toggle { top: 0; right: 0; width: 56px; height: 48px; border-radius: 0; transform: none; }
}

@media (max-width: 900px) {
  .header-ad { max-width: none; }
  .hero-grid, .content-sidebar-grid, .single-grid, .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-side { grid-template-columns: 1fr 1fr; }
  .sidebar-stack { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
	.contact-page-content { order: 2; }
	.contact-form-panel { order: 1; }
}

@media (max-width: 782px) { body.admin-bar .site-nav { top: auto; } }

@media (max-width: 767px) {
	.header-ad { display: none; }
	.utility-bar { display: block; padding: 7px 0; }
	.utility-inner { justify-content: center; text-align: center; }
	.utility-bar .utility-links { display: none !important; }
  .main-header { padding: 16px 0; }
  .main-header-inner { gap: 14px; }
  .header-search { width: 100%; flex-basis: 100%; }
  .default-logo { width: 146px; }
  .category-tabs { width: calc(100% + 32px); max-width: none; margin-inline: -16px; padding: 2px 24px 10px 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-padding-inline: 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .category-tabs::-webkit-scrollbar { display: none; }
  .home-content { padding-top: 24px; }
  .hero-grid { gap: 16px; margin-bottom: 38px; }
  .hero-story { min-height: 360px; padding: 20px; }
  .hero-story h1 { font-size: 30px; }
  .hero-side, .strategy-grid, .archive-featured, .related-grid, .sidebar-stack, .calculator-grid, .contact-form-grid, .author-profile { grid-template-columns: 1fr; }
  /* Two link columns read better than one long list on a phone. */
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-column h3 { margin-bottom: 10px; font-size: 15px; }
  .footer-menu li { margin-bottom: 6px; }
  .footer-menu a { font-size: 14px; }
  .hero-side-card { min-height: 170px; }
  .newsletter-cta { padding: 38px 20px; }
  .signup-form { flex-direction: column; }
  .signup-form .button { width: 100%; }
  .latest-card { grid-template-columns: 108px 1fr; padding: 12px; }
  .latest-card p { display: none; }
  .single-header h1 { font-size: 34px; }
  .page-article { padding: 20px; }
	.contact-shell, .about-shell { padding-bottom: 46px; }
	.contact-hero { padding: 30px 24px; border-radius: 13px; }
	.contact-form-panel, .contact-page-content { padding: 22px 18px; border-radius: 12px; }
	.contact-form-panel__header { margin: -22px -18px 22px; padding: 22px 18px; }
	.contact-form .button { width: 100%; }
	.about-hero { grid-template-columns: 1fr; padding: 30px 24px; border-radius: 13px; }
	.about-hero__mark, .about-hero__image { width: 112px; height: 112px; justify-self: start; }
	.about-hero__mark { border-width: 8px; }
	.about-hero__mark svg { width: 68px; height: 68px; }
	.about-story { grid-template-columns: 1fr; gap: 24px; padding: 28px 22px; border-radius: 12px; }
	.about-story__label { width: fit-content; }
	.calculators-shell { width: min(calc(100% - 24px),1040px); }
	.calculators-header { padding: 28px 22px; border-radius: 12px; }
	.calculators-shell.is-tabbed .calculator-tabs { display: flex; padding: 7px; overflow-x: auto; scroll-snap-type: x proximity; }
	.calculator-tab { min-width: 210px; flex: 0 0 210px; scroll-snap-align: start; }
	.calculator-panel-heading { align-items: flex-start; }
	.calculator-card { padding: 18px; border-radius: 14px; }
	.calculator-grid { border-radius: 12px; }
	.calculator-fields { padding: 22px 18px 25px; border-right: 0; border-bottom: 1px solid #d8e3ed; }
	.calculator-results { min-height: 290px; padding: 25px 20px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .author-box { grid-template-columns: 1fr; }
	.comment-form { grid-template-columns: 1fr; }
	.discussion-header { padding: 24px 20px; align-items: flex-start; flex-direction: column; }
	.discussion-trust { flex-direction: row; flex-wrap: wrap; }
	.comment-thread, .comment-form-card { padding: 22px 18px; }
	.comment-thread__heading { align-items: flex-start; flex-direction: column; gap: 5px; }
	.comment-list .children { margin-left: 16px; }
	.comment-list .comment-body { padding: 16px 14px 16px 70px; }
	.comment-author .avatar { top: 16px; left: 14px; width: 42px; height: 42px; }
	.comment-form--themed .comment-form-first-name, .comment-form--themed .comment-form-last-name { grid-column: 1 / -1; }
	.discussion-notice { margin-right: 18px; margin-left: 18px; }
	.article-actions { margin-right: 0; margin-left: 0; align-items: stretch; flex-direction: column; }
	.article-actions--over-hero { margin-top: -18px; }
	.listen-controls { width: 100%; grid-template-columns: 1fr; }
	.listen-secondary { min-width: 0; justify-content: flex-start; }
	.listen-progress-track { left: 64px; }
  .share-buttons { padding-top: 10px; border-top: 1px solid var(--gs-border); }
	.entry-content .heateor_sss_horizontal_sharing span.heateor_sss_svg { width: 38px !important; height: 38px !important; }
	.reddit-login-form { align-items: flex-start; flex-wrap: wrap; }
  .subscriber-otp-form { align-items: stretch; flex-direction: column; }
	.subscriber-otp-form input { width: 100%; }
}

@media (max-width: 480px) {
  .gs-container { width: min(calc(100% - 24px), var(--gs-container)); }
  .site-nav .gs-container { width: 100%; padding-inline: 12px; }
  .category-tabs { width: calc(100% + 24px); margin-inline: -12px; padding-right: 20px; padding-left: 12px; scroll-padding-inline: 12px; }
  .hero-story { min-height: 330px; }
  .hero-story h1 { font-size: 27px; }
  .latest-card { grid-template-columns: 92px 1fr; gap: 12px; }
  .calculator-fields-row, .result-row { grid-template-columns: 1fr; }
  .result-value { font-size: 26px; }
	.calculator-tabs-intro { align-items: flex-start; line-height: 1.45; }
	.calculator-tab { min-width: 185px; flex-basis: 185px; }
	.calculator-panel-heading { gap: 11px; }
	.calculator-panel-icon { width: 42px; height: 42px; flex-basis: 42px; border-radius: 11px; }
	.footer-social-links li { flex: 1 1 140px; }
	.footer-social-link { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
	.utility-bar, .main-header, .site-nav, .site-footer, .sidebar-stack, .newsletter-cta, .comments-area, .calculator-tabs { display: none !important; }
	body { background: #fff; color: #000; }
	.single-grid { display: block; }
	.calculators-shell.is-tabbed .calculator-panel { display: block; break-inside: avoid; }
	.entry-content a { color: #000; text-decoration: underline; }
}

/* Editorial team ------------------------------------------------------- */
.team-shell { padding-block: 32px 56px; }
.team-header { border-bottom: 2px solid var(--gs-primary); padding-bottom: 16px; margin-bottom: 24px; }
.team-eyebrow { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gs-accent); font-weight: 600; margin-bottom: 4px; }
.team-header h1 { margin: 0 0 8px; color: var(--gs-primary); }
.team-intro { margin: 0; color: var(--gs-muted); max-width: 62ch; }
.team-empty { color: var(--gs-muted); }
.team-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; }
.team-sort-label { font-size: 13px; color: var(--gs-muted); margin-right: 4px; }
.team-sort-option { font-size: 13px; padding: 6px 13px; border-radius: var(--gs-radius); border: 1px solid var(--gs-border); background: var(--gs-surface); color: var(--gs-ink); text-decoration: none; }
.team-sort-option.is-active { background: var(--gs-primary); border-color: var(--gs-primary); color: #fff; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.team-card { display: flex; flex-direction: column; background: var(--gs-surface); border: 1px solid var(--gs-border); border-radius: var(--gs-radius); padding: 20px; }
.team-card-head { display: flex; gap: 16px; align-items: flex-start; }
.team-avatar { flex: 0 0 72px; line-height: 0; }
.team-avatar img { width: 72px; height: 72px; border-radius: 50%; }
.team-identity { min-width: 0; }
.team-name { margin: 0; font-size: 18px; }
.team-name a { color: var(--gs-primary); text-decoration: none; }
.team-name a:hover, .team-name a:focus { text-decoration: underline; }
.team-role { margin: 2px 0 8px; font-size: 13px; font-weight: 600; color: var(--gs-accent); }
.team-bio { margin: 0 0 12px; font-size: 14px; line-height: 1.6; }
.team-social { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0 0 4px; padding: 0; font-size: 13px; }
.team-social a { color: var(--gs-muted); text-decoration: none; }
.team-social a:hover, .team-social a:focus { color: var(--gs-accent); text-decoration: underline; }
.team-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 12px; margin: 16px 0 12px; padding: 14px 0; border-top: 1px solid var(--gs-border); border-bottom: 1px solid var(--gs-border); }
.team-stat dt { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--gs-muted); }
.team-stat dd { margin: 3px 0 0; font-size: 19px; font-weight: 600; color: var(--gs-primary); font-family: var(--gs-font-heading); }
.team-latest-label { margin: 0 0 3px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--gs-muted); }
.team-latest-title { margin: 0 0 14px; font-size: 14px; line-height: 1.5; }
.team-latest-title a { color: var(--gs-primary); }
.team-latest-date { color: var(--gs-muted); }
.team-latest-date::before { content: " · "; }
.team-cta { margin: auto 0 0; }
@media (max-width: 767px) {
  .team-card { padding: 16px; }
  .team-card-head { gap: 12px; }
  .team-avatar { flex-basis: 56px; }
  .team-avatar img { width: 56px; height: 56px; }
  .team-sort { gap: 6px; }
}

.mobile-extra-menu { display: none; }

/* Sectioned homepage ----------------------------------------------------- */
.home-sectioned { padding-block: 24px 56px; }
.home-sectioned > .gs-container { display: flex; flex-direction: column; gap: 24px; }
.home-row-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.home-row-head h2 { margin: 0 0 4px; color: var(--gs-primary); font-size: clamp(19px, 1.6vw, 24px); }
.home-row-head p { margin: 0; color: var(--gs-muted); font-size: 14px; }
.home-row-more { flex: 0 0 auto; font-size: 13px; font-weight: 600; color: var(--gs-accent); text-decoration: none; white-space: nowrap; }
.home-row-more:hover, .home-row-more:focus { text-decoration: underline; }
.home-row, .home-tools-band, .home-tool-strip { background: var(--gs-surface); border: 1px solid var(--gs-border); border-radius: var(--gs-radius); padding: 22px; }
.home-tools-band { background: #eef4f8; }
.home-row-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 16px; }
.home-row-grid--inset { margin-top: 18px; }
.home-card { display: flex; flex-direction: column; background: var(--gs-surface); border: 1px solid var(--gs-border); border-radius: var(--gs-radius); overflow: hidden; text-decoration: none; color: inherit; }
.home-card:hover, .home-card:focus-within { border-color: var(--gs-primary); }
.home-card-image { display: block; aspect-ratio: 16 / 9; background: #e9eef5; }
.home-card-image img { width: 100%; height: 100%; display: block; }
.home-card-image--cover img { object-fit: cover; }
.home-card-image--contain img { object-fit: contain; }
.home-card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px; }
.home-card-title { font-family: var(--gs-font-heading); font-weight: 600; font-size: 15px; line-height: 1.4; color: var(--gs-primary); }
.home-card-meta { font-size: 12px; color: var(--gs-muted); }
.badge--soft { align-self: flex-start; }
.home-featured { position: relative; }
.home-featured-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.home-featured-track::-webkit-scrollbar { display: none; }
.home-featured-card { position: relative; display: flex; flex-direction: column; scroll-snap-align: start; border-radius: var(--gs-radius); overflow: hidden; text-decoration: none; background: var(--gs-primary); }
.home-featured-image { display: block; background: var(--gs-primary); }
.home-featured-image img { display: block; width: 100%; height: 100%; }
.home-featured-title { font-family: var(--gs-font-heading); font-weight: 600; font-size: 16px; line-height: 1.35; color: #fff; }
.home-featured-meta { font-size: 12px; color: rgba(255,255,255,.8); }

/* Stacked: the whole 16:9 image is visible, text sits on a panel beneath it. */
.home-featured--stacked .home-featured-image { aspect-ratio: 16 / 9; }
.home-featured--stacked .home-featured-image--cover img { object-fit: cover; }
.home-featured--stacked .home-featured-image--contain img { object-fit: contain; }
.home-featured--stacked .home-featured-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 14px; }

/* Overlay: matches the approved design, but crops a wide image to a tall card. */
.home-featured--overlay .home-featured-card { min-height: 260px; }
.home-featured--overlay .home-featured-image { position: absolute; inset: 0; }
.home-featured--overlay .home-featured-image img { object-fit: cover; }
.home-featured--overlay .home-featured-body { position: relative; display: flex; flex-direction: column; gap: 6px; justify-content: flex-end; min-height: 260px; padding: 16px; background: linear-gradient(to top, rgba(6,18,38,.88) 35%, rgba(6,18,38,0) 85%); }
.home-featured-nav { position: absolute; right: 10px; bottom: 10px; z-index: 2; display: flex; gap: 8px; }
.home-featured.is-static .home-featured-nav { display: none; }
.home-featured-arrow { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border-radius: var(--gs-radius); border: 1px solid var(--gs-border); background: var(--gs-surface); color: var(--gs-primary); font-size: 20px; line-height: 1; cursor: pointer; box-shadow: 0 1px 3px rgba(6,18,38,.18); }
.home-featured-arrow:not([disabled]):hover, .home-featured-arrow:not([disabled]):focus-visible { border-color: var(--gs-accent); color: var(--gs-accent); }
.home-featured-arrow[disabled] { opacity: .45; cursor: default; }
/* The last card reserves room so the overlaid arrows never sit on its byline. */
.home-featured-card:last-child .home-featured-body { padding-right: 92px; }
.home-featured--stacked .home-featured-nav { bottom: auto; top: 10px; }
.home-tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 14px; }
.home-tool { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 18px 14px; background: var(--gs-surface); border: 1px solid var(--gs-border); border-radius: var(--gs-radius); text-decoration: none; }
.home-tool:hover, .home-tool:focus { border-color: var(--gs-primary); }
.home-tool-icon { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--gs-primary); color: #fff; font-size: 19px; }
.home-tool-name { font-family: var(--gs-font-heading); font-weight: 600; font-size: 14px; color: var(--gs-primary); }
.home-tool-label { font-size: 12px; color: var(--gs-muted); }
.home-tool-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.home-tool-chip { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border: 1px solid var(--gs-border); border-radius: var(--gs-radius); background: var(--gs-surface); font-size: 13px; color: var(--gs-primary); text-decoration: none; }
.home-tool-chip:hover, .home-tool-chip:focus { border-color: var(--gs-primary); }
.home-newsletter-band .newsletter-cta { margin: 0; }
@media (max-width: 767px) {
  .home-row, .home-tools-band, .home-tool-strip { padding: 16px; }
  .home-row-head { flex-direction: column; gap: 6px; }
  .home-featured-track { grid-auto-columns: minmax(210px, 78%); }
  .home-featured-nav { position: static; justify-content: flex-end; margin-top: 10px; }
  .home-featured-card:last-child .home-featured-body { padding-right: 16px; }
  /* Two compact tiles per row: the auto-fit minimum cannot fit two at 430px. */
  .home-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .home-tool { padding: 12px 8px; gap: 4px; }
  .home-tool-icon { width: 32px; height: 32px; font-size: 15px; }
  .home-tool-name { font-size: 13px; line-height: 1.3; }
  .home-tool-label { font-size: 11px; line-height: 1.3; }
  .home-tool-chip { padding: 8px 12px; font-size: 12px; }
}
