/*
Theme Name:        GST Search
Theme URI:         https://gstsearch.net/
Author:            GST Search
Author URI:        https://gstsearch.net/
Description:       Standalone lightweight SaaS theme for gstsearch.net — instant GST number search & verification. Clean modern design, floating glass header, dark navy footer, fully responsive, WCAG AA accessible. No jQuery, no frameworks.
Version:           1.0.0
Requires at least: 6.0
Tested up to:      7.0
Requires PHP:      8.2
License:           GNU General Public License v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       gstsearch
Tags:              one-column, custom-logo, custom-menu, translation-ready
*/

/* =========================================================================
   1. BRAND TOKENS (per BUILD_SPEC — verbatim)
   ========================================================================= */
:root {
  --gs-primary: #2563eb;        /* trust blue */
  --gs-primary-dark: #1d4ed8;
  --gs-primary-light: #dbeafe;
  --gs-accent: #f59e0b;         /* saffron accent */
  --gs-navy: #0f172a;           /* headings / footer bg */
  --gs-slate: #475569;          /* body text secondary */
  --gs-text: #1e293b;
  --gs-bg: #f8fafc;
  --gs-surface: #ffffff;
  --gs-border: #e2e8f0;
  --gs-success: #10b981;
  --gs-danger: #ef4444;
  --gs-radius: 12px;
  --gs-radius-lg: 20px;
  --gs-shadow: 0 1px 3px rgba(15,23,42,.08), 0 8px 24px rgba(15,23,42,.06);
  --gs-shadow-lg: 0 12px 40px rgba(37,99,235,.14);
  --gs-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* =========================================================================
   2. RESET / BASE
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--gs-font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--gs-text);
  background: var(--gs-bg);
  -webkit-font-smoothing: antialiased;
  padding-top: 96px; /* clears the floating fixed header */
}

img { max-width: 100%; height: auto; }
svg { display: inline-block; vertical-align: middle; }

h1, h2, h3, h4, h5, h6 {
  color: var(--gs-navy);
  line-height: 1.25;
  font-weight: 700;
  margin: 1.6em 0 0.6em;
  letter-spacing: -0.015em;
}
h1 { font-size: 2.5rem; font-weight: 800; margin-top: 0; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p  { margin: 0 0 1.2em; }

a {
  color: var(--gs-primary);
  text-decoration: none;
  transition: color 150ms ease;
}
a:hover { color: var(--gs-primary-dark); text-decoration: underline; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gs-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

ul, ol { margin: 0 0 1.2em; padding-left: 1.4em; }
li { margin-bottom: 0.35em; }

hr {
  border: 0;
  border-top: 1px solid var(--gs-border);
  margin: 2.5rem 0;
}

strong { color: var(--gs-navy); }

::selection { background: var(--gs-primary-light); color: var(--gs-navy); }

/* =========================================================================
   3. ACCESSIBILITY HELPERS
   ========================================================================= */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  word-wrap: normal !important;
}

.gs-skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100000;
  background: var(--gs-navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: top 150ms ease;
}
.gs-skip-link:focus {
  top: 16px;
  color: #fff;
  text-decoration: none;
  outline: 2px solid var(--gs-accent);
}

/* =========================================================================
   4. LAYOUT PRIMITIVES
   ========================================================================= */
.gs-container {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.gs-section { padding: 64px 0; }
.gs-section--tight { padding: 40px 0; }
.gs-section--alt { background: var(--gs-surface); border-top: 1px solid var(--gs-border); border-bottom: 1px solid var(--gs-border); }

/* =========================================================================
   5. FLOATING GLASS HEADER
   ========================================================================= */
.gs-header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 9990;
  padding: 0 16px;
  pointer-events: none; /* the bar itself re-enables */
}

.gs-header__bar {
  pointer-events: auto;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.05);
  transition: box-shadow 150ms ease, background 150ms ease;
}

.gs-header.is-scrolled .gs-header__bar {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1), 0 16px 40px rgba(15, 23, 42, 0.14);
}

.gs-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--gs-navy);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.gs-header__logo:hover { text-decoration: none; color: var(--gs-navy); }
.gs-header__logo img { height: 32px; width: auto; display: block; }

