/*
Theme Name:  Chronos
Theme URI:   https://tick.techspindra.com
Description: A fast, minimal, professional date and time calculator theme built for tick.techspindra.com
Version:     1.0.0
Author:      TechSpindra
Author URI:  https://techspindra.com
License:     GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chronos
Tags:        minimal, fast, calculator, date, time, programmatic-seo
*/


/* ============================================================
   1. DESIGN TOKENS — Arctic
   ============================================================ */
:root {
  /* Backgrounds */
  --bg:            #f6f8fb;
  --surface:       #ffffff;
  --surface-2:     #eef1f6;
  --surface-3:     #e4e9f0;

  /* Borders */
  --border:        #e2e6ec;
  --border-strong: #c8cdd6;

  /* Text */
  --text:          #0d1117;
  --text-2:        #444c56;
  --muted:         #768390;

  /* Accent — Blue */
  --accent:        #2563eb;
  --accent-h:      #1d4ed8;    /* hover */
  --accent-soft:   #eff6ff;    /* very light bg */
  --accent-border: #bfdbfe;    /* light border */
  --accent-text:   #1e40af;    /* text on light blue bg */

  /* Answer card */
  --ans-bg:        #2563eb;
  --ans-text:      #ffffff;
  --ans-sub:       rgba(255, 255, 255, 0.70);

  /* Nav */
  --nav-bg:        #ffffff;
  --nav-border:    #e2e6ec;

  /* Typography */
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui,
          'Helvetica Neue', Arial, sans-serif;

  /* Radius */
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  14px;
  --r-xl:  18px;
  --r-pill:100px;

  /* Transitions */
  --tr: 0.15s ease;
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

ul, ol { list-style: none; }

button {
  font-family: var(--font);
  cursor: pointer;
}

input, select, textarea {
  font-family: var(--font);
}


/* ============================================================
   3. LAYOUT
   ============================================================ */
.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-main {
  min-height: 60vh;
}


/* ============================================================
   4. SITE HEADER
   ============================================================ */
.site-header {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  position: sticky;
  top: 0;
  z-index: 200;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 16px;
}

/* --- Logo --- */
.site-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo:hover { text-decoration: none; }

/* Image logo (uploaded via customizer) */
.site-logo img {
  height: 32px;
  width: auto;
  display: block;
}

/* Text logo fallback */
.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.4px;
  line-height: 1;
}

/* Icon mark shown alongside text logo */
.logo-mark {
  width: 30px;
  height: 30px;
  background: var(--accent);
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background var(--tr);
}

.logo-mark svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

.site-logo:hover .logo-mark {
  background: var(--accent-h);
}

/* --- Primary Navigation --- */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.primary-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  padding: 5px 11px;
  border-radius: var(--r-sm);
  transition: background var(--tr), color var(--tr);
  white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
}

/* --- Mobile hamburger --- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 8px;
  background: none;
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--tr);
}

.nav-toggle:hover { background: var(--surface-2); }

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  background: var(--nav-bg);
  border-top: 1px solid var(--nav-border);
  padding: 12px 20px;
}

.mobile-nav.open { display: block; }

.mobile-nav a {
  display: block;
  font-size: 15px;
  color: var(--text-2);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:last-child { border-bottom: none; }


/* ============================================================
   5. BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
  padding: 14px 0 0;
}

.breadcrumb a {
  color: var(--muted);
  transition: color var(--tr);
}

.breadcrumb a:hover {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb-sep { font-size: 11px; }
.breadcrumb-current { color: var(--text-2); }


/* ============================================================
   6. HERO / PAGE TITLE
   ============================================================ */
.page-hero {
  padding: 18px 0 22px;
}

.page-hero h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.65px;
  line-height: 1.2;
  color: var(--text);
}

.page-hero .hero-sub {
  font-size: 14px;
  color: var(--muted);
  margin-top: 5px;
}

.page-hero .hero-sub strong {
  color: var(--text-2);
  font-weight: 500;
}


/* ============================================================
   7. ANSWER CARD  (plugin outputs this, theme styles it)
   ============================================================ */
