/* =========================================================================
   SiftGuide — Editorial Design System
   Reference class: Wirecutter / The Strategist / NerdWallet.
   Calm, editorial, trustworthy. No neon, no gradients-for-hype, no clutter.
   ========================================================================= */

:root {
  /* Neutral */
  --sg-ink: #1C1E21;
  --sg-charcoal: #3A3D42;
  --sg-slate: #6B7075;
  --sg-mist: #E7E8EA;
  --sg-paper: #FAFAF8;
  --sg-white: #FFFFFF;

  /* Accent */
  --sg-green: #0E7C66;
  --sg-green-dark: #0A5C4C;
  --sg-green-tint: #E4F3EF;

  /* Verdicts — recommendation labels ONLY */
  --sg-verdict-good: #1E8E5A;
  --sg-verdict-caution: #B7791F;
  --sg-verdict-avoid: #B3261E;

  /* Category accents — used only as thin rules / monogram tints, never body text */
  --sg-cat-beauty: #B5527A;
  --sg-cat-hometech: #3A6EA5;
  --sg-cat-software: #6B5CA5;

  /* Type */
  --sg-sans: Inter, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --sg-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;

  /* Layout */
  --sg-content-width: 1100px;
  --sg-measure: 680px;
  --sg-radius: 10px;
  --sg-radius-sm: 6px;
  --sg-shadow: 0 1px 2px rgba(28, 30, 33, 0.04), 0 2px 8px rgba(28, 30, 33, 0.06);
  --sg-shadow-hover: 0 4px 16px rgba(28, 30, 33, 0.10);
}

/* =========================================================================
   Base
   ========================================================================= */

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

body {
  background: var(--sg-paper);
  color: var(--sg-ink);
  font-family: var(--sg-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.single-post,
body.single {
  background: var(--sg-paper);
}

::selection {
  background: var(--sg-green-tint);
  color: var(--sg-ink);
}

a {
  color: var(--sg-green);
  text-decoration-color: rgba(14, 124, 102, 0.35);
  text-underline-offset: 2px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
  color: var(--sg-green-dark);
  text-decoration-color: var(--sg-green-dark);
}

/* Strong, visible focus ring everywhere — accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.button:focus-visible,
.wp-block-button__link:focus-visible {
  outline: 3px solid var(--sg-green);
  outline-offset: 2px;
  border-radius: 3px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--sg-sans);
  color: var(--sg-ink);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.22;
}

p { color: var(--sg-charcoal); }

/* =========================================================================
   Layout width — full-width content, no sidebar
   ========================================================================= */

.sg-wrap {
  max-width: var(--sg-content-width);
  margin-left: auto;
  margin-right: auto;
}

body.no-sidebar #left-sidebar,
body.no-sidebar #right-sidebar,
.site .sidebar {
  display: none !important;
}

/* GeneratePress makes .site-content a flex row to hold #primary + sidebar
   side-by-side. On no-sidebar layouts (including the front page, whose
   template markup is a flat sequence of sections with no #primary wrapper)
   force it back to a normal block stack so sections flow vertically. */
body.no-sidebar .site-content {
  display: block;
}

body.no-sidebar .site-content > .content-area,
body.no-sidebar .site-content #primary {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

/* Front page template outputs sections directly (no #primary wrapper);
   each top-level section manages its own max-width/padding internally,
   so the flex/width rules above are enough to keep them full-bleed and stacked. */

/* =========================================================================
   Header
   ========================================================================= */

#masthead,
.site-header {
  background: var(--sg-white);
  border-bottom: 1px solid var(--sg-mist);
  position: sticky;
  top: 0;
  z-index: 200;
}

.site-header .inside-header {
  padding-top: 14px;
  padding-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-logo img,
.site-logo svg {
  height: 30px;
  width: auto;
  display: block;
}

.main-title,
.site-title {
  font-family: var(--sg-sans);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin: 0;
}

.main-title a,
.site-title a {
  color: var(--sg-ink);
  text-decoration: none;
}

.site-description {
  font-family: var(--sg-sans);
  font-size: 0.8rem;
  color: var(--sg-slate);
  margin-top: 2px;
}

/* Primary nav */
.main-navigation,
#site-navigation {
  background: transparent;
}

.main-navigation .main-nav ul li a,
#site-navigation .main-nav ul li a {
  font-family: var(--sg-sans);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--sg-charcoal);
  padding: 10px 16px;
  text-decoration: none;
  transition: color 0.15s ease;
}