/* Primary nav */
.gs-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}
.gs-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.gs-nav li { margin: 0; }
.gs-nav a {
  display: block;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gs-slate);
  border-radius: 8px;
  white-space: nowrap;
  transition: color 150ms ease, background 150ms ease;
}
.gs-nav a:hover,
.gs-nav .current-menu-item > a,
.gs-nav .current_page_item > a {
  color: var(--gs-primary-dark);
  background: var(--gs-primary-light);
  text-decoration: none;
}

.gs-header__cta { flex-shrink: 0; }

/* CTA duplicated inside the mobile panel; hidden on desktop */
.gs-nav__cta-item { display: none; }
@media (max-width: 900px) {
  .gs-nav__cta-item { display: block; margin-top: 10px; padding: 4px 2px 2px; }
  .gs-nav__cta-item .gs-btn { width: 100%; }
}

/* Hamburger */
.gs-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  background: transparent;
  border: 1px solid var(--gs-border);
  border-radius: 10px;
  cursor: pointer;
  transition: background 150ms ease;
}
.gs-nav-toggle:hover { background: var(--gs-primary-light); }
.gs-nav-toggle__line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gs-navy);
  border-radius: 2px;
  transition: transform 150ms ease, opacity 150ms ease;
}
.gs-nav-toggle[aria-expanded="true"] .gs-nav-toggle__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.gs-nav-toggle[aria-expanded="true"] .gs-nav-toggle__line:nth-child(2) { opacity: 0; }
.gs-nav-toggle[aria-expanded="true"] .gs-nav-toggle__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
  .gs-nav a { padding: 8px 8px; font-size: 0.85rem; }
}

@media (max-width: 900px) {
  .gs-nav-toggle { display: inline-flex; }
  /* Two-class selector so this outlives .gs-btn { display:inline-flex } declared later */
  .gs-header .gs-header__cta { display: none; }

  .gs-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    margin-left: 0;
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--gs-border);
    border-radius: 16px;
    box-shadow: var(--gs-shadow-lg);
    padding: 12px;
  }
  .gs-header__bar { position: relative; }
  .gs-nav.is-open {
    display: block;
    animation: gsSlideDown 180ms ease;
  }
  .gs-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .gs-nav a { padding: 12px 14px; font-size: 1rem; }
  .gs-nav .gs-nav__cta-item { margin-top: 8px; }
}

@keyframes gsSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================================
   6. BUTTONS, BADGES, PILLS
   ========================================================================= */
.gs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--gs-font);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 150ms ease, border-color 150ms ease;
}
.gs-btn:hover { text-decoration: none; transform: translateY(-1px); }
.gs-btn:active { transform: translateY(0); }

.gs-btn--primary {
  background: linear-gradient(180deg, var(--gs-primary), var(--gs-primary-dark));
  color: #fff;
  box-shadow: 0 1px 2px rgba(29, 78, 216, 0.35), 0 4px 12px rgba(37, 99, 235, 0.25);
}
.gs-btn--primary:hover {
  background: linear-gradient(180deg, var(--gs-primary-dark), var(--gs-primary-dark));
  color: #fff;
  box-shadow: 0 2px 4px rgba(29, 78, 216, 0.4), 0 8px 20px rgba(37, 99, 235, 0.35);
}

.gs-btn--ghost {
  background: transparent;
  color: var(--gs-primary-dark);
  border-color: var(--gs-border);
}
.gs-btn--ghost:hover {
  background: var(--gs-primary-light);
  border-color: var(--gs-primary-light);
  color: var(--gs-primary-dark);
}

.gs-btn--white {
  background: #fff;
  color: var(--gs-navy);
  border-color: var(--gs-border);
  box-shadow: var(--gs-shadow);
}
.gs-btn--white:hover { color: var(--gs-primary-dark); }

.gs-btn--lg { padding: 14px 28px; font-size: 1.05rem; border-radius: 12px; }
.gs-btn--sm { padding: 7px 14px; font-size: 0.85rem; }

/* Pill badges */
.gs-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.5;
  border-radius: 999px;
  background: var(--gs-primary-light);
  color: var(--gs-primary-dark);
  white-space: nowrap;
}
.gs-badge--success { background: #d1fae5; color: #065f46; }
.gs-badge--danger  { background: #fee2e2; color: #991b1b; }
.gs-badge--accent  { background: #fef3c7; color: #92400e; }
.gs-badge--navy    { background: var(--gs-navy); color: #e2e8f0; }

/* Trust chips row */
.gs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 1.25rem 0 0;
  list-style: none;
}
.gs-chips li { margin: 0; }
.gs-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gs-slate);
  background: var(--gs-surface);
  border: 1px solid var(--gs-border);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.gs-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gs-success);
  flex-shrink: 0;
}

