/*------------------------------------------------------------------------------------------*/
/* Pacific Justice — Base Styles (dark navy + gold)                                          */
/*                                                                                            */
/* Scaffold ported from the source site style222.css (2026-10-03), trimmed to what a        */
/* one-page site uses: base type, tables, code, the Featured Videos grid, section bands and   */
/* the heading row. VERSIONED FILENAME: never edit a live style<N>.css in place for a         */
/* visible change -- copy to style<N+1>.css and bump every page that links it.                */
/*------------------------------------------------------------------------------------------*/
/* Atkinson Hyperlegible — self-hosted (Braille Institute legibility font, SIL OFL). */
@font-face { font-family:"Atkinson Hyperlegible"; font-style:normal; font-weight:400; font-display:swap; src:url("/static/fonts/AtkinsonHyperlegible-latin-400.woff2") format("woff2"); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:"Atkinson Hyperlegible"; font-style:normal; font-weight:400; font-display:swap; src:url("/static/fonts/AtkinsonHyperlegible-latinext-400.woff2") format("woff2"); unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:"Atkinson Hyperlegible"; font-style:italic; font-weight:400; font-display:swap; src:url("/static/fonts/AtkinsonHyperlegible-latin-400italic.woff2") format("woff2"); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:"Atkinson Hyperlegible"; font-style:italic; font-weight:400; font-display:swap; src:url("/static/fonts/AtkinsonHyperlegible-latinext-400italic.woff2") format("woff2"); unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:"Atkinson Hyperlegible"; font-style:normal; font-weight:700; font-display:swap; src:url("/static/fonts/AtkinsonHyperlegible-latin-700.woff2") format("woff2"); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:"Atkinson Hyperlegible"; font-style:normal; font-weight:700; font-display:swap; src:url("/static/fonts/AtkinsonHyperlegible-latinext-700.woff2") format("woff2"); unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:"Atkinson Hyperlegible"; font-style:italic; font-weight:700; font-display:swap; src:url("/static/fonts/AtkinsonHyperlegible-latin-700italic.woff2") format("woff2"); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:"Atkinson Hyperlegible"; font-style:italic; font-weight:700; font-display:swap; src:url("/static/fonts/AtkinsonHyperlegible-latinext-700italic.woff2") format("woff2"); unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* The palette, in one place. Navy ground, ivory text, a muted brass gold for the
   accents (the scales in the mark), a soft sky blue for hover. */
:root {
    --bg: #070d1a;
    --surface: #0f1b31;
    --surface-2: #13233f;
    --border: #1f3050;
    --text: #ece7dc;
    --muted: #a9b2c3;
    --gold: #d4af37;
    --gold-soft: #e6c868;
    --sky: #8fc1ff;
    --rule: #1d3a66;
    color-scheme: dark;
}

html { font-size: 16px; }

body {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    font-family: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
}

/* Article text: Atkinson reads large; 20px / 1.8 as on the source site. */
main {
    font-size: 1.25rem;
    line-height: 1.8;
}

a {
    color: var(--gold-soft);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--sky);
    text-decoration: underline;
}

/* External links: target="_blank" is the convention for every outbound link, so it
   doubles as the "is this external" selector. Small arrow marker. */
main a[target="_blank"]::after {
    content: "\00a0\2197";
    font-size: 0.75em;
    opacity: 0.75;
}
main a[target="_blank"].fv-ext-link::after,
main a[target="_blank"].fv-ext-all::after { content: none; }

/*------------------------------------------------------------------------------------------*/
/* Typography                                                                                */
/*------------------------------------------------------------------------------------------*/
h1 {
    color: var(--text);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    border-bottom: 3px solid var(--gold);
    padding-bottom: 10px;
    margin: 10px 0 20px;
}

h2 {
    color: var(--gold);
    font-size: 1.375rem;
    font-weight: 700;
    border-left: 4px solid var(--gold);
    padding-left: 12px;
    margin-top: 30px;
    margin-bottom: 14px;
}

h3 {
    color: var(--gold-soft);
    font-size: 1.125rem;
    font-weight: 700;
    margin-top: 22px;
    margin-bottom: 10px;
}

ul, ol {
    margin: 0 0 20px 20px;
    padding-left: 10px;
}

li {
    margin-bottom: 8px;
    line-height: 1.6;
}

p {
    margin: 8px 0;
    line-height: 1.7;
}

