/*
Theme Name: OnGovernment
Theme URI: https://ongovernment.com
Author: OnGovernment
Description: Clean, signup-first block theme with bright learning sections for OnGovernment.com.
Version: 1.5.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ongovernment
*/

/* Dark mode: override the theme.json palette variables */
@media (prefers-color-scheme: dark){
  :root{
    --wp--preset--color--bg:#10172A; --wp--preset--color--soft:#172036;
    --wp--preset--color--ink:#EEF1F7; --wp--preset--color--ink-2:#A9B2C5;
    --wp--preset--color--line:#26314D; --wp--preset--color--blue:#6D8DFF;
    --wp--preset--color--blue-soft:#1E2A52; --wp--preset--color--orange-soft:#3A2618;
    --wp--preset--color--teal-soft:#0F3431; --wp--preset--color--sun-soft:#3A3116;
  }
}
:root{
  --og-bg:var(--wp--preset--color--bg); --og-soft:var(--wp--preset--color--soft);
  --og-ink:var(--wp--preset--color--ink); --og-ink-2:var(--wp--preset--color--ink-2);
  --og-line:var(--wp--preset--color--line); --og-blue:var(--wp--preset--color--blue);
  --og-blue-soft:var(--wp--preset--color--blue-soft); --og-orange:var(--wp--preset--color--orange);
  --og-orange-soft:var(--wp--preset--color--orange-soft); --og-teal:var(--wp--preset--color--teal);
  --og-teal-soft:var(--wp--preset--color--teal-soft); --og-sun:var(--wp--preset--color--sun);
  --og-sun-soft:var(--wp--preset--color--sun-soft);
}
body{-webkit-text-size-adjust:100%}
:focus-visible{outline:3px solid var(--og-orange);outline-offset:3px;border-radius:6px}

/* Header */
.og-header{border-bottom:2px solid var(--og-line)}
.og-logo{display:flex;align-items:center;gap:.5rem;text-decoration:none;color:var(--og-ink)}
.og-logo svg{width:30px;height:30px;flex:none}
.og-header .wp-block-site-title a{text-decoration:none;color:var(--og-ink)}

/* Signup (Jetpack subscribe block) */
.og-signup{max-width:30rem;margin-left:auto!important;margin-right:auto!important}
.og-fine{font-size:.9rem;color:var(--og-ink-2)}

/* Hero */
.og-hero{overflow:hidden}
.og-hero h1{max-width:15ch;margin-left:auto!important;margin-right:auto!important}
.og-lede{font-size:1.22rem;color:var(--og-ink-2);max-width:36rem;margin-left:auto!important;margin-right:auto!important}
.og-proof{display:flex;justify-content:center;gap:1.6rem;flex-wrap:wrap;margin:1.4rem 0 0;padding:0;list-style:none;font-size:.95rem;color:var(--og-ink-2);font-weight:600}
.og-proof li{display:flex;align-items:center;gap:.45rem}
.og-proof svg{width:18px;height:18px;flex:none}
.og-stage{position:relative;margin-top:3rem;height:360px;max-width:none!important}
.og-stage .og-skyline{position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:min(1100px,140%);height:auto}
.og-issue{position:absolute;left:50%;top:0;transform:translateX(-50%) rotate(-1.5deg);width:min(30rem,90%);background:var(--og-bg);border:2px solid var(--og-line);border-radius:16px;box-shadow:0 18px 40px -18px rgba(20,33,61,.35);text-align:left;overflow:hidden}
.og-issue-top{display:flex;justify-content:space-between;align-items:center;padding:.8rem 1.1rem;border-bottom:2px solid var(--og-line);font-size:.88rem;color:var(--og-ink-2)}
.og-issue-top b{color:var(--og-ink);font-family:var(--wp--preset--font-family--display)}
.og-issue-body{padding:1rem 1.1rem 1.1rem}
.og-issue-body h3{font-size:1.15rem;margin:0 0 .6rem}
.og-row{display:flex;gap:.7rem;padding:.55rem 0;border-top:1px solid var(--og-line);font-size:.95rem}
.og-row:first-of-type{border-top:0}
.og-row span{color:var(--og-ink-2)}
.og-dot{width:.7rem;height:.7rem;border-radius:50%;margin-top:.45rem;flex:none;display:inline-block}
.og-learnbox{background:var(--og-sun-soft);border-radius:10px;padding:.65rem .8rem;margin-top:.6rem;font-size:.93rem}

