/* VOA Ground Zero 2026 project styles */





/* establish global CSS variables */
:root {
    --content-width:    800px;
    --margin-base-sm:   0.5;
    --margin-base-md:   2;
    --sticky-h3-width:  200px;

    --color-bg-main:    #222f3a;
    --color-txt-white:  #fcfcfc;
    --color-mid-gray:   #c0c0c0;

    --color-all:        #39cccc;
    --color-before:     #eb7acf; /* #a12568; */
    --color-during:     #fec260;
    --color-after-10:   #609cfe;
    --color-after-20:   #eb821e; /* #978a8a; */
    --color-today:      #4bc68d; /* #5a7d54; */
    --color-future:     #B791E6; /* #77547d; */

    --color-site-bg:    #bfb6bb;

    --color-selected:   #ffffff;

    --font-primary:     'Merriweather', serif;
    --font-secondary:   'Rubik', sans-serif;
}

:root:lang(ku) {
    --font-secondary:   'Merriweather', serif;
}



/* reset styles based on https://www.joshwcomeau.com/css/custom-css-reset/ */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html, body { height: 100%; }
body { line-height: 1.3; -webkit-font-smoothing: antialiased; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }





html {
    /* set a base font size that grows proportionally as the screen widens. */
    font-size: calc(14px + 0.390625vw);
}

body {
	background-color: var(--color-bg-main);
    color: var(--color-mid-gray);
	font-family: var(--font-primary);
}

img { height: auto; width: 100%; }

h1, h2, h3, h4, h5, h6 { font-weight: 400; margin-bottom: 1rem; }


h1 { 
    color: var(--color-txt-white);
    font-size: 2.25rem;
    line-height: 1.1;
}

h2 {
    color: var(--color-txt-white);
    font-size: 1.75rem;
    line-height: 1.1;
}

h2.subhed {
    font-size: 1.25rem;
    line-height: 1.2;
}

h3 {
    color: var(--color-bg-main);
    font-size: 1rem;
    line-height: 1;
    margin: 6px;
}

.h3-helper {
    padding: 1rem calc(var(--margin-base-sm) * 1rem);
}

.series-before    .h3-helper { background-color: var(--color-before); }
.series-during    .h3-helper { background-color: var(--color-during); }
.series-after-10  .h3-helper { background-color: var(--color-after-10); }
.series-after-20  .h3-helper { background-color: var(--color-after-20); }
.series-today     .h3-helper { background-color: var(--color-today); }
.series-future    .h3-helper { background-color: var(--color-future); }

.title {
    border-top: 3px solid var(--color-bg-main);
    font-family: var(--font-secondary);
    font-size: 1rem;
    margin-top: .5rem;
    padding-top: .5rem;
}

h5 { 
    color: gray;
    font-size: 1.25rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

h4, h6 {
    color: var(--color-txt-white);
    font-family: var(--font-secondary);
    font-size: .8rem;
    font-weight: 700;
    margin: 0 0 .8rem 0;
    text-transform: uppercase;
}

/* thanks s/o # 826782 */
.noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.sections, .header, .footer {
    margin-left: calc(var(--margin-base-sm) * 1rem);
    margin-right: calc(var(--margin-base-sm) * 1rem);
}

h3, figure, .filters {
    margin-left: calc(var(--margin-base-sm) * -1rem);
    margin-right: calc(var(--margin-base-sm) * -1rem);
}

/*
.header .logo, .header h1, .header h2, .header h4, .header h5, .footer h4, .footer div, .section .copy, .section h2, .sources,
.filter-table { max-width: var(--page-max-width); margin-left: auto; margin-right: auto; }
*/

.header {
    padding: 0;
}

.logo {
    padding: 0;
}

.logo img {
    height: 40px;
    margin: 1rem auto 3rem auto;
}

p.byline {
    color: var(--color-txt-white);
    font-family: var(--font-secondary);
    margin-bottom: .5rem;
}

time.pubdate {
    display: block;
    font-family: var(--font-secondary);
    font-size: .8rem;
    margin-bottom: 1.6rem;
    text-transform: uppercase;
}

p.intro {
    font-size: 1.15rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.filters {
    top: -1px;
    position: sticky;
    z-index: 5000;
    font-family: var(--font-secondary);
    
}

.filters.is-pinned {
    background-color: rgba(34 47 58 / 0.9);
    border-bottom: 1px solid #4d5a67;
    box-shadow: 0 20px 20px -20px #000;
}

#filters-end {
    top: -1px;
    margin-top: -1px;
    visibility: hidden;
}

nav.filter-table {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 1.5rem .5rem;
    padding: 1.25rem calc(var(--margin-base-sm) * 1rem);
}

/* .body-ru nav.filter-table { grid-template-columns: 1fr 5fr; } */

nav.filter-table p {
    color: var(--color-mid-gray);
    font-size: .8rem;
    font-weight: 500;
    line-height: 1;
    padding: 0;
}

ol.filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem .25rem;
    list-style: none;
    padding: 0;
}

