/*
Theme Name: StudentQuest
Theme URI: https://studentquest.net
Author: StudentQuest
Author URI: https://studentquest.net
Description: Lightweight, SEO-optimized WordPress theme for StudentQuest — the assignment brief library and expert writing help hub at studentquest.net. Crisp white design with slate-navy typography and quest-orange call-to-action buttons (customizable, with an attention pulse animation), conversion-focused single posts with help CTAs after the title and below the content, rounded cards, related posts, comments disabled, and full schema.org structured data.
Version: 1.0.0
Requires at least: 5.9
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: studentquest
Tags: blog, education, light, one-column, custom-colors, featured-images
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root{
  --stq-bg:#ffffff;           /* crisp white */
  --stq-surface:#ffffff;
  --stq-soft:#f1f5f9;         /* slate-100 subtle fills */
  --stq-warm:#fff7ed;         /* pale orange for CTA notes */
  --stq-text:#0f172a;         /* slate-navy ink */
  --stq-muted:#64748b;
  --stq-border:#e2e8f0;       /* slate-200 borders */
  --stq-accent:#ea580c;       /* quest orange — overridden by Customizer */
  --stq-accent-hover:#c2410c; /* overridden by Customizer */
  --stq-accent-text:#ffffff;  /* overridden by Customizer */
  --stq-navy:#0f172a;
  --stq-radius:14px;
  --stq-shadow:0 1px 3px rgba(15,23,42,.07);
  --stq-max:1160px;
  --stq-content:760px;
  --stq-font-head:'Sora',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
  --stq-font-body:system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
}
body{
  margin:0;background:var(--stq-bg);color:var(--stq-text);
  font-family:var(--stq-font-body);font-size:1.0625rem;line-height:1.7;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block}
h1,h2,h3,h4,h5,h6{
  font-family:var(--stq-font-head);font-weight:700;line-height:1.25;
  margin:0 0 .6em;color:var(--stq-text);letter-spacing:-.015em;
}
h1{font-size:clamp(1.9rem,4vw,2.6rem)}
h2{font-size:clamp(1.5rem,3vw,1.9rem)}
h3{font-size:1.25rem}
p{margin:0 0 1.2em}
a{color:var(--stq-accent);text-decoration:none}
a:hover{color:var(--stq-accent-hover)}
a:focus-visible,button:focus-visible,input:focus-visible{
  outline:3px solid var(--stq-accent);outline-offset:2px;border-radius:4px;
}
.screen-reader-text{
  clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;width:1px;
  overflow:hidden;position:absolute!important;word-wrap:normal!important;
}
.stq-container{max-width:var(--stq-max);margin:0 auto;padding:0 20px}

/* ==========================================================================
   3. Buttons (Customizer-controlled colors)
   ========================================================================== */
