/*
Theme Name: Before the Verdict
Theme URI: https://beforetheverdict.com/
Author: Before the Verdict
Description: A clean, editorial WordPress theme for legal explainers, courtroom reporting, and case analysis.
Version: 1.5.1
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: before-the-verdict
Update URI: https://beforetheverdict.com/theme/
*/
:root {
  --btv-navy: #101d32;
  --btv-navy-soft: #1c2d47;
  --btv-gold: #d8b77c;
  --btv-cream: #fbfaf7;
  --btv-ink: #202633;
  --btv-muted: #697386;
  --btv-line: #e6e3dc;
  --btv-white: #fff;
  --btv-width: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--btv-cream); color: var(--btv-ink);
  font-family: Georgia, "Times New Roman", serif; font-size: 18px; line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #8a642e; }
button, input, textarea { font: inherit; }
.wrap { width: min(calc(100% - 40px), var(--btv-width)); margin-inline: auto; }
.site-header { background: var(--btv-navy); color: var(--btv-white); border-bottom: 3px solid var(--btv-gold); }
.header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-branding { display: flex; flex-direction: column; text-decoration: none; line-height: 1.2; }
.site-title { font-family: Arial, sans-serif; font-size: 1.05rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.site-description { color: #d7dce5; font-family: Arial, sans-serif; font-size: .72rem; margin-top: 6px; letter-spacing: .02em; }
.custom-logo { max-height: 56px; width: auto; }
.primary-navigation ul { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.primary-navigation a { font-family: Arial, sans-serif; font-size: .85rem; color: #f7f7f5; text-decoration: none; }
.primary-navigation a:hover { color: var(--btv-gold); }
.menu-toggle { display: none; color: white; background: transparent; border: 1px solid #637087; padding: 8px 12px; border-radius: 4px; }
.hero { background: var(--btv-navy); color: white; padding: clamp(60px, 9vw, 112px) 0 82px; }
.hero-inner { max-width: 820px; }
.eyebrow { color: var(--btv-gold); font: 700 .75rem/1.4 Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { max-width: 800px; margin: 18px 0; font-size: clamp(2.6rem, 6vw, 5.1rem); line-height: 1.02; letter-spacing: -.04em; font-weight: 500; }
.hero p { max-width: 660px; margin: 0; color: #e0e5ed; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.button { display: inline-flex; align-items: center; justify-content: center; margin-top: 28px; padding: 13px 20px; border-radius: 3px; background: var(--btv-gold); color: var(--btv-navy); font: 700 .88rem Arial, sans-serif; text-decoration: none; border: 1px solid var(--btv-gold); }
.button:hover { background: #ebd1a5; color: var(--btv-navy); }
.section { padding: 64px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-heading h2 { margin: 0; color: var(--btv-navy); font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 500; line-height: 1.15; }
.section-heading a { font: 700 .85rem Arial, sans-serif; color: var(--btv-navy); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.post-card { background: var(--btv-white); border: 1px solid var(--btv-line); min-width: 0; }
.post-card-image { aspect-ratio: 16 / 9; background: #e8e6e0; overflow: hidden; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; }
.post-card-content { padding: 22px; }
.post-meta { color: var(--btv-muted); font: 700 .72rem/1.5 Arial, sans-serif; letter-spacing: .05em; text-transform: uppercase; }
.post-card h3 { margin: 10px 0; font-size: 1.45rem; line-height: 1.2; font-weight: 500; }
.post-card h3 a { text-decoration: none; }
.post-card p { margin: 0; color: #555f6e; font-size: .95rem; }
.empty-image { height: 100%; display: grid; place-items: center; color: #7b8491; font: 700 .75rem Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.mission { background: #f0eee8; border-top: 1px solid var(--btv-line); border-bottom: 1px solid var(--btv-line); }
.mission-inner { max-width: 780px; margin: auto; text-align: center; }
.mission h2 { margin: 0 0 14px; color: var(--btv-navy); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 500; line-height: 1.15; }
.mission p { color: #515b69; margin: 0; }
.content-area { padding: 54px 0 76px; }
.content-layout { max-width: 820px; margin: 0 auto; }
.page-title, .entry-title { color: var(--btv-navy); font-size: clamp(2.2rem, 5vw, 3.7rem); line-height: 1.08; font-weight: 500; letter-spacing: -.025em; }
.entry-title a { text-decoration: none; }
.entry-header { margin-bottom: 25px; }
.entry-content { overflow-wrap: anywhere; }
.entry-content h2, .entry-content h3 { color: var(--btv-navy); line-height: 1.2; }
.entry-content a { color: #775525; }
.entry-content blockquote { margin: 28px 0; padding: 5px 0 5px 22px; border-left: 3px solid var(--btv-gold); color: #4f5968; }
.featured-image { margin: 25px 0; }
.featured-image img { width: 100%; max-height: 560px; object-fit: cover; }
.post-list { display: grid; gap: 24px; }
.post-list-item { padding-bottom: 24px; border-bottom: 1px solid var(--btv-line); }
.post-list-item h2 { margin: 7px 0; color: var(--btv-navy); font-size: 1.8rem; line-height: 1.2; font-weight: 500; }
.post-list-item h2 a { text-decoration: none; }
.pagination { margin-top: 35px; }
.pagination .nav-links { display: flex; gap: 12px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 12px; border: 1px solid var(--btv-line); text-decoration: none; }
.site-footer { background: var(--btv-navy); color: #e0e5ed; padding: 36px 0; font-family: Arial, sans-serif; font-size: .85rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: white; }
.site-footer p { margin: 0; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.alignwide { max-width: 1100px; margin-inline: auto; }
.alignfull { width: 100%; }
.wp-block-image img { height: auto; }
.wp-block-button__link { background: var(--btv-navy); color: white; border-radius: 3px; }
@media (max-width: 800px) {
  .header-inner { min-height: 74px; }
  .menu-toggle { display: block; }
  .primary-navigation { display: none; width: 100%; padding: 0 0 18px; }
  .primary-navigation.is-open { display: block; }
  .header-inner { flex-wrap: wrap; }
  .primary-navigation ul { flex-direction: column; align-items: flex-start; gap: 12px; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .wrap { width: min(calc(100% - 28px), var(--btv-width)); }
  .hero { padding: 55px 0 62px; }
  .section { padding: 44px 0; }
  .post-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .post-card-content { padding: 18px; }
}

/* Teen learning experience — October 2026 */
.hero { background: radial-gradient(ellipse at 90% 20%, #243b58 0, transparent 55%), var(--btv-navy); padding: 76px 0 78px; }
.hero-inner { max-width: 1000px; }
.hero h1 { max-width: 950px; font-size: clamp(2.6rem,5.5vw,4.7rem); }
.hero p { max-width: 700px; }
.learning-paths { padding-bottom: 12px; }
.path-caption { font: .9rem Arial,sans-serif; color: var(--btv-muted); }
.path-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
.path-card { text-decoration:none; border-top:3px solid var(--btv-gold); border-bottom:1px solid var(--btv-line); padding:26px 22px; background:#fff; transition:transform .15s,box-shadow .15s; }
.path-card:hover { transform:translateY(-3px); box-shadow:0 12px 30px #101d3210; color:var(--btv-navy); }
.path-number { font:700 .7rem Arial,sans-serif; letter-spacing:.12em; color:#775525; }
.path-card h3 { font-size:1.6rem; line-height:1.15; margin:18px 0 12px; font-weight:500; }
.path-card p { font-size:1rem; color:#515b69; margin:0 0 22px; }
.path-link { font:700 .8rem Arial,sans-serif; }
.post-card { border-radius:4px; overflow:hidden; }
.post-card-image { display:block; background:linear-gradient(135deg,#172942,#304963); }
.empty-image { color:#e1c38e; min-height:120px; background:repeating-linear-gradient(135deg,transparent,transparent 24px,#ffffff04 24px,#ffffff04 25px); }
.post-card-content { padding:26px; }
.post-card h3 { font-size:1.6rem; }
.question-panel { background:var(--btv-navy); color:white; padding:40px; display:flex; align-items:center; gap:36px; justify-content:space-between; border-radius:4px; }
.question-panel h2 { font-size:2rem; font-weight:500; line-height:1.2; margin:12px 0; }
.question-panel p { color:#d7dce5; max-width:650px; margin:0; }
.question-panel .button { flex-shrink:0; margin:0; }
.entry-content { line-height:1.8; }
.entry-content h2 { margin-top:2em; font-weight:500; font-size:1.8rem; }
.entry-content h3 { font-size:1.25rem; }
.entry-content details { border:1px solid var(--btv-line); border-left:3px solid var(--btv-gold); padding:18px 22px; margin:24px 0; background:#fff; }
.entry-content summary { cursor:pointer; font-weight:bold; color:var(--btv-navy); }
a:focus-visible,button:focus-visible,summary:focus-visible { outline:3px solid #a6742c; outline-offset:5px; }
@media(max-width:800px) { .path-grid { grid-template-columns:1fr; } .question-panel { flex-direction:column; align-items:flex-start; padding:28px; } .hero { padding:56px 0; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } .path-card { transition:none; } .path-card:hover { transform:none; } }

/* Shared navigation, imagery, forms, and classroom layout */
.hero{background:linear-gradient(90deg,#101d32 0%,#101d32ed 54%,#101d3290 100%),url('/wp-content/uploads/2026/10/supreme-court.jpg') center right/cover no-repeat;}
.hero h1{max-width:850px}.hero p{max-width:650px}.button-outline{background:transparent;color:#fff;margin-left:12px}.button-outline:hover{background:#ffffff15;color:#fff}
.site-branding a{text-decoration:none}.primary-navigation a{white-space:nowrap}.primary-navigation ul{gap:18px}.primary-navigation a[aria-current="page"]{color:var(--btv-gold)}
.learning-figure{margin:28px 0 36px}.learning-figure>img{width:100%;height:320px;object-fit:cover;object-position:center 28%;border-radius:4px}.learning-figure figcaption{font: .73rem/1.6 Arial,sans-serif;color:#5b6572;padding-top:9px}.learning-figure figcaption a{color:#6e5029}
.footer-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr;gap:48px}.footer-grid h2{font:700 .8rem Arial,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:var(--btv-gold);margin:0 0 16px}.footer-grid ul{list-style:none;padding:0;margin:0}.footer-grid li{margin:0 0 8px}.footer-grid a{text-decoration:none}.footer-grid a:hover{text-decoration:underline}.footer-brand{font-weight:800;letter-spacing:.12em;color:white;margin-bottom:12px!important}.footer-note{font-size:.76rem;margin-top:16px!important;color:#aebbcf}.footer-bottom{display:flex;justify-content:space-between;gap:24px;flex-wrap:wrap;border-top:1px solid #ffffff25;margin-top:30px;padding-top:22px;font-size:.75rem}.footer-bottom nav{display:flex;flex-wrap:wrap;gap:22px}
.decision-callout{display:flex;align-items:center;gap:32px;justify-content:space-between;border-top:2px solid var(--btv-gold);padding-top:30px}.decision-callout h2{font-size:2rem;line-height:1.2;font-weight:500;margin:12px 0}.decision-callout p{max-width:650px}.decision-callout .eyebrow{color:#775525}.decision-callout .button{flex-shrink:0;margin:0}
.entry-content .path-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.entry-content .path-card h2{margin:16px 0;font-size:1.5rem}.court-steps{border-left:3px solid var(--btv-gold);padding:8px 30px}.court-steps li{margin:14px 0}.entry-content small{font: .8rem/1.6 Arial,sans-serif;color:#5b6572}
.contact-form{padding:28px;background:#fff;border:1px solid var(--btv-line);border-radius:4px;margin:28px 0}.contact-form label{font-family:Arial,sans-serif;font-size:.9rem}.contact-form input:not([type="checkbox"]),.contact-form select,.contact-form textarea{width:100%;max-width:100%;padding:12px;border:1px solid #8b95a3;border-radius:3px;background:#fff;color:var(--btv-ink);font:1rem Arial,sans-serif}.contact-form textarea{min-height:160px}.contact-form button{padding:13px 22px;background:var(--btv-navy);color:white;border:0;border-radius:3px;font:700 .9rem Arial,sans-serif}.contact-form .form-errors{color:#8c2424}
@media(max-width:1050px){.header-inner{gap:16px}.primary-navigation ul{gap:12px}.primary-navigation a{font-size:.78rem}.site-title{font-size:.9rem}}
@media(max-width:800px){.footer-grid{grid-template-columns:1fr 1fr;gap:30px}.footer-grid>div{grid-column:1/-1}.decision-callout{flex-direction:column;align-items:flex-start}.hero{background:linear-gradient(90deg,#101d32ef,#101d32ce),url('/wp-content/uploads/2026/10/supreme-court.jpg') center/cover}.learning-figure>img{height:250px}.entry-content .path-grid{grid-template-columns:1fr}}
@media(max-width:560px){.button-outline{margin-left:0;margin-right:8px}.hero .button{display:flex;max-width:280px}.footer-grid{gap:24px}.footer-bottom{font-size:.72rem}.contact-form{padding:18px}.learning-figure>img{height:210px}}
@media print{.site-header,.site-footer,#wpadminbar,.button{display:none!important}.content-area{padding:0}.wrap{width:100%}.learning-figure{display:none}details{break-inside:avoid}.entry-content a{color:#000}.entry-content{font-size:11pt}}
/* AP Gov case guides and accessible local practice tests. */
.post-card h2{font-size:1.6rem;line-height:1.2;font-weight:500;margin:10px 0}.post-card h2 a{text-decoration:none}
.ap-feature{padding:26px;background:#edf1f6;border-top:3px solid var(--btv-gold);margin:28px 0}.ap-feature h2{margin-top:0}.ap-feature .button{margin-top:12px}
.ap-case-index{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:24px 0}.ap-case-index a{padding:12px 15px;border:1px solid var(--btv-line);background:white;text-decoration:none;font:700 .86rem/1.5 Arial,sans-serif}.ap-case-index span{font-weight:400;white-space:nowrap}
.entry-content details.ap-case{padding:0;border:1px solid var(--btv-line);border-top:3px solid var(--btv-gold);margin:18px 0;border-radius:4px;scroll-margin-top:70px}
.ap-case>summary{display:flex;gap:16px;padding:22px;align-items:flex-start;font:700 1.1rem/1.45 Arial,sans-serif;list-style:none}.ap-case>summary::-webkit-details-marker{display:none}.ap-case>summary::after{content:'+';margin-left:auto;font-size:1.5rem;line-height:1}.ap-case[open]>summary::after{content:'−'}.ap-case small{display:block;margin-top:5px;font-weight:400}.ap-case-number{font:400 1.7rem/1.3 Georgia,serif;color:#856030}.ap-case-content{padding:0 24px 24px}.ap-case-content h3{margin-top:28px}.ap-watch{padding:14px 18px;background:#f6f1e6;border-left:3px solid var(--btv-gold)}
.ap-score{font:700 .9rem/1.6 Arial,sans-serif;padding:16px;background:#edf1f6;border-radius:3px}.ap-question{min-width:0;border:1px solid #d8dde4;padding:18px 20px;margin:26px 0;border-radius:4px}.ap-question legend{padding:0 6px;font:700 1rem/1.55 Arial,sans-serif;color:var(--btv-navy)}.ap-skill{font:700 .7rem Arial,sans-serif;text-transform:uppercase;letter-spacing:.1em;color:#775525;margin:0 0 12px}.ap-question label{display:flex;align-items:flex-start;gap:12px;font: .93rem/1.6 Arial,sans-serif;padding:10px;border-radius:3px;cursor:pointer;margin:5px 0}.ap-question label:hover{background:#f1f4f7}.ap-question input[type=radio]{flex-shrink:0;margin-top:6px;width:18px;height:18px;accent-color:var(--btv-navy)}.ap-feedback{font:700 .85rem/1.6 Arial,sans-serif;padding:12px;background:#edf1f6}.ap-correct{border-color:#27704f}.ap-review{border-color:#9a6c2d}.ap-answer summary,.ap-written-key summary{font-size:.88rem}.entry-content .ap-answer{margin:16px 0 0;padding:14px 16px;background:#faf9f5}.ap-test-actions{display:flex;gap:14px;flex-wrap:wrap;margin:20px 0}.ap-test-actions button{font:700 .88rem Arial,sans-serif;background:var(--btv-navy);color:white;border:1px solid var(--btv-navy);padding:13px 17px;border-radius:3px;cursor:pointer}.ap-test-actions button[data-ap-action=reset]{background:white;color:var(--btv-navy)}.ap-table-wrap{overflow-x:auto}.ap-comparison{border-collapse:collapse;width:100%;font: .85rem/1.55 Arial,sans-serif}.ap-comparison caption{text-align:left;font-weight:700;padding:12px 0}.ap-comparison th,.ap-comparison td{padding:12px;text-align:left;border-bottom:1px solid var(--btv-line);vertical-align:top}.ap-comparison th{background:#edf1f6}
@media(max-width:900px){.header-inner{flex-wrap:wrap}.menu-toggle{display:block}.primary-navigation{display:none;width:100%;padding:0 0 18px}.primary-navigation.is-open{display:block}.primary-navigation ul{flex-direction:column;align-items:flex-start;gap:12px}}
@media(max-width:560px){.ap-case-index{grid-template-columns:1fr}.ap-case>summary{padding:18px;gap:10px;font-size:.98rem}.ap-case-content{padding:0 14px 20px}.ap-question{padding:14px 10px}.ap-question label{padding:9px 4px}.ap-feature{padding:20px}.ap-test-actions{flex-direction:column}}

/* Search and current-page cues */
.primary-navigation a[aria-current="page"]{color:var(--btv-gold);text-decoration:underline;text-underline-offset:7px}
.btv-search{max-width:560px;margin:32px 0;font-family:Arial,sans-serif}.btv-search label{display:block;font-weight:700;margin-bottom:8px}.btv-search div{display:flex;gap:8px}.btv-search input{min-width:0;flex:1;padding:12px;border:1px solid #d8b77c;border-radius:3px;background:#fff;color:#202633}.btv-search button{padding:12px 18px;border:0;border-radius:3px;background:#d8b77c;color:#101d32;font-weight:700;cursor:pointer}.site-footer .btv-search{color:#fff}.btv-search button:hover{background:#efcea0}
@media(max-width:480px){.btv-search div{flex-wrap:wrap}.btv-search input{width:100%;flex-basis:100%}}

.ap-subnav{display:flex;flex-wrap:wrap;gap:10px 20px;margin:18px 0 26px;padding:16px 18px;border:1px solid var(--btv-line);border-left:4px solid var(--btv-gold);font-family:Arial,sans-serif;font-size:15px;line-height:1.5}.ap-subnav a{color:#101d32;font-weight:700}.flash-card{margin:14px 0;border:1px solid var(--btv-line);padding:15px 18px;background:#fff}.flash-card summary{font-weight:700;cursor:pointer}.flash-deck{margin:20px 0;padding:18px;background:#f2efe8}.flash-deck>summary{font-family:Arial,sans-serif;font-weight:700;cursor:pointer}.entry-content textarea[readonly]{padding:14px;border:1px solid #697386;background:#fff;color:#202633;line-height:1.5}

/* Illustrated decision series */
.decision-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start;margin:24px 0 44px}.decision-card{min-width:0;background:#fff;border:1px solid var(--btv-line);border-radius:5px;overflow:hidden}.decision-card figure{margin:0}.decision-card img{width:100%;height:190px;object-fit:cover;object-position:center 35%}.decision-card figcaption{padding:9px 16px;color:#616975;font:11px/1.5 Arial,sans-serif;border-bottom:1px solid var(--btv-line)}.decision-card-body{padding:22px}.decision-card h3{font-size:25px;line-height:1.25;margin:12px 0}.decision-card h3 a{text-decoration:none}.decision-card h3 a:hover{text-decoration:underline}.decision-card p,.decision-preview li{font-size:16px;line-height:1.6}.decision-kicker{font:700 12px/1.5 Arial,sans-serif!important;letter-spacing:.04em;color:#725322}.decision-status{display:block;padding:8px 10px;background:#edf0f5;color:#16243b;font:700 12px/1.5 Arial,sans-serif!important}.decision-note{border-left:4px solid var(--btv-gold);padding:18px 24px;background:#f1eee7;margin:24px 0}.decision-note p{margin:8px 0}.decision-preview{margin:20px 0!important;padding:14px!important}.decision-preview summary{font:700 14px/1.5 Arial,sans-serif;cursor:pointer}.decision-preview h4{font-size:18px;margin:22px 0 12px}.decision-preview ol,.decision-preview ul{padding-left:20px}.decision-answer summary{cursor:pointer;font-weight:700}@media(max-width:700px){.decision-grid{grid-template-columns:1fr}.decision-card img{height:200px}.decision-note{padding:16px 18px}}

/* Section location and breadcrumb navigation. */
.ap-subnav a.is-current { background: var(--btv-navy); color: #fff; border-color: var(--btv-navy); }
.btv-breadcrumbs { margin: 0 0 22px; font: 13px/1.6 Arial, sans-serif; color: var(--btv-muted); }
.btv-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; list-style: none; margin: 0; padding: 0; }
.btv-breadcrumbs li { min-width: 0; overflow-wrap: anywhere; }
.btv-breadcrumbs li + li::before { content: "/"; margin-right: 10px; color: #697386; }
.btv-breadcrumbs [aria-current="page"] { color: var(--btv-ink); }
