/* ==================================================
   Design Tokens
   ================================================== */

:root {
    
    --header-font-1: "Aboreto", system-ui;   
    --header-font-2: "Bellota", system-ui;    
    --header-font-p: "Bellota", system-ui;
    
    --font-family: "Bellota", system-ui;    
    --summary-details-font: "Bellota", system-ui; 
    --lightbox-font-family: "Bellota", system-ui; 

    --default-background-color: #FFFFFF;    
    --default-font-color: #008000;
    --default-link-color: #0000FF;
    --default-link-color-hover: #FF0000;    
    
    --header-font-1-color: #B01B2E;
    --header-font-2-color: #B01B2E;
  
    --hr-color: #008000;

    --border-color: #3C8D0D;
    --menu-border-color: #3C8D0D;
    --secondary-border-color: #008000;
    
    --flavor-background-color: #B01B2E;   
    --flavor-header-color: #F9F7FE;
    
    --product-item-background-color: #3C8D0D;
    --product-item-header-color: #B01B2E;
    
    --product-grid-item-a: #F9F7FE;
    --product-grid-item-a-hover: #0000FF;    
        
    --all-products-header-background: #B01B2E;   
    --all-products-topbottom-nav-color: #F9F7FE;
        
    --lightbox-outerContainer-bg-color: #B01B2E;
    --lightbox-Overlay-bg-color: #FFFFFF;
    --lightbox-font-color: #0000FF;

    /* Accessibility */

    --focus-color: #005fcc;
    --focus-width: 3px;
    --focus-offset: 3px;
}

/* ==================================================
   Document
   ================================================== */

html {
    background: var(--default-background-color);
    color: var(--default-font-color);
    font-family: var(--font-family);
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    line-height: 1.5;
}

/* ==================================================
   Reduced Motion
   ================================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ==================================================
   Focus Visibility
   ================================================== */

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline:
        var(--focus-width, 3px)
        solid
        var(--focus-color, #005fcc);

    outline-offset:
        var(--focus-offset, 3px);
    
    border-radius: 2px;
}

/* ==================================================
   Headings
   ================================================== */

h1 {
    margin: 0.25em 0 0 0;
    font-size: 3.0em;
    font-weight: normal;
    text-align: center;
    color: var(--header-font-1-color);
    font-family: var(--header-font-1);
}

h2 {
    margin: 0;
    font-size: 2.5em;
    font-weight: normal;
    text-align: center;
    color: var(--header-font-1-color);
    font-family: var(--header-font-2);
}

h3 {
    margin: 0.01em 0;
    font-size: 1.2em;
    font-weight: normal;
    text-align: center;
    color: var(--header-font-1-color);
    font-family: var(--header-font-2);
}

h4,
h5,
h6 {
    margin: 0.3em 0 0 0;
    color: var(--header-font-2-color);
    text-align: center;
    font-weight: normal;
}

h1 a,
h1 a:hover,
h1 a:focus-visible,
h1 a:active {
    color: inherit;
    text-decoration: none;
}

.header-p {
    margin: 0;
    text-align: center;
    font-family: var(--header-font-p);
    color: var(--header-font-1-color);
}


/* ==================================================
   Rules
   ================================================== */

hr {
    border: 0;
    border-top: 0.1em dotted var(--hr-color);
}

hr.third {
    width: 33%;
}

hr.half {
    width: 50%;
}

hr.twothird {
    width: 66%;
}

/* ==================================================
   Links
   ================================================== */

a {
    color: var(--default-link-color);
    text-decoration-line: underline;
    text-underline-offset: 0.3em;
}

a:hover,
a:focus-visible {
    color: var(--default-link-color-hover);
    text-decoration-line: none;
}

a:active {
    color: var(--default-font-color);
}

a.TopBottomNav {
    font-size: 0.875rem;
    font-style: italic;
    color: var(--all-products-topbottom-nav-color);
}

a.product-grid-item-a {
    color: var(--product-grid-item-a);
}

a.product-grid-item-a:hover,
a.product-grid-item-a:focus-visible {
    color: var(--product-grid-item-a-hover);
}

/* ==================================================
   Media
   ================================================== */

img,
picture,
video {
    display: block;
    max-width: 100%;
}

/* ==================================================
   Footer
   ================================================== */

.footer {
    font-size: 0.95rem;
    font-style: italic;
    text-align: center;
}

/* ==================================================
   Details / Summary
   ================================================== */

details {
    padding: 0 1em;
    font-family: var(--summary-details-font);
}

details + details {
    border-top: none;
}

details[open] {
    padding-bottom: 1em;
}

summary {
    padding: 0.75em 3em;
    text-align: center;
    cursor: pointer;
}

summary:hover,
summary:focus-visible {
    text-decoration: underline;
}

/* ==================================================
   Utility
   ================================================== */

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}