/*
Theme Name: NWOJDC
Description: A clean, accessible block theme for the Northwest Ohio Juvenile Detention, Training and Rehabilitation Center.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
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: nwojdc
*/

html{scroll-behavior:smooth}
body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
img{max-width:100%;height:auto}
:where(a){text-underline-offset:.18em;text-decoration-thickness:1px}
:where(a:hover){text-decoration-thickness:2px}
:focus-visible{outline:3px solid var(--wp--preset--color--accent);outline-offset:2px;border-radius:2px}
.skip-link.screen-reader-text:focus{background:#fff;color:var(--wp--preset--color--navy);padding:.75rem 1rem;z-index:100000}

.nw-topbar{font-size:.875rem}
.nw-topbar a{color:inherit;text-decoration:none}
.nw-topbar a:hover{text-decoration:underline}
.nw-topbar p{margin:0}

.nw-header{position:relative;border-bottom:1px solid var(--wp--preset--color--border)}
.nw-brand{display:flex;align-items:center;gap:.9rem;text-decoration:none}
.nw-logo{flex:0 0 auto;display:block;line-height:0;border-radius:50%}
.nw-logo img{display:block;width:64px;height:64px}
.nw-header .wp-block-site-title{margin:0;line-height:1.2}
.nw-header .wp-block-site-title a{text-decoration:none;color:var(--wp--preset--color--navy)}
.nw-header .wp-block-site-title a:hover{text-decoration:underline}
.nw-header .wp-block-search__input{border:1px solid var(--wp--preset--color--border);border-radius:6px 0 0 6px;padding:.55rem .75rem;min-width:12rem;font:inherit}
.nw-header .wp-block-search__button{margin-left:0;border-radius:0 6px 6px 0;background:var(--wp--preset--color--navy);color:#fff;border:0;padding:.55rem .9rem;font:inherit;font-weight:600;cursor:pointer}

.nw-navbar.has-background{padding-top:0;padding-bottom:0}
.nw-navbar{position:sticky;top:0;z-index:30;box-shadow:0 2px 10px rgba(15,42,71,.18)}
.nw-navbar .wp-block-navigation{font-size:.9rem;font-weight:600;margin:0}
.nw-navbar>*{margin-block:0}
.nw-navbar .wp-block-navigation-item__content{display:block;padding:.85rem .62rem;color:#fff;text-decoration:none;border-bottom:3px solid transparent}
.nw-navbar .wp-block-navigation-item__content:hover,.nw-navbar .wp-block-navigation-item__content:focus-visible{background:rgba(255,255,255,.08);border-bottom-color:var(--wp--preset--color--accent)}
.nw-navbar .current-menu-item>.wp-block-navigation-item__content,.nw-navbar [aria-current="page"]{border-bottom-color:var(--wp--preset--color--accent)}
.nw-navbar .wp-block-navigation__responsive-container-open{color:var(--wp--preset--color--accent);padding:.6rem .25rem;min-height:48px;gap:.5rem;align-items:center;font:inherit;font-size:1.05rem;font-weight:700;letter-spacing:.02em}
.nw-navbar .wp-block-navigation__responsive-container-open:not(.always-shown):after{content:"Menu"}
.nw-navbar .wp-block-navigation__responsive-container-open svg{width:28px;height:28px}
.nw-navbar .wp-block-navigation__responsive-container.is-menu-open{background:var(--wp--preset--color--navy)!important;color:#fff!important;padding:1.5rem}
.nw-navbar .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content{padding:.6rem 0;font-size:1.1rem}

.nw-hero{position:relative;overflow:hidden;background:linear-gradient(135deg,var(--wp--preset--color--navy) 0%,#163a63 60%,#1d4f91 100%)}
.nw-hero:before{content:"";position:absolute;inset:0;background:radial-gradient(60rem 30rem at 85% 10%,rgba(242,181,58,.14),transparent 60%);pointer-events:none}
.nw-hero>*{position:relative}
.nw-hero h1{color:#fff;text-wrap:balance}
.nw-eyebrow{text-transform:uppercase;letter-spacing:.14em;font-size:.8rem;font-weight:700;color:var(--wp--preset--color--accent)}
.nw-hero .wp-block-post-featured-image img,.nw-hero-img img{border-radius:14px;box-shadow:0 20px 50px rgba(0,0,0,.35);border:4px solid rgba(255,255,255,.9);width:100%;object-fit:cover;aspect-ratio:4/3}

.nw-card{background:#fff;border:1px solid var(--wp--preset--color--border);border-radius:12px;box-shadow:0 1px 2px rgba(15,42,71,.04),0 8px 24px rgba(15,42,71,.06);height:100%}
.nw-card h2,.nw-card h3{margin-top:0}
.nw-card p{margin:.25rem 0}
.nw-label{font-size:.78rem;text-transform:uppercase;letter-spacing:.1em;font-weight:700;color:var(--wp--preset--color--muted);margin:0 0 .25rem!important}
.nw-big{font-size:1.25rem;font-weight:700;color:var(--wp--preset--color--navy)}
.nw-big a{color:inherit;text-decoration:none}
.nw-big a:hover{text-decoration:underline}
.nw-quick{margin-top:-3.5rem!important;position:relative;z-index:2}
.nw-quick>.wp-block-column{display:flex}
.nw-quick>.wp-block-column>.nw-card{flex:1}

.nw-hours{border-collapse:collapse;width:100%;font-size:1rem}
.wp-block-table .nw-hours,.nw-hours th,.nw-hours td,.nw-hours thead{border:0}
.nw-hours th,.nw-hours td{text-align:left;padding:.6rem .75rem;border-bottom:1px solid var(--wp--preset--color--border);vertical-align:top}
.wp-block-table{margin:0 0 1.25rem}
.nw-hours thead th{background:var(--wp--preset--color--light);font-size:.8rem;text-transform:uppercase;letter-spacing:.08em;color:var(--wp--preset--color--muted)}
.nw-note{border-left:4px solid var(--wp--preset--color--accent);background:#fff8e8;padding:1rem 1.25rem;border-radius:0 8px 8px 0}

.nw-links{display:grid;grid-template-columns:repeat(auto-fill,minmax(15rem,1fr));gap:1rem;list-style:none;padding:0;margin:0}
.nw-links li{margin:0}
.nw-links a{display:flex;flex-direction:column;gap:.25rem;height:100%;padding:1.25rem 1.25rem 1.1rem;background:#fff;border:1px solid var(--wp--preset--color--border);border-radius:12px;text-decoration:none;color:var(--wp--preset--color--ink);transition:border-color .15s,box-shadow .15s,transform .15s}
.nw-links a:hover,.nw-links a:focus-visible{border-color:var(--wp--preset--color--blue);box-shadow:0 10px 24px rgba(15,42,71,.1);transform:translateY(-2px)}
.nw-links strong{color:var(--wp--preset--color--navy);font-size:1.1rem}
.nw-links span{color:var(--wp--preset--color--muted);font-size:.92rem}

.nw-pagehead{background:linear-gradient(135deg,var(--wp--preset--color--navy),#1d4f91)}
.nw-pagehead h1{color:#fff;margin:0}
.nw-crumbs{font-size:.875rem;color:#dbe4f0;margin:0 0 .5rem}
.nw-crumbs a{color:#fff}

.nw-content{font-size:1.0625rem}
.nw-content>*:first-child{margin-top:0}
.nw-content p:empty{display:none}
.nw-content p{margin:0 0 1rem;overflow-wrap:anywhere}
.nw-content a{color:var(--wp--preset--color--blue);font-weight:600}
.nw-content a[href$=".pdf"]:before,.nw-content a[href$=".docx"]:before{content:"";display:inline-block;width:.95em;height:1.1em;margin-right:.4em;vertical-align:-.15em;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2h8l6 6v14H6z' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M14 2v6h6' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2h8l6 6v14H6z' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M14 2v6h6' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat}
.nw-content a:empty:before{display:none}
.nw-content ol,.nw-content ul{padding-left:1.4rem;margin:0 0 1.25rem}
.nw-content li{margin:.4rem 0}
.nw-content li::marker{color:var(--wp--preset--color--blue);font-weight:700}
.nw-content strong{color:var(--wp--preset--color--navy)}
.nw-content h2.nw-auto-h{font-size:clamp(1.15rem,3.2vw,1.4rem);margin:2rem 0 .75rem;padding-bottom:.4rem;border-bottom:2px solid var(--wp--preset--color--border)}
.nw-content h2.nw-auto-h:first-child{margin-top:0}
.nw-content h3.nw-auto-h{font-size:1.1rem;margin:1.25rem 0 .4rem}

.nw-aside{position:sticky;top:5rem}
.nw-aside .nw-card+.nw-card{margin-top:1rem}

.nw-footer a{color:#fff}
.nw-footer p{margin:.2rem 0}
.nw-footer .nw-footlinks{list-style:none;padding:0;margin:0;columns:2;column-gap:2rem}
.nw-footer .nw-footlinks li{margin:.3rem 0;break-inside:avoid}
.nw-footer .nw-footlinks a{text-decoration:none;color:#dbe4f0}
.nw-footer .nw-footlinks a:hover{text-decoration:underline;color:#fff}
.nw-footer .wp-block-page-list{list-style:none;padding:0;margin:0;columns:2;column-gap:2rem}
.nw-footer .wp-block-page-list li{margin:.3rem 0;break-inside:avoid}
.nw-footer .wp-block-page-list a{text-decoration:none;color:#dbe4f0}
.nw-footer .wp-block-page-list a:hover{text-decoration:underline;color:#fff}
.nw-state-seal{margin:0}
.nw-state-seal img{display:block;background:#fff;border-radius:50%;padding:6px;box-shadow:0 0 0 3px var(--wp--preset--color--accent),0 8px 24px rgba(0,0,0,.35)}
.nw-sub{border-top:1px solid rgba(255,255,255,.15);font-size:.875rem;color:#c5d1e0}

.nw-search-results li{margin:0 0 1rem}

@media (max-width:781px){
  .nw-logo img{width:52px;height:52px}
  .nw-quick{margin-top:-2rem!important}
  .nw-aside{position:static}
  .nw-header .wp-block-search{width:100%}
  .nw-header .wp-block-search__input{min-width:0;flex:1}
    .nw-topbar{font-size:.8rem}
  .nw-footer .wp-block-page-list,.nw-footer .nw-footlinks{columns:1}
  .nw-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .nw-table tr{display:block;padding:.6rem 0;border-bottom:1px solid var(--wp--preset--color--border)}
  .nw-table td{display:block;border:0;padding:.15rem 0}
  .nw-table td:nth-child(2):before{content:"Males ";font-weight:700;color:var(--wp--preset--color--muted)}
  .nw-table td:nth-child(3):before{content:"Females ";font-weight:700;color:var(--wp--preset--color--muted)}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.nw-links a{transition:none}.nw-links a:hover{transform:none}}
@media print{.nw-topbar,.nw-navbar,.nw-header .wp-block-search,.nw-aside{display:none}}