.stq-btn,
.wp-block-button__link,
button[type=submit],
input[type=submit]{
  display:inline-block;background:var(--stq-accent);color:var(--stq-accent-text);
  font-family:var(--stq-font-head);font-weight:600;font-size:.95rem;
  padding:.75rem 1.5rem;border:0;border-radius:8px;cursor:pointer;
  text-decoration:none;transition:background .18s ease,transform .18s ease;
}
.stq-btn:hover,
.wp-block-button__link:hover,
button[type=submit]:hover,
input[type=submit]:hover{
  background:var(--stq-accent-hover);color:var(--stq-accent-text);transform:translateY(-1px);
}
.stq-btn--ghost{
  background:transparent;color:var(--stq-text);
  box-shadow:inset 0 0 0 1.5px var(--stq-border);
}
.stq-btn--ghost:hover{background:#fff;color:var(--stq-text);box-shadow:inset 0 0 0 1.5px var(--stq-accent)}
.stq-btn--lg{padding:.95rem 2rem;font-size:1.05rem}

/* Attention pulse on primary buttons ("blinking"). Disabled automatically
   for visitors with prefers-reduced-motion via the rule in section 2. */
@keyframes stq-pulse{
  0%,100%{box-shadow:0 0 0 0 var(--stq-pulse,color-mix(in srgb,var(--stq-accent) 45%,transparent))}
  55%{box-shadow:0 0 0 11px transparent}
}
.stq-btn--pulse{animation:stq-pulse 1.8s ease-out infinite}


/* ==========================================================================
   4. Header
   ========================================================================== */
.stq-header{
  background:var(--stq-surface);border-bottom:1px solid var(--stq-border);
  position:sticky;top:0;z-index:50;
}
.stq-header__inner{display:flex;align-items:center;gap:24px;min-height:70px}
.stq-logo{display:flex;align-items:center;gap:10px;font-family:var(--stq-font-head);font-weight:800;font-size:1.3rem;color:var(--stq-text)}
.stq-logo:hover{color:var(--stq-text)}
.stq-logo__mark{width:38px;height:38px;display:block}
.stq-logo__text{letter-spacing:-.02em}
.stq-logo__accent{color:var(--stq-accent)}
.stq-logo img{max-height:42px;width:auto}
.stq-nav{margin-left:auto}
.stq-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:6px;align-items:center}
.stq-nav a{
  display:block;padding:.55rem .85rem;border-radius:8px;
  color:var(--stq-text);font-weight:500;font-size:.95rem;
}
.stq-nav a:hover{background:var(--stq-soft);color:var(--stq-text)}
.stq-nav .current-menu-item > a{color:var(--stq-accent);font-weight:600}
.stq-header__cta{white-space:nowrap}
.stq-nav-toggle{
  display:none;margin-left:auto;background:none;border:1.5px solid var(--stq-border);
  border-radius:8px;padding:.5rem .7rem;font-size:1.1rem;line-height:1;cursor:pointer;color:var(--stq-text);
}
@media (max-width:860px){
  .stq-nav-toggle{display:block}
  .stq-header__cta{display:none}
  .stq-nav{
    display:none;position:absolute;left:0;right:0;top:100%;
    background:var(--stq-surface);border-bottom:1px solid var(--stq-border);
    padding:10px 20px 16px;margin:0;box-shadow:var(--stq-shadow);
  }
  .stq-nav.is-open{display:block}
  .stq-nav ul{flex-direction:column;align-items:stretch;gap:2px}
}

/* ==========================================================================
   5. Hero (front page)
   ========================================================================== */
