/* ======================================================================
   POLICE CODE GUIDE — BASE STYLESHEET (pcg.css)
   Clean, fast, mobile-first, modern, SEO-friendly
   ====================================================================== */

/* -----------------------------
   Root Settings / Variables
   ----------------------------- */
:root {
    --pcg-font: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    --pcg-bg: #f7f8fa;
    --pcg-bg-light: #ffffff;
    --pcg-text: #20242a;
    --pcg-text-light: #4e5561;
    --pcg-blue: #195cc8;
    --pcg-blue-dark: #0e3c85;
    --pcg-border: #e1e4e8;
    --pcg-radius: 12px;
    --pcg-max-width: 1220px;
}

/* General Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--pcg-font);
    background: var(--pcg-bg);
    color: var(--pcg-text);
    line-height: 1.55;
    font-size: 16px;
}

/* Utility container */
.pcg-container {
    max-width: var(--pcg-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* -----------------------------
   Typography
   ----------------------------- */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--pcg-text);
    margin-bottom: 16px;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.6rem; margin-top: 20px; }
h3 { font-size: 1.25rem; margin-top: 16px; }
h4 { font-size: 1.1rem; }

p {
    margin-bottom: 14px;
    color: var(--pcg-text-light);
}

.pcg-kicker {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--pcg-blue);
    font-weight: 600;
    margin-bottom: 8px;
}

/* -----------------------------
   Hero Sections
   ----------------------------- */
.pcg-hero {
    padding: 50px 0 40px;
    background: var(--pcg-bg-light);
    border-bottom: 1px solid var(--pcg-border);
}

.pcg-hero--state {
    background: #EEF3FF;
}

.pcg-hero--simple {
    background: #f4f6f9;
}

.pcg-hero-text {
    max-width: 760px;
    color: var(--pcg-text-light);
    font-size: 1.05rem;
}

.pcg-hero-meta {
    display: flex;
    gap: 20px;
    margin-top: 14px;
    font-size: 0.9rem;
    color: #6a7483;
}

/* -----------------------------
   Sections
   ----------------------------- */
.pcg-section {
    padding: 55px 0;
    background: var(--pcg-bg-light);
}

.pcg-section--light {
    background: #f9fafc;
}

.pcg-section-header {
    text-align: left;
    margin-bottom: 25px;
}

.pcg-note {
    padding: 12px 16px;
    background: #f0f4ff;
    border-left: 4px solid var(--pcg-blue);
    border-radius: var(--pcg-radius);
    font-size: 0.95rem;
    color: var(--pcg-blue-dark);
    margin-top: 20px;
}

.pcg-disclaimer {
    margin-top: 14px;
    font-size: 0.9rem;
    color: #7b8393;
}

/* -----------------------------
   Grid System
   ----------------------------- */
.pcg-grid {
    display: grid;
    gap: 30px;
}

.pcg-grid--2col {
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    .pcg-grid--2col {
        grid-template-columns: 2fr 1fr;
    }
}

/* -----------------------------
   Navigation Boxes (sidebar)
   ----------------------------- */
.pcg-card--nav {
    background: var(--pcg-bg-light);
    padding: 20px;
    border-radius: var(--pcg-radius);
    border: 1px solid var(--pcg-border);
}

.pcg-navlist {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.pcg-navlist li {
    margin-bottom: 10px;
}

.pcg-navlist a {
    color: var(--pcg-blue-dark);
    text-decoration: none;
    font-weight: 600;
}

.pcg-navlist a:hover {
    text-decoration: underline;
}

.pcg-navlist__link--active {
    color: var(--pcg-blue);
    font-weight: 700;
}

/* -----------------------------
   Cards
   ----------------------------- */
.pcg-card {
    background: var(--pcg-bg-light);
    padding: 20px;
    border-radius: var(--pcg-radius);
    border: 1px solid var(--pcg-border);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.pcg-card h3 {
    margin-bottom: 12px;
}

/* -----------------------------
   State Grid
   ----------------------------- */
.pcg-state-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.pcg-state-card {
    display: block;
    background: var(--pcg-bg-light);
    padding: 18px;
    border-radius: var(--pcg-radius);
    border: 1px solid var(--pcg-border);
    text-align: center;
    text-decoration: none;
    color: var(--pcg-text);
    transition: all 0.15s ease;
}

.pcg-state-card:hover {
    border-color: var(--pcg-blue);
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.pcg-state-card__abbr {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--pcg-blue-dark);
}

.pcg-state-card__name {
    font-size: 1rem;
    margin-top: 6px;
    font-weight: 600;
}

.pcg-state-card__status {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--pcg-text-light);
}

/* -----------------------------
   Tables
   ----------------------------- */
.pcg-table-wrapper {
    overflow-x: auto;
    margin-top: 20px;
}

.pcg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.96rem;
}

.pcg-table th,
.pcg-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--pcg-border);
}

.pcg-table th {
    text-align: left;
    background: #f1f4f9;
    font-weight: 700;
}

.pcg-table--striped tr:nth-child(even) {
    background: #fafbff;
}

.pcg-table--penal td:first-child {
    font-weight: 700;
}

/* -----------------------------
   Buttons
   ----------------------------- */
.pcg-button {
    display: inline-block;
    padding: 12px 18px;
    background: var(--pcg-blue);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--pcg-radius);
    transition: background 0.12s ease;
}