/* =========================================================================
   7. CARDS
   ========================================================================= */
.gs-card {
  background: var(--gs-surface);
  border: 1px solid var(--gs-border);
  border-radius: var(--gs-radius);
  box-shadow: var(--gs-shadow);
  padding: 28px;
  transition: box-shadow 150ms ease, transform 150ms ease, border-color 150ms ease;
}
a.gs-card { display: block; color: inherit; }
a.gs-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--gs-shadow-lg);
  border-color: var(--gs-primary-light);
}
.gs-card > :first-child { margin-top: 0; }
.gs-card > :last-child { margin-bottom: 0; }

.gs-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 1.5rem 0;
}
.gs-card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.gs-card-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .gs-card-grid, .gs-card-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .gs-card-grid, .gs-card-grid--2, .gs-card-grid--4 { grid-template-columns: 1fr; }
}

/* =========================================================================
   8. HERO
   ========================================================================= */
.gs-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 64px;
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(37, 99, 235, 0.14), transparent 70%),
    linear-gradient(180deg, #eff6ff 0%, var(--gs-bg) 100%);
}
.gs-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(37, 99, 235, 0.10) 1px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.8), transparent 75%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.8), transparent 75%);
  pointer-events: none;
}
.gs-hero > * { position: relative; }

.gs-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.4em;
  color: var(--gs-navy);
}
.gs-hero h1 .gs-grad,
.gs-grad {
  background: linear-gradient(92deg, var(--gs-primary) 0%, var(--gs-primary-dark) 60%, #4f46e5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gs-hero__sub,
.gs-hero p.gs-hero__sub {
  font-size: 1.15rem;
  color: var(--gs-slate);
  max-width: 640px;
  margin-bottom: 1.5rem;
}

/* Front page: the whole page content lives inside .gs-hero--front, so cap the
   gradient/glow to the top ~640px and let it fade into the plain background. */
.gs-hero--front {
  background-color: var(--gs-bg);
  background-image:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(37, 99, 235, 0.14), transparent 70%),
    linear-gradient(180deg, #eff6ff 0%, var(--gs-bg) 100%);
  background-size: 100% 640px, 100% 640px;
  background-repeat: no-repeat;
}
.gs-hero--front::before {
  height: 480px;
  inset: 0 0 auto 0;
}

/* Tool page hero tint: full page content sits inside, so cap the tint to the top */
.gs-hero--tool {
  padding: 36px 0 44px;
  background-color: var(--gs-bg);
  background-image:
    radial-gradient(ellipse 50% 60% at 50% 0%, rgba(37, 99, 235, 0.12), transparent 70%),
    linear-gradient(180deg, #eff6ff 0%, var(--gs-bg) 100%);
  background-size: 100% 480px, 100% 480px;
  background-repeat: no-repeat;
}
.gs-hero--tool::before {
  height: 380px;
  inset: 0 0 auto 0;
}

/* =========================================================================
   9. PAGE CONTENT / ENTRY TYPOGRAPHY
   ========================================================================= */
.gs-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 0 64px;
}
.gs-page--wide { max-width: 900px; }
.gs-page--full { max-width: 1120px; }

.gs-breadcrumb {
  font-size: 0.85rem;
  color: var(--gs-slate);
  margin: 0 0 1.25rem;
}
.gs-breadcrumb a { color: var(--gs-slate); }
.gs-breadcrumb a:hover { color: var(--gs-primary); }
.gs-breadcrumb .sep { margin: 0 6px; color: var(--gs-border); }

.gs-page-content > h2,
.entry-content > h2 {
  padding-top: 0.4em;
}
.gs-page-content img,
.entry-content img {
  border-radius: var(--gs-radius);
}

.gs-page-content blockquote,
.entry-content blockquote {
  margin: 1.5rem 0;
  padding: 16px 22px;
  background: var(--gs-primary-light);
  border-left: 4px solid var(--gs-primary);
  border-radius: 0 var(--gs-radius) var(--gs-radius) 0;
  color: var(--gs-navy);
}
.gs-page-content blockquote p:last-child,
.entry-content blockquote p:last-child { margin-bottom: 0; }

code, kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: #eef2f7;
  color: var(--gs-primary-dark);
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid var(--gs-border);
}
pre {
  background: var(--gs-navy);
  color: #e2e8f0;
  padding: 18px 22px;
  border-radius: var(--gs-radius);
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.6;
}
pre code {
  background: transparent;
  border: 0;
  color: inherit;
  padding: 0;
}

/* Data tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.93rem;
  background: var(--gs-surface);
  border: 1px solid var(--gs-border);
  border-radius: var(--gs-radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
/* border-radius on tables needs separate borders trick; use wrapper-safe approach */
table { border-style: hidden; box-shadow: 0 0 0 1px var(--gs-border), 0 1px 2px rgba(15,23,42,.04); }
th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gs-border);
  vertical-align: top;
}
thead th {
  background: #f1f5f9;
  color: var(--gs-navy);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--gs-border);
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #f8fafc; }