.answer-card {
  background: var(--ans-bg);
  border-radius: var(--r-xl);
  padding: 26px 28px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.answer-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ans-sub);
  margin-bottom: 5px;
}

.answer-date {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--ans-text);
  line-height: 1.1;
}

.answer-meta {
  font-size: 13px;
  color: var(--ans-sub);
  margin-top: 4px;
}

.answer-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Answer card buttons */
.ans-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: var(--r-md);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: var(--ans-text);
  transition: background var(--tr);
}

.ans-btn:hover { background: rgba(255, 255, 255, 0.27); }


/* ============================================================
   8. CARD — generic white card
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  margin-bottom: 16px;
}

.card-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 14px;
}


/* ============================================================
   9. DATE CALCULATOR WIDGET
   ============================================================ */
.calc-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.calc-input {
  width: 80px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  outline: none;
  transition: border-color var(--tr);
  -moz-appearance: textfield;
}

.calc-input::-webkit-inner-spin-button,
.calc-input::-webkit-outer-spin-button { -webkit-appearance: none; }

.calc-input:focus { border-color: var(--accent); }

.calc-select {
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--text);
  background: var(--surface-2);
  outline: none;
  cursor: pointer;
  transition: border-color var(--tr);
}

.calc-select:focus { border-color: var(--accent); }

.calc-btn {
  padding: 9px 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--tr);
  white-space: nowrap;
}

.calc-btn:hover { background: var(--accent-h); }

.calc-result {
  font-size: 14px;
  color: var(--text-2);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: none;
  line-height: 1.6;
}

.calc-result.visible { display: block; }
.calc-result strong { color: var(--accent); font-weight: 600; }


/* ============================================================
   10. RELATIVE DATES TABLE
   ============================================================ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.data-table th {
  text-align: left;
  padding: 7px 11px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 9px 11px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: middle;
}

.data-table td:first-child {
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

.data-table tr:last-child td { border-bottom: none; }

/* Today row highlight */
.data-table tr.row-today td {
  background: var(--accent-soft);
}

.data-table tr.row-today td:first-child {
  color: var(--accent);
}

/* "View →" links */
.data-table td a {
  font-size: 12px;
  color: var(--accent);
  white-space: nowrap;
}

/* Inline "TODAY" badge */
.row-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 1px 5px;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  margin-left: 5px;
  vertical-align: middle;
  text-transform: uppercase;
}


/* ============================================================
   11. UNIT CONVERSION GRID
   ============================================================ */
.conv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 9px;
}

.conv-item {
  background: var(--surface-2);
  border-radius: var(--r-md);
  padding: 13px 15px;
}

.conv-value {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--text);
  line-height: 1.2;
}

.conv-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}


/* ============================================================
   12. ABOUT THIS DATE GRID
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 9px;
}

.about-item {
  background: var(--surface-2);
  border-radius: var(--r-md);
  padding: 11px 15px;
}

.about-item-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.about-item-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-top: 3px;
}


/* ============================================================
   13. CONTENT / EXPLANATION SECTION
   ============================================================ */
.entry-content p {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-2);
  margin-bottom: 12px;
}

.entry-content p:last-child { margin-bottom: 0; }

.entry-content h2 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin: 20px 0 8px;
  letter-spacing: -0.25px;
}

.entry-content h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 16px 0 6px;
}

.entry-content ul,
.entry-content ol {
  list-style: disc;
  padding-left: 20px;
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.7;
}

.entry-content ol { list-style: decimal; }

.entry-content strong {
  color: var(--text);
  font-weight: 600;
}

.entry-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* ============================================================
   14. FAQ ACCORDION
   ============================================================ */
.faq-list { }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child { border-bottom: none; }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 13px 0;
  text-align: left;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  line-height: 1.4;
}

.faq-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 15px;
  color: var(--muted);
  font-weight: 400;
  transition: background var(--tr), color var(--tr), transform 0.2s;
  line-height: 1;
  user-select: none;
}

