@font-face {
    font-family: 'Chomsky';
    src: url('../fonts/chomsky.otf');
    font-weight: 400;
    font-style: normal;
}

:root {
    --success-color: green;
    --error-color: #F44336;
    --ease-transition: ease;
    --scale: 1;
}

@media (min-width: 1920px) {
    :root{
        --scale: 0.8;
    }
}

* {
    box-sizing: border-box;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    font-size: 100%;
    vertical-align: baseline;
}

body, html {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font1);
    font-weight: 400;
    font-size: 16px;
    line-height: 160%;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 120%;
    font-weight: 400;
    font-family: var(--font2);
}

h1 {
    font-size: 72px;
}

h2 {
    font-size: 42px;
}

h3 {
    font-size: 38px;
}

h4 {
    font-size: 34px;
}

h5 {
    font-size: 30px;
}

h6 {
    font-size: 26px;
}

p {
    color: var(--text-color);
    font-family: var(--font1);
    font-weight: 400;
    font-size: 16px;
    line-height: 160%;
}

.footer .footer-links-label,
.big-text,
.medium-text,
.small-text {
    text-transform: var(--heading-style) !important;
} 

.hover-image-opacity,
.kg-image,
.kg-signup-card-image,
.kg-header-card-image,
p img,
.kg-gallery-image img,
.kg-product-card-image {
    filter: var(--image-filter);                  
} 

html[data-image-style="Normal"] a.hover-image-opacity:hover::after,
html[data-image-style="Normal"] a.kg-image:hover::after,
html[data-image-style="Normal"] a.kg-signup-card-image:hover::after,
html[data-image-style="Normal"] a.kg-header-card-image:hover::after,
html[data-image-style="Normal"] a.p img:hover::after,
html[data-image-style="Normal"] a.kg-gallery-image img:hover::after,
html[data-image-style="Normal"] a.kg-product-card-image:hover::after {
    opacity: 1;
}

.wide-container {
    padding-left: 42px;
    padding-right: 42px;
}

.narrow-container {
    min-width: calc(56vw + 84px);
    width: calc(56vw + 84px);
    padding-left: 42px;
    padding-right: 42px;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

button,
.button,
.kg-btn,
.kg-header-card-button {
    margin: 0;
    cursor: pointer;
    padding: 8px 32px;
    line-height: 160%;
    font-family: var(--font1);
    color: #FFFFFF;
    background-color: var(--oh-red);
    font-size: 16px;
    opacity: 1;
    transition: all .2s ease;
    border: none;
    outline: none;
    font-weight: 400;
}

button:hover:not(.unstyled-button),
.button:hover,
.kg-btn:hover,
.kg-header-card-button:hover {
    background-color: var(--oh-red-dark);
}

.unstyled-button {
    padding: 0;
    border: none;
    outline: none;
    background-color: transparent;
}

.hover-underline:hover,
.small-card-bottom-text a:hover {
    text-decoration: underline;
}

.hover-image-opacity,
.kg-image,
.kg-signup-card-image,
.kg-header-card-image,
p img,
.kg-gallery-image img ,
.kg-product-card-image{
    position: relative;
    transition: filter 0.5s ease;
}

.post-content img:not(.no-lightense) {
    transition: filter 0.5s ease, transform var(--lightense-duration) var(--lightense-timing-func);
}

.hover-image-opacity img[loading="lazy"]{
    opacity: 0;
}

.hover-image-opacity img {
    transition: all .5s ease !important;   
}

.hover-image-opacity figure.loaded img {
    opacity: 1;
}

.hover-image-opacity figure::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: var(--text-color);
    transition: opacity 0.5s ease !important;
    opacity: 0.08;
}

.hover-image-opacity figure.loaded::before {   
    opacity: 0;
}

.hover-image-opacity:hover,
.kg-image:hover,
.kg-signup-card-image:hover,
.kg-header-card-image:hover,
p img:hover,
.kg-gallery-image img:hover, 
.kg-product-card-image:hover {
    filter: grayscale(0);
}