ol.filter li {
    font-size: .75rem;
    line-height: 1;
}

ol.filter li a {
    background-color: var(--color-site-bg);
    border-radius: .8rem;
    color: var(--color-bg-main);
    padding: .15rem .4rem;
    border: .1rem solid var(--color-site-bg);
    text-decoration: none;
}

ol.filter li a.button-series-all      { background-color: var(--color-site-bg); border-color: var(--color-site-bg); }
ol.filter li a.button-series-before   { background-color: var(--color-before); border-color: var(--color-before); }
ol.filter li a.button-series-during   { background-color: var(--color-during); border-color: var(--color-during); }
ol.filter li a.button-series-after-10 { background-color: var(--color-after-10); border-color: var(--color-after-10); }
ol.filter li a.button-series-after-20 { background-color: var(--color-after-20); border-color: var(--color-after-20); }
ol.filter li a.button-series-today    { background-color: var(--color-today); border-color: var(--color-today); }
ol.filter li a.button-series-future   { background-color: var(--color-future); border-color: var(--color-future); }

ol.filter li a.button-series-all.button-selected { background-color: var(--color-all); border-color: var(--color-selected); }
ol.filter li a.button-series-before.button-selected { background-color: var(--color-before); border-color: var(--color-selected); }
ol.filter li a.button-series-during.button-selected { background-color: var(--color-during); border-color: var(--color-selected); }
ol.filter li a.button-series-after-10.button-selected { background-color: var(--color-after-10); border-color: var(--color-selected); }
ol.filter li a.button-series-after-20.button-selected { background-color: var(--color-after-20); border-color: var(--color-selected); }
ol.filter li a.button-series-today.button-selected { background-color: var(--color-today); border-color: var(--color-selected); }
ol.filter li a.button-series-future.button-selected { background-color: var(--color-future); border-color: var(--color-selected); }

.series-selected-future .no-future,
.section-selected-1 .button-series-future,
.section-selected-2 .button-series-future,
.section-selected-3 .button-series-future,
.section-selected-4 .button-series-future,
.section-selected-7 .button-series-future,
.section-selected-8 .button-series-future,
.section-selected-10 .button-series-future,
.section-selected-11 .button-series-future
{
    opacity: 0.3;
    text-decoration: line-through;
    cursor: not-allowed;
    pointer-events: none;
}

.filter-2 a.button-selected { 
    background-color: var(--color-all);
    border-color: var(--color-selected);
}

.block-hidden, .block-hidden-post { display: none } 

.section {
    /* padding-top must be at least as much as the .filters height */
    padding-top: 6rem;
}

.copy p {
    line-height: 1.5;
    margin-bottom: 1rem;
}

.copy p + h5,
.copy + .copy {
    margin-top: 2rem;
}

figure {
    margin-bottom: 1rem;
}

figure + figure {
    padding-top: 2rem;
}

figcaption {
    display: flex;
    border-bottom: 2px dotted #444;
    color: #999;
    font-family: var(--font-secondary);
    font-size: .85rem;
    font-weight: 400;
    justify-content: space-between;
    padding: .25rem calc(var(--margin-base-sm) * 1rem);
}

figcaption .date { 
    text-align: right;
    white-space: nowrap;
}

body[dir="ltr"] figcaption .date { padding-left: 1rem; }
body[dir="rtl"] figcaption .date { padding-right: 1rem; }



.series {
    padding-bottom: 2rem;
}

/* .after-section { height: 6rem; } */

.sources ul {
    display: inline-block;
    font-family: var(--font-secondary);
    font-size: .9rem;
    list-style: none;
    padding: 0;
}

.sources li {
    display: inline;
}

.sources li::after { content: ", "; }
.sources li:last-child::after { content: ""; }

.footer {
    padding-top: 6rem;
}

.footer dl {
    display: grid;
    grid-template-columns: max-content 1fr; 
    gap: .5rem 1rem;
    font-size: 1rem;
    padding: 0;
}

.footer dl dt, 
.footer dl dd { display: inline; padding: 0; }

.footer dl dt { text-align: left; }
/* .footer dl dt::after { content: ":"; } */
.footer dl dd { color: silver; }

p.button-top { 
    padding: 6rem 0;
    text-align: left;
}

