/*
Theme Name: GreatSeniorSavings
Theme URI: https://greatseniorsavings.com
Description: A clean, AARP-style WordPress theme focused on senior savings, retirement, and health.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: greatseniorsavings
*/

/* =========================
   Design Tokens / Resets
   ========================= */
:root{
  /* Brand palette (GSS) */
  --brand-teal:     #599A9E;  /* primary */
  --brand-teal-700: #4B8387;  /* hover / focus */
  --brand-gold:     #D9AF52;  /* accent */
  --brand-gold-700: #C79A2F;  /* hover */
  --brand-lavender: #BCA8C9;  /* soft accent */

  /* Back-compat with existing rules that use --brand-red* */
  --brand-red:      var(--brand-teal);
  --brand-red-600:  var(--brand-teal-700);

  --ink:#1a1a1a;
  --muted:#555;
  --bg:#ffffff;
  --border:#e6e6e6;
  --panel:#fafafa;
  --link:#4F8C8C; /* teal-ish link */
  --shadow:0 1px 2px rgba(0,0,0,.06),0 8px 24px rgba(0,0,0,.05);
  --radius:6px;
  --max:1360px; /* overall site width */
}

*,*::before,*::after{ box-sizing:border-box; }
html{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,Helvetica,Arial;
  scroll-behavior:smooth;
}
body{ margin:0; color:var(--ink); background:#fff; line-height:1.45; }
a{ color:var(--ink); text-decoration:none; }
a.link{ color:var(--link); }
img{ max-width:100%; height:auto; display:block; background:linear-gradient(180deg,#f7f7f7,#ececec); }

/* Containment: keep everything inside the site width */
.container,
.wrap,
.wrapper,
.site-container,
.site-content,
.content-area,
.section-inner,
.entry-content{
  max-width:var(--max);
  width:min(100%, var(--max));
  margin-inline:auto;
  padding-inline:20px;
}

/* Safety guards */
img, video, iframe{ max-width:100%; height:auto; display:block; }
table{ width:100%; border-collapse:collapse; }
pre, code{ white-space:pre-wrap; word-break:break-word; }
.entry-content, .content, .widget, .card, .post{ overflow-wrap:anywhere; }
html, body{ overflow-x:hidden; }

/* =========================
   Typography helpers
   ========================= */
.muted{ color:var(--muted);     margin-top: 0px; }
.eyebrow{ font-size:.8rem; color:var(--muted); text-transform:uppercase; letter-spacing:.06em; font-weight:700; }
.subhead{ font-size:1.05rem; color:var(--muted); margin:.25rem 0 1rem; }

/* =========================
   Buttons & Inputs
   ========================= */
.btn{
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.6rem 1rem; border:1px solid var(--border);
  font-weight:600; background:#fff; border-radius:var(--radius);
}
.btn.primary{ background:var(--brand-red); color:#fff; border-color:transparent; }
.btn.primary:hover{ background:var(--brand-red-600); }
.btn.small{ padding:.45rem .8rem; font-size:.9rem; }

/* Optional secondary button in brand gold */
.btn.alt{
  background: var(--brand-gold);
  color:#1a1a1a;
  border-color: transparent;
}
.btn.alt:hover{ background: var(--brand-gold-700); }

input,select,textarea{ border:1px solid var(--border); padding:.7rem .9rem; border-radius:var(--radius); outline:none; }

/* Keep cards/panels/thumbs squared (AARP-ish) */
:where(.card,.panel,.thumb,.cta,.brand .mark){ border-radius:0; }

/* =========================
   Header / Nav
   ========================= */
.topbar{ background:#f6f6f6; border-bottom:1px solid var(--border); font-size:.9rem; }
.topbar .row{
  display:flex; gap:18px; justify-content:flex-end; align-items:center; padding:.5rem 0;
}
.brand{ display:flex; align-items:center; gap:.6rem; font-weight:900; }
.brand .mark{ display:inline-grid; place-items:center; width:42px; height:26px; background:linear-gradient(135deg, var(--brand-teal), var(--brand-gold)); color:#fff; }
.brand.logo img{ max-width:150px; }

.navbar{ position:sticky; top:0; z-index:50; background:#fff; border-bottom:1px solid var(--border); }
.navbar .row{ display:flex; align-items:center; gap:16px; padding:.7rem 0; position:relative; justify-content: space-between; }

.nav{ display:flex; gap:18px; flex-wrap:wrap; align-items:center; margin:0; padding:0; list-style:none; }
.nav a{ font-weight:600; color:#333; padding:.5rem .7rem; font-size:18px; }
.nav a:hover{ color:var(--brand-teal); }

.burger{
  margin-left:auto; background:#fff; border:1px solid var(--border);
  padding:.45rem .6rem; display:none; border-radius:var(--radius);
}
.mobile-nav{ display:none; }

@media (max-width:880px){
  .nav{ display:none; }
  .burger{ display:inline-flex; }
  .mobile-nav{
    display:none; position:absolute; inset:calc(100% + 0px) 0 auto 0;
    background:#fff; border-bottom:1px solid var(--border);
  }
  .mobile-nav.open{ display:block; }
  .mobile-nav ul{ list-style:none; margin:0; padding:8px; }
  .mobile-nav a{ display:block; padding:12px; border-top:1px solid var(--border); font-weight:600; }
}

/* =========================
   Layout Helpers
   ========================= */
.grid{ display:grid; gap:18px; }
.grid.cols-2{ grid-template-columns:repeat(2,1fr); }
.grid.cols-3{ grid-template-columns:repeat(3,1fr); }
.grid.cols-4{ grid-template-columns:repeat(4,1fr); }

@media (max-width:980px){
  .grid.cols-3, .grid.cols-4{ grid-template-columns:1fr 1fr; }
}
@media (max-width:640px){
  .grid.cols-3, .grid.cols-4, .grid.cols-2{ grid-template-columns:1fr; }
}

.intro{ padding:24px 0 8px; }
.intro h1{ font-size:2rem; margin:.2rem 0 .2rem; }
.lead{ max-width:70ch; color:var(--muted); }

/* ===== Hero with top white + wave bottom ===== */
.hero-wave-bottom{
  position: relative;
  background: #f9f9f9;
  color: var(--ink);
  padding: 20px 0 60px;
  overflow: hidden;
}
.hero-wave-bottom h1{ font-size:2.6rem; color:#0f0f0f; margin-bottom:.6rem; margin-top:0; }
.hero-wave-bottom p{ font-size:1.1rem; color:#222; max-width:700px; line-height:1.6; }

/* SVG wave */
.hero-wave-bottom svg{
  position:absolute;
  bottom:-1px;
  left:0;
  width:100%;
  height:220px;
  display:block;
  pointer-events:none;
}

/* optional: remove top margin on the next section if needed */
.hero-wave-bottom + .section{ margin-top: 0; }

/* =========================
   Content Blocks
   ========================= */
.section{ padding:28px 0; border-top:1px solid var(--border); }
.section h2{ font-size:1.55rem; margin:0 0 6px; }

.card{
  display:flex; flex-direction:column; gap:10px; background:#fff;
}
.card h3{ font-size:1rem; line-height:1.3; margin:0; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; text-overflow:ellipsis; line-height:1.3; min-height:calc(1.3em * 2); }
.card .meta{ font-size:.85rem; color:var(--muted); margin:0; }
.card h3 a{ color:black; }
.card h3 a:hover{ color:var(--brand-teal); }
.card p{
  display:-webkit-box; -webkit-line-clamp:5; -webkit-box-orient:vertical;
  overflow:hidden; text-overflow:ellipsis; line-height:1.4; min-height:calc(1.4em * 5);
  margin-bottom:0;
}

/* Unified thumbnail behavior (responsive, centered subject) */
.thumb{
  aspect-ratio:16 / 9;
  width:100%;
  overflow:hidden;
  background:linear-gradient(180deg,#f4f4f4,#eaeaea);
  border:1px solid var(--border);
  display:block;
}
.thumb > img{ width:100%; height:100%; object-fit:cover; object-position:center; display:block; }

/* Optional fixed-size variant: add class="thumb thumb--fixed" where needed */
.thumb--fixed{
  width:300px; height:200px; aspect-ratio:auto;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 1px 3px rgba(0,0,0,0.1);
  background-color:#f8f8f8;
}
.thumb--fixed > img{ width:100%; height:100%; object-fit:cover; object-position:center; }

/* =========================
   Footer
   ========================= */
footer{ background:#f4f4f4; border-top:1px solid var(--border); margin-top:40px; }
.footer-grid{
  display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:20px; padding:32px 0;
}
.footer-grid h4{ margin:.2rem 0 .6rem; }
.small{ font-size:.86rem; }

@media(max-width:980px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media(max-width:600px){ .footer-grid{ grid-template-columns:1fr; } }

/* =========================
   Front Page Layout
   ========================= */
.split{
  display:grid;
  grid-template-columns:minmax(0, 2fr) minmax(0, 1fr);
  gap:24px;
  align-items:start;
}
.split > *{ min-width:0; }

@media (max-width:820px){
  .split{ grid-template-columns:1fr; }
}

/* Right sidebar column stack */
.aside{ display:flex; flex-direction:column; gap:18px; }

/* Simple gray info panels (sidebar boxes) */
.panel{ padding:16px; border:1px solid var(--border); background:var(--panel); }
.panel h3{ margin:.2rem 0 .4rem; font-size:1.05rem; }

/* Utility flex row with vertical centering (used for search row) */
.row-center{ display:flex; align-items:center; gap:10px; }

/* Small spacer utility used in panels */
.space{ height:8px; }

/* CTA (dark stripe) block */
.cta{ background:#373737; color:#fff; margin-top:8px; }
.cta .wrap{
  display:grid; grid-template-columns:1.3fr .8fr; gap:20px; padding:24px;
}
.cta h3{ margin:.2rem 0 .4rem; }
.cta p{ color:#ddd; }

@media (max-width:900px){
  .cta .wrap{ grid-template-columns:1fr; }
}

/* Tame the CTA preview image height if you don’t have a real image */
.cta .card .thumb{ aspect-ratio:auto; height:220px; max-height:220px; }

/* Harmonize card spacing & grids */
.grid{ gap:20px; }

/* =========================
   Gutenberg Wide/Full handling
   ========================= */
.alignwide, .wp-block-group.alignwide, .wp-block-image.alignwide{
  max-width:var(--max);
  width:min(100%, var(--max));
  margin-inline:auto;
  padding-inline:0;
}
.full-bleed{
  max-width:none !important;
  width:100%;
  margin-inline:0;
  padding-inline:0;
}

/* ===== Editor's Picks (sidebar list) ===== */
.panel ul[style*="padding-left:1.1rem"] {
  list-style: none;
  margin: .4rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.panel ul[style*="padding-left:1.1rem"] > li {
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.35;
}
.panel ul[style*="padding-left:1.1rem"] > li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.panel ul[style*="padding-left:1.1rem"] a {
  color: var(--link);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .2s ease, transform .15s ease;
}
.panel ul[style*="padding-left:1.1rem"] a:hover {
  color: var(--brand-teal);
  transform: translateX(2px);
}

/* ===== SMS Opt-in – polished card layout ===== */
.sms-card {
  padding: 28px 28px 22px;
  background: #464d4c;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 24px auto 40px;
}
.sms-cta { text-align: left; }

.sms-title {
  font-size: 1.6rem;
  margin: 0 0 .35rem;
  font-weight: 800;
  letter-spacing: .2px;
  color: white;
}

.sms-subtitle {
  margin: 0 0 1rem;
  font-size: 1rem;
  min-height: auto !important;
  margin-bottom:10px !important;
  color: white;
}

/* Use a responsive grid so fields line up neatly */
.sms-row {
  display: block;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  align-items: end;
  margin-bottom: .75rem;
}

/* Each field becomes a tidy block */
.sms-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding:10px 0px;
}

/* Map fields across the grid (desktop) */
.sms-field.inline:nth-of-type(1) { grid-column: span 3; } /* First name  */
.sms-field.inline:nth-of-type(2) { grid-column: span 3; } /* Last name   */
.sms-field.inline.sms-phone      { grid-column: span 4; } /* Phone       */
.sms-submit                      { grid-column: span 2; } /* Button      */

/* Inputs */
.sms-field input {
  width: 100%;
  padding: .6rem .8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.sms-field input:hover  { border-color: #d3d3d3; }
.sms-field input:focus  { outline: 0; border-color: var(--brand-teal); box-shadow: 0 0 0 3px rgba(89,154,158,.12); }

/* Button */
.sms-submit {
  justify-self: start;
  height: 44px;
  padding: 0 18px;
  border-radius: calc(var(--radius) + 2px);
  font-weight: 700;
}

/* Consent copy */
.policy-inline {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 8px 10px;
  font-size: .88rem;
  line-height: 1.5;
  color: white;
  margin-top: 10px;
}
.policy-inline input[type="checkbox"] { margin-top: 2px; }
.policy-inline a { color: var(--link); text-decoration: underline; }
.policy-inline a:hover { color: var(--brand-teal); }

/* Screen-reader helper */
.visually-hidden {
  position: absolute; width:1px; height:1px; overflow:hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border:0; padding:0; margin:-1px;
}

/* Responsive tweaks */
@media (max-width: 1000px) {
  .sms-field.inline:nth-of-type(1),
  .sms-field.inline:nth-of-type(2) { grid-column: span 6; }
  .sms-field.inline.sms-phone      { grid-column: span 6; }
  .sms-submit                      { grid-column: span 6; justify-self: stretch; }
}
@media (max-width: 640px) {
  .sms-card { padding: 22px 16px; }
  .sms-row { grid-template-columns: 1fr; }
  .sms-field.inline,
  .sms-field.inline.sms-phone,
  .sms-submit { grid-column: 1 / -1; }
  .sms-submit { width: 100%; }
  .policy-inline { grid-template-columns: auto 1fr; }
}

/* ===== Post page tweaks ===== */
.post-meta { font-size:.95rem; }

.prose :where(p, ul, ol){
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 1rem 0;
}
.prose h2 { font-size: 1.35rem; margin: 1.4rem 0 .6rem; }
.prose h3 { font-size: 1.15rem; margin: 1.1rem 0 .4rem; }
.prose blockquote{
  margin: 1rem 0;
  padding: .6rem .9rem;
  border-left: 4px solid var(--brand-teal);
  background: color-mix(in srgb, var(--brand-lavender) 12%, #fff);
}
.prose hr{
  border: 0; height: 1px; background: var(--border);
  margin: 1.4rem 0;
}
.prose figure{ margin: 1.2rem 0; }
.prose img{ border-radius: 4px; }

/* Clamp long related-card titles/desc */
.card h3{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: calc(1.3em * 2);
}
.card .muted{
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Make related grid breathe a bit more on small screens */
@media (max-width: 980px){
  #related .grid.cols-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px){
  #related .grid.cols-4 { grid-template-columns: 1fr; }
}

/* ===== Share Buttons ===== */
.share-block {
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}
.share-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .9rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.share-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.share-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: #fff;
  transition: all 0.2s ease;
}
.share-btn:hover {
  background: var(--brand-teal);
  color: #fff;
  border-color: var(--brand-teal);
  transform: translateY(-2px);
}
.share-btn svg { width:20px; height:20px; }

/* Variant brand hints (optional) */
.share-btn.facebook:hover   { background:#1877f2; border-color:#1877f2; }
.share-btn.twitter:hover    { background:#000;    border-color:#000; }
.share-btn.linkedin:hover   { background:#0077b5; border-color:#0077b5; }
.share-btn.email:hover      { background:var(--brand-teal); border-color:var(--brand-teal); }

@media (max-width: 600px){
  .share-buttons { gap: 8px; }
  .share-btn { width: 38px; height: 38px; }
}

/* ===== Post Body (Content / Prose Styling) ===== */
.prose,
.content {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto;
}
.prose p,
.content p { margin: 1.1rem 0; }
.prose a,
.content a {
  color: var(--link);
  text-decoration: underline;
  transition: color .2s ease;
}
.prose a:hover,
.content a:hover { color: var(--brand-teal); }

/* Headings */
.prose h1, .content h1 { font-size: 2rem; line-height: 1.25; margin: 2rem 0 1rem; font-weight: 800; }
.prose h2, .content h2 { font-size: 1.5rem; margin: 1.6rem 0 .8rem; font-weight: 700; }
.prose h3, .content h3 { font-size: 1.25rem; margin: 1.4rem 0 .6rem; font-weight: 700; }
.prose h4, .content h4 { font-size: 1.1rem; margin: 1.2rem 0 .4rem; font-weight: 600; }

/* Lists */
.prose ul,
.content ul,
.prose ol,
.content ol {
  margin: 1rem 0 1rem 1.6rem;
  padding: 0;
}
.prose li,
.content li { margin:.4rem 0; line-height:1.6; }
.prose ul li::marker,
.content ul li::marker { color: var(--brand-teal); }

/* Images */
.prose img,
.content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1.2rem 0;
  display: block;
}

/* Captions */
.prose figcaption,
.content figcaption {
  font-size: .9rem;
  color: var(--muted);
  text-align: center;
  margin-top: .4rem;
}

/* Tables */
.prose table,
.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0;
  font-size: .95rem;
}
.prose th,
.content th {
  background: var(--panel);
  text-align: left;
  padding: .6rem .8rem;
  border: 1px solid var(--border);
  font-weight: 700;
}
.prose td,
.content td {
  padding: .6rem .8rem;
  border: 1px solid var(--border);
}
.prose tr:nth-child(even),
.content tr:nth-child(even) { background:#fafafa; }

/* Code / Preformatted */
.prose code,
.content code {
  background: #f4f4f4;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: .9rem;
}
.prose pre,
.content pre {
  background: #f4f4f4;
  border-radius: var(--radius);
  padding: 1rem;
  overflow-x: auto;
  font-family: "Courier New", monospace;
  font-size: .9rem;
  margin: 1.4rem 0;
}

/* Horizontal rule */
.prose hr,
.content hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}

/* Embedded video or iframe */
.prose iframe,
.content iframe {
  width: 100%;
  max-width: 100%;
  border: none;
  border-radius: var(--radius);
  margin: 1.4rem 0;
}

/* Callouts / Notes */
.note{
  border-left: 4px solid var(--link);
  background: #f2f9fa;
  padding: .8rem 1rem;
  margin: 1.4rem 0;
  border-radius: var(--radius);
  color: var(--ink);
}

/* Responsive fix */
@media (max-width: 640px) {
  .prose,
  .content {
    font-size: 1rem;
    line-height: 1.65;
    padding: 0 10px;
  }
  .prose table,
  .content table { font-size: .9rem; }
}

/* ===== Pagination (the_posts_pagination) ===== */
.section .pagination,
.nav-links {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .15s ease, color .15s ease, border-color .15s ease, background .15s ease;
}
.page-numbers:hover {
  transform: translateY(-1px);
  border-color: #d9d9d9;
  color: var(--brand-teal);
}
.page-numbers:focus {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(89,154,158,.15);
  border-color: var(--brand-teal);
}
/* Current page */
.page-numbers.current,
.page-numbers.current:hover {
  background: var(--brand-teal);
  color: #fff;
  border-color: var(--brand-teal);
  cursor: default;
  transform: none;
}
/* Prev / Next pills */
.page-numbers.prev,
.page-numbers.next {
  padding: 0 14px;
  min-width: auto;
}
/* Dots (…) */
.page-numbers.dots {
  border: none;
  box-shadow: none;
  min-width: auto;
  padding: 0 4px;
  color: var(--muted);
}
@media (max-width: 520px) {
  .page-numbers { min-width: 36px; height: 36px; padding: 0 10px; font-weight: 600; }
  .page-numbers.prev, .page-numbers.next { padding: 0 12px; }
}

/* ===== Health archive tag bar ===== */
.tagbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 10px auto 0;
  max-width: 900px;
}
.tagbar .tag-pill {
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, color .15s ease;
}
.tagbar .tag-pill:hover {
  transform: translateY(-1px);
  border-color: #d8d8d8;
  color: var(--brand-teal);
}

/* ===== Care Innovations header banner ===== */
.care-hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #fff 0%, #fff 60%, color-mix(in srgb, var(--brand-lavender) 22%, #fff) 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.care-hero .subhead { margin: .35rem 0 0; }
.care-hero-cta { display: flex; gap: 10px; justify-content: flex-end; }
@media (max-width: 900px){
  .care-hero { grid-template-columns:1fr; }
  .care-hero-cta { justify-content: flex-start; flex-wrap: wrap; }
}

/* Optional: make Health hero card title/desc slightly larger */
.category-health .card h3 { font-size: 1.15rem; }

/* Compact list used in category blocks */
.list-compact {
  list-style: none;
  margin: .6rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.list-compact li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.list-compact li:last-child { border-bottom: none; }
.list-compact .thumb.tiny img {
  width: 56px; height: 56px; object-fit: cover;
  border-radius: 4px; border: 1px solid var(--border);
}
.list-compact .title {
  font-weight: 700; display: inline-block;
  line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.list-compact .small { font-size: .86rem; color: var(--muted); }

/* Make headings breathe a bit */
.section > h2 { margin: 0 0 8px; }

/* --- Optional lavender underline utility --- */
.accent-underline{ position:relative; }
.accent-underline::after{
  content:""; position:absolute; left:0; right:0; bottom:-6px;
  height:3px; border-radius:3px; background:var(--brand-lavender);
}