strong { color: #ffffff; font-weight: 700; }
em { color: var(--muted); }

hr {
    border: none;
    border-top: 2px solid var(--border);
    margin: 24px 0;
}

/* The lede under the h1. */
.lede {
    max-width: 68ch;
    font-size: 1.3rem;
    color: var(--text);
}
.lede-note {
    max-width: 68ch;
    font-size: 1rem;
    color: var(--muted);
}

/*------------------------------------------------------------------------------------------*/
/* Tables                                                                                    */
/*------------------------------------------------------------------------------------------*/
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: var(--surface);
    border-radius: 6px;
    overflow: hidden;
}
th {
    background: var(--surface-2);
    color: var(--gold-soft);
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    font-size: 0.875rem;
}
td {
    padding: 10px 16px;
    color: var(--text);
    font-size: 0.875rem;
}
table, th, td { border: 1px solid var(--border); }

/*------------------------------------------------------------------------------------------*/
/* Code                                                                                      */
/*------------------------------------------------------------------------------------------*/
code {
    background-color: var(--surface);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--gold-soft);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
    border: 1px solid var(--border);
}

/*------------------------------------------------------------------------------------------*/
/* Footer                                                                                    */
/*------------------------------------------------------------------------------------------*/
.site-footer {
    margin: 50px 0 0;
    padding: 2.4rem 32px 0;
    background: linear-gradient(135deg, #0a1628 0%, #10264a 60%, #13284a 100%);
    color: var(--text);
    border-top: 3px solid var(--gold);
    font-size: 0.95rem;
}
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.4rem;
    padding-bottom: 2rem;
}
.footer-brand h2 {
    margin: 0 0 .9rem;
    padding: 0;
    border: 0;
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--text);
}
.footer-brand h2 .mark-dot { color: var(--gold); padding: 0 .1em; }
.footer-brand p {
    margin: 0;
    max-width: 60ch;
    font-size: .92rem;
    line-height: 1.7;
    opacity: .85;
}
.footer-col h3 {
    margin: 0 0 .8rem;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--gold);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0; }
.footer-col li a {
    display: block;
    padding: .22rem 0;
    font-size: .92rem;
    color: var(--text);
    opacity: .82;
}
.footer-col li a:hover { opacity: 1; color: var(--gold-soft); }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 2rem;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, .16);
    padding: 1.2rem 0 1.5rem;
    font-size: .74rem;
    letter-spacing: .08em;
    opacity: .78;
}
.back-to-top { text-align: right; margin-top: 2em; padding: 0 16px; }
.back-to-top a { font-size: 0.9rem; }

/*------------------------------------------------------------------------------------------*/
/* Featured Videos grid (rendered by featured-videos<N>.js)                                  */
/*------------------------------------------------------------------------------------------*/
.video-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin: 20px 0;
}
.video-item {
    display: flex;
    flex-direction: column;
    background: var(--surface-2);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.video-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.14);
}
.video-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0;
}
.video-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #050a14;
    overflow: hidden;
}
.video-media[data-video-id] { cursor: pointer; }
.video-media[data-video-id]:hover img { opacity: 0.8; }
.video-media img,
.video-media iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}
.video-description {
    margin: 0;
    padding: 12px 16px;
    font-size: 0.875rem;
    color: #c3cad6;
    line-height: 1.4;
}
#playlist-play-all {
    background: var(--gold);
    color: #0b1324;
    border: 0;
    border-radius: 6px;
    padding: 12px 24px;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}
#playlist-play-all:hover { background: var(--gold-soft); }

/*------------------------------------------------------------------------------------------*/
/* Section bands: every <h2> section in <main> sits in <section class="band">. The rule is   */
/* on the wrapper, not the heading, so it can span the whole section.                        */
/*------------------------------------------------------------------------------------------*/
main section.band {
    margin: 14px 0 22px;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--gold);
    border-radius: 10px;
}
main section.band > h2 {
    margin: 0 0 10px;
    color: var(--gold);
    font-size: 1.5rem;
    border-left: 0;
    padding-left: 0;
}
main section.band > *:last-child { margin-bottom: 0; }

/*------------------------------------------------------------------------------------------*/
/* Responsive                                                                                */
/*------------------------------------------------------------------------------------------*/
@media screen and (max-width: 1200px) {
    body { padding: 0; }
    main { padding: 12px 16px !important; }
    img { max-width: 100%; height: auto; }
    .video-container {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 16px;
    }
}
@media screen and (max-width: 900px) {
    .video-container { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .footer-top { grid-template-columns: 1fr; gap: 1.6rem; }
}
@media screen and (max-width: 600px) {
    main { font-size: 1.1rem; }
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.3rem; }
    .lede { font-size: 1.15rem; }
    main section.band { padding: 14px 15px; margin: 12px 0 18px; }
    .video-container { grid-template-columns: 1fr !important; gap: 12px; }
    .video-description { font-size: 0.9375rem; padding: 14px 16px; }
    .site-footer { padding: 2rem 16px 0; }
}