/* Sections */
.og-intro{color:var(--og-ink-2);font-size:1.12rem;max-width:40rem}
.og-center .og-intro{margin-left:auto!important;margin-right:auto!important}

/* What's inside */
.og-inside{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem;text-align:left}
.og-icon{width:56px;height:56px;border-radius:16px;display:grid;place-items:center;margin-bottom:1rem}
.og-icon svg{width:30px;height:30px}
.og-inside h3{font-size:1.3rem;margin:0 0 .4rem}
.og-inside p{margin:0;color:var(--og-ink-2)}

/* Tracker feed (Query Loop, category "this-week") */
.og-sample{display:inline-block;background:var(--og-orange-soft);border-radius:10px;padding:.7rem 1rem;font-size:.95rem}
.og-feed{list-style:none;margin:0;padding:0;background:var(--og-bg);border:2px solid var(--og-line);border-radius:16px}
.og-feed > li{padding:1.1rem 1.3rem;border-top:2px solid var(--og-line);margin:0}
.og-feed > li:first-child{border-top:0}
.og-feed-item{gap:1.2rem!important}
.og-who{min-width:8.5rem;font-weight:700;font-size:.93rem}
.og-who a{color:var(--og-ink);text-decoration:none;display:inline-flex;align-items:center;gap:.45rem}
.og-who a::before{content:"";width:.7rem;height:.7rem;border-radius:50%;background:var(--og-ink-2)}
.og-who a[href*="/tag/congress"]::before{background:var(--og-sun)}
.og-who a[href*="/tag/white-house"]::before{background:var(--og-blue)}
.og-who a[href*="/tag/courts"]::before{background:var(--og-teal)}
.og-feed .wp-block-post-title{font-family:var(--wp--preset--font-family--body);font-size:1.08rem;letter-spacing:0;margin:0 0 .15rem;line-height:1.35}
.og-feed .wp-block-post-title a{color:var(--og-ink);text-decoration:none}
.og-feed .wp-block-post-title a:hover{color:var(--og-blue);text-decoration:underline}
.og-feed .wp-block-post-excerpt{margin:0;color:var(--og-ink-2);font-size:.95rem}
.og-feed .wp-block-post-excerpt__excerpt{margin:0}

/* Ad slots */
.og-ad{margin:2rem auto;text-align:center}
.og-ad .og-ad-lbl{display:block;font-size:.7rem;letter-spacing:.06em;text-transform:uppercase;color:var(--og-ink-2);margin-bottom:.35rem}
.og-ad .adsbygoogle{display:block;margin:0 auto}
.og-ad-leader{max-width:728px}
.og-ad-leader .adsbygoogle{min-height:90px}
.og-ad-rect{max-width:300px;margin-top:2.5rem}
.og-ad-rect .adsbygoogle{min-height:250px}
.og-ad ins.adsbygoogle[data-ad-status="unfilled"]{display:none!important}

/* Learn tiles */
.og-tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}
.og-tile{border-radius:20px;padding:1.4rem 1.3rem 1.3rem;text-decoration:none;color:var(--og-ink);display:flex;flex-direction:column;min-height:15rem}
.og-tile:hover h3{text-decoration:underline}
.og-tile h3{font-size:1.35rem;margin:auto 0 .35rem}
.og-tile p{margin:0;color:var(--og-ink-2);font-size:.97rem}
.og-tile svg{width:74px;height:74px}
.og-t1{background:var(--og-blue-soft)} .og-t2{background:var(--og-orange-soft)} .og-t3{background:var(--og-teal-soft)} .og-t4{background:var(--og-sun-soft)}