.main-navigation .main-nav ul li a:hover,
#site-navigation .main-nav ul li a:hover {
  color: var(--sg-green);
  background: transparent;
}

.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current_page_item > a {
  color: var(--sg-green);
}

/* =========================================================================
   Buttons / CTAs
   ========================================================================= */

.button,
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
  display: inline-block;
  font-family: var(--sg-sans);
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--sg-green);
  color: var(--sg-white) !important;
  border: none;
  border-radius: var(--sg-radius-sm);
  padding: 12px 22px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}

.button:hover,
.wp-block-button__link:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  background: var(--sg-green-dark);
  color: var(--sg-white) !important;
}

.button:active,
.wp-block-button__link:active {
  transform: translateY(1px);
}

.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--sg-green) !important;
  border: 2px solid var(--sg-green);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--sg-green-tint);
}

/* Generic "Read the guide" style CTA links inside cards */
.sg-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--sg-green);
  text-decoration: none;
  font-size: 0.95rem;
}

.sg-cta::after {
  content: "\2192";
  transition: transform 0.15s ease;
}

.sg-cta:hover::after {
  transform: translateX(3px);
}

/* =========================================================================
   Article / single post
   ========================================================================= */

.single .entry-content,
.page .entry-content {
  font-family: var(--sg-serif);
  font-size: 1.14rem;
  line-height: 1.7;
  color: var(--sg-charcoal);
}

.single .inside-article,
.page .inside-article {
  max-width: var(--sg-measure);
  margin-left: auto;
  margin-right: auto;
  padding-top: 8px;
}

.single .entry-header,
.page .entry-header {
  max-width: var(--sg-measure);
  margin-left: auto;
  margin-right: auto;
  padding-top: 40px;
}

.single .entry-title {
  font-family: var(--sg-sans);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.single .entry-meta,
.entry-meta {
  font-family: var(--sg-sans);
  font-size: 0.85rem;
  color: var(--sg-slate);
  letter-spacing: 0.01em;
}

.entry-meta a { color: var(--sg-slate); text-decoration: underline; }
.entry-meta a:hover { color: var(--sg-green); }

.single .entry-content h2 {
  font-size: 1.5rem;
  margin-top: 2.4em;
  margin-bottom: 0.6em;
  padding-top: 0.2em;
  border-top: 1px solid var(--sg-mist);
}

.single .entry-content > h2:first-child {
  border-top: none;
  margin-top: 1.2em;
}

.single .entry-content h3 {
  font-size: 1.2rem;
  margin-top: 1.8em;
  margin-bottom: 0.5em;
}

.single .entry-content p { margin-bottom: 1.3em; }

.single .entry-content ul,
.single .entry-content ol {
  margin-bottom: 1.3em;
  padding-left: 1.4em;
}

.single .entry-content li { margin-bottom: 0.4em; }

.single .entry-content blockquote {
  border-left: 3px solid var(--sg-green);
  margin: 1.8em 0;
  padding: 0.2em 0 0.2em 1.2em;
  font-style: italic;
  color: var(--sg-ink);
}

.single .entry-content strong { color: var(--sg-ink); font-weight: 700; }

.single .entry-content hr {
  border: none;
  border-top: 1px solid var(--sg-mist);
  margin: 2.4em 0;
}

/* Table of contents block (first <ul> after intro, or explicit .sg-toc) */
.single .entry-content > ul:first-of-type,
.sg-toc {
  background: var(--sg-white);
  border: 1px solid var(--sg-mist);
  border-radius: var(--sg-radius);
  padding: 20px 24px 20px 40px;
  font-family: var(--sg-sans);
  font-size: 0.95rem;
}

/* =========================================================================
   Tables — comparison tables
   ========================================================================= */

.single .entry-content table,
.page .entry-content table,
table.sg-compare {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0 2em;
  font-family: var(--sg-sans);
  font-size: 0.92rem;
  background: var(--sg-white);
  border: 1px solid var(--sg-mist);
  border-radius: var(--sg-radius);
  overflow: hidden;
  box-shadow: var(--sg-shadow);
}

.single .entry-content th,
.page .entry-content th {
  background: var(--sg-green-tint);
  color: var(--sg-ink);
  font-weight: 700;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--sg-mist);
}

.single .entry-content td,
.page .entry-content td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--sg-mist);
  color: var(--sg-charcoal);
  vertical-align: top;
}

