/* =====================================================
   THEME VARIABLES
===================================================== */

:root{
  --bg:#f6f7fb;
  --panel:#ffffff;
  --panel2:#ffffff;

  --text:#0f172a;
  --muted:#475569;

  --brand:#2563eb;
  --brand2:#16a34a;

  --border:rgba(15,23,42,.10);
  --shadow: 0 12px 30px rgba(15,23,42,.08);

  --max: 1120px;
  --radius: 16px;
  --gap: 18px;
  --pad: 18px;
  --pad2: 28px;

  --h1: clamp(28px, 3.2vw, 44px);
  --h2: clamp(20px, 2.4vw, 28px);
  --h3: 18px;
}

/* =====================================================
   BASE / RESET
===================================================== */

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: var(--bg);
  color:var(--text);
  line-height:1.55;
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

img{ max-width:100%; height:auto; display:block; }

.container{
  width: min(var(--max), calc(100% - 32px));
  margin-inline:auto;
}

/* Accessibility */
.skip-link{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left:16px;
  top:16px;
  width:auto;
  height:auto;
  padding:10px 12px;
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:10px;
  z-index:9999;
}

/* =====================================================
   STICKY FOOTER LAYOUT
   (Footer stays at bottom on short pages)
===================================================== */

html, body{
  height: 100%;
}

body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Let the main content area expand to push footer down */
main#content{
  flex: 1 0 auto;
}

/* Footer should not shrink */
.site-footer{
  margin-top: auto;
  flex-shrink: 0;
}

/* =====================================================
   HEADER
===================================================== */

.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:#ffffff;
  border-bottom:1px solid var(--border);
  backdrop-filter: blur(6px);
}

.header-inner{
  display:flex;
  align-items:center;
  gap:28px;
  padding:18px 0;
}

/* =====================================================
   SECONDARY TOPICS BAR
   (Sits under main header row and surfaces the topic links)
===================================================== */

.topics-bar{
  background: rgba(37,99,235,.06);
  border-top: 1px solid rgba(37,99,235,.14);
  border-bottom: 1px solid var(--border);
}

.topics-bar-inner{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:22px;
  padding:10px 0;
  overflow-x:auto;
  -webkit-overflow-scrolling: touch;
}

/* hide scrollbar (still scrollable) */
.topics-bar-inner{ scrollbar-width: none; }
.topics-bar-inner::-webkit-scrollbar{ display:none; }

.topics-bar a{
  position:relative;
  white-space:nowrap;
  font-size:13px;
  font-weight:600;
  color:var(--text);
  opacity:.78;
  padding:6px 2px;
  transition:.2s ease;
}

.topics-bar a,
.topics-bar a:hover{
  text-decoration:none;
}

.topics-bar a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-4px;
  width:0%;
  height:2px;
  background:var(--brand);
  transition:.25s ease;
  border-radius:2px;
}

.topics-bar a:hover{ opacity:1; }
.topics-bar a:hover::after{ width:100%; }

/* Highlight when viewing a category page */
.topics-bar a.is-active{ opacity:1; }
.topics-bar a.is-active::after{ width:100%; }

/* =====================================================
   BRAND / LOGO
===================================================== */

.brand{
  display:flex;
  align-items:center;
  gap:16px;
  text-decoration:none;
}
.brand,
.brand:hover{
  text-decoration:none;
}

.logo-badge{
  width:56px;
  height:56px;
  border-radius:14px;
  background:#d9d9d9; /* match logo background */
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 6px 16px rgba(15,23,42,.12);
  transition:.2s ease;
}

.site-logo{
  max-width:70%;
  height:auto;
  display:block;
}

.brand-name{
  font-family: 'Cormorant Garamond', serif;
  font-weight:600;
  font-size:24px;
  letter-spacing:.3px;
  line-height:1;
  transition:.2s ease;
}

/* subtle hover refinement */
.brand:hover .logo-badge{
  transform:translateY(-2px);
  box-shadow:0 10px 22px rgba(15,23,42,.16);
}
.brand:hover .brand-name{
  opacity:.85;
}

/* =====================================================
   NAVIGATION
===================================================== */

.nav{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:22px;
}

/* Nav links */
.nav a{
  position:relative;
  font-size:14px;
  font-weight:500;
  font-family: inherit;
  color:var(--text);
  opacity:.8;
  padding:6px 2px;
  transition:.2s ease;
}

