/*
Theme Name: Kings of Virginia
Description: An archival research theme with editable blocks and reusable county and evidence patterns.
Version: 1.0.3
Author: Kings of Virginia
Text Domain: kings-of-virginia
Requires at least: 6.6
Requires PHP: 8.0
License: GPL-2.0-or-later
*/
:root{--paper:#f6f2e9;--white:#fffdf8;--ink:#282c25;--muted:#616357;--green:#35473a;--gold:#876b3e;--line:#d8d2c4;--wash:#eae5da;--serif:Georgia,'Times New Roman',serif;--sans:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);font-size:17px;line-height:1.75}img{max-width:100%;height:auto}a{color:var(--green);text-underline-offset:4px}a:hover{color:#79582d}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #9d6621;outline-offset:4px}h1,h2,h3,h4{font-family:var(--serif);font-weight:400;line-height:1.14;letter-spacing:-.035em}h1{font-size:clamp(2.8rem,5vw,4.8rem)}h2{font-size:clamp(2rem,3.4vw,3rem)}h3{font-size:1.6rem}p{margin:0 0 1.2em}button,input,textarea,select{font:inherit}button{cursor:pointer}button,.wp-block-button__link{background:var(--green);color:var(--white);border:1px solid var(--green);padding:13px 23px;border-radius:2px;font-size:14px;font-weight:600;text-decoration:none}.wp-block-button__link:hover,button:hover{background:#26362b;color:white}.wp-block-buttons{gap:14px}.is-style-outline>.wp-block-button__link{color:var(--green);background:transparent;border:1px solid var(--green)}.is-style-outline>.wp-block-button__link:hover{background:var(--wash)}
.skip-link{position:absolute;left:20px;top:-100px;z-index:99999;background:white;padding:15px}.skip-link:focus{top:8px}.masthead-note{padding:9px max(24px,calc((100% - 1240px)/2));background:var(--green);color:#f6f2e9;font-size:10px;letter-spacing:.2em;display:flex;justify-content:space-between}.masthead-note span{letter-spacing:.09em}.site-header{border-bottom:1px solid var(--line)}.header-inner{max-width:1290px;margin:auto;padding:25px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:var(--ink);flex-shrink:0}.brand img{width:52px;height:52px;object-fit:contain}.brand strong{font:30px var(--serif);letter-spacing:-1px;display:block}.brand small{display:block;font-size:8px;letter-spacing:.17em;margin-top:8px}.menu{list-style:none;display:flex;gap:24px;margin:0;padding:0}.menu a{text-decoration:none;font-size:13px;font-weight:500;display:block;padding:8px 0}.current-menu-item>a{border-bottom:1px solid var(--gold)}.menu-toggle{display:none}.eyebrow{font-size:10px;font-weight:650;letter-spacing:.2em;line-height:1.6;color:var(--gold);text-transform:uppercase;margin-bottom:20px}.hero{max-width:1290px;margin:auto;padding:58px 25px 48px}.hero-columns{gap:54px!important;align-items:center!important}.hero h1{margin:0 0 26px;font-size:clamp(2.8rem,4.6vw,4.5rem);max-width:670px}.hero .intro{font-size:17px;color:var(--muted);line-height:1.8;max-width:470px;margin-bottom:27px}.hero figure{margin:0}.hero figure img{width:100%;aspect-ratio:1.03;object-fit:cover;filter:sepia(.24);padding:9px;border:1px solid #bab1a0;background:#e4ddce;box-shadow:8px 9px 0 #e9e3d7}.hero figcaption{font-size:10px;color:var(--muted);margin-top:19px;line-height:1.6}.hero figcaption a{color:inherit}.hero .wp-block-column:first-child{flex-basis:55%!important}.hero .wp-block-column:last-child{flex-basis:45%!important}.research-ribbon{border-top:1px solid var(--line);border-bottom:1px solid var(--line);text-align:center;padding:20px 24px;font-size:12px;color:var(--muted);letter-spacing:.035em}.research-ribbon p{margin:0}.section{max-width:1290px;margin:auto;padding:68px 25px}.section h2{margin:0 0 18px}.section-intro{max-width:680px;color:var(--muted);margin-bottom:32px}.research-grid{gap:0!important;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.research-card{padding:30px 26px 25px!important;border-right:1px solid var(--line)}.research-card:first-child{padding-left:0!important}.research-card:last-child{border-right:0}.research-card .card-number{font:italic 18px var(--serif);color:var(--gold);margin-bottom:26px}.research-card h3{margin:0 0 15px;font-size:1.7rem}.research-card p{font-size:14px;color:var(--muted)}.research-card a{font-size:13px;font-weight:600}.featured{background:var(--wash);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.featured>.section{padding-top:54px;padding-bottom:54px}.featured .wp-block-columns{gap:64px!important;align-items:center!important}.feature-copy p{color:var(--muted)}.feature-note{padding:30px;border:1px solid #c9c3b5;background:var(--paper)}.feature-note h3{margin:0 0 14px}.feature-note p{font-size:14px}.feature-note ul{padding-left:20px;font-size:14px}.evidence-row{display:flex;flex-wrap:wrap;gap:10px;margin:25px 0}.evidence-row p{border:1px solid var(--line);padding:7px 13px;border-radius:3px;font-size:12px;margin:0;background:var(--white)}.contribute-band{margin:0 auto 65px;max-width:1240px;padding:40px;background:var(--green);color:var(--paper)}.contribute-band h2{margin:0 0 14px}.contribute-band p{color:#e4e7df;max-width:700px}.contribute-band a{color:var(--paper);font-weight:600}.site-footer{border-top:1px solid var(--line);background:#ece8df;padding:47px 25px 20px}.footer-inner,.footer-bottom{max-width:1240px;margin:auto;display:flex;justify-content:space-between;gap:30px}.footer-brand{font:30px var(--serif);text-decoration:none}.footer-inner p{font-size:13px;color:var(--muted);margin-top:14px}.footer-inner .menu{display:grid;grid-template-columns:repeat(2,1fr);column-gap:45px;row-gap:0}.footer-inner .menu a{font-size:12px}.footer-bottom{border-top:1px solid var(--line);padding-top:20px;margin-top:35px;font-size:10px;color:var(--muted)}
.page-main{max-width:1000px;margin:0 auto;padding:36px 30px 80px;min-height:65vh}.breadcrumbs{font-size:12px;color:var(--muted);display:flex;gap:10px}.page-heading{padding:40px 0 30px;border-bottom:1px solid var(--line);margin-bottom:35px}.page-heading h1{margin:0 0 22px;font-size:clamp(2.8rem,5vw,4.4rem)}.page-deck{font-size:19px;color:var(--muted);max-width:790px;margin:0}.entry-content h2{font-size:2.2rem;margin:45px 0 20px}.entry-content h3{margin:28px 0 15px}.entry-content p,.entry-content li{max-width:820px}.entry-content li{margin-bottom:10px}.entry-content .wp-block-columns{gap:30px}.notice{border-left:3px solid var(--gold);padding:20px 25px;background:var(--wash);margin:24px 0}.notice p:last-child{margin:0}.entry-content figure{margin:25px 0}.entry-content figcaption{font-size:12px;color:var(--muted)}.entry-content .wp-block-image img{border:1px solid var(--line)}.resource-card{padding:24px;border:1px solid var(--line);background:var(--white);margin-bottom:20px}.resource-card h2,.resource-card h3{margin-top:0}.resource-card p{font-size:15px}.search-form{margin:25px 0 40px;max-width:700px}.search-form label{font-size:13px;display:block;font-weight:600;margin-bottom:8px}.search-form>div{display:flex}.search-form input{min-width:0;flex:1;border:1px solid #aaa797;padding:12px;background:var(--white);border-radius:2px 0 0 2px}.search-result{padding:20px 0;border-bottom:1px solid var(--line)}.search-result h2{font-size:1.8rem}.kov-form{padding:28px;background:var(--white);border:1px solid var(--line);max-width:800px}.kov-form label{display:block;font-size:14px;font-weight:600;margin-bottom:20px}.kov-form input:not([type=checkbox]),.kov-form textarea,.kov-form select{display:block;width:100%;margin-top:7px;padding:12px;border:1px solid #aaa797;border-radius:2px;background:white}.kov-form textarea{min-height:180px}.kov-form .consent{font-weight:400;font-size:13px;display:flex;gap:10px;align-items:flex-start}.kov-form input[type=checkbox]{margin-top:6px}.kov-form .trap{display:none}.form-notice{padding:20px;background:var(--wash);border-left:3px solid var(--green)}.editor-styles-wrapper{background:var(--paper);color:var(--ink)}
@media(max-width:999px){.header-inner{flex-wrap:wrap}.navigation-ready .menu-toggle{display:block}.navigation-ready #primary-nav{display:none;width:100%}.navigation-ready #primary-nav.is-open{display:block}#primary-nav .menu{flex-wrap:wrap;gap:12px 25px}.hero{padding-top:38px}.hero-columns{gap:30px!important}.brand strong{font-size:27px}.contribute-band{margin-left:25px;margin-right:25px}.research-card{padding-left:18px!important;padding-right:18px!important}.menu-toggle{font-size:12px;padding:10px 14px}}
@media(max-width:781px){.hero-columns{flex-direction:column}.hero h1{font-size:clamp(2.7rem,9vw,4rem)}.hero figure img{aspect-ratio:1.5}.hero .wp-block-column{width:100%}.section{padding-top:45px;padding-bottom:45px}.research-card,.research-card:first-child{padding:25px 0!important;border-right:0;border-bottom:1px solid var(--line)}.research-card:last-child{border-bottom:0}.research-card .card-number{margin-bottom:12px}.research-grid{gap:0!important}.featured .wp-block-columns{gap:25px!important}.footer-inner{flex-direction:column}.footer-bottom{flex-direction:column;gap:8px}.contribute-band{padding:27px;margin-bottom:40px}.page-main{padding:25px 24px 55px}.page-heading{padding-top:26px}.masthead-note span{display:none}.brand img{width:42px;height:42px}.brand strong{font-size:24px}.brand small{font-size:7px}.header-inner{padding:22px 20px;gap:16px}.kov-form{padding:20px}.entry-content h2{font-size:1.9rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
@media print{.masthead-note,.site-header,.site-footer,.menu-toggle,.kov-form{display:none}.page-main{max-width:none;padding:0}body{background:white;color:black;font-size:12pt}a{color:black}.notice{border:1px solid #aaa}.hero figure img{filter:none;box-shadow:none}}
/* Editorial artwork stays proportional; maps are never cropped. */
.entry-content .kov-editorial-figure{margin:28px 0 38px}
.entry-content .kov-editorial-figure img{display:block;width:100%;height:auto;border:0}
.entry-content .kov-map-figure{margin:28px 0 38px}
.entry-content .kov-map-figure img{display:block;width:100%;height:auto;border:1px solid var(--line)}
.entry-content .kov-map-figure a{display:block}
.entry-content .kov-editorial-figure figcaption,.entry-content .kov-map-figure figcaption{max-width:820px;margin-top:10px;font-size:11px;line-height:1.6}
@media(min-width:782px){.page-id-28 .kov-editorial-figure,.page-id-31 .kov-editorial-figure{max-width:700px}}

/* Semantic section headings keep the established resource-card appearance. */
.entry-content h2.kov-card-heading{font-size:1.6rem;margin:28px 0 15px}
.entry-content .resource-card h2.kov-card-heading{margin-top:0}

/* Source-linked local-history listings avoid third-party social scripts. */
.local-updates-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:28px 0}
.local-updates-grid .resource-card{margin:0}
.local-update-card .eyebrow{margin-bottom:12px}
.local-update-card h3{font-family:var(--sans);font-size:13px;font-weight:700;letter-spacing:.04em;margin:24px 0 10px}
.local-update-links{padding-left:20px;margin-bottom:20px}
.local-update-links li{margin-bottom:13px}
.local-update-links span{display:block;color:var(--muted);font-size:12px;margin-top:2px}
.local-update-actions{margin-top:22px;font-size:13px!important;font-weight:600}
@media(max-width:781px){.local-updates-grid{grid-template-columns:1fr}}