.single .entry-content tr:last-child td { border-bottom: none; }
.single .entry-content tr:nth-child(even) td { background: rgba(231, 232, 234, 0.25); }

/* Wrap wide tables so mobile doesn't break layout */
.single .entry-content table {
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}

/* Verdict labels — used sparingly inside tables/text */
.sg-verdict {
  display: inline-block;
  font-family: var(--sg-sans);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.sg-verdict--good { background: rgba(30, 142, 90, 0.12); color: var(--sg-verdict-good); }
.sg-verdict--caution { background: rgba(183, 121, 31, 0.12); color: var(--sg-verdict-caution); }
.sg-verdict--avoid { background: rgba(179, 38, 30, 0.12); color: var(--sg-verdict-avoid); }

/* =========================================================================
   Affiliate disclosure callout
   ========================================================================= */

.sg-disclosure,
.single .entry-content p:has(> em:only-child):first-of-type {
  /* Fallback selector engines without :has() ignore this; JS-free progressive enhancement below covers it */
}

.sg-disclosure {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--sg-green-tint);
  border: 1px solid rgba(14, 124, 102, 0.25);
  border-radius: var(--sg-radius);
  padding: 16px 20px;
  margin: 1.6em 0 2em;
  font-family: var(--sg-sans);
  font-size: 0.92rem;
  color: var(--sg-charcoal);
}

.sg-disclosure__icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sg-green);
  color: var(--sg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  margin-top: 1px;
}

.sg-disclosure a { font-weight: 600; }

/* =========================================================================
   Sources section
   ========================================================================= */

.sg-sources {
  margin-top: 2.4em;
  padding-top: 1.6em;
  border-top: 1px solid var(--sg-mist);
  font-family: var(--sg-sans);
  font-size: 0.88rem;
  color: var(--sg-slate);
}

.sg-sources h2,
.sg-sources h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sg-slate);
  border-top: none;
  margin-top: 0;
}

.sg-sources ol {
  padding-left: 1.2em;
}

.sg-sources li { margin-bottom: 0.5em; }

/* =========================================================================
   Homepage — hero
   ========================================================================= */

.sg-hero {
  background: var(--sg-white);
  border-bottom: 1px solid var(--sg-mist);
  padding: 64px 24px 56px;
  text-align: center;
}

.sg-hero__wordmark {
  height: 44px;
  width: auto;
  margin: 0 auto 20px;
  display: block;
}

.sg-hero__tagline {
  font-family: var(--sg-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--sg-ink);
  max-width: 640px;
  margin: 0 auto 14px;
  line-height: 1.4;
}

.sg-hero__trust {
  font-family: var(--sg-sans);
  font-size: 1rem;
  color: var(--sg-slate);
  max-width: 560px;
  margin: 0 auto;
}

/* =========================================================================
   Section headings on homepage
   ========================================================================= */

.sg-section {
  padding: 56px 24px;
  max-width: var(--sg-content-width);
  margin: 0 auto;
}

.sg-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 8px;
}

.sg-section__title {
  font-size: 1.5rem;
  font-weight: 800;
}

.sg-section__link {
  font-family: var(--sg-sans);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--sg-green);
  text-decoration: none;
}

.sg-section__link:hover { color: var(--sg-green-dark); }

/* =========================================================================
   Guide cards (no photography yet — intentional, on-brand, not empty)
   ========================================================================= */

.sg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.sg-card {
  background: var(--sg-white);
  border: 1px solid var(--sg-mist);
  border-radius: var(--sg-radius);
  overflow: hidden;
  box-shadow: var(--sg-shadow);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
  display: flex;
  flex-direction: column;
}

.sg-card:hover {
  box-shadow: var(--sg-shadow-hover);
  transform: translateY(-2px);
}

/* Category-colored top rule + monogram pattern block instead of a photo */
.sg-card__art {
  height: 96px;
  position: relative;
  background: var(--sg-paper);
  border-bottom: 1px solid var(--sg-mist);
  overflow: hidden;
}

.sg-card__art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18px 18px, currentColor 1.6px, transparent 1.6px);
  background-size: 22px 22px;
  opacity: 0.16;
  color: var(--sg-card-accent, var(--sg-green));
}

.sg-card__art::after {
  content: attr(data-mono);
  position: absolute;
  right: 16px;
  bottom: -14px;
  font-family: var(--sg-sans);
  font-weight: 800;
  font-size: 4.2rem;
  line-height: 1;
  color: var(--sg-card-accent, var(--sg-green));
  opacity: 0.14;
}