.stq-hero{background:var(--stq-surface);border-bottom:1px solid var(--stq-border);padding:72px 0 64px}
.stq-hero__inner{max-width:820px}
.stq-hero__eyebrow{
  display:inline-block;font-family:var(--stq-font-head);font-size:.8rem;font-weight:600;
  letter-spacing:.08em;text-transform:uppercase;color:var(--stq-accent);
  background:color-mix(in srgb,var(--stq-accent) 10%,#fff);
  border:1px solid color-mix(in srgb,var(--stq-accent) 25%,#fff);
  padding:.3rem .75rem;border-radius:999px;margin-bottom:18px;
}
.stq-hero h1{margin-bottom:.5em}
.stq-hero__sub{font-size:1.15rem;color:var(--stq-muted);max-width:640px}
.stq-hero__actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}
.stq-hero__points{
  display:flex;gap:22px;flex-wrap:wrap;margin-top:30px;padding:0;list-style:none;
  color:var(--stq-muted);font-size:.92rem;
}
.stq-hero__points li::before{content:"✓";color:var(--stq-accent);font-weight:700;margin-right:7px}

/* Stats strip */
.stq-stats{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:14px;margin:34px 0 0;padding:0;
}
.stq-stats__item{
  background:var(--stq-surface);border:1px solid var(--stq-border);
  border-radius:var(--stq-radius);padding:16px 18px;
}
.stq-stats__item dt{font-size:.78rem;text-transform:uppercase;letter-spacing:.07em;color:var(--stq-muted);margin:0 0 4px}
.stq-stats__item dd{font-family:var(--stq-font-head);font-weight:800;font-size:1.15rem;margin:0;color:var(--stq-accent)}

/* Why split section */
.stq-why{display:grid;grid-template-columns:1fr 1fr;gap:44px;align-items:center}
@media (max-width:860px){.stq-why{grid-template-columns:1fr}}
.stq-why__text p{color:var(--stq-muted);margin-bottom:22px}
.stq-why__list{list-style:none;margin:0;padding:0}
.stq-why__list li{
  position:relative;padding:.7em 0 .7em 34px;
  border-bottom:1px dashed var(--stq-border);font-size:.97rem;
}
.stq-why__list li:last-child{border-bottom:0}
.stq-why__list li::before{
  content:"✓";position:absolute;left:0;top:.62em;
  width:22px;height:22px;border-radius:50%;
  background:var(--stq-soft);color:var(--stq-accent);
  font-weight:700;font-size:.75rem;display:grid;place-items:center;
}

/* Hero search */
.stq-hero__search{margin-top:28px;max-width:560px}
.stq-hero__search input[type=search]{font-size:1.02rem}
.stq-hero__actions{margin-top:16px}

/* FAQ */
.stq-faq{max-width:820px}
.stq-faq__item{
  background:var(--stq-surface);border:1px solid var(--stq-border);
  border-radius:var(--stq-radius);padding:0;margin-bottom:12px;overflow:hidden;
}
.stq-faq__item summary{
  cursor:pointer;list-style:none;padding:18px 22px;
  font-family:var(--stq-font-head);font-weight:600;font-size:1.02rem;
  position:relative;padding-right:52px;
}
.stq-faq__item summary::-webkit-details-marker{display:none}
.stq-faq__item summary::after{
  content:"+";position:absolute;right:20px;top:50%;transform:translateY(-50%);
  width:26px;height:26px;border-radius:50%;display:grid;place-items:center;
  background:var(--stq-soft);color:var(--stq-accent);font-weight:700;
}
.stq-faq__item[open] summary::after{content:"–"}
.stq-faq__item[open] summary{border-bottom:1px solid var(--stq-border)}
.stq-faq__item p{margin:0;padding:16px 22px 20px;color:var(--stq-muted);font-size:.96rem}

/* ==========================================================================
   6. Sections & subject grid
   ========================================================================== */
.stq-section{padding:60px 0}
.stq-section__head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:28px;flex-wrap:wrap}
.stq-section__head p{color:var(--stq-muted);margin:0}
.stq-subjects{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px;padding:0;margin:0;list-style:none}
.stq-subjects a{
  display:block;background:var(--stq-surface);border:1px solid var(--stq-border);
  border-radius:var(--stq-radius);padding:14px 16px;color:var(--stq-text);
  font-family:var(--stq-font-head);font-weight:600;font-size:.92rem;
  transition:border-color .18s ease,transform .18s ease;
}
.stq-subjects a:hover{border-color:var(--stq-accent);transform:translateY(-2px)}
.stq-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px}
.stq-step{background:var(--stq-surface);border:1px solid var(--stq-border);border-radius:var(--stq-radius);padding:24px}
.stq-step__num{
  width:34px;height:34px;border-radius:50%;display:grid;place-items:center;
  background:var(--stq-accent);color:var(--stq-accent-text);
  font-family:var(--stq-font-head);font-weight:700;margin-bottom:14px;font-size:.95rem;
}
.stq-step p{color:var(--stq-muted);font-size:.95rem;margin:0}
.stq-cta-band{
  background:var(--stq-accent);border-radius:20px;padding:48px 40px;
  display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;
}
.stq-cta-band h2{color:#fff;margin:0 0 .25em}
.stq-cta-band p{color:rgba(255,255,255,.85);margin:0}
.stq-cta-band .stq-btn{background:#fff;color:var(--stq-accent)}
.stq-cta-band .stq-btn:hover{background:var(--stq-soft);color:var(--stq-accent-hover)}
.stq-cta-band .stq-btn--pulse{--stq-pulse:rgba(255,255,255,.55)}

/* ==========================================================================
   7. Post cards / archives
   ========================================================================== */
.stq-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:22px}
.stq-card{
  background:var(--stq-surface);border:1px solid var(--stq-border);
  border-radius:var(--stq-radius);overflow:hidden;display:flex;flex-direction:column;
  transition:box-shadow .18s ease,transform .18s ease;
}
.stq-card:hover{box-shadow:var(--stq-shadow);transform:translateY(-3px)}
.stq-card__thumb{aspect-ratio:16/9;background:var(--stq-soft)}
.stq-card__thumb img{width:100%;height:100%;object-fit:cover}
.stq-card__body{padding:20px 22px 22px;display:flex;flex-direction:column;flex:1}
.stq-card__cat{
  font-family:var(--stq-font-head);font-size:.72rem;font-weight:600;
  letter-spacing:.08em;text-transform:uppercase;color:var(--stq-accent);margin-bottom:8px;
}
.stq-card__title{font-size:1.12rem;margin-bottom:.45em}
.stq-card__title a{color:var(--stq-text)}
.stq-card__title a:hover{color:var(--stq-accent)}
.stq-card__excerpt{color:var(--stq-muted);font-size:.93rem;margin:0 0 14px}
.stq-card__meta{margin-top:auto;color:var(--stq-muted);font-size:.82rem}
.stq-archive-head{padding:48px 0 8px}
.stq-archive-head h1{margin-bottom:.2em}
.stq-archive-head p{color:var(--stq-muted);max-width:640px}

/* Pagination — plain crawlable links */
.stq-pagination{margin:40px 0 10px;text-align:center}
.stq-pagination .nav-links{display:inline-flex;gap:6px;flex-wrap:wrap;justify-content:center}
.stq-pagination .page-numbers{
  display:inline-block;min-width:42px;padding:.55rem .8rem;border-radius:8px;
  background:var(--stq-surface);border:1px solid var(--stq-border);
  color:var(--stq-text);font-weight:600;font-size:.92rem;
}
.stq-pagination .page-numbers:hover{border-color:var(--stq-accent);color:var(--stq-accent)}
.stq-pagination .page-numbers.current{background:var(--stq-accent);border-color:var(--stq-accent);color:var(--stq-accent-text)}
.stq-pagination .page-numbers.dots{border:0;background:none}

/* ==========================================================================
   8. Single post
   ========================================================================== */
.stq-breadcrumbs{font-size:.85rem;color:var(--stq-muted);padding:22px 0 0}
.stq-breadcrumbs a{color:var(--stq-muted)}
.stq-breadcrumbs a:hover{color:var(--stq-accent)}
.stq-breadcrumbs .sep{margin:0 .5em;opacity:.5}
.stq-single-layout{
  display:grid;grid-template-columns:minmax(0,1fr) 320px;
  gap:34px;align-items:start;padding-top:26px;padding-bottom:60px;
}
.stq-single{max-width:var(--stq-content);min-width:0;margin:0;padding:0}
@media (max-width:960px){
  .stq-single-layout{grid-template-columns:1fr}
  .stq-single{max-width:none}
}

/* Sidebar */
.stq-sidebar{position:sticky;top:92px;display:flex;flex-direction:column;gap:20px}
@media (max-width:960px){.stq-sidebar{position:static}}
.stq-widget{
  background:var(--stq-surface);border:1px solid var(--stq-border);
  border-radius:var(--stq-radius);padding:24px 24px 26px;
}
.stq-widget__title{
  font-size:1.02rem;margin:0 0 16px;padding-bottom:12px;
  border-bottom:2px solid var(--stq-accent);
}
.stq-widget ul{list-style:none;margin:0;padding:0}
.stq-widget li{margin-bottom:.6em;font-size:.92rem}
.stq-widget a{color:var(--stq-text)}
.stq-widget a:hover{color:var(--stq-accent)}

/* Free features box */
.stq-features{border-top:4px solid var(--stq-accent)}
.stq-features__list{list-style:none;margin:0 0 20px;padding:0}
.stq-features__list li{
  position:relative;padding:.5em 0 .5em 30px;font-size:.92rem;
  color:var(--stq-text);border-bottom:1px dashed var(--stq-border);
}
.stq-features__list li:last-child{border-bottom:0}
.stq-features__list li::before{
  content:"✓";position:absolute;left:0;top:.42em;
  width:20px;height:20px;border-radius:50%;
  background:color-mix(in srgb,var(--stq-accent) 14%,#fff);
  color:var(--stq-accent);font-weight:700;font-size:.72rem;
  display:grid;place-items:center;
}
.stq-features__btn{display:block;text-align:center;width:100%}
.stq-single__header{margin-bottom:26px}
.stq-single__cat{display:inline-block;margin-bottom:12px}
.stq-single__meta{color:var(--stq-muted);font-size:.9rem;display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.stq-single__thumb{border-radius:var(--stq-radius);overflow:hidden;margin:26px 0}
.stq-entry{
  background:var(--stq-surface);border:1px solid var(--stq-border);
  border-radius:var(--stq-radius);padding:clamp(24px,4vw,44px);
}
.stq-entry > *:first-child{margin-top:0}
.stq-entry h2{margin-top:1.6em}
.stq-entry h3{margin-top:1.4em}
.stq-entry ul,.stq-entry ol{padding-left:1.4em;margin:0 0 1.2em}
.stq-entry li{margin-bottom:.4em}
.stq-entry blockquote{
  margin:1.4em 0;padding:.8em 1.2em;border-left:4px solid var(--stq-accent);
  background:var(--stq-soft);border-radius:0 8px 8px 0;color:var(--stq-muted);
}
.stq-entry table{width:100%;border-collapse:collapse;margin:1.4em 0;font-size:.95rem}
.stq-entry th,.stq-entry td{border:1px solid var(--stq-border);padding:.6em .8em;text-align:left}
.stq-entry th{background:var(--stq-soft);font-family:var(--stq-font-head);font-size:.85rem}
.stq-entry img{border-radius:8px}
.stq-entry code{background:var(--stq-soft);padding:.15em .4em;border-radius:5px;font-size:.9em}
.stq-entry pre{background:#14171c;color:#e8eaf0;padding:1.1em 1.3em;border-radius:8px;overflow:auto;font-size:.88rem}
.stq-entry pre code{background:none;padding:0;color:inherit}
.stq-tags{margin-top:22px;display:flex;gap:8px;flex-wrap:wrap}
.stq-tags a{
  font-size:.8rem;background:var(--stq-surface);border:1px solid var(--stq-border);
  border-radius:999px;padding:.3rem .8rem;color:var(--stq-muted);
}
.stq-tags a:hover{border-color:var(--stq-accent);color:var(--stq-accent)}
.stq-post-cta{
  margin-top:30px;background:var(--stq-surface);border:1px solid var(--stq-border);
  border-left:4px solid var(--stq-accent);border-radius:var(--stq-radius);
  padding:24px 26px;display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;
}
.stq-post-cta strong{font-family:var(--stq-font-head);font-size:1.05rem}
.stq-post-cta p{margin:0;color:var(--stq-muted);font-size:.92rem}

/* Related posts */
.stq-related{padding:10px 0 70px}
.stq-related h2{font-size:1.4rem;margin-bottom:20px}

/* ==========================================================================
   9. Footer
   ========================================================================== */
.stq-footer{background:var(--stq-surface);border-top:1px solid var(--stq-border);margin-top:20px}
.stq-footer__grid{
  display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:32px;padding:52px 0 36px;
}
.stq-footer h4{font-size:.85rem;text-transform:uppercase;letter-spacing:.08em;color:var(--stq-muted);margin-bottom:14px}
.stq-footer ul{list-style:none;margin:0;padding:0}
.stq-footer li{margin-bottom:.55em}
.stq-footer a{color:var(--stq-text);font-size:.93rem}
.stq-footer a:hover{color:var(--stq-accent)}
.stq-footer__about{color:var(--stq-muted);font-size:.93rem;max-width:320px}
.stq-footer__bar{
  border-top:1px solid var(--stq-border);padding:18px 0;
  display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;
  color:var(--stq-muted);font-size:.85rem;
}
@media (max-width:860px){.stq-footer__grid{grid-template-columns:1fr 1fr}}
@media (max-width:520px){.stq-footer__grid{grid-template-columns:1fr}}

/* ==========================================================================
   10. Misc (page, search, 404, forms)
   ========================================================================== */
.stq-page{max-width:var(--stq-content);margin:0 auto;padding:48px 20px 70px}
.stq-search-form{display:flex;gap:10px;max-width:480px}
.stq-search-form input[type=search]{
  flex:1;padding:.75rem 1rem;border:1.5px solid var(--stq-border);
  border-radius:8px;font-size:1rem;background:#fff;color:var(--stq-text);
}
.stq-search-form input[type=search]:focus{border-color:var(--stq-accent);outline:none}
.stq-404{text-align:center;padding:90px 20px}
.stq-404 .stq-404__code{font-family:var(--stq-font-head);font-size:5rem;font-weight:800;color:var(--stq-accent);line-height:1}
.alignwide{max-width:calc(var(--stq-content) + 160px);margin-left:auto;margin-right:auto}
.alignfull{width:100%;max-width:100%}


/* ==========================================================================
   StudentQuest components
   ========================================================================== */

/* After-title help note (single post) */
.stq-help-note{
  display:flex;align-items:center;justify-content:space-between;gap:18px;
  flex-wrap:wrap;background:var(--stq-warm);border:1px solid #fed7aa;
  border-radius:var(--stq-radius);padding:16px 20px;margin:18px 0 26px;
}
.stq-help-note p{margin:0;font-weight:600}
.stq-help-note .stq-btn{white-space:nowrap}

/* Guarantee box below the post */
.stq-guarantee{
  background:var(--stq-surface);border:1px solid var(--stq-border);
  border-radius:var(--stq-radius);box-shadow:var(--stq-shadow);
  padding:28px;margin:34px 0 0;
}
.stq-guarantee__badge{
  display:inline-block;background:var(--stq-soft);color:var(--stq-muted);
  font-size:.8rem;font-weight:700;border-radius:999px;padding:4px 12px;margin-bottom:10px;
}
.stq-guarantee h3{margin-bottom:8px}
.stq-guarantee__list{
  list-style:none;margin:14px 0 20px;padding:0;
  display:grid;grid-template-columns:1fr 1fr;gap:8px 22px;
}
.stq-guarantee__list li{padding-left:26px;position:relative}
.stq-guarantee__list li::before{
  content:"\2713";position:absolute;left:0;top:0;
  color:var(--stq-accent);font-weight:800;
}
.stq-guarantee__actions{display:flex;gap:12px;flex-wrap:wrap}
.stq-guarantee__fineprint{margin:14px 0 0;color:var(--stq-muted);font-size:.85rem}
@media (max-width:640px){.stq-guarantee__list{grid-template-columns:1fr}}

/* Share row */
.stq-share{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  margin:26px 0 0;padding-top:18px;border-top:1px solid var(--stq-border);
}
.stq-share span{font-weight:700;font-size:.9rem}
.stq-share a{
  display:inline-block;border:1px solid var(--stq-border);border-radius:999px;
  padding:5px 14px;font-size:.85rem;text-decoration:none;color:var(--stq-text);
  background:var(--stq-surface);
}
.stq-share a:hover{border-color:var(--stq-accent);color:var(--stq-accent)}

/* Author box */
.stq-authorbox{
  display:flex;align-items:center;gap:14px;margin:22px 0 0;
  background:var(--stq-soft);border-radius:var(--stq-radius);padding:16px 20px;
}
.stq-authorbox img{border-radius:50%}
.stq-authorbox strong{display:block}
.stq-authorbox span{color:var(--stq-muted);font-size:.9rem}

/* Prev / next navigation */
.stq-postnav{
  display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:26px 0 0;
}
.stq-postnav a{
  display:block;border:1px solid var(--stq-border);border-radius:var(--stq-radius);
  padding:14px 18px;text-decoration:none;color:var(--stq-text);background:var(--stq-surface);
}
.stq-postnav a:hover{border-color:var(--stq-accent)}
.stq-postnav small{display:block;color:var(--stq-muted);margin-bottom:4px}
.stq-postnav .next{text-align:right}
@media (max-width:640px){.stq-postnav{grid-template-columns:1fr}}

/* Sidebar: quest stats */
.stq-stats-side{
  display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0;
}
.stq-stats-side div{background:var(--stq-soft);border-radius:10px;padding:12px 14px}
.stq-stats-side dd{margin:0;font-family:var(--stq-font-head);font-weight:800;font-size:1.05rem}
.stq-stats-side dt{color:var(--stq-muted);font-size:.78rem;margin-top:2px}

/* Homepage hero search */
.stq-hero__search{max-width:620px;margin:22px auto 0}
.stq-hero__search form{display:flex;gap:8px}
.stq-hero__search input[type="search"]{
  flex:1;border:1px solid var(--stq-border);border-radius:12px;padding:13px 16px;
  font-size:1rem;background:var(--stq-surface);color:var(--stq-text);
}
.stq-hero__search input[type="search"]:focus{outline:2px solid var(--stq-accent);border-color:transparent}
.stq-hero__badges{
  display:flex;justify-content:center;gap:18px;flex-wrap:wrap;
  margin:20px 0 0;padding:0;list-style:none;color:var(--stq-muted);font-size:.9rem;
}
.stq-hero__badges li::before{content:"\2713\00a0";color:var(--stq-accent);font-weight:800}

/* Homepage category chips reuse .stq-subjects */

/* Mid-band stats on navy */
.stq-band{
  background:var(--stq-navy);border-radius:var(--stq-radius);
  padding:30px;display:grid;grid-template-columns:repeat(4,1fr);gap:18px;
}
.stq-band div{text-align:center}
.stq-band dd{margin:0;color:#fff;font-family:var(--stq-font-head);font-weight:800;font-size:1.5rem}
.stq-band dt{color:#94a3b8;font-size:.85rem;margin-top:4px}
@media (max-width:760px){.stq-band{grid-template-columns:1fr 1fr}}

/* Single meta avatar */
.stq-single__meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.stq-single__avatar{border-radius:50%;width:30px;height:30px}