.nav a,
.nav a:hover{
  text-decoration:none;
}

/* subtle underline animation */
.nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-4px;
  width:0%;
  height:2px;
  background:var(--brand);
  transition:.25s ease;
  border-radius:2px;
}

.nav a:hover{
  opacity:1;
}

.nav a:hover::after{
  width:100%;
}

/* active page */
.nav a[aria-current="page"]{
  opacity:1;
}
.nav a[aria-current="page"]::after{
  width:100%;
}

/* =====================================================
   NAV DROPDOWN (Topics)
   (Global toggle styling so category page matches header)
===================================================== */

.nav-dropdown{
  position:relative;
  display:inline-flex;
  align-items:center;
}

/* caret */
.nav-caret{
  font-size:.9em;
  opacity:.8;
  transform: translateY(-1px);
}

/* Hover bridge: invisible area connecting trigger to menu */
.nav-dropdown::before{
  content:"";
  position:absolute;
  left:-8px;
  right:-8px;
  top:100%;
  height:12px;
  display:block;
}

/* IMPORTANT: Toggle styled globally (not only inside .nav) */
.nav-dropdown-toggle{
  position:relative;
  font-size:14px;
  font-weight:500;
  font-family: inherit;
  color:var(--text);
  opacity:.8;
  padding:6px 2px;
  transition:.2s ease;
  line-height:1;

  background:none;
  border:0;
  margin:0;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:6px;
  -webkit-appearance:none;
  appearance:none;
}

.nav-dropdown-toggle:hover{
  opacity:1;
}

/* underline animation like nav links */
.nav-dropdown-toggle::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-4px;
  width:0%;
  height:2px;
  background:var(--brand);
  transition:.25s ease;
  border-radius:2px;
}

.nav-dropdown-toggle:hover::after{
  width:100%;
}

.nav-dropdown-menu{
  position:absolute;
  top:calc(100% + 4px);
  left:-10px;
  min-width:190px;
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:12px;
  box-shadow:var(--shadow);
  padding:8px;
  display:none;
  z-index:150;
}

/* =====================================================
   DROPDOWN MENU LINKS (Match Header Nav Style)
===================================================== */

.nav-dropdown-menu a{
  position:relative;
  display:block;
  padding:10px 6px;
  font-size:14px;
  font-weight:500;
  opacity:.8;
  text-decoration:none;
  transition:.2s ease;
}

/* Remove gray hover background entirely */
.nav-dropdown-menu a:hover{
  opacity:1;
}

/* Blue underline animation */
.nav-dropdown-menu a::after{
  content:"";
  position:absolute;
  left:6px;
  bottom:6px;
  width:0%;
  height:2px;
  background:var(--brand);
  transition:.25s ease;
  border-radius:2px;
}

.nav-dropdown-menu a:hover::after{
  width:calc(100% - 12px);
}

/* Show on hover/focus-within */
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu{
  display:block;
}

/* =====================================================
   CATEGORY PAGE DROPDOWN
===================================================== */

.category-toolbar{
  display:flex;
  justify-content:flex-start;
  align-items:center;
  margin: 6px 0 18px;
}

/* Removed the old divider bar that created a “block” look:
   .category-toolbar::after { ... }  <-- deleted */

/* =====================================================
   SEARCH
===================================================== */

.header-search{
  width:180px;
  max-width:220px;
}

.search-form{
  position:relative;
  width:100%;
}

.search-form input{
  width:100%;
  padding:10px 16px 10px 40px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#f8fafc;
  font-size:14px;
  transition:.2s ease;
}

.search-form input::placeholder{
  color:#94a3b8;
}

.search-form input:focus{
  outline:none;
  background:#ffffff;
  border-color:var(--brand);
  box-shadow:0 0 0 3px rgba(37,99,235,.12);
}

.search-icon{
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  color:#94a3b8;
  pointer-events:none;
  display:flex;
  align-items:center;
}

/* =====================================================
   BUTTONS
===================================================== */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius: 14px;
  padding: 11px 14px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.75);
  cursor:pointer;
}
.btn:hover{ background: rgba(15,23,42,.04); text-decoration:none; }

.btn-primary{
  border-color: rgba(37,99,235,.28);
  background: rgba(37,99,235,.10);
}
.btn-primary:hover{ background: rgba(37,99,235,.14); }

