/*
Theme Name: AP World Reference
Description: Lightweight educational theme for AP World Calculator.
Version: 1.0.0
Requires PHP: 7.4
*/
:root{--navy:#102b40;--ink:#172432;--blue:#1670c4;--line:#e2e7ec}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:white;color:var(--ink);font-family:Arial,Helvetica,sans-serif;line-height:1.48}a{color:#155fa4}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #e8ad26;outline-offset:3px}.wrap{width:min(1100px,calc(100% - 40px));margin:auto}.site-header{background:#fff;border-bottom:1px solid #e7edf4}.header-inner{display:flex;align-items:center;justify-content:space-between;gap:22px;min-height:58px}.brand{display:inline-flex;align-items:center;gap:9px;text-decoration:none;color:#182536;font-size:19px;font-weight:700;white-space:nowrap}.brand-mark{width:37px;height:32px;fill:#0b293d}.brand b{color:#1b6ebd}.nav-toggle{display:none;background:#fff;border:1px solid var(--line);border-radius:6px;padding:7px 10px;font-size:20px}.main-nav{display:flex;align-items:center;gap:23px}.main-nav a{font-size:12px;text-decoration:none;color:#182536;white-space:nowrap;padding:18px 0}.main-nav a:hover,.main-nav a[aria-current=page]{color:#1570c6;border-bottom:2px solid #1570c6}.header-search{width:130px}.header-search input{max-width:100%;border:1px solid #d8e5f0;border-radius:5px;padding:7px;font-size:11px}.hero{background:linear-gradient(95deg,#fff 0%,#f7fbff 57%,#e9f4ff 100%);overflow:hidden}.hero-inner{min-height:237px;display:flex;align-items:center;position:relative}.hero-copy{position:relative;z-index:1;width:60%;padding:22px 0}.eyebrow{display:inline-block;background:#e8f3ff;color:#165d9d;border-radius:5px;padding:3px 7px;font-size:12px;font-weight:700}.hero h1{font-size:43px;line-height:1.02;margin:6px 0 8px;letter-spacing:-1.4px;max-width:560px}.hero h1 span{color:var(--blue)}.hero p{max-width:550px;margin:0;font-size:15px}.benefits{display:flex;flex-wrap:wrap;gap:20px;margin-top:12px;font-size:12px}.benefits span:before{content:'✓';background:#d9f7ec;color:#098b5b;border-radius:50%;padding:2px 5px;margin-right:7px}.hero-art{position:absolute;right:0;bottom:0;width:40%;height:100%;display:grid;place-items:center;opacity:.9}.hero-art svg{width:min(300px,90%);height:auto}.promo{margin:12px auto 18px;background:linear-gradient(90deg,#155487,#1268a5);color:white;min-height:80px;padding:14px 36px;display:flex;justify-content:space-between;align-items:center;gap:22px}.promo strong{font-family:Georgia,serif;font-size:24px;line-height:1}.promo a{background:#fff;border-radius:6px;padding:9px 16px;color:#162b3b;text-decoration:none;font-weight:700;font-size:13px}.section-heading{margin:17px 0 7px}.section-heading h2{font-size:22px;line-height:1.2;margin:0}.section-heading p{margin:2px 0 10px;color:#566274;font-size:13px}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}.card{border:1px solid var(--line);border-radius:7px;padding:18px;min-height:174px;box-shadow:0 2px 6px #102d4010}.card-icon{font-size:27px;border-radius:8px;background:#e8f4fe;width:50px;height:50px;display:grid;place-items:center;color:#1373b9}.card:nth-child(2) .card-icon{background:#e7f8ed;color:#1aa674}.card:nth-child(3) .card-icon{background:#fff0de;color:#e38f20}.card:nth-child(4) .card-icon{background:#edf0ff;color:#386bc6}.card h3{font-size:14px;margin:11px 0 6px}.card p{font-size:13px;color:#49576a;min-height:58px;margin:0}.card a{font-size:12px;font-weight:700;text-decoration:none}.articles{padding:0 0 15px}.article-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}.article-tile a{text-decoration:none;color:inherit}.article-tile img{width:100%;height:105px;object-fit:cover;border-radius:6px;background:#e6eff8}.article-tile h3{font-size:13px;line-height:1.2;margin:5px 0}.article-tile time{font-size:11px;color:#5d6b79}.section-row{display:flex;justify-content:space-between;align-items:center}.outline-link{border:1px solid #c9ddeb;border-radius:6px;padding:8px 12px;text-decoration:none;font-size:12px}.site-footer{background:#102b40;color:#fff;padding:24px 0 0}.footer-grid{display:grid;grid-template-columns:1.4fr .8fr .8fr 1fr;gap:40px}.site-footer a{color:#dbe8f2;text-decoration:none}.site-footer .brand{color:white}.site-footer p,.site-footer li{font-size:12px}.site-footer ul{list-style:none;padding:0;margin:8px 0}.site-footer li{margin:4px 0}.site-footer h3{font-size:14px;margin:0 0 8px}.footer-bottom{border-top:1px solid #385568;margin-top:20px;padding:10px 0;display:flex;justify-content:space-between;gap:20px;font-size:11px}.entry{max-width:820px;margin:38px auto 65px;padding:0 20px}.entry h1{font-size:36px;line-height:1.1}.entry h2{margin-top:30px}.entry p,.entry li{line-height:1.7}.entry table{border-collapse:collapse;width:100%}.entry th,.entry td{border:1px solid var(--line);padding:8px;text-align:left}.screen-reader-text{position:absolute;clip-path:inset(50%);height:1px;width:1px;overflow:hidden}@media(max-width:850px){.header-inner{flex-wrap:wrap}.nav-toggle{display:block;margin-left:auto}.main-nav{display:none;order:3;width:100%;flex-direction:column;align-items:flex-start;gap:0}.main-nav.open{display:flex}.main-nav a{padding:10px 0}.header-search{order:2}.hero-copy{width:72%}.hero-art{width:35%;opacity:.55}.cards,.article-grid{grid-template-columns:repeat(2,1fr)}.footer-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:560px){.wrap{width:min(100% - 28px,1100px)}.header-search{width:100%;order:4;padding-bottom:8px}.header-search input{width:100%}.hero-inner{min-height:280px}.hero-copy{width:100%}.hero h1{font-size:34px}.hero-art{opacity:.15;width:80%}.benefits{gap:8px 15px}.promo{padding:13px 17px}.promo strong{font-size:20px}.cards,.article-grid,.footer-grid{grid-template-columns:1fr 1fr;gap:12px}.card{padding:12px}.card p{min-height:85px}.article-tile img{height:90px}.footer-bottom{display:block}.entry h1{font-size:29px}}@media(max-width:390px){.cards,.footer-grid{grid-template-columns:1fr}.card p{min-height:0}}
/* Original educational imagery is bundled locally and contains no external tracking. */
.hero{background-image:linear-gradient(90deg,#fff 0%,rgba(255,255,255,.97) 27%,rgba(255,255,255,.65) 48%,rgba(255,255,255,0) 70%),url('assets/hero.webp');background-size:cover;background-position:center 49%}
.article-thumb{display:block;width:100%;height:105px;border-radius:6px;background-image:url('assets/article-grid.webp');background-size:200% 200%;background-position:0 0}
.article-tile:nth-child(2) .article-thumb{background-position:100% 0}.article-tile:nth-child(3) .article-thumb{background-position:0 100%}.article-tile:nth-child(4) .article-thumb{background-position:100% 100%}
@media(max-width:560px){.hero{background-image:linear-gradient(90deg,rgba(255,255,255,.95),rgba(255,255,255,.78)),url('assets/hero.webp')}.article-thumb{height:90px}}
.site-footer .brand-mark{fill:#fff}
.promo{background-image:linear-gradient(90deg,#155487 0%,rgba(21,84,135,.96) 54%,rgba(18,104,165,.64) 100%),url('assets/hero.webp');background-size:cover;background-position:center 55%}
.custom-brand-logo{width:38px;height:32px;object-fit:contain}.promo strong{max-width:290px}
@media(max-width:560px){.promo span[aria-hidden="true"]{display:none}.promo{gap:10px}.promo strong{min-width:0;font-size:19px}}
