/* * {
    outline: 1px solid red !important;
} */

* {
  -webkit-tap-highlight-color: transparent;
}

html {
    box-sizing: border-box;
  }
*, *:before, *:after {
    box-sizing: inherit;
}

h1, h2, h3 {
    font-family: Merriweather, Georgia, 'Times New Roman', Serif;
    /* font-family: 'Open Sans', Arial, 'Segoe UI', sans-serif; */
}

body {
    font-family: 'Open Sans', Arial, 'Segoe UI', sans-serif;
    /* font-family: Merriweather, Georgia, 'Times New Roman', Serif; */
    scroll-behavior: smooth;
    margin: 0;
    color: #2f2f2f;
    /* padding-top: 5rem; */
}

/* home page */

/* nav */

.nav-header {
    display: flex;
    justify-content: space-evenly; 
    align-items: center;                   
    margin: 0.5rem 0 1.1rem;
}

.nav-link {
    text-decoration: none;
    font-weight: bold;
    color: #2f2f2f;        
    font-size: 1.1rem;
    letter-spacing: 2px;
    transition: color 0.2s ease;
    text-align: center !important;
}

.nav-link.active {
    color: #2f2f2f;
    border-bottom: 2px solid #2f2f2f; 
}

@media (max-width: 768px) {
    .nav-link {       
        font-size: 1rem;
        letter-spacing: 1px;
    }
}

/* headins + links */

.headrow {
    margin: 0.4rem 0rem;
}

.headslug {
    font-size: 1.05rem;
    cursor: pointer;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1.5;
    margin: 0rem 0rem;
}

@media (max-width: 768px) {
    .headslug {
        font-size: 1.1rem;
    }
}

/* article page */

article {
    margin: 0 auto; /* Center container and add top/bottom margin */
}

article h2 {
    font-size: 2rem;
    letter-spacing: 1px;
    font-weight: 600;
    font-family: 'Open Sans', Arial, 'Segoe UI', sans-serif;
    margin-top: 1.1rem;
    margin-bottom: 0.8rem;
}

article h3 {
    font-size: 1.3rem;
    letter-spacing: 1px;
    /* margin: 0.9rem 0; */
}

article p {
    font-size: 1.05rem;
    line-height: 1.65;
    /* margin: 0.8rem 0; */
    /* text-align: justify;
    text-justify: inter-word; */
}

@media (max-width: 768px) {
    article .article-head, article h2 {
        font-size: 1.6rem;
    }
    article h3 {
        font-size: 1.2rem;
    }
    article p {
        font-size: 1.02rem;
        line-height: 1.55;
    }
}

p {
    color: black;
}

.larger {
    color: black;
    font-size: 1.05rem;
}

a {
    color: inherit;
    text-decoration: none;

}

a:hover, a p:hover {
    color: rgb(126, 126, 126) !important;
    /* font-weight: bold; */
}

.preview-message {
    font-size: 1.3rem;
    letter-spacing: 1px;
    /* font-style: italic; */
    margin: 1.5rem auto;
    max-width: fit-content;
    font-weight: 600;
    color: #2f2f2f;
    border: 2px solid #2f2f2f;
    border-radius: 1rem;
    padding: 1.5rem;   
}

.preview-message a {
    text-decoration: underline;
}

/* Read Next */
.read-next {
    margin: 1.75rem 0;
    padding-top: 1.1rem;
    padding-bottom: 2rem;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.read-next-title {
    margin: 0 0 1.1rem;
    letter-spacing: 1px;
    /* color: #2f2f2f; */
}

.read-next-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.read-next-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 6px;
    text-decoration: none;
    color: #2f2f2f;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.read-next-head {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1.55;
}

.read-next-meta {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 600;
    color: #a1a1a1;
    letter-spacing: 0.7px;
    white-space: nowrap;
    /* font-variant-numeric: tabular-nums; */
}

@media (max-width: 768px) {
    .read-next-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
        padding: 0.75rem 0.875rem;
    }
    .read-next-head {
        font-size: 1.1rem;
    }
}

/* svg */
.logosvg {
    height: 4rem;
    vertical-align: -1rem;
    margin: 0 1px 0 0;
}