.btn-accent{
  border-color: rgba(22,163,74,.28);
  background: rgba(22,163,74,.10);
}

/* =====================================================
   LAYOUT / SECTIONS
===================================================== */

main{ padding: 28px 0 42px; }
.section{ margin-top: 26px; }

.section-title{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin: 0 0 12px;
}

.section-title h2{
  font-size: var(--h2);
  margin:0;
}

.section-title p{
  margin:0;
  color: var(--muted);
  font-size: 14px;
}

/* =====================================================
   HERO
===================================================== */

.hero{
  display:grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--gap);
  align-items: stretch;
  margin-top:24px;
}

/* Home page: make hero full-width (no empty right column) */
.home .hero{
  grid-template-columns: 1fr;
}

.hero-card{
  background: var(--panel);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.hero-thumb{
  position:relative;
  aspect-ratio: 16/9;
  background: #e2e8f0;
}
.hero-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.hero-body{
  padding: var(--pad2);
  display:flex;
  flex-direction:column;
  gap:12px;
}

/* Front-page placeholder uses .hero-media (match .hero-thumb styling) */
.hero-media{
  position:relative;
  aspect-ratio: 16/9;
  background: #e2e8f0;
}
.hero-media img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.6px;
  text-transform:uppercase;
  color: var(--brand);
}

.hero-title{
  font-size: var(--h1);
  line-height:1.1;
  margin:0;
}

.hero-excerpt{
  margin:0;
  color: var(--muted);
  font-size: 15px;
}

.meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px 14px;
  font-size: 12px;
  color: #64748b;
  margin-top: 8px;
}

.meta span{
  display:inline-flex;
  gap:8px;
  align-items:center;
}

.tag{
  display:inline-flex;
  align-items:center;
  padding: 4px 10px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.7);
  font-size:12px;
  font-weight:600;
  color: #0f172a;
}

/* =====================================================
   FEATURED TILES
===================================================== */

.featured-tiles{
  display:grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

.tile{
  background: var(--panel);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  display:grid;
  grid-template-columns: 120px 1fr;
  min-height: 110px;
}

.tile-thumb{
  background:#e2e8f0;
}
.tile-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.tile-body{
  padding: 14px 16px;
}

.tile-body h3{
  margin:0 0 8px;
  font-size: 16px;
  line-height:1.2;
}
.tile-body p{
  margin:0;
  font-size: 13px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:hidden;
}

/* =====================================================
   GRIDS
===================================================== */

.grid-4{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.grid-2{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

.card{
  background: var(--panel);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-height: 100%;
}

.card-thumb{
  position:relative;
  aspect-ratio: 16/9;
  background: #e2e8f0;
}
.card-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.card-body{
  padding: var(--pad);
  display:flex;
  flex-direction:column;
  gap: 10px;
  flex: 1 1 auto;
}

.card-body h3{
  margin:0;
  font-size: 16px;
  line-height:1.25;
}
.card-body p{
  margin:0;
  font-size: 13px;
  color: var(--muted);
}

.card-footer{
  padding: 0 var(--pad) var(--pad);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  font-size: 12px;
  color: #64748b;
}

/* =====================================================
   ARTICLE LISTING / ARCHIVE
===================================================== */

.archive-header{
  margin: 8px 0 18px;
}

.archive-header h1{
  font-size: var(--h2);
  margin: 0 0 6px;
}

.archive-header p{
  margin:0;
  color: var(--muted);
  font-size: 14px;
}

.article{
  display:grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.article-thumb{
  background:#e2e8f0;
  border-radius: 14px;
  overflow:hidden;
  aspect-ratio: 16/10;
}
.article-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.article-body h2{
  margin: 0 0 8px;
  font-size: 18px;
}
.article-body p{
  margin:0;
  color: var(--muted);
  font-size: 14px;
}

/* =====================================================
   SIDEBAR / PANELS
===================================================== */

.panel{
  background: var(--panel2);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--pad);
}

.panel h3{
  margin:0 0 12px;
  font-size: 16px;
}

.panel ul{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap: 10px;
}

.panel ul li a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  font-size: 14px;
  opacity:.9;
}
.panel ul li a:hover{
  opacity:1;
  text-decoration:none;
}
.panel ul li a span{
  color: var(--muted);
  font-size: 12px;
}

/* =====================================================
   FOOTER
===================================================== */

.site-footer{
  border-top:1px solid var(--border);
  background:#ffffff;
  padding: 34px 0;
}

.footer-grid{
  display:grid;
  gap: var(--gap);
  align-items:start;

  /* 4 columns (matches footer.php) */
  grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(160px, 1fr));
}

.footer-col h4{
  margin:0 0 10px;
  font-size: 14px;
  letter-spacing:.4px;
  text-transform:uppercase;
}

.footer-col p{
  margin:0;
  color: var(--muted);
  font-size: 14px;
  line-height:1.7;
}

.footer-links{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:10px;
}

.footer-links a{
  font-size:14px;
  color: var(--text);
  opacity:.85;
}
.footer-links a:hover{
  opacity:1;
  color: var(--brand);
  text-decoration:none;
}

.footer-bottom{
  margin-top: 24px;
  padding-top: 18px;
  border-top:1px solid var(--border);
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:space-between;
  font-size: 13px;
  color: var(--muted);
}

.footer-social{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.footer-social a{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size:14px;
  color:var(--text);
  opacity:.85;
  transition:.2s ease;
}

.footer-social a i{
  width:18px;
  text-align:center;
  font-size:14px;
}

.footer-social a:hover{
  opacity:1;
  color:var(--brand);
  text-decoration:none;
}

/* =====================================================
   NEWSLETTER SECTION (Refined + Tighter)
===================================================== */

#newsletter{
  margin-top: 70px;
  padding: 60px 0;
  background: linear-gradient(
    135deg,
    #0f172a,
    #1e293b
  );
  color: #ffffff;
}

#newsletter .panel{
  background: transparent;
  border: none;
  text-align: center;
  box-shadow: none;
  padding: 0;
}