.pcg-button:hover {
    background: var(--pcg-blue-dark);
}

/* -----------------------------
   FAQ Blocks
   ----------------------------- */
.pcg-faq {
    margin-bottom: 25px;
}

.pcg-faq h3 {
    font-size: 1.1rem;
}

.pcg-faq p {
    margin-top: 6px;
    color: var(--pcg-text-light);
}

/* -----------------------------
   Mobile Optimization
   ----------------------------- */
@media (max-width: 600px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.35rem; }

    .pcg-hero {
        padding: 40px 0;
    }

    .pcg-state-card {
        padding: 14px;
    }
}

/* -----------------------------
   Site Chrome: Header & Footer
   ----------------------------- */

.pcg-body {
    background: var(--pcg-bg);
    color: var(--pcg-text);
}

.pcg-main {
    min-height: 60vh;
}

/* HEADER */

.pcg-site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--pcg-border);
}

.pcg-site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 20px;
}

.pcg-site-header__logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pcg-site-header__title {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--pcg-text);
}

.pcg-site-header__subtitle {
    font-size: 0.78rem;
    color: var(--pcg-text-light);
}

/* NAV */

.pcg-nav {
    display: none;
}

.pcg-nav--open {
    display: block;
}

.pcg-nav__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pcg-nav__item {
    margin: 0;
}

.pcg-nav__link {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--pcg-text-light);
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}

.pcg-nav__link:hover {
    color: var(--pcg-blue-dark);
}

.pcg-nav__link--active {
    color: var(--pcg-blue);
    border-bottom-color: var(--pcg-blue);
}

/* Mobile nav toggle */

.pcg-nav-toggle {
    border: 1px solid var(--pcg-border);
    background: #ffffff;
    border-radius: 999px;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
}

.pcg-nav-toggle__bar {
    display: block;
    width: 14px;
    height: 2px;
    background: var(--pcg-text);
    border-radius: 999px;
}

/* Desktop nav layout */

@media (min-width: 900px) {
    .pcg-site-header__inner {
        padding: 16px 0;
    }

    .pcg-nav {
        display: block;
    }

    .pcg-nav-toggle {
        display: none;
    }

    .pcg-nav__list {
        flex-direction: row;
        gap: 18px;
    }

    .pcg-nav__link {
        padding: 4px 0 10px;
        font-size: 0.9rem;
    }
}

/* FOOTER */

.pcg-site-footer {
    margin-top: 40px;
    background: #0b1020;
    color: #e5ecf5;
    padding-top: 32px;
}

.pcg-site-footer__inner {
    display: grid;
    gap: 24px;
    padding-bottom: 24px;
}

.pcg-site-footer__col--brand {
    max-width: 420px;
}

.pcg-site-footer__brand-name {
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.pcg-site-footer__text {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #c5d0e0;
}

.pcg-site-footer__heading {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
    color: #eff4ff;
}

.pcg-site-footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pcg-site-footer__list li {
    margin-bottom: 6px;
}

.pcg-site-footer__list a {
    text-decoration: none;
    font-size: 0.86rem;
    color: #c5d0e0;
}

.pcg-site-footer__list a:hover {
    color: #ffffff;
}

.pcg-site-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 10px 0 14px;
    font-size: 0.78rem;
}

.pcg-site-footer__bottom-inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pcg-site-footer__fineprint {
    color: #9aa4b8;
}

@media (min-width: 800px) {
    .pcg-site-footer__inner {
        grid-template-columns: 2fr 1fr 1fr;
        align-items: flex-start;
    }

    .pcg-site-footer__bottom-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* -----------------------------
   Homepage refinements
   ----------------------------- */

.pcg-hero--home {
    border-bottom: 1px solid var(--pcg-border);
}

.pcg-hero-actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-items: center;
}

.pcg-link-muted {
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--pcg-text-light);
}

.pcg-link-muted:hover {
    color: var(--pcg-blue-dark);
    text-decoration: underline;
}

.pcg-home-grid {
    align-items: flex-start;
}

.pcg-list {
    list-style: disc;
    margin-left: 18px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.pcg-list li {
    margin-bottom: 8px;
}

.pcg-home-sidecard {
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .pcg-hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* -----------------------------------------
   MOBILE NAV — FULL FIX
   ----------------------------------------- */

@media (max-width: 900px) {

    /* Make header cleaner */
    .pcg-site-header__inner {
        padding: 14px 0;
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    /* Mobile nav panel */
    .pcg-nav {
        position: absolute;
        top: 64px; /* height of header */
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid var(--pcg-border);
        box-shadow: 0 4px 12px rgba(0,0,0,0.06);
        padding: 20px;
        display: none;
        z-index: 9999;
    }

    .pcg-nav--open {
        display: block;
    }

    .pcg-nav__list {
        flex-direction: column;
        gap: 14px;
    }

    .pcg-nav__link {
        font-size: 1rem;
        padding: 8px 0;
        border-bottom: 1px solid #eef0f4;
        display: block;
    }

    .pcg-nav__link:last-child {
        border-bottom: none;
    }

    /* Hamburger alignment */
    .pcg-nav-toggle {
        margin-left: auto;
        padding: 8px 12px;
        border-radius: 6px;
        border: 1px solid var(--pcg-border);
    }
}