@media (max-width: 768px) {
    .logosvg {
        height: 2.75rem;
        vertical-align: -0.75rem;
    }
}

.svg {
    height: 1.4rem;
    vertical-align: -0.2em; /* nudge down like emoji */
    margin: 0 1px 0 0;
}

.paymentsvg {
    height: 2.9rem;
    vertical-align: -0.2em; /* nudge down like emoji */
    margin: 0 1px 0 0;
}

/* Header */

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    border-bottom-left-radius: 0em;
    border-bottom-right-radius: 0em; 
    padding: 0;
    /* position: relative; */
    width: 100%;
    margin: 0.1rem 0 0.2rem;
    /* position: fixed; */
    top: 0;
    left: 0;
    z-index: 100; 
    position: -webkit-sticky; /* Support for older Safari */
    position: sticky;
    /* border-bottom: 1px solid #bababa; */
}

.header-content {
    display: flex;
    width: 80%; 
    margin: 0 auto; 
    align-items: center;
    justify-content: space-between;
    /* border-bottom: 1px solid #ababab; 2px thick, solid, light gray */
    /* box-shadow: 0 2px 0 0 #aaa; */
}

@media (max-width: 768px) {
    .header-content {
        width: 100%;
    }
}

.logo {
    font-size: 1.8rem;
    text-align: left;
    margin: 0.5rem 0rem 0.5rem 0.7rem;
    cursor: pointer;
    /* font-family: 'Montserrat'; */
    display: inline-block; 
    align-items: center;
    letter-spacing: 0.12em;

}

.logo a {
    text-decoration: none;
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.6rem;
    }
}

/* Hamburger & Menu */

.hamburger-container {
    position: relative;
    display: inline-block;
    align-items: center;
}

.hamburger {
    display: inline-block;
    cursor: pointer;
    position: relative;
    z-index: 1;
    margin-right: 0.5rem;
    align-items: center;
}

