/*
Theme Name: ToyQueen Theme
Theme URI: https://toyqueen.com
Author: Keri Wilmot
Author URI: https://toyqueen.com/about-2
Description: Custom WordPress theme for ToyQueen.com â OT-approved toy reviews. Teal/coral design system, Nunito + Inter fonts, full-width responsive layout. Permalink structure: /%postname%.html
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: toyqueen
Tags: blog, custom-header, custom-menu, featured-images, sticky-post, threaded-comments, translation-ready
*/

/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
  --teal:       #1B6B5E;
  --teal-h:     #2D8C7C;
  --teal-pale:  #EDF7F4;
  --teal-pale2: #D5EDE8;
  --coral:      #D95438;
  --coral-h:    #F06348;
  --coral-pale: #FEF0EC;
  --amber:      #B87800;
  --amber-pale: #FEF5E0;
  --lav:        #6B5EA8;
  --lav-pale:   #F0EEFA;
  --bg:         #FEFDF8;
  --surf:       #FFFFFF;
  --txt:        #2C3325;
  --muted:      #5A5E52;
  --border:     #E0DBD2;
  --r:          12px;
  --rlg:        20px;
  --rpill:      999px;
  --sh:         0 2px 12px rgba(0,0,0,.07);
  --shmd:       0 6px 24px rgba(0,0,0,.10);
  --nav-h:      64px;
}

/* Dark mode */
html.dark {
  --bg:    #18222F;
  --surf:  #1F2D3D;
  --txt:   #E6E2D8;
  --muted: #96928A;
  --border:#283848;
  --sh:    0 2px 12px rgba(0,0,0,.35);
  --shmd:  0 6px 24px rgba(0,0,0,.45);
}
html.bigtxt { font-size: 18px; }
html.nomotion *,
html.nomotion *::before,
html.nomotion *::after { transition: none !important; animation: none !important; }

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--txt);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Nunito", system-ui, sans-serif;
  line-height: 1.2;
  color: var(--txt);
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-h); text-decoration: underline; }

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

p { margin-bottom: 1rem; }
ul, ol { padding-left: 1.5em; }

/* =========================================================
   LAYOUT
   ========================================================= */