.sg-card__art-rule {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--sg-card-accent, var(--sg-green));
}

.sg-card--beauty { --sg-card-accent: var(--sg-cat-beauty); }
.sg-card--hometech { --sg-card-accent: var(--sg-cat-hometech); }
.sg-card--software { --sg-card-accent: var(--sg-cat-software); }

.sg-card__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sg-card__tag {
  font-family: var(--sg-sans);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sg-card-accent, var(--sg-green));
  margin-bottom: 8px;
}

.sg-card__title {
  font-family: var(--sg-serif);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--sg-ink);
  margin-bottom: 10px;
}

.sg-card__title a {
  color: inherit;
  text-decoration: none;
}

.sg-card__title a:hover { color: var(--sg-green-dark); }

.sg-card__excerpt {
  font-family: var(--sg-sans);
  font-size: 0.9rem;
  color: var(--sg-slate);
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}

.sg-card__cta {
  font-family: var(--sg-sans);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--sg-green);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
}

.sg-card__cta::after {
  content: "\2192";
  transition: transform 0.15s ease;
}

.sg-card:hover .sg-card__cta::after { transform: translateX(3px); }

/* =========================================================================
   Category blocks
   ========================================================================= */

.sg-cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.sg-catblock {
  position: relative;
  border-radius: var(--sg-radius);
  padding: 28px 24px;
  color: var(--sg-white);
  text-decoration: none;
  overflow: hidden;
  min-height: 140px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--sg-cat-color, var(--sg-green));
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}

.sg-catblock::before {
  content: attr(data-mono);
  position: absolute;
  top: -10px;
  right: 8px;
  font-family: var(--sg-sans);
  font-weight: 800;
  font-size: 5.5rem;
  opacity: 0.16;
  line-height: 1;
}

.sg-catblock__label {
  font-family: var(--sg-sans);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.sg-catblock__meta {
  font-family: var(--sg-sans);
  font-size: 0.82rem;
  opacity: 0.85;
}

.sg-catblock--beauty { --sg-cat-color: var(--sg-cat-beauty); }
.sg-catblock--hometech { --sg-cat-color: var(--sg-cat-hometech); }
.sg-catblock--software { --sg-cat-color: var(--sg-cat-software); }

.sg-catblock:hover { filter: brightness(1.06); text-decoration: none; }

/* =========================================================================
   Trust strip
   ========================================================================= */

.sg-trust {
  background: var(--sg-white);
  border-top: 1px solid var(--sg-mist);
  border-bottom: 1px solid var(--sg-mist);
  padding: 40px 24px;
}

.sg-trust__inner {
  max-width: var(--sg-content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.sg-trust__text {
  font-family: var(--sg-sans);
  font-size: 0.95rem;
  color: var(--sg-charcoal);
  max-width: 560px;
}

.sg-trust__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.sg-trust__links a {
  font-family: var(--sg-sans);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--sg-green);
  text-decoration: none;
}

.sg-trust__links a:hover { text-decoration: underline; }

/* =========================================================================
   Footer
   ========================================================================= */

#colophon,
.site-footer {
  background: var(--sg-ink);
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--sg-sans);
}

#colophon a,
.site-footer a {
  color: rgba(255, 255, 255, 0.85);
}

#colophon a:hover,
.site-footer a:hover {
  color: var(--sg-white);
}

.sg-footer {
  max-width: var(--sg-content-width);
  margin: 0 auto;
  padding: 48px 24px 32px;
}

.sg-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 20px;
}

.sg-footer__brand-tagline {
  font-family: var(--sg-serif);
  font-style: italic;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 8px;
  max-width: 320px;
}