.hover-image-opacity:after,
.kg-image:after,
.kg-signup-card-image:after,
.kg-header-card-image:after,
p img:after,
.kg-gallery-image img:after,
.kg-product-card-image:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0,0,0,.08);
    opacity: 0;
    transition: opacity .3s ease;
}

small,
figcaption {
    font-family: var(--font1);
    line-height: 140%;
    font-size: 14px;
}

figcaption a {
    text-decoration: underline;
}

.medium-text {
    line-height: 115%;
    font-family: var(--font3);
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    font-size: 24px;
}

.big-text {
    line-height: 105%;
    font-family: var(--font2);
    font-weight: 400; /* Anton ships a single, very heavy weight */
    letter-spacing: 0.005em;
    text-transform: uppercase;
    font-size: 32px;
}

.small-text {
    line-height: 115%;
    font-family: var(--font3);
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    font-size: 20px;
}

img, figure {
    width: 100%;
    height: 100%;
    object-fit: cover;
    overflow: hidden;
}

/* figure {
    display: flex;
    align-items: center;
    justify-content: center;
} */

.two-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.three-lines {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.initial-paragraph {
    position: relative;
    display: block;
    overflow: hidden;
}

.initial-paragraph-reset {
    
}

.initial-paragraph.three-lines {
    max-height: calc(3 * 1.6 * 16px);
}

.initial-paragraph.two-lines {
    max-height: calc(2 * 1.6 * 16px);
}

.initial-paragraph::first-letter {
    float: left;
    font-size: 50px;
    line-height: 100%;
    margin-right: 8px;
    font-family: var(--font4);
    color: var(--text-color);
}

input,
textarea {
    border: 1px solid var(--text-color);
    margin: 0px;
    outline: none;
    width: 100%;
    font-family: var(--font1);
    line-height: 160%;
    padding: 8px 16px;
    font-size: 16px;
    background-color: var(--background-color);
    border-radius: 0px;
}

textarea {
    resize: none;
    min-height: 32vh;
    padding: 12px 16px;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-color);
    opacity: 0.6;
}

.success {
    color: var(--success-color);
}

.error {
    color: var(--error-color);
}

#announcement-bar-root .gh-announcement-bar {
    font-family: var(--font1);
    font-size: 16px;
    line-height: 160%;
    padding: 12px 42px;
}

#announcement-bar-root .gh-announcement-bar-content {
    padding: 0px 42px;
}

#announcement-bar-root button:hover {
    background-color: transparent;
}

.section-heading {
    padding: 10px 0px;
    width: 100%;
    border-top: 1px solid var(--text-color);
    border-bottom: 1px solid var(--text-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    line-height: 100%;
    font-family: var(--font2);
    font-size: 20px;
}

.section-heading-button {
    display: flex;
    align-items: center;
}

.section-heading-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    width: 26px;
    margin-left: 11px;
}

.section-padding {
    padding-top: 57px;
    padding-bottom: 57px;
}

.section-padding-top {
    padding-top: 57px;
}

.section-padding-bottom {
    padding-bottom: 57px;
}

.section-padding-small {
    padding-top: 45px;
    padding-bottom: 45px;
}

.pagination-button {
    margin-bottom: 57px;
}

.restricted-access-icon {
    width: 13px;
    min-width: 13px;
    height: 13px;
    min-height: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
}

.access-icon-smaller {
    width: 11px;
    min-width: 11px;
    height: 11px;
    min-height: 11px;
}

.hide-on-desktop {
    display: none !important;
}

.italic-lower-opac {
    font-style: italic;
    opacity: 0.7;
}

.featured-tags-section {
    display: none;
}

.hidden {
    width: 0px;
    height: 0px;
    display: none;
}

.bold-link {
    font-weight: bold;
    text-decoration: none !important;
}

.bold-link:hover {
    text-decoration: underline !important;
}