.wrap      { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.wrap-lg   { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.wrap-sm   { max-width: 640px;  margin: 0 auto; }
.wrap-md   { max-width: 820px;  margin: 0 auto; }
.sec       { padding: 4.5rem 0; }
.sec-sm    { padding: 3rem 0; }

/* =========================================================
   TYPOGRAPHY UTILITIES
   ========================================================= */
.hxl   { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; }
.hlg   { font-size: clamp(1.5rem, 3vw, 2.2rem);   font-weight: 700; }
.hmd   { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 700; }
.hsm   { font-size: 1.05rem; font-weight: 700; }
.lead  { font-size: 1.05rem; color: var(--muted); line-height: 1.75; }
.sm    { font-size: .85rem; }
.xs    { font-size: .75rem; }
.muted { color: var(--muted); }
.bold  { font-weight: 600; }
.tcen  { text-align: center; }
.eyebrow {
  font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .65rem 1.5rem;
  border-radius: var(--rpill);
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600; font-size: .9rem;
  cursor: pointer; border: none;
  transition: all .2s; text-decoration: none;
  white-space: nowrap; line-height: 1;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-p  { background: var(--teal);  color: #fff; }
.btn-p:hover { background: var(--teal-h); color: #fff; }
.btn-c  { background: var(--coral); color: #fff; }
.btn-c:hover { background: var(--coral-h); color: #fff; }
.btn-o  { background: transparent; color: var(--teal); border: 2px solid var(--teal); }
.btn-o:hover { background: var(--teal); color: #fff; }
.btn-g  { background: transparent; color: var(--txt); border: 1.5px solid var(--border); }
.btn-g:hover { border-color: var(--teal); color: var(--teal); }
.btn-sm { padding: .4rem .95rem; font-size: .82rem; }
.btn-lg { padding: .85rem 2rem; font-size: 1rem; }

/* =========================================================
   BADGES
   ========================================================= */
.bdg {
  display: inline-block;
  padding: .18rem .65rem;
  border-radius: var(--rpill);
  font-size: .7rem; font-weight: 700; letter-spacing: .03em;
}
.bdg-t { background: var(--teal-pale);  color: var(--teal); }
.bdg-c { background: var(--coral-pale); color: #A8361F; }
.bdg-a { background: var(--amber-pale); color: var(--amber); }
.bdg-l { background: var(--lav-pale);   color: var(--lav); }
.bdg-g { background: #F0EDE7; color: var(--muted); }

/* =========================================================
   CARDS
   ========================================================= */
.card {
  background: var(--surf);
  border-radius: var(--rlg);
  box-shadow: var(--sh);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shmd); }
.cbody { padding: 1.25rem; }

/* =========================================================
   OT SEAL
   ========================================================= */
.ot-seal {
  display: inline-flex; flex-direction: column;
  align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--teal); color: #fff;
  font-family: "Nunito", sans-serif;
  font-size: .5rem; font-weight: 800;
  text-align: center; line-height: 1.25;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2.5px var(--teal), var(--sh);
}

/* =========================================================
   STARS
   ========================================================= */
.tq-stars { display: inline-flex; gap: 1px; }
.tq-stars .f { color: var(--amber); }
.tq-stars .e { color: #D4CFC8; }

/* =========================================================
   NAV
   ========================================================= */
#topnav {
  position: sticky; top: 0; z-index: 200;
  background: var(--surf);
  border-bottom: 1px solid var(--border);
  transition: background .3s, border-color .3s;
  height: var(--nav-h);
}
.navwrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem; max-width: 1280px;
  margin: 0 auto; height: 100%;
}
.tq-logo {
  font-family: "Nunito", sans-serif; font-weight: 900;
  font-size: 1.3rem; color: var(--teal);
  letter-spacing: -.01em; cursor: pointer;
  text-decoration: none;
}
.tq-logo em { color: var(--coral); font-style: normal; }
.tq-logo:hover { text-decoration: none; color: var(--teal); }

.navlinks { display: flex; align-items: center; gap: .1rem; }
.nl {
  padding: .42rem .85rem; border-radius: 8px;
  font-family: "Inter", sans-serif;
  font-size: .88rem; font-weight: 500;
  color: var(--txt); cursor: pointer;
  transition: background .15s, color .15s;
  background: none; border: none; text-decoration: none;
}
.nl:hover, .nl.act { background: var(--teal-pale); color: var(--teal); text-decoration: none; }
.navact { display: flex; align-items: center; gap: .4rem; }
.ibtn {
  width: 34px; height: 34px; border-radius: 8px;
  border: 1.5px solid var(--border); background: transparent;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: .95rem; color: var(--muted);
  transition: all .15s;
}
.ibtn:hover { border-color: var(--teal); color: var(--teal); }

/* Hamburger */
.hambtn {
  display: none; flex-direction: column; gap: 5px;
  padding: 6px; cursor: pointer; background: none; border: none;
}
.hline { width: 22px; height: 2px; background: var(--txt); border-radius: 2px; transition: all .3s; }

/* Mobile menu */
#mobmenu {
  display: none; position: fixed; inset: 0;
  background: var(--surf); z-index: 500;
  padding: 1.25rem 1.5rem; overflow-y: auto;
  flex-direction: column;
}
#mobmenu.open { display: flex; }
.moblink {
  padding: .75rem 1rem; border-radius: 10px;
  font-size: 1rem; font-weight: 500;
  color: var(--txt); cursor: pointer; border: none;
  background: none; text-align: left; width: 100%;
  font-family: "Inter", sans-serif; transition: background .15s;
}
.moblink:hover { background: var(--teal-pale); color: var(--teal); }
.mob-close {
  align-self: flex-end; font-size: 1.4rem; width: auto;
  background: none; border: none; cursor: pointer;
  padding: .25rem .5rem; color: var(--muted);
}

/* Dropdown */
.dd { position: relative; }
.ddmenu {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  background: var(--surf); border: 1px solid var(--border);
  border-radius: var(--r); box-shadow: var(--shmd);
  min-width: 200px; padding: .4rem;
  display: none; z-index: 300;
}
.dd:hover .ddmenu { display: block; }
.ddi {
  display: block; width: 100%; padding: .5rem .85rem;
  border-radius: 8px; font-size: .86rem;
  color: var(--txt); cursor: pointer;
  transition: background .15s; border: none; background: none;
  text-align: left; font-family: inherit; text-decoration: none;
}
.ddi:hover { background: var(--teal-pale); color: var(--teal); text-decoration: none; }

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  position: fixed; top: 1rem; left: 1rem;
  width: auto; height: auto; overflow: visible;
  background: var(--teal); color: #fff;
  padding: .5rem 1rem; border-radius: 6px; z-index: 9999;
}

/* =========================================================
   HERO
   ========================================================= */
.tq-hero {
  background: linear-gradient(135deg, var(--teal-pale) 0%, var(--bg) 65%);
  padding: 5rem 0;
}
html.dark .tq-hero {
  background: linear-gradient(135deg, rgba(27,107,94,.12) 0%, var(--bg) 65%);
}
.tq-hero-row {
  display: flex; align-items: stretch; gap: 2.5rem;
}
.tq-hero-text { flex: 1.1; display: flex; flex-direction: column; justify-content: center; }
.tq-hero-card {
  flex: 1; background: var(--surf); border-radius: var(--rlg);
  padding: 2rem; box-shadow: var(--shmd);
  display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
}
.tq-stat { text-align: center; }
.tq-statnum {
  font-family: "Nunito", sans-serif;
  font-size: 1.8rem; font-weight: 800; color: var(--teal);
}
.tq-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }

/* Trust bar */
.tq-trustbar {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 2rem; padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.tq-titem { display: flex; align-items: center; gap: .6rem; font-size: .88rem; color: var(--muted); }
.tq-tico {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--teal-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}

/* =========================================================
   POST GRID / REVIEW CARDS
   ========================================================= */
.tq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 1.5rem;
}

/* Post card */
.tq-post-card {
  background: var(--surf);
  border-radius: var(--rlg);
  box-shadow: var(--sh);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.tq-post-card:hover { transform: translateY(-3px); box-shadow: var(--shmd); }

.tq-post-card .card-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/2;
  background: var(--teal-pale);
}
.tq-post-card .card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  border-radius: 0;
  display: block;
  transition: transform .3s;
}
.tq-post-card:hover .card-thumb img { transform: scale(1.03); }

.tq-post-card .card-seal {
  position: absolute; top: .75rem; right: .75rem;
}
.tq-post-card .card-body {
  padding: 1.25rem; flex: 1; display: flex; flex-direction: column;
}
.tq-post-card .card-meta {
  display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem;
}
.tq-post-card .card-title {
  font-family: "Nunito", sans-serif;
  font-size: 1rem; font-weight: 700;
  color: var(--txt); margin-bottom: .3rem; line-height: 1.3;
}
.tq-post-card .card-title a { color: var(--txt); }
.tq-post-card .card-title a:hover { color: var(--teal); text-decoration: none; }
.tq-post-card .card-byline { font-size: .78rem; color: var(--muted); margin-bottom: .65rem; }
.tq-post-card .card-excerpt {
  font-size: .87rem; color: var(--muted);
  line-height: 1.55; flex: 1; margin-bottom: .85rem;
}
.tq-post-card .card-footer { margin-top: auto; }

/* Chips / filter */
.tq-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.tq-chip {
  padding: .32rem .8rem; border-radius: var(--rpill);
  font-size: .78rem; font-weight: 500;
  border: 1.5px solid var(--border);
  background: var(--surf); color: var(--muted);
  cursor: pointer; transition: all .15s;
  font-family: "Inter", sans-serif;
}
.tq-chip:hover, .tq-chip.on {
  border-color: var(--teal); background: var(--teal-pale); color: var(--teal);
}

/* =========================================================
   CATEGORY / ARCHIVE HEADER
   ========================================================= */
.tq-arch-header {
  background: linear-gradient(135deg, var(--teal-pale) 0%, var(--bg) 70%);
  padding: 3rem 0 2rem;
}
.tq-arch-title {
  font-family: "Nunito", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800;
  color: var(--teal); margin-bottom: .5rem;
}
.tq-arch-desc { color: var(--muted); max-width: 680px; }
.tq-arch-count { font-size: .85rem; color: var(--muted); margin-top: .35rem; }

/* =========================================================
   SINGLE POST
   ========================================================= */
.tq-single {
  max-width: 780px; margin: 0 auto; padding: 3rem 1.5rem;
}
.tq-single-hero {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover; object-position: center;
  border-radius: var(--rlg);
  margin-bottom: 2rem;
  background: var(--teal-pale);
}
.tq-single-cats {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem;
}
.tq-single-cats a {
  background: var(--teal-pale); color: var(--teal);
  padding: .2rem .75rem; border-radius: var(--rpill);
  font-size: .78rem; font-weight: 700;
}
.tq-single-cats a:hover { background: var(--teal); color: #fff; text-decoration: none; }
.tq-post-title {
  font-family: "Nunito", sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800;
  line-height: 1.2; margin-bottom: 1rem; color: var(--txt);
}
.tq-post-meta {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  font-size: .85rem; color: var(--muted); margin-bottom: 2rem;
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--border);
}
.tq-post-meta a { color: var(--teal); }

/* Entry content */
.entry-content {
  font-size: 1.05rem; line-height: 1.8; color: var(--txt);
}
.entry-content h2, .entry-content h3, .entry-content h4 {
  font-family: "Nunito", sans-serif; font-weight: 700;
  margin: 2rem 0 .75rem; color: var(--txt);
}
.entry-content h2 { font-size: 1.6rem; }
.entry-content h3 { font-size: 1.3rem; }
.entry-content h4 { font-size: 1.1rem; }
.entry-content p  { margin-bottom: 1.25rem; }
.entry-content ul, .entry-content ol { margin: 1rem 0 1.25rem 1.5rem; }
.entry-content li { margin-bottom: .4rem; }
.entry-content img {
  border-radius: var(--r); max-width: 100%;
  height: auto; margin: 1.5rem 0;
}
.entry-content a { color: var(--teal); text-decoration: underline; }
.entry-content blockquote {
  border-left: 4px solid var(--teal);
  padding: 1rem 1.5rem; margin: 1.5rem 0;
  background: var(--teal-pale); border-radius: 0 var(--r) var(--r) 0;
  font-style: italic; color: var(--muted);
}
.entry-content table {
  width: 100%; border-collapse: collapse; margin: 1.5rem 0;
}
.entry-content th, .entry-content td {
  padding: .65rem 1rem; border: 1px solid var(--border);
  text-align: left;
}
.entry-content th { background: var(--teal-pale); font-weight: 600; }

/* Related posts */
.tq-related { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.tq-related-title {
  font-family: "Nunito", sans-serif; font-size: 1.25rem; font-weight: 700;
  margin-bottom: 1.25rem; color: var(--txt);
}
.tq-related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}

/* Comments */
.tq-comments { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.comments-title { font-family: "Nunito", sans-serif; font-size: 1.25rem; font-weight: 700; margin-bottom: 1.5rem; }
.comment-list { list-style: none; padding: 0; }
.comment-body { background: var(--surf); border: 1px solid var(--border); border-radius: var(--r); padding: 1.25rem; margin-bottom: 1rem; }
.comment-author .fn { font-weight: 600; }
.comment-meta { font-size: .8rem; color: var(--muted); margin-bottom: .75rem; }
.comment-content p { margin-bottom: .5rem; font-size: .93rem; }
.reply a { font-size: .8rem; color: var(--teal); }
.comment-respond { margin-top: 2rem; }
.comment-reply-title { font-family: "Nunito", sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.comment-form-comment textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  width: 100%; padding: .65rem 1rem;
  border: 1.5px solid var(--border); border-radius: var(--r);
  background: var(--surf); color: var(--txt);
  font-family: "Inter", sans-serif; font-size: .9rem;
  transition: border-color .15s;
}
.comment-form-comment textarea:focus,
.comment-form input:focus { outline: none; border-color: var(--teal); }
.comment-form-comment textarea { min-height: 120px; resize: vertical; }
.comment-form label { display: block; font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: .35rem; }
.comment-form p { margin-bottom: 1rem; }
.form-submit .submit {
  background: var(--teal); color: #fff;
  border: none; padding: .65rem 1.5rem;
  border-radius: var(--rpill); font-weight: 600;
  cursor: pointer; font-family: "Inter", sans-serif;
  transition: background .2s;
}
.form-submit .submit:hover { background: var(--teal-h); }

/* =========================================================
   PAGINATION
   ========================================================= */
.tq-pagination {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: .5rem; margin: 3rem 0 1rem;
}
.tq-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 .75rem;
  border-radius: var(--r); border: 1.5px solid var(--border);
  font-size: .88rem; color: var(--txt);
  transition: all .15s; text-decoration: none;
}
.tq-pagination .page-numbers:hover { border-color: var(--teal); color: var(--teal); text-decoration: none; }
.tq-pagination .current { background: var(--teal); color: #fff; border-color: var(--teal); }
.tq-pagination .prev, .tq-pagination .next { font-weight: 600; }

/* =========================================================
   BREADCRUMBS
   ========================================================= */
.tq-breadcrumbs {
  font-size: .82rem; color: var(--muted);
  padding: 1rem 0; display: flex; flex-wrap: wrap; gap: .35rem; align-items: center;
}
.tq-breadcrumbs a { color: var(--teal); }
.tq-breadcrumbs .sep { color: var(--border); }

/* =========================================================
   RESOURCE PATH CARDS
   ========================================================= */
.tq-pathcards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
}
.tq-pathcard {
  padding: 2.5rem; border-radius: var(--rlg);
  cursor: pointer; transition: transform .2s, box-shadow .2s;
  text-decoration: none; display: block;
}
.tq-pathcard:hover { transform: translateY(-4px); box-shadow: var(--shmd); text-decoration: none; }
.tq-pathcard-teal { background: var(--teal); color: #fff; }
.tq-pathcard-teal h3 { color: #fff; }
.tq-pathcard-teal p { color: rgba(255,255,255,.85); }
.tq-pathcard-white { background: var(--surf); border: 1px solid var(--border); }

/* =========================================================
   NEWSLETTER SECTION
   ========================================================= */
.tq-nl-section { background: var(--teal-pale); padding: 3rem 0; }
.tq-nl-form {
  display: flex; gap: .75rem; max-width: 460px; margin: 1.5rem auto 0;
}
.tq-nl-form input[type="email"] {
  flex: 1; padding: .68rem 1rem;
  border-radius: var(--r); border: 1.5px solid var(--border);
  background: var(--surf); color: var(--txt);
  font-family: "Inter", sans-serif; font-size: .9rem;
}
.tq-nl-form input[type="email"]:focus { outline: none; border-color: var(--teal); }

/* =========================================================
   PAGE (static pages)
   ========================================================= */
.tq-page {
  max-width: 780px; margin: 0 auto;
  padding: 3rem 1.5rem;
}
.tq-page-title {
  font-family: "Nunito", sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800;
  color: var(--txt); margin-bottom: 1.5rem;
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--border);
}

/* =========================================================
   SEARCH PAGE
   ========================================================= */
.tq-search-header { padding: 2.5rem 0; }
.tq-search-form {
  display: flex; gap: .5rem; max-width: 560px;
  margin-top: 1rem;
}
.tq-search-form input[type="search"] {
  flex: 1; padding: .68rem 1rem;
  border-radius: var(--r); border: 1.5px solid var(--border);
  background: var(--surf); color: var(--txt);
  font-size: .95rem; font-family: "Inter", sans-serif;
}
.tq-search-form input[type="search"]:focus { outline: none; border-color: var(--teal); }

/* =========================================================
   404 PAGE
   ========================================================= */
.tq-404 {
  max-width: 580px; margin: 0 auto; padding: 5rem 1.5rem; text-align: center;
}
.tq-404-num {
  font-family: "Nunito", sans-serif;
  font-size: 8rem; font-weight: 900; line-height: 1;
  color: var(--teal); opacity: .15; user-select: none;
}
.tq-404-title {
  font-family: "Nunito", sans-serif;
  font-size: 1.8rem; font-weight: 800;
  margin-top: -2rem; margin-bottom: .75rem;
}

/* =========================================================
   FOOTER
   ========================================================= */
#tq-footer {
  background: #1A1F18; color: #B8B4AC;
}
html.dark #tq-footer { background: #0F1820; }
.tq-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: 3.5rem 0 2.5rem;
}
.tq-footer-logo {
  font-family: "Nunito", sans-serif; font-weight: 900;
  font-size: 1.3rem; color: #fff; margin-bottom: .75rem;
  display: block; text-decoration: none;
}
.tq-footer-logo:hover { color: #fff; text-decoration: none; }
.tq-footer-logo em { color: var(--coral); font-style: normal; }
.tq-footer-desc { font-size: .88rem; color: #96928A; line-height: 1.7; max-width: 280px; margin-bottom: 1.25rem; }
.tq-footer-socials { display: flex; gap: .75rem; }
.tq-footer-socials a { color: #B8B4AC; font-size: 1.1rem; transition: color .15s; }
.tq-footer-socials a:hover { color: #fff; text-decoration: none; }
.tq-footer-section-title { color: #fff; font-family: "Nunito", sans-serif; font-size: .85rem; font-weight: 700; margin-bottom: .6rem; }
.tq-footer-links { display: flex; flex-direction: column; gap: .5rem; }
.tq-footer-links a { color: #B8B4AC; font-size: .85rem; transition: color .15s; }
.tq-footer-links a:hover { color: #fff; text-decoration: none; }
.tq-footer-nl input[type="email"] {
  width: 100%; padding: .55rem .85rem;
  border-radius: var(--r); border: 1px solid #2E3428;
  background: #0F1820; color: #E6E2D8;
  font-family: "Inter", sans-serif; font-size: .82rem;
  margin-bottom: .5rem;
}
.tq-footer-nl input[type="email"]:focus { outline: none; border-color: var(--teal); }
.tq-footer-nl p { font-size: .82rem; color: #96928A; margin-bottom: .75rem; }
.tq-footer-bottom {
  border-top: 1px solid #2E3428;
  padding: 1.5rem 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.tq-footer-bottom p { font-size: .78rem; color: #6B6860; }
.tq-footer-bottom-links { display: flex; gap: 1.5rem; }
.tq-footer-bottom-links a { color: #B8B4AC; font-size: .78rem; transition: color .15s; }
.tq-footer-bottom-links a:hover { color: #fff; text-decoration: none; }

/* =========================================================
   WIDGETS (kept minimal â not used in main layout)
   ========================================================= */
.widget { margin-bottom: 1.5rem; }
.widget-title { font-size: 1rem; font-weight: 700; margin-bottom: .75rem; }

/* Amazon search widget */
.widget-amazon-search .search-form { display: flex; gap: .4rem; }
.widget-amazon-search input { flex: 1; padding: .5rem .75rem; border: 1.5px solid var(--border); border-radius: var(--r); font-size: .85rem; }
.widget-amazon-search button { background: var(--teal); color: #fff; border: none; padding: .5rem 1rem; border-radius: var(--r); cursor: pointer; font-weight: 600; }

/* =========================================================
   DIVIDER
   ========================================================= */
.tq-dvd { height: 1px; background: var(--border); margin: 2rem 0; }

/* =========================================================
   ACCESSIBILITY
   ========================================================= */
.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .tq-hero-row { flex-direction: column; }
  .tq-hero-card { width: 100%; max-width: 560px; margin: 0 auto; }
  .tq-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .tq-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .tq-pathcards { grid-template-columns: 1fr; }
  .tq-footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .tq-footer-desc { max-width: 100%; }
}

@media (max-width: 640px) {
  .tq-hero { padding: 3rem 0; }
  .tq-grid { grid-template-columns: 1fr; }
  .tq-related-grid { grid-template-columns: 1fr; }
  .tq-stats { gap: 1.5rem; }
  .tq-footer-bottom { flex-direction: column; align-items: flex-start; }
  .tq-nl-form { flex-direction: column; }
  .desknav { display: none !important; }
  .hambtn { display: flex !important; }
  #tq-footer { text-align: left; }
}

@media (min-width: 641px) {
  .hambtn { display: none; }
}

/* Landscape phone */
@media (max-width: 640px) and (orientation: landscape) {
  .tq-hero { padding: 2rem 0; }
  .tq-single { padding: 1.5rem; }
}

/* Tablet landscape */
@media (min-width: 641px) and (max-width: 1024px) {
  .tq-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   DARK MODE ADJUSTMENTS
   ========================================================= */
html.dark .tq-nl-section { background: rgba(27,107,94,.1); }
html.dark .tq-arch-header {
  background: linear-gradient(135deg, rgba(27,107,94,.12) 0%, var(--bg) 70%);
}
html.dark .tq-pathcard-white { background: var(--surf); }
html.dark .tq-post-card,
html.dark .card { background: var(--surf); border-color: var(--border); }