.faq-item.is-open .faq-icon {
  background: var(--accent-soft);
  color: var(--accent);
  transform: rotate(45deg);
}

.faq-answer {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-2);
  padding-bottom: 13px;
  display: none;
}

.faq-item.is-open .faq-answer { display: block; }

.faq-answer strong { color: var(--text); font-weight: 600; }


/* ============================================================
   15. PILL / TAG LINKS
   ============================================================ */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  background: var(--accent-soft);
  color: var(--accent-text);
  border: 1px solid var(--accent-border);
  transition: background var(--tr), color var(--tr), border-color var(--tr);
  text-decoration: none;
}

.pill:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  text-decoration: none;
}

/* Active/current pill */
.pill.pill-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 700;
}

/* Neutral muted pill */
.pill.pill-muted {
  background: var(--surface-2);
  color: var(--text-2);
  border-color: var(--border);
}

.pill.pill-muted:hover {
  background: var(--surface-3);
  color: var(--text);
  border-color: var(--border-strong);
}


/* ============================================================
   16. GENERIC BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background var(--tr), color var(--tr);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-h);
  text-decoration: none;
}

.btn-ghost {
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--surface-3);
  color: var(--text);
  text-decoration: none;
}


/* ============================================================
   17. HUB / CATEGORY PAGE
   ============================================================ */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.hub-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  transition: border-color var(--tr), box-shadow var(--tr);
  text-decoration: none;
  display: block;
}

.hub-card:hover {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px var(--accent-soft);
  text-decoration: none;
}

.hub-card-num {
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.5px;
  line-height: 1;
  margin-bottom: 4px;
}

.hub-card-label {
  font-size: 13px;
  color: var(--text-2);
}


/* ============================================================
   18. 404 PAGE
   ============================================================ */
.error-404 {
  text-align: center;
  padding: 64px 20px 48px;
}

.error-404-code {
  font-size: 96px;
  font-weight: 700;
  color: var(--surface-3);
  letter-spacing: -6px;
  line-height: 1;
  margin-bottom: 20px;
  user-select: none;
}

.error-404-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.error-404-message {
  font-size: 15px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 24px;
  line-height: 1.65;
}

.error-404-message strong {
  color: var(--text-2);
  font-weight: 600;
}

.error-404-nav {
  margin-bottom: 8px;
}


/* ============================================================
   19. SITE FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  background: var(--surface);
}

/* ── Top row: brand + nav ── */
.footer-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 28px 20px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* Brand column */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Reuse site-logo but scale down icon mark in footer */
.site-footer .logo-mark {
  width: 24px;
  height: 24px;
  border-radius: 5px;
}

.site-footer .logo-mark svg {
  width: 13px;
  height: 13px;
}

.site-footer .logo-text {
  font-size: 16px;
}

.footer-tagline {
  font-size: 12px;
  color: var(--muted);
  max-width: 220px;
  line-height: 1.5;
  margin-top: 2px;
}

/* Nav column */
.footer-links-wrap { }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding-top: 2px; /* align with logo text baseline */
}

/* WordPress outputs <li> inside the nav container */
.footer-nav li  { list-style: none; }

.footer-nav a {
  font-size: 13px;
  color: var(--muted);
  transition: color var(--tr);
  white-space: nowrap;
}

.footer-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ── Bottom bar: copyright + legal ── */
.footer-bottom {
  border-top: 1px solid var(--border);
}

.footer-bottom-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 11px;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  gap: 12px;
}

.footer-legal a {
  font-size: 11px;
  color: var(--muted);
  transition: color var(--tr);
}