.gs-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* =========================================================================
   10. FAQ ACCORDIONS (details/summary)
   ========================================================================= */
.gs-faq { margin: 2rem 0; }
.gs-faq > h2:first-child { margin-top: 0; }

.gs-faq details,
.gs-page-content details,
.entry-content details {
  background: var(--gs-surface);
  border: 1px solid var(--gs-border);
  border-radius: var(--gs-radius);
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: box-shadow 150ms ease, border-color 150ms ease;
  overflow: hidden;
}
.gs-faq details[open],
.gs-page-content details[open],
.entry-content details[open] {
  border-color: var(--gs-primary-light);
  box-shadow: var(--gs-shadow);
}

.gs-faq summary,
.gs-page-content summary,
.entry-content summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-weight: 600;
  color: var(--gs-navy);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 150ms ease;
}
.gs-faq summary:hover { background: #f8fafc; }
.gs-faq summary::-webkit-details-marker,
.gs-page-content summary::-webkit-details-marker,
.entry-content summary::-webkit-details-marker { display: none; }

.gs-faq summary::after,
.gs-page-content summary::after,
.entry-content summary::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--gs-primary);
  border-bottom: 2px solid var(--gs-primary);
  transform: rotate(45deg);
  margin-right: 4px;
  transition: transform 150ms ease;
}
.gs-faq details[open] > summary::after,
.gs-page-content details[open] > summary::after,
.entry-content details[open] > summary::after {
  transform: rotate(-135deg);
}

.gs-faq details > *:not(summary),
.gs-page-content details > *:not(summary),
.entry-content details > *:not(summary) {
  padding: 0 20px;
  color: var(--gs-slate);
}
.gs-faq details > :nth-child(2),
.gs-page-content details > :nth-child(2),
.entry-content details > :nth-child(2) { padding-top: 4px; }
.gs-faq details > :last-child,
.gs-page-content details > :last-child,
.entry-content details > :last-child { padding-bottom: 18px; }

/* =========================================================================
   11. FORMS (generic + searchform)
   ========================================================================= */
input[type="text"],
input[type="search"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--gs-font);
  font-size: 16px; /* prevents iOS zoom */
  color: var(--gs-text);
  background: var(--gs-surface);
  border: 1px solid var(--gs-border);
  border-radius: 10px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gs-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  outline: none;
}
label { font-weight: 500; color: var(--gs-navy); }

.gs-searchform {
  display: flex;
  gap: 10px;
  max-width: 560px;
}
.gs-searchform input[type="search"] { flex: 1; }

/* =========================================================================
   12. BLOG CARDS / ARCHIVES
   ========================================================================= */
.gs-post-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 2rem 0;
}
@media (max-width: 768px) {
  .gs-post-list { grid-template-columns: 1fr; }
}

.gs-post-card {
  display: flex;
  flex-direction: column;
  background: var(--gs-surface);
  border: 1px solid var(--gs-border);
  border-radius: var(--gs-radius);
  box-shadow: var(--gs-shadow);
  overflow: hidden;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.gs-post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--gs-shadow-lg);
}
.gs-post-card__thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--gs-primary-light); }
.gs-post-card__thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.gs-post-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.gs-post-card__meta { font-size: 0.8rem; color: var(--gs-slate); margin-bottom: 8px; }
.gs-post-card__title { font-size: 1.15rem; margin: 0 0 8px; }
.gs-post-card__title a { color: var(--gs-navy); }
.gs-post-card__title a:hover { color: var(--gs-primary); text-decoration: none; }
.gs-post-card__excerpt { color: var(--gs-slate); font-size: 0.93rem; margin: 0 0 14px; }
.gs-post-card__more { margin-top: auto; font-weight: 600; font-size: 0.9rem; }