.sg-footer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.sg-footer__nav a {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.sg-footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

/* =========================================================================
   Comments — keep understated so a publication page doesn't end on a
   raw default WP form
   ========================================================================= */

.single .comments-area {
  max-width: var(--sg-measure);
  margin: 2.4em auto 0;
  padding-top: 2em;
  border-top: 1px solid var(--sg-mist);
  font-family: var(--sg-sans);
}

.single .comments-area .comments-title,
.single .comments-area .comment-reply-title {
  font-family: var(--sg-sans);
  font-size: 1.15rem;
  font-weight: 700;
}

.single .comment-respond {
  background: var(--sg-white);
  border: 1px solid var(--sg-mist);
  border-radius: var(--sg-radius);
  padding: 24px;
  margin-top: 1em;
}

.single .comment-form input[type="text"],
.single .comment-form input[type="email"],
.single .comment-form input[type="url"],
.single .comment-form textarea {
  width: 100%;
  max-width: 100%;
  font-family: var(--sg-sans);
  font-size: 0.95rem;
  border: 1px solid var(--sg-mist);
  border-radius: var(--sg-radius-sm);
  padding: 10px 14px;
  background: var(--sg-paper);
  color: var(--sg-ink);
  margin-bottom: 14px;
}

.single .comment-form input:focus,
.single .comment-form textarea:focus {
  outline: none;
  border-color: var(--sg-green);
  box-shadow: 0 0 0 3px var(--sg-green-tint);
}

.single .comment-form .comment-form-cookies-consent {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--sg-slate);
  margin-bottom: 16px;
}

.single .comment-form .comment-form-cookies-consent input {
  width: auto;
  margin: 0;
}

/* =========================================================================
   Archive / category pages
   ========================================================================= */

.archive .site-content .sg-wrap,
.blog .site-content .sg-wrap {
  padding: 40px 24px 64px;
}

.archive .page-header,
.blog .page-header {
  max-width: var(--sg-content-width);
  margin: 0 auto;
  padding: 40px 24px 8px;
}

.archive .page-title,
.blog .page-title {
  font-size: 2rem;
}

.archive .site-main,
.blog .site-main,
.search .site-main {
  max-width: var(--sg-content-width);
  margin: 0 auto;
  padding: 0 24px;
}

.archive .site-main article,
.blog .site-main article,
.search .site-main article {
  background: var(--sg-white);
  border: 1px solid var(--sg-mist);
  border-radius: var(--sg-radius);
  box-shadow: var(--sg-shadow);
  padding: 32px;
  margin-bottom: 24px;
}

.archive .site-main .entry-title,
.blog .site-main .entry-title,
.search .site-main .entry-title {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.archive .site-main .entry-title a,
.blog .site-main .entry-title a,
.search .site-main .entry-title a {
  color: var(--sg-ink);
  text-decoration: none;
}

.archive .site-main .entry-title a:hover,
.blog .site-main .entry-title a:hover,
.search .site-main .entry-title a:hover {
  color: var(--sg-green-dark);
}

.archive .site-main .entry-summary,
.blog .site-main .entry-summary,
.search .site-main .entry-summary,
.archive .site-main .entry-content,
.blog .site-main .entry-content,
.search .site-main .entry-content {
  font-family: var(--sg-sans);
  font-size: 1rem;
  color: var(--sg-charcoal);
  margin-top: 14px;
}

.archive .site-main .read-more,
.blog .site-main .read-more,
.search .site-main .read-more {
  font-weight: 600;
  color: var(--sg-green);
  text-decoration: none;
}

.archive .site-main .read-more:hover,
.blog .site-main .read-more:hover,
.search .site-main .read-more:hover {
  color: var(--sg-green-dark);
}

.archive .site-main footer.entry-meta,
.blog .site-main footer.entry-meta,
.search .site-main footer.entry-meta {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--sg-mist);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.archive .site-main footer.entry-meta .cat-links a,
.archive .site-main footer.entry-meta .tags-links a,
.blog .site-main footer.entry-meta .cat-links a,
.blog .site-main footer.entry-meta .tags-links a {
  color: var(--sg-slate);
  font-size: 0.85rem;
}

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 900px) {
  .sg-grid,
  .sg-cats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .sg-grid,
  .sg-cats {
    grid-template-columns: 1fr;
  }

  .sg-hero {
    padding: 48px 20px 40px;
  }

  .sg-hero__tagline {
    font-size: 1.2rem;
  }

  .single .entry-title {
    font-size: 1.6rem;
  }

  .sg-trust__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .sg-footer__top {
    flex-direction: column;
  }

  .site-header .inside-header {
    justify-content: center;
    text-align: center;
  }
}

/* Tap targets — ensure interactive elements comfortably clear the 44x44 minimum
   (46px used instead of 44px to avoid sub-pixel rounding landing just under). */
.main-navigation .main-nav ul li a,
.sg-card__cta,
.button,
.wp-block-button__link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
}

.sg-card__title a,
.sg-cta {
  min-height: 46px;
  align-items: center;
}