.footer-legal a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ── Footer responsive ── */
@media (max-width: 520px) {
  .footer-inner {
    flex-direction: column;
    gap: 20px;
    padding-bottom: 20px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}


/* ============================================================
   20. UTILITY CLASSES
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-muted  { color: var(--muted); }
.text-accent { color: var(--accent); }
.fw-600      { font-weight: 600; }
.fw-700      { font-weight: 700; }
.mt-4        { margin-top: 4px; }
.mt-8        { margin-top: 8px; }
.mt-12       { margin-top: 12px; }
.mb-8        { margin-bottom: 8px; }
.mb-12       { margin-bottom: 12px; }
.mb-16       { margin-bottom: 16px; }
.mb-20       { margin-bottom: 20px; }


/* ============================================================
   21. RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 768px) {
  .primary-nav { display: none; }
  .nav-toggle  { display: flex; }
}

/* Mobile */
@media (max-width: 580px) {
  .page-hero h1 { font-size: 24px; }

  .answer-card  { padding: 20px; }
  .answer-date  { font-size: 26px; }

  .card { padding: 16px 18px; }

  .conv-grid    { grid-template-columns: repeat(2, 1fr); }
  .about-grid   { grid-template-columns: repeat(2, 1fr); }
  .hub-grid     { grid-template-columns: repeat(2, 1fr); }

  .data-table th:nth-child(3),
  .data-table td:nth-child(3) { display: none; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* Very small */
/* ============================================================
   22. PAGE TEMPLATE — page.php
   ============================================================ */

/* Article wrapper — no visual chrome, just spacing */
.page-article {
  padding-bottom: 32px;
}

/* Page title */
.page-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.65px;
  line-height: 1.2;
  color: var(--text);
}

/* Full-width home page content — no card wrappers */
.page-content--home .entry-content > p:first-child {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 28px;
}

/* wp_link_pages() pagination for split content */
.page-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 13px;
}

.page-links-label {
  color: var(--muted);
  font-weight: 500;
}

.page-links-item a,
.page-links-item {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  transition: background var(--tr), color var(--tr);
  text-decoration: none;
}

.page-links-item a:hover {
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
}

/* Current page number — no anchor, just the span */
.page-links > .page-links-item:not(:has(a)) {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}


/* ============================================================
   23. POST LIST — index.php blog / archive / search
   ============================================================ */

.post-list {
  display: flex;
  flex-direction: column;
  gap: 0;            /* cards have margin-bottom already */
}

/* Override .card margin for post items */
.post-item.card {
  margin-bottom: 16px;
}

.post-item-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.25px;
  line-height: 1.3;
  margin-bottom: 6px;
}

.post-item-title a {
  color: var(--text);
  transition: color var(--tr);
}

.post-item-title a:hover {
  color: var(--accent);
  text-decoration: none;
}

.post-item-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.post-item-sep { user-select: none; }

.post-item-excerpt {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 12px;
}

/* Strip default WP excerpt margin */
.post-item-excerpt p {
  margin: 0;
}

.post-item-more {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  transition: color var(--tr);
}

.post-item-more:hover {
  color: var(--accent-h);
  text-decoration: none;
}

/* ── No results ── */
.no-results {
  text-align: center;
  padding: 32px 24px;
}

.no-results-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.no-results-sub {
  font-size: 14px;
  color: var(--muted);
}

.no-results .pill-grid {
  justify-content: center;
}

/* ── Pagination ── */
.pagination-wrap {
  margin: 8px 0 24px;
}

/* WordPress outputs .page-numbers */
.page-numbers {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.page-numbers a,
.page-numbers span {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: background var(--tr), color var(--tr), border-color var(--tr);
  text-decoration: none;
}

.page-numbers a:hover {
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
}

.page-numbers .current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.page-numbers .dots {
  border: none;
  background: none;
  color: var(--muted);
  padding: 6px 4px;
}


/* ============================================================
   23. SKIP TO CONTENT — Accessibility
   ============================================================ */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 20px;
  z-index: 9999;
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 0 0 var(--r-md) var(--r-md);
  text-decoration: none;
  transition: top 0.15s;
}

.skip-to-content:focus {
  top: 0;
  outline: 3px solid var(--accent-h);
  outline-offset: 2px;
}


@media (max-width: 380px) {
  .wrap { padding: 0 14px; }
  .page-hero h1 { font-size: 21px; }
  .answer-date  { font-size: 22px; }
  .ans-btn { font-size: 11px; padding: 7px 11px; }
}