#newsletter h3{
  font-size: 26px;
  margin: 0 0 12px;
  color: #ffffff;
  font-weight: 600;
}

#newsletter p{
  max-width: 520px;
  margin: 0 auto 22px;
  font-size: 15px;
  color: rgba(255,255,255,.85);
}

#newsletter .btn{
  margin: 0 auto;
  padding: 12px 26px;
  font-size: 15px;
  border-radius: 999px;
  font-weight: 600;
  background: var(--brand);
  border: none;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(37,99,235,.35);
  transition: .2s ease;
}

#newsletter .btn:hover{
  transform: translateY(-2px);
  background: #1d4ed8;
}

/* =====================================================
   LATEST BY CATEGORY SECTION (Clean + Rounded)
===================================================== */

.section-latest{
  margin: 60px auto;
  max-width: var(--max);
  padding: 60px 40px;

  background: #eef2f9;
  border: 1px solid var(--border);
  border-radius: 28px;
}

/* Remove container side padding inside this section */
.section-latest .container{
  width: 100%;
  padding: 0;
}

/* Elevate cards against tinted background */
.section-latest .card{
  background: #ffffff;
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 16px 36px rgba(15,23,42,.08);
  transition: transform .18s ease, box-shadow .18s ease;
}

.section-latest .card:hover{
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(15,23,42,.12);
}

/* =====================================================
   SINGLE ARTICLE LAYOUT
===================================================== */

.single-article{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden; /* ensures image respects container radius */
}

/* Header spacing */
.single-header{
  padding: 40px 48px 20px;
}

.single-header h1{
  font-size: var(--h1);
  margin: 12px 0 0;
}

/* Featured image flush to container */
.single-featured{
  width: 100%;
  margin: 0;
}

.single-featured img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0; /* prevent double rounding */
}

/* Content spacing */
.single-content{
  padding: 36px 48px 48px;
}

/* Improve readability */
.single-content p{
  font-size: 17px;
  line-height: 1.75;
}

/* =====================================================
   COMMENTS (Clean + Editorial)
===================================================== */

.single-content h2{
  margin-top: 34px;
}