.line {
    width: 2.9rem;
    height: 0.35rem;
    background-color: #3e3e3e;
    border-radius: 2px;
    margin: 0.23rem 0;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.menu {
    position: absolute;
    top: 100%; /* Directly below the navbar */
    right: 3rem;
    width: auto;
    min-width: 10rem;
    border-radius: 0.7em;
    background-color: white;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
    border: 1px solid #e0e0e0;
    /* Hidden state */
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    z-index: 10;
    pointer-events: none; /* Disabled when hidden */
    /* Transition settings */
    transition:
        transform 0.3s ease-in-out,
        opacity 0.3s ease-in-out,
        visibility 0s linear 0.3s; /* Delay visibility */
}

@media (max-width: 768px) {
    .menu {
        right:0rem;
    }
}

.menu-toggle {
    display: none;
}

.menu-toggle:checked ~ .menu { /* Active state */
    transform: translateY(0); 
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Enable interactions */
    transition-delay: 0s;
}

.menu-toggle:checked ~ .hamburger-container .hamburger .line {
    /* background-color: white; */
    background-image: linear-gradient(90deg, rgb(235, 235, 235), #3e3e3e);
    /* background-image: linear-gradient(90deg, white, rgb(220, 220, 220)); */
}

.menu-toggle:hover ~ .hamburger-container .hamburger .line {
    background-image: linear-gradient(90deg, rgb(235, 235, 235), #3e3e3e);
}

.menu ul {
    list-style: none;
    padding: 0.25rem;
    margin: 0.25rem;
 
}

.menu li {
    font-size: 1.05rem;
    padding: 0.25rem;
    margin-top: 0.25rem;
    margin-left: 0rem;
    color: #3e3e3e;
    transition: background-color 0.3s ease-in-out;
}

@media (max-width: 768px) {
    .menu li {
        font-size: 1.10rem;
        text-align: left;
    }
}

.menu li:hover {
    color: rgb(126, 126, 126);
    font-weight: 600;
}

.menu a { 
    text-decoration: none;
}

/* Main */

.narrow-container {
    max-width: 90%;
    margin: 0 auto;   
}
@media (min-width: 768px) {
    .narrow-container {
        max-width: 65%;
    }
}

main {
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
}

.base-cont {
    margin: 0 auto; /* Center container and add top/bottom margin */
    max-width: 92%; /* mobile */
    text-align: left;
}
@media (min-width: 900px) {
    .base-cont {
        max-width: 67.5%; /* ADAPT */
    }
}
@media (min-width: 1275px) {
    .base-cont {
        max-width: 57.5%;
    }
}

/* bottom */

#vars {
    display: none;
}

footer {
    font-weight: 500;
    font-size: 0.8rem;
    display: flex;
    justify-content: center; 
    align-items: center;
    padding: 1rem;
    margin-top: 1.5rem;
}

footer a {
    cursor: pointer;
    margin-left: 0rem;    
}

.disclaimer {
    margin-top: 2rem;
    font-size: 0.9rem;
}

/* Home page */

.info-text {
    line-height: 1.75;
    text-align: center;
}

.terms-text {
    /* line-height: 1.75; */
    text-align: left;
}

.slogan {
    font-size: 1.15rem;
}

.slogan-minor {
    font-size: 1.1rem;
}

/* Scroll bar  */

@media (min-device-width: 768px) {

    ::-webkit-scrollbar {
        width: 0.6rem;
        height: 0.6rem;
        -webkit-border-radius: 0.6em;
        border-radius: 0.6em;
    }
    ::-webkit-scrollbar-track {
        background: #f1f1f1; 
        -webkit-border-radius: 0.6em;
        border-radius: 0.6em;
    }
    ::-webkit-scrollbar-thumb {
        background: #d3d3d3; 
        border-radius: 0.6em;
        height: 0.6rem;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: #cccbcb; 
    }
    ::-webkit-scrollbar-corner { 
        display: none; 
        height: 0; 
        width: 0; 
    }

    /* ::-webkit-scrollbar {
        height: 0.4rem;
        -webkit-box-shadow: inset 0 0 0.4rem rgba(0,0,0,0); 
    }
    ::-webkit-scrollbar-track {
        -webkit-box-shadow: inset 0 0 0px rgba(0,0,0,0); 
    } */
}

/* upvotes */
.upvote {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    color: #b3b3b3;
    font-weight: 600;
    letter-spacing: 0.7px;
}

.head-upvote {
    margin-top: 0.2rem;
    gap: 0.3rem;
    font-size: 0.67rem;
}

.art-upvote {
    gap: 0.4rem;
    font-size: 0.9rem;
}

.upvote img {
    cursor: pointer;
}

/* SVG icon styles */
.headsvg {
    height: 0.75rem;
    /* margin-left: 1rem; */
    /* vertical-align: -0.2rem; */
}

.artsvg {
    height: 1rem;
    /* margin-left: 1rem; */
    /* vertical-align: -0.2rem; */
}

/* newsletter */
.newsletter-signup {
    margin: 0;
    padding: 1rem 3rem;
    text-align: center;
}

.newsletter-title {
    color: #000;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.8rem 0;
    letter-spacing: 1px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
    margin: 0;
}

.newsletter-input {
    flex: 1;
    min-width: 0;
    padding: 0.6em 0.9em;
    border: 1px solid #16a34a;
    border-radius: 999px;
    font-size: 1.05rem;
    outline: none;
    background: #fff;
}

.newsletter-input:focus {
    border-color: rgb(18, 115, 54);
}

.newsletter-input:disabled {
    opacity: 0.6;
}

.newsletter-btn {
    padding: 0.6em 1.4em;
    border: none;
    border-radius: 999px;
    background: #16a34a;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.08s ease;
}

.newsletter-btn:hover:not(:disabled) {
    background: #119843;
}

.newsletter-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.newsletter-error {
    color: #b91c1c;
    font-size: 0.95rem;
    margin-top: 0.6em;
    min-height: 1.2em;
}

.newsletter-error:empty {
    display: none;
}

.newsletter-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    color: #16a34a;
    font-weight: 600;
    font-size: 1.05rem;
}

.newsletter-check {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Mobile: stack input and button */
@media (max-width: 600px) {
    .newsletter-form {
        flex-direction: column;
    }
    .newsletter-signup {
        padding: 1rem 1rem;
    }
}