/* Challenge (quiz) */
.og-qbox{background:var(--og-bg);border:2px solid var(--og-line);border-radius:20px;padding:1.5rem}
.og-bar{height:8px;border-radius:99px;background:var(--og-line);overflow:hidden;margin-bottom:1rem}
.og-bar i{display:block;height:100%;background:var(--og-teal);width:0;transition:width .3s}
.og-qbox h3{font-size:1.3rem;margin:0 0 1rem}
.og-opts{display:grid;gap:.55rem}
.og-opt{font:inherit;font-weight:600;text-align:left;border:2px solid var(--og-line);background:var(--og-bg);color:var(--og-ink);border-radius:12px;padding:.75rem .95rem;cursor:pointer}
.og-opt:hover:not(:disabled){border-color:var(--og-blue)}
.og-opt.right{border-color:var(--og-teal);background:var(--og-teal-soft)}
.og-opt.wrong{border-color:var(--og-orange);background:var(--og-orange-soft)}
.og-opt:disabled{cursor:default}
.og-fb{margin:.9rem 0 0;min-height:1.6em;color:var(--og-ink-2)}
.og-fb b{color:var(--og-ink)}
.og-qnext{border:0;border-radius:10px;padding:.85rem 1.3rem;font:inherit;font-weight:700;cursor:pointer;background:var(--og-blue);color:#fff}

/* Teachers */
.og-teach{border-radius:24px}
.og-lesson{background:var(--og-bg);border-radius:16px;padding:1.3rem;border:2px solid var(--og-line);font-size:.95rem}
.og-lesson .og-tag{display:inline-block;background:var(--og-teal);color:#fff;border-radius:6px;font-weight:700;font-size:.8rem;padding:.15rem .5rem;margin-bottom:.5rem}
.og-lesson h3{font-size:1.2rem;margin:0 0 .6rem}
.og-lesson ol{margin:0;padding-left:1.2rem;color:var(--og-ink-2)}
.og-btn-orange .wp-block-button__link{background:var(--og-orange)!important;color:#2B1406!important}

/* Promise */
.og-promise{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem;margin-top:3rem;text-align:left;border-top:2px solid var(--og-line);padding-top:2rem}
.og-promise b{display:block;font-family:var(--wp--preset--font-family--display);font-size:1.1rem;margin-bottom:.2rem}
.og-promise span{color:var(--og-ink-2);font-size:.95rem}

/* Footer */
.og-footer{border-top:2px solid var(--og-line);font-size:.93rem;color:var(--og-ink-2)}
.og-footer ul{list-style:none;margin:0;padding:0;display:flex;gap:1.1rem;flex-wrap:wrap}
.og-footer a{color:var(--og-ink-2);font-weight:400}

/* Single posts */
.og-updated{color:var(--og-ink-2);font-size:.92rem}

@media (max-width: 900px){
  .og-inside{grid-template-columns:1fr}
  .og-tiles,.og-promise{grid-template-columns:1fr 1fr}
  .og-feed-item{flex-direction:column;gap:.35rem!important}
}
@media (max-width: 560px){
  .og-stage{height:330px;margin-top:2.4rem}
  .og-tiles,.og-promise{grid-template-columns:1fr}
  .og-tile{min-height:11rem}
  .og-ad-leader{max-width:320px}
  .og-ad-leader .adsbygoogle{min-height:100px}
}

/* ===== AP Gov Exam Sprint ===== */
.og-kicker{display:inline-block;background:var(--og-sun-soft);border-radius:999px;padding:.3rem .85rem;font-weight:700;font-size:.92rem;margin:0 0 1rem}
.og-lede-left{font-size:1.2rem;color:var(--og-ink-2);max-width:34rem}
.wp-block-button.is-style-outline .wp-block-button__link{background:transparent;color:var(--og-ink);border:2px solid var(--og-line)}

/* Homepage promo */
.og-promo{display:grid;grid-template-columns:1.6fr 1fr;gap:2rem;align-items:center;background:var(--og-ink);color:var(--og-bg);border-radius:24px;padding:2.2rem 2.4rem;text-decoration:none;font-weight:400}
.og-promo:hover .og-promo-cta{text-decoration:underline}
.og-promo .og-kicker{color:var(--og-ink)}
.og-promo h2{color:var(--og-bg);margin:0 0 .6rem;font-size:clamp(1.8rem,3.4vw,2.4rem)}
.og-promo p{margin:0 0 1rem;opacity:.85;max-width:36rem}
.og-promo-cta{display:inline-block;background:var(--og-sun);color:#2B1406;border-radius:10px;padding:.75rem 1.2rem;font-weight:700}
.og-promo-count{text-align:center}
.og-promo-count .og-days{display:block;font-family:var(--wp--preset--font-family--display);font-weight:800;font-size:clamp(4rem,9vw,6rem);line-height:.95;letter-spacing:-.04em;color:var(--og-sun)}
.og-promo-count span:last-child{font-weight:600;opacity:.85}

/* Countdown card */
.og-count{background:var(--og-ink);color:var(--og-bg);border-radius:24px;padding:1.8rem}
.og-count p{margin:0}
.og-count-label{font-weight:700;opacity:.75;font-size:.95rem;margin-bottom:.3rem!important}
.og-count-days{font-family:var(--wp--preset--font-family--display);font-weight:800;font-size:clamp(4rem,10vw,6.5rem);line-height:.95;letter-spacing:-.04em;color:var(--og-sun)}
.og-count-until{margin:.3rem 0 1.3rem!important;font-weight:600}
.og-plan{list-style:none;margin:0;padding:0;border-top:1px solid rgba(255,255,255,.18)}
.og-plan li{display:flex;gap:.8rem;padding:.6rem 0;border-bottom:1px solid rgba(255,255,255,.18);font-size:.97rem}
.og-plan b{min-width:6.6rem;color:var(--og-sun)}
.og-plan li.is-now b::after{content:" \2190";color:var(--og-bg)}
@media (prefers-color-scheme: dark){
  .og-count,.og-promo{background:var(--og-blue-soft);color:var(--og-ink)}
  .og-promo h2{color:var(--og-ink)}
  .og-plan li.is-now b::after{color:var(--og-ink)}
}

/* Units, boxes, pricing */
.og-units{display:grid;grid-template-columns:repeat(5,1fr);gap:.8rem}
.og-unit{border-radius:18px;padding:1.2rem 1.1rem;background:var(--og-bg);border:2px solid var(--og-line)}
.og-unit-free{border-color:var(--og-teal)}
.og-unit-n{font-family:var(--wp--preset--font-family--display);font-weight:800;font-size:2rem;line-height:1;margin-bottom:.6rem}
.og-unit h3{font-family:var(--wp--preset--font-family--body);font-weight:700;letter-spacing:0;font-size:1.02rem;line-height:1.3;margin:0 0 .35rem}
.og-unit p{margin:0;font-size:.92rem;color:var(--og-ink-2)}
.og-free-tag{display:inline-block;background:var(--og-teal);color:#fff;font-size:.78rem;font-weight:700;border-radius:6px;padding:.1rem .45rem;margin-top:.6rem}
.og-boxes{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem}
.og-box{border-radius:20px;padding:1.5rem}
.og-box h3{font-size:1.3rem;margin:0 0 .5rem}
.og-box p{margin:0;color:var(--og-ink-2)}
.og-frq{list-style:none;margin:.8rem 0 0;padding:0;display:flex;flex-wrap:wrap;gap:.45rem}
.og-frq li{background:var(--og-bg);border-radius:999px;padding:.25rem .75rem;font-size:.88rem;font-weight:600}
.og-prices{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem}
.og-price{border:2px solid var(--og-line);border-radius:22px;padding:1.8rem;display:flex;flex-direction:column;background:var(--og-bg)}
.og-price-main{border-color:var(--og-blue)}
.og-price h3{font-size:1.45rem;margin:0 0 .3rem}
.og-who{color:var(--og-ink-2);margin:0 0 1rem}
.og-amount{font-family:var(--wp--preset--font-family--display);font-weight:800;font-size:3rem;line-height:1;margin:0}
.og-amount small{font-family:var(--wp--preset--font-family--body);font-size:1rem;font-weight:600;color:var(--og-ink-2)}
.og-was{color:var(--og-ink-2);margin:.35rem 0 1.1rem;font-size:.95rem}
.og-price ul{margin:0 0 1.5rem;padding-left:1.2rem;flex:1}
.og-btn{display:block;text-align:center;border-radius:10px;padding:.85rem 1.3rem;font-weight:700;background:var(--og-blue);color:#fff;text-decoration:none}
.og-btn:hover{filter:brightness(1.08);color:#fff}
.og-btn-orange{background:var(--og-orange);color:#2B1406}
.og-btn-orange:hover{color:#2B1406}

/* Sample sheet + FAQ */
.og-sheet{background:var(--og-bg);border:2px solid var(--og-line);border-radius:16px;padding:1.3rem;transform:rotate(1.2deg);box-shadow:0 18px 40px -20px rgba(20,33,61,.35)}
.og-sheet-t{font-family:var(--wp--preset--font-family--display);font-weight:800;font-size:1.15rem;margin:0 0 .7rem}
.og-sheet table{width:100%;border-collapse:collapse;font-size:.9rem}
.og-sheet td{border-top:1px solid var(--og-line);padding:.45rem .3rem;vertical-align:top}
.og-sheet td:first-child{font-weight:700;width:42%}
.og-sheet td:last-child{color:var(--og-ink-2)}
.og-faq .wp-block-details{border-top:2px solid var(--og-line);padding:1rem 0;margin:0}
.og-faq summary{cursor:pointer;font-weight:700;font-size:1.08rem}
.og-faq .wp-block-details p{color:var(--og-ink-2);margin:.6rem 0 0}

@media (max-width: 920px){
  .og-promo{grid-template-columns:1fr;padding:1.6rem}
  .og-units{grid-template-columns:1fr 1fr}
  .og-boxes,.og-prices{grid-template-columns:1fr}
}
@media (max-width: 560px){
  .og-units{grid-template-columns:1fr}
  .og-sheet{transform:none}
}

@media (prefers-reduced-motion: reduce){*{transition:none!important}}

/* Newsletter signup (Kit) */
.og-form{max-width:30rem;margin:1.25rem auto 0}
.og-form.is-left{margin-left:0}
.og-form-row{display:flex;gap:.5rem}
.og-form input[type=email]{flex:1;min-width:0;font:inherit;font-size:1rem;padding:.8rem 1rem;border:1.5px solid var(--og-line);border-radius:10px;background:var(--og-bg);color:var(--og-ink)}
.og-form input[type=email]:focus{outline:3px solid var(--og-blue-soft);border-color:var(--og-blue)}
.og-form button{font:inherit;font-weight:700;padding:.8rem 1.3rem;border:0;border-radius:10px;background:var(--og-blue);color:#fff;cursor:pointer;white-space:nowrap}
.og-form button[disabled]{opacity:.6;cursor:wait}
.og-form-msg{margin:.6rem 0 0;font-size:.92rem;min-height:1.2em}
.og-form-msg.is-ok{color:var(--og-teal)}
.og-form-msg.is-err{color:var(--og-orange)}
.og-form .og-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
@media (max-width:560px){.og-form-row{flex-direction:column}.og-form button{width:100%}}