/* Wrap + spacing */
.comments-area{
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

/* Headings */
.comments-title,
.comment-reply-title{
  margin: 0 0 14px;
  font-size: 18px;
}

/* Comment list */
.comment-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.comment-list > li{
  background: rgba(15,23,42,.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 16px 14px;
}

.comment-list .children{
  list-style: none;
  padding-left: 14px;
  margin: 14px 0 0;
  border-left: 2px solid rgba(37,99,235,.12);
  display: grid;
  gap: 12px;
}

/* Comment header */
.comment-meta{
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
}

.comment-meta a{
  text-decoration: none;
}
.comment-meta a:hover{
  text-decoration: underline;
}

.comment-author{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text);
}

.comment-author .avatar{
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(15,23,42,.10);
}

/* Comment body */
.comment-content p{
  margin: 0 0 10px;
  color: rgba(15,23,42,.82);
  font-size: 15px;
  line-height: 1.7;
}

/* Reply/edit links */
.reply a,
.comment-edit-link{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}
.reply a:hover,
.comment-edit-link:hover{
  text-decoration: underline;
}

/* Comment form */
.comment-respond{
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.comment-form{
  display: grid;
  gap: 12px;
}

.comment-form label{
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea{
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  background: #fff;
  outline: none;
  transition: .2s ease;
}

.comment-form textarea{
  min-height: 130px;
  resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus{
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

/* Make the submit match your buttons */
.comment-form .submit{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: none;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(37,99,235,.25);
  transition: .2s ease;
}

.comment-form .submit:hover{
  transform: translateY(-2px);
  background: #1d4ed8;
}

/* “Logged in as” / notes */
.logged-in-as,
.comment-notes{
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
}
.logged-in-as a{
  color: var(--brand);
  text-decoration: none;
}
.logged-in-as a:hover{
  text-decoration: underline;
}

/* =====================================================
   COMMENTS — Compact + Full Width Form
===================================================== */

/* Make logged-in + notes smaller + tighter */
.logged-in-as,
.comment-notes{
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 6px;
  line-height: 1.4;
}

.logged-in-as a{
  font-weight: 600;
}

/* Reduce spacing above form */
.comment-respond{
  margin-top: 14px;
  padding-top: 14px;
}

/* Force comment form to full width grid */
.comment-form{
  display: grid;
  gap: 12px;
}

/* Make every field full width */
.comment-form p{
  margin: 0;
  width: 100%;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea{
  width: 100%;
}

/* Ensure comment textarea spans full container */
.comment-form-comment{
  width: 100%;
}

.comment-form-comment textarea{
  width: 100%;
  min-height: 150px;
  resize: vertical;
}

/* Stack author/email/url vertically instead of side-by-side */
.comment-form-author,
.comment-form-email,
.comment-form-url{
  width: 100%;
}

/* Tighten title spacing */
.comment-reply-title{
  margin: 0 0 10px;
  font-size: 16px;
}

/* =====================================================
   COMMENT FORM — SINGLE COLUMN LAYOUT
===================================================== */

/* Kill any floats WP might add */
.comment-form-author,
.comment-form-email,
.comment-form-url,
.comment-form-comment,
.comment-form-cookies-consent,
.form-submit {
  float: none !important;
  width: 100% !important;
}

/* Force vertical layout */
.comment-form{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Make textarea full width */
.comment-form-comment textarea{
  width: 100%;
  min-height: 160px;
  resize: vertical;
}

/* Clean input styling */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  background: #fff;
  transition: .2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus{
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
  outline: none;
}

/* =====================================================
   SUBMIT BUTTON (Styled + Aligned)
===================================================== */

.form-submit{
  margin-top: 4px;
}

.comment-form .submit{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 22px;
  border-radius: 999px;

  background: var(--brand);
  color: #ffffff;
  border: none;

  font-weight: 600;
  font-size: 14px;

  box-shadow: 0 10px 24px rgba(37,99,235,.25);
  cursor: pointer;
  transition: .2s ease;
}

.comment-form .submit:hover{
  background: #1d4ed8;
  transform: translateY(-2px);
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 980px){
  .hero{ grid-template-columns: 1fr; }
  .featured-tiles{ grid-template-columns: repeat(2, 1fr); }
  .grid-4{ grid-template-columns: repeat(2, 1fr); }

  /* stack the 3-column section on tablets */
  .grid-3{ grid-template-columns: 1fr; }

  .footer-grid{ grid-template-columns: repeat(2, 1fr); }
  .header-search{ display:none; }
  .article{ grid-template-columns: 1fr; }

  /* keep topics readable on smaller screens */
  .topics-bar-inner{ gap:14px; justify-content:flex-start; }
}

@media (max-width: 540px){
  .grid-4{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .featured-tiles{ grid-template-columns: 1fr; }
  .nav{ gap: 10px; flex-wrap:wrap; justify-content:flex-end; }

  .topics-bar-inner{ padding:8px 0; }
}