.full-page-section {
    padding: 82px 0px;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Styles for large desktop */
@media (min-width: 1439px) {  
    body, html {
        font-size: calc(1.11vw * var(--scale));
    }

    h1 {
        font-size: calc(5vw * var(--scale));
    }

    h2 {
        font-size: calc(2.92vw * var(--scale));
    }
    
    h3 {
        font-size: calc(2.64vw * var(--scale));
    }
    
    h4 {
        font-size: calc(2.36vw * var(--scale));
    }
    
    h5 {
        font-size: calc(2.08vw * var(--scale));
    }
    
    h6 {
        font-size: calc(1.81vw * var(--scale));
    }

    p {
        font-size: calc(1.11vw * var(--scale));
    }
    
    .wide-container {
        padding-left: 2.92vw;
        padding-right: 2.92vw;
    }

    .narrow-container {
        min-width: 61.84vw;
        width: 61.84vw;
        padding-left: 2.92vw;
        padding-right: 2.92vw;
    }
    
    button,
    .button,
    .kg-btn,
    .kg-header-card-button {
        padding: calc(0.56vw * var(--scale)) calc(2.22vw * var(--scale));
        font-size: calc(1.11vw * var(--scale));
    }

    small,
    figcaption {
        font-size: calc(0.97vw * var(--scale));
    }
    
    .medium-text {
        font-size: calc(1.67vw * var(--scale));
    }

    .big-text {
        font-size: calc(2.22vw * var(--scale));
    }

    .small-text {
        font-size: calc(1.38vw * var(--scale));
    }

    input,
    textarea {
        padding: calc(0.56vw * var(--scale)) calc(1.11vw * var(--scale));
        font-size: calc(1.11vw * var(--scale));
    }

    textarea {
        padding: calc(0.83vw * var(--scale)) calc(1.11vw * var(--scale));
    }

    #announcement-bar-root .gh-announcement-bar {
        font-size: calc(1.11vw * var(--scale));
        padding: calc(0.8vw * var(--scale)) 2.92vw;
        min-height: calc(3.3vw * var(--scale));
    }

    #announcement-bar-root .gh-announcement-bar-content {
        padding: 0px 2.92vw;
    }

    .gh-announcement-bar button {
        right: calc(0.55vw * var(--scale));
        margin-top: calc(-1.1vw * var(--scale));
        width: calc(2.2vw * var(--scale));
        height: calc(2.2vw * var(--scale));
    }

    .gh-announcement-bar button svg {
        width: calc(0.8vw * var(--scale));
        height: calc(0.8vw * var(--scale));
    }

    .section-heading {
        padding: calc(0.7vw * var(--scale)) 0px;
        font-size: calc(1.39vw * var(--scale));
    }

    .section-heading-arrow {
        width: calc(1.81vw * var(--scale));
        margin-left: calc(0.76vw * var(--scale));
    }

    .section-padding {
        padding-top: calc(3.96vw * var(--scale));
        padding-bottom: calc(3.96vw * var(--scale));
    }

    .section-padding-top {
        padding-top: calc(3.96vw * var(--scale));
    }

    .section-padding-bottom {
        padding-bottom: calc(3.96vw * var(--scale));
    }

    .section-padding-small {
        padding-top: calc(3.13vw * var(--scale));
        padding-bottom: calc(3.13vw * var(--scale));
    }

    .pagination-button {
        margin-bottom: calc(3.96vw * var(--scale));
    }

    .initial-paragraph::first-letter {
        font-size: calc(3.55vw * var(--scale));
        margin-right: calc(0.56vw * var(--scale));
    }

    .initial-paragraph.three-lines {
        max-height: calc(3 * 1.6 * (1.11vw * var(--scale)));
    }
    
    .initial-paragraph.two-lines {
        max-height: calc(2 * 1.6 * (1.11vw * var(--scale)));
    }

    .restricted-access-icon {
        width: calc(0.9vw * var(--scale));
        min-width: calc(0.9vw * var(--scale));
        height: calc(0.9vw * var(--scale));
        min-height: calc(0.9vw * var(--scale));
        margin-right: calc(0.35vw * var(--scale));
    }

    .access-icon-smaller {
        width: calc(0.76vw * var(--scale));
        min-width: calc(0.76vw * var(--scale));
        height: calc(0.76vw * var(--scale));
        min-height: calc(0.76vw * var(--scale));
    }

    .full-page-section {
        padding: calc(5.7vw * var(--scale)) 0px;
    }
}