/* Single post */
.gs-single__meta {
  font-size: 0.88rem;
  color: var(--gs-slate);
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--gs-border);
}
.gs-single__thumb img { border-radius: var(--gs-radius-lg); margin-bottom: 1.75rem; }

/* Pagination */
.gs-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 2.5rem 0 1rem;
}
.gs-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--gs-border);
  border-radius: 10px;
  background: var(--gs-surface);
  color: var(--gs-slate);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 150ms ease;
}
.gs-pagination .page-numbers:hover { border-color: var(--gs-primary); color: var(--gs-primary); text-decoration: none; }
.gs-pagination .page-numbers.current { background: var(--gs-primary); border-color: var(--gs-primary); color: #fff; }

/* =========================================================================
   13. 404
   ========================================================================= */
.gs-404 {
  text-align: center;
  padding: 48px 0 72px;
  max-width: 640px;
  margin: 0 auto;
}
.gs-404__code {
  font-size: 5.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 0.2em;
  background: linear-gradient(92deg, var(--gs-primary), #4f46e5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gs-404 .gs-search { text-align: left; margin: 1.75rem 0; }
.gs-404__links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* =========================================================================
   14. FOOTER (dark navy)
   ========================================================================= */
.gs-footer {
  background: var(--gs-navy);
  color: #cbd5e1;
  margin-top: 72px;
  font-size: 0.92rem;
}
.gs-footer__main {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 56px 0 40px;
}
.gs-footer h2, .gs-footer h3 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1.1em;
}
.gs-footer ul { list-style: none; margin: 0; padding: 0; }
.gs-footer li { margin-bottom: 10px; }
.gs-footer a {
  color: #cbd5e1;
  transition: color 150ms ease;
}
.gs-footer a:hover { color: #ffffff; text-decoration: none; }

.gs-footer__bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding: 24px 0 32px;
}
.gs-footer__copy {
  color: #e2e8f0;
  font-weight: 500;
  margin: 0 0 12px;
}
.gs-footer__disclaimer {
  color: #94a3b8;
  font-size: 0.82rem;
  line-height: 1.6;
  max-width: 860px;
  margin: 0;
}

@media (max-width: 1024px) {
  .gs-footer__main { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 480px) {
  .gs-footer__main { grid-template-columns: 1fr; padding: 44px 0 28px; }
}

/* =========================================================================
   15. UTILITIES
   ========================================================================= */
.gs-text-center { text-align: center; }
.gs-mt-0 { margin-top: 0; }
.gs-mb-0 { margin-bottom: 0; }
.gs-muted { color: var(--gs-slate); }
.gs-flex { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.gs-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gs-primary);
  margin-bottom: 0.75rem;
}

/* WordPress core alignment classes */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { max-width: 1120px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--gs-slate); text-align: center; margin-top: 8px; }

/* =========================================================================
   16. RESPONSIVE ADJUSTMENTS
   ========================================================================= */
@media (max-width: 1024px) {
  h1 { font-size: 2.2rem; }
  .gs-section { padding: 52px 0; }
}

@media (max-width: 768px) {
  body { padding-top: 88px; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
  .gs-section { padding: 44px 0; }
  .gs-hero { padding: 40px 0 48px; }
  th, td { padding: 10px 12px; }
  .gs-footer__main { padding-top: 44px; }
}

@media (max-width: 480px) {
  body { padding-top: 84px; font-size: 15.5px; }
  .gs-container { padding-left: 18px; padding-right: 18px; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.35rem; }
  .gs-header { top: 10px; padding: 0 10px; }
  .gs-header__bar { padding: 8px 14px; border-radius: 14px; }
  .gs-header__logo img { height: 28px; }
  .gs-btn--lg { padding: 12px 22px; font-size: 1rem; }
  .gs-hero { padding: 32px 0 40px; }
  .gs-hero h1 { font-size: 1.75rem; }
  .gs-hero__sub, .gs-hero p.gs-hero__sub { font-size: 1.02rem; }
  .gs-card { padding: 22px; }
  .gs-searchform { flex-direction: column; }
  .gs-404__code { font-size: 4rem; }
}

/* =========================================================================
   17. PRINT
   ========================================================================= */
@media print {
  .gs-header, .gs-footer, .gs-nav-toggle, .gs-skip-link { display: none !important; }
  body { padding-top: 0; background: #fff; }
}