p.button-top > a {
    display: inline-block;
    background-color: #3a79b7;
    border-radius: .5rem;
    color: #eee;
    font-family: var(--font-secondary);
    font-size: .8rem;
    font-weight: 700;
    padding: .5em .75em;
    text-decoration: none;
    text-transform: uppercase;
}

p.button-top > a:hover {
    background-color: #0a5b96;
}



@media all and (min-width: 400px) {
    ol.filter li {
        font-size: .8rem;
    }
}



@media all and (min-width: 450px) {
    ol.filter li {
        font-size: .85rem;
    }
}



@media all and (min-width: 600px) {
    .sections, .header, .footer {
        margin-left: calc(var(--margin-base-md) * 1rem);
        margin-right: calc(var(--margin-base-md) * 1rem);
    }

    h3, figure, .filters {
        margin-left: calc(var(--margin-base-md) * -1rem);
        margin-right: calc(var(--margin-base-md) * -1rem);
    }

    .h3-helper { padding: 1rem calc(var(--margin-base-md) * 1rem); }
    figcaption { padding: .25rem calc(var(--margin-base-md) * 1rem); }
}



@media all and (min-width: 768px) {
    
    .sections {
        margin: 0;
    }

    h3, figure, .filters {
        margin-left: 0;
        margin-right: 0;
    }

    .header,
    .filter-table,
    .section h2,
    .section .copy,
    .sources,
    .footer {
        margin-left: calc(var(--sticky-h3-width) + 50px);
        margin-right: calc(var(--margin-base-sm) * 1rem);
        max-width: var(--content-width);
    }

    /* the [dir="___"] selector breaks page centering! possibly by overwriting other non-dir selector rules */
    body[dir="ltr"] .header,
    body[dir="ltr"] .filter-table,
    body[dir="ltr"] .section h2,
    body[dir="ltr"] .section .copy,
    body[dir="ltr"] .sources,
    body[dir="ltr"] .footer {
        margin-left: calc(var(--sticky-h3-width) + 50px);
        margin-right: calc(var(--margin-base-sm) * 1rem);
        max-width: var(--content-width);
    }
    /* the [dir="___"] selector breaks page centering! possibly by overwriting other non-dir selector rules */
    body[dir="rtl"] .header,
    body[dir="rtl"] .filter-table,
    body[dir="rtl"] .section h2,
    body[dir="rtl"] .section .copy,
    body[dir="rtl"] .sources,
    body[dir="rtl"] .footer {
        margin-right: calc(var(--sticky-h3-width) + 50px);
        margin-left: calc(var(--margin-base-sm) * 1rem);
        max-width: var(--content-width);
    }
    
    h3 {
        max-width: var(--sticky-h3-width);
        height: 1px;
        position: sticky;
        top: 200px;
    }

    body[dir="ltr"] h3 { left: 1rem; }
    body[dir="rtl"] h3 { right: 1rem; }

    .h3-helper {
        position: relative;
        top: 1.5em;
        padding: 1rem;
    }

    /* russian has very long words */
    .body-ru .h3-helper { padding: .75rem; }

    .copy p { line-height: 1.3; }

    figcaption {
        font-size: .7rem;
        padding: .25rem 0;
    }
}



/* --content-width + --sticky-h3-width + 50px */
@media all and (min-width: 1300px) {
    .header,
    .filter-table,
    .section h2,
    .section .copy,
    .sources,
    .footer {
        margin-left: auto;
        margin-right: auto;
    }

    body[dir="ltr"] .header,
    body[dir="ltr"] .filter-table,
    body[dir="ltr"] .section h2,
    body[dir="ltr"] .section .copy,
    body[dir="ltr"] .sources,
    body[dir="ltr"] .footer {
        margin-left: auto;
        margin-right: auto;
    }

    body[dir="rtl"] .header,
    body[dir="rtl"] .filter-table,
    body[dir="rtl"] .section h2,
    body[dir="rtl"] .section .copy,
    body[dir="rtl"] .sources,
    body[dir="rtl"] .footer {
        margin-left: auto;
        margin-right: auto;
    }

    /* keep H3 series/site helper boxes 2rem away from main content and centered on the page with that content */
    body[dir="ltr"] h3 {  left: calc(((100% - var(--content-width)) / 2) - var(--sticky-h3-width) - 2rem); }
    body[dir="rtl"] h3 { right: calc(((100% - var(--content-width)) / 2) - var(--sticky-h3-width) - 2rem); }
}



@media all and (min-width: 1500px) {
    :root {
        --sticky-h3-width: 250px;
    }
}