/* Styles for tablet */
@media (max-width: 991px) { 
    .wide-container,
    .narrow-container {
        padding-left: 30px;
        padding-right: 30px;
    }

    .narrow-container {
        min-width: unset;
        width: 100%;
    }

    h1 {
        font-size: 48px;
    }

    h2 {
        font-size: 38px;
    }
    
    h3 {
        font-size: 34px;
    }
    
    h4 {
        font-size: 30px;
    }
    
    h5 {
        font-size: 26px;
    }
    
    h6 {
        font-size: 22px;
    }

    #announcement-bar-root .gh-announcement-bar {
        padding: 12px 30px;
    }

    #announcement-bar-root .gh-announcement-bar-content {
        padding: 0px 30px;
    }

    .hover-underline:hover,
    .small-card-bottom-text a:hover {
        text-decoration: none;
    }

    .hover-image-opacity:hover:after{
        opacity: 0;
    }

    .medium-text {
        font-size: 32px;
    }

    .small-text {
        font-size: 24px;
    }

    .section-heading {
        padding: 12px 0px;
        font-size: 26px;
    }

    .section-heading-arrow {
        width: 32px;
        margin-left: 14px;
    }

    .section-padding {
        padding-top: 38px;
        padding-bottom: 38px;
    }

    .section-padding-top {
        padding-top: 38px;
    }

    .section-padding-bottom {
        padding-bottom: 38px;
    }

    .section-padding-small {
        padding-top: 38px;
        padding-bottom: 38px;
    }

    .pagination-nav {
        margin-bottom: 38px;
    }

    .pagination-button {
        margin-bottom: 0px;
    }

    .access-icon-smaller {
        width: 13px;
        min-width: 13px;
        height: 13px;
        min-height: 13px;
    }

    .hide-on-desktop {
        display: block !important;
    }

    .hide-on-mobile {
        display: none !important;
    }

    .full-page-section {
        margin-top: 26px;
        border-top: 1px solid var(--text-color);
        min-height: 80vh;
    }

    textarea {
        min-height: 25vh;
    }

    .two-lines-mobile {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* Styles for mobile */
@media (max-width: 479px) { 
    body, html {
        font-size: 14px;
    }
    
    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }
    
    h3 {
        font-size: 26px;
    }
    
    h4 {
        font-size: 24px;
    }
    
    h5 {
        font-size: 22px;
    }
    
    h6 {
        font-size: 20px;
    }

    p {
        font-size: 14px;
    }

    .wide-container,
    .narrow-container {
        padding-left: 18px;
        padding-right: 18px;
    }

    button,
    .button,
    .kg-btn,
    .kg-header-card-button {
        padding: 8px 28px;
        font-size: 14px;
    }

    #announcement-bar-root .gh-announcement-bar {
        padding: 12px 18px;
    }

    #announcement-bar-root .gh-announcement-bar-content {
        padding: 0px 18px;
    }

    .big-text {
        font-size: 24px;
    }

    .medium-text {
        font-size: 24px;
    }

    .small-text {
        font-size: 20px;
    }

    input,
    textarea {
        padding: 8px 14px;
        font-size: 14px;
    }

    textarea {
        padding: 10px 14px;
    }

    .section-heading {
        padding: 10px 0px;
        font-size: 20px;
    }

    .section-heading-arrow {
        width: 26px;
        margin-left: 11px;
    }

    .section-padding {
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .section-padding-top {
        padding-top: 32px;
    }

    .section-padding-bottom {
        padding-bottom: 32px;
    }

    .section-padding-small {
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .pagination-nav {
        margin-bottom: 32px;
    }

    .initial-paragraph::first-letter {
        font-size: 44px;
    }

    .initial-paragraph.three-lines {
        max-height: calc(3 * 1.6 * 14px);
    }
    
    .initial-paragraph.two-lines {
        max-height: calc(2 * 1.6 * 14px);
    }

    .access-icon-smaller {
        width: 11px;
        min-width: 11px;
        height: 11px;
        min-height: 11px;
    } 
    
    .horizontal-card .restricted-access-icon {
        width: 11px;
        min-width: 11px;
        height: 11px;
        min-height: 11px;
    }

    .full-page-section {
        margin-top: 20px;
        padding: 57px 0px;
    } 
}
/* ============================================================
   THE OLYMPIC HERALD — NY Post-style brand additions
   ============================================================ */

/* Fallback red variables (also set in default.hbs) */
:root {
    --oh-red: #E30606;
    --oh-red-dark: #C90505;
    --oh-red-link: #C40000;        /* AA-compliant red for small body-text links (6.3:1 on white) */
    --oh-red-link-hover: #A80303;  /* darker still for hover (7.8:1) */
}

/* Text selection in brand red */
::selection {
    background: var(--oh-red);
    color: #FFFFFF;
}

/* ============================================================
   OLYMPIC HERALD — tabloid polish
   ============================================================ */

/* Even, intentional headline line breaks */
.big-text,
.medium-text,
.small-text,
.post-title,
.text-card-heading,
h1 {
    text-wrap: balance;
}

/* Animated red underline that wipes in under nav links */
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background-color: var(--oh-red);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.22s var(--ease-transition);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* Card image zoom on hover (wrappers clip the overflow) */
.small-card-image-wrapper,
.big-card-image-wrapper,
.extra-small-card-image-wrapper {
    overflow: hidden;
}

.small-card-image-link:hover img,
.big-card-image-link:hover img,
.extra-small-card-image-link:hover img {
    transform: scale(1.045);
}

/* Headline turns brand red on hover */
.small-card-heading:hover,
.big-card-heading:hover,
.extra-small-card-heading:hover {
    color: var(--oh-red);
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .nav-link::after {
        transition: none;
    }
    .small-card-image-link:hover img,
    .big-card-image-link:hover img,
    .extra-small-card-image-link:hover img {
        transform: none;
    }
}

/* ============================================================
   OLYMPIC HERALD — accessible keyboard focus states
   (:focus-visible shows only for keyboard nav, not mouse clicks)
   ============================================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible,
.nav-link:focus-visible,
.custom-dropdown-btn:focus-visible,
[data-ghost-search]:focus-visible,
.account-button-wrapper:focus-visible {
    outline: 3px solid var(--oh-red);
    outline-offset: 2px;
    border-radius: 1px;
}

/* Inputs read more clearly with the outline hugging the field */
input:focus-visible,
textarea:focus-visible,
.subscribe-input:focus-visible {
    outline-offset: 0;
}

/* Remove the default outline only where we've supplied a visible one */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

/* ============================================================
   OLYMPIC HERALD — accessibility
   ============================================================ */

/* Skip-to-content link: hidden until keyboard focus */
.oh-skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 10000;
    background-color: var(--oh-red);
    color: #FFFFFF;
    font-family: var(--font3);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 14px;
    padding: 10px 18px;
    transition: top 0.15s var(--ease-transition);
}

.oh-skip-link:focus {
    top: 12px;
    color: #FFFFFF;
}

/* Real headings inside .section-heading, styled identically to the old spans */
.section-heading h2.section-heading-label,
.section-heading .section-heading-label {
    font-family: inherit;
    font-weight: inherit;
    font-size: inherit;
    line-height: inherit;
    text-transform: inherit;
    letter-spacing: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
}



/* ---------- Ghost announcement bar, brand-styled ---------- */
.gh-announcement-bar {
    background: var(--oh-red);
    color: #FFFFFF;
    font-family: var(--font3);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.gh-announcement-bar a {
    color: #FFFFFF;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---------- Skip link ---------- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    background: #111111;
    color: #FFFFFF;
    font-family: var(--font3);
    font-weight: 600;
    padding: 10px 16px;
}

.skip-link:focus {
    left: 8px;
    top: 8px;
}

/* ---------- Tag hero count ---------- */
.tag-hero-count {
    font-family: var(--font3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 13px;
    opacity: 0.65;
    margin: 10px 0 0;
}
