:root {
    --gap: 1rem;
    --card-pad: 1.25rem;
    --hero-padding: 2rem;
    --chev-size: 88px;
    --topbar-height: 59px;
    --heading-font: "Noto Sans", "DejaVu Sans", "Liberation Sans", Arial, sans-serif;
    --body-font: "Noto Sans", "DejaVu Sans", "Liberation Sans", Arial, sans-serif;
    --tech-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --brand-orange: #f77b1a;
    --brand-orange-light: #ff9a3c;
    --brand-orange-dark: #cf5f08;
    --brand-green: #69a85b;
    --brand-green-light: #84c078;
    --brand-green-dark: #477f3e;
    --brand-green-soft: #eff8ed;
    --logo-ring-green: #97d086;
    --brand-green-shine: linear-gradient(
        180deg,
        var(--brand-green-light) 0%,
        var(--brand-green) 52%,
        #57944c 100%
    );
    --brand-green-shadow: 0 5px 12px rgba(105, 168, 91, 0.28);
    --brand-orange-shine: linear-gradient(
        180deg,
        var(--brand-orange-light) 0%,
        var(--brand-orange) 52%,
        var(--brand-orange-dark) 100%
    );
    --brand-orange-shadow: 0 5px 12px rgba(247, 123, 26, 0.26);
}

* {
    box-sizing: border-box;
}

[data-service-offerings][hidden] {
    display: none !important;
}

body {
    margin: 0;
    font-family: var(--body-font);
    background: #fff;
    color: #111;
    line-height: 1.4;
    display: flex; /* Establishes a flex container */
    flex-direction: column; /* Stacks children vertically */
    min-height: 100vh; /* Sets a minimum height of 100% of the viewport height */
}

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

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Top bar menu */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-height);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    z-index: 100;
}

.topbar a.active-page {
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    background: var(--brand-green-shine);
    box-shadow: var(--brand-green-shadow);
    color: #fff;
    transition:
        filter 0.2s ease,
        box-shadow 0.2s ease;
}

.topbar a.active-page:hover {
    filter: brightness(0.94);
}

.topbar a {
    text-decoration: none;
    color: #111;
    font-weight: 600;
}

.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

#hamburger-button {
    display: none;
}

#hamburger-menu {
    display: none;
}

/*#hamburger-menu ul {
  display: inline-flex;
  margin-left: 5%;
}

#hamburger-menu ul li {
  margin: 0 20px;
}

/* Hero */
.hero {
    min-height: 100vh;
    background: #f1f1f1;
    color: #fff;
    display: grid;
    place-items: center;
    text-align: center;
    padding: var(--hero-padding);
    position: relative;
}

.hero::before {
    position: absolute;
    top: calc(var(--topbar-height) + 26px);
    left: clamp(24px, 5vw, 72px);
    content: "SELF-CUSTODY WITH ROOTSEED";
    color: var(--brand-green-dark);
    font-family: var(--tech-mono);
    font-size: clamp(0.72rem, 1vw, 0.88rem);
    font-weight: 600;
    letter-spacing: 0.1em;
}

.hero-logo-container {
    width: 200px;
    height: 200px;
    display: block; /* Make it a block element to use margin: auto */
    overflow: hidden;
    margin: -100px auto 30px; /* Center and retain the original hero position */
    border-radius: 50%;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.hero-logo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.56);
}

.hero-terminal {
    min-height: 3.5rem;
    color: #222722;
    font-family: var(--heading-font);
    font-size: clamp(0.96rem, 2vw, 1.2rem);
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: 0;
}

.hero-terminal__static,
.hero-terminal__typed {
    display: block;
}

.hero-terminal__static {
    margin-bottom: 0.45rem;
    color: #171a17;
    font-size: clamp(1.45rem, 3vw, 2.1rem);
    font-weight: 600;
    line-height: 1.2;
}

.hero-terminal__typed {
    min-height: 1.75em;
    color: #3e433e;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.hero-cursor {
    width: 2px;
    height: 1.12em;
    margin-left: 4px;
    display: inline-block;
    vertical-align: -0.15em;
    background: #111;
    animation: hero-cursor-blink 0.82s steps(1) infinite;
}

.hero-cursor[hidden] {
    display: none;
}

@keyframes hero-cursor-blink {
    50% {
        opacity: 0;
    }
}

.hero p {
    margin: 0 auto;
    opacity: 0.92;
    max-width: 60ch;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    .hero-cursor {
        animation: none;
    }
}

.network-status {
    width: min(520px, calc(100vw - 40px));
    margin: 24px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.11);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.08);
    color: #222;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    text-align: left;
    backdrop-filter: blur(12px);
}

.network-status__item {
    padding: 11px 13px;
    display: block;
    color: inherit;
}

.network-status__item + .network-status__item {
    border-left: 1px solid rgba(0, 0, 0, 0.09);
}

.network-status__label {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #666;
    font-size: 0.63rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.network-status__dot {
    width: 5px;
    height: 5px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--brand-orange);
}

.network-status__dot.is-live {
    background: #80bd71;
    box-shadow: 0 0 7px rgba(105, 168, 91, 0.55);
}

.network-status__value {
    display: block;
    color: #191919;
    font-size: 0.86rem;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    letter-spacing: 0.015em;
    line-height: 1.3;
}

.network-status__meta {
    margin-top: 3px;
    display: block;
    color: #777;
    font-size: 0.61rem;
    line-height: 1.35;
}

.network-status__link:hover {
    background: rgba(247, 147, 26, 0.055);
}

.network-fun {
    max-width: 800px;
    margin: 40px auto 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
}

.network-fun .highlighted-text {
    margin-bottom: 40px;
}

.network-card {
    width: 100%;
    padding: 24px;
}

.network-card__intro {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 20px;
    border-bottom: 1px solid #dedede;
}

.network-card__logo {
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
    object-fit: contain;
}

.network-card__intro h3 {
    margin: 0 0 4px;
    color: #222;
    font-size: 1.08rem;
}

.network-fun .network-status {
    width: 100%;
    margin: 20px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.supply-progress {
    position: relative;
    height: 9px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #e3e9e0;
    box-shadow: inset 0 1px 2px rgba(71, 127, 62, 0.12);
}

.supply-progress__fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand-green), #9bca90);
    transition: width 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.supply-progress__fill::after {
    position: absolute;
    top: 50%;
    right: 0;
    width: 7px;
    height: 7px;
    transform: translateY(-50%);
    content: "";
    border-radius: 50%;
    background: var(--brand-orange);
}

/* Chevron */
.scroll-down {
    position: absolute;
    left: 50%;
    bottom: 10%;
    /*bottom: 17.25rem;*/
    transform: translateX(-50%);
    width: var(--chev-size);
    height: var(--chev-size);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    /*animation: chevron-bounce 1.6s cubic-bezier(.25,.8,.25,1) infinite;*/
    animation: chevron-bounce 1.6s infinite;
}
.scroll-down svg {
    width: 100%;
    height: 100%;
}
@keyframes chevron-bounce {
    0% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(16px);
    }
    /*70%{ transform: translateX(-50%) translateY(13px); }*/
    100% {
        transform: translateX(-50%) translateY(0);
    }
}

/* Content */
main.content {
    padding: 2rem;
    flex-grow: 1;
}

.grid {
    display: grid;
    gap: var(--gap);
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 40px;
}

.highlighted-text {
    color: #000;
    font-size: 26px;
    font-weight: bold;
    display: inline-block; /* Enables margin-bottom to work */
    margin-bottom: 40px;
    margin-top: 40px;
}

.private-contact {
    width: min(100%, 800px);
    margin: 0 auto 40px;
    color: #333;
    font-family: var(--body-font);
    line-height: 1.6;
    text-align: left;
}

.professional-guidance__content {
    display: block;
}

.professional-guidance__main-copy {
    margin: 0 0 14px;
}

.professional-guidance__main-copy strong {
    color: #253324;
    font-weight: 700;
}

.professional-guidance__main-copy--prompt {
    margin: 22px 0 18px;
}

.professional-guidance__field-notes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.professional-guidance__field-note {
    border-left: 3px solid var(--brand-green);
    background: var(--brand-green-soft);
}

.professional-guidance__field-note summary {
    display: flex;
    min-height: 74px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
}

.professional-guidance__field-note summary::-webkit-details-marker {
    display: none;
}

.professional-guidance__field-note time {
    display: block;
    margin-bottom: 4px;
    color: var(--brand-green-dark);
    font-family: var(--tech-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.professional-guidance__field-note summary strong {
    display: block;
    color: #253324;
    font-family: var(--heading-font);
    font-size: 0.95rem;
    line-height: 1.3;
}

.professional-guidance__field-note p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
}

.professional-guidance__note-body strong {
    color: #253324;
    font-weight: 700;
}

.professional-guidance__note-toggle {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    border: 1px solid rgba(105, 168, 91, 0.55);
    border-radius: 50%;
    color: var(--brand-green-dark);
    font-family: var(--tech-mono);
    font-size: 1.15rem;
}

.professional-guidance__note-toggle::before {
    content: "+";
}

.professional-guidance__field-note[open]
    .professional-guidance__note-toggle::before {
    content: "−";
}

.professional-guidance__note-body {
    margin: 0 16px;
    padding: 13px 0 16px;
    border-top: 1px solid rgba(105, 168, 91, 0.28);
}

@media (max-width: 640px) {
    .professional-guidance__field-notes {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

.private-contact__intro {
    margin-bottom: 24px;
    padding: 20px;
    border-radius: 4px;
    background: #f9f9f9;
}

.private-contact__eyebrow {
    display: none;
}

.private-contact__intro h2 {
    margin: 0 0 8px;
    color: var(--brand-green);
    font-family: var(--heading-font);
    font-size: 23pt;
    font-weight: 500;
    line-height: 1.2;
}

.private-contact__intro p {
    margin: 0;
    color: #3f463e;
    font-size: 1rem;
    line-height: 1.72;
}

.private-contact__intro .private-contact__cta {
    margin: 18px auto 0;
}

.security-updates-panel {
    margin-bottom: 40px;
    padding: 20px;
    border-radius: 4px;
    background: #f9f9f9;
}

.security-updates-panel h2 {
    margin: 0 0 8px;
    color: var(--brand-green);
    font-family: var(--heading-font);
    font-size: 23pt;
    font-weight: 500;
    line-height: 1.2;
}

.security-updates-panel__description {
    margin: 0 0 20px;
    color: #3f463e;
    font-size: 1rem;
    line-height: 1.72;
}

.security-updates-panel #notes-grid {
    margin-bottom: 0;
}

.private-contact__steps {
    margin: 0;
    padding: 0;
    counter-reset: contact-step;
    list-style: none;
}

.private-contact__path {
    font-size: 1.05rem;
}

.private-contact__steps li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 14px;
    padding: 15px 0;
    border-bottom: 1px solid #dedede;
    counter-increment: contact-step;
}

.private-contact__steps li:first-child {
    padding-top: 0;
}

.private-contact__steps li::before {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    content: counter(contact-step, decimal-leading-zero);
    border: 1px solid rgba(105, 168, 91, 0.4);
    border-radius: 50%;
    background: var(--brand-green-soft);
    color: var(--brand-green-dark);
    font-family: var(--tech-mono);
    font-size: 0.7rem;
    font-weight: 700;
}

.private-contact__steps h3 {
    margin: 1px 0 4px;
    color: #222;
    font-family: var(--heading-font);
    font-size: 1rem;
    font-weight: 650;
}

.private-contact__steps p {
    margin: 0;
    color: #555;
    font-size: 0.92rem;
    line-height: 1.55;
}

.private-contact__action {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-top: 22px;
    padding: 18px 20px;
    border: 1px solid rgba(105, 168, 91, 0.3);
    border-radius: 6px;
    background: var(--brand-green-soft);
}

.private-contact__action p {
    flex: 1;
    margin: 0;
    color: #3f463e;
    font-size: 0.9rem;
    line-height: 1.55;
}

.private-contact__action--plain {
    margin-top: 0;
    padding: 0 20px;
    border: 0;
    background: transparent;
}

.private-contact__cta {
    display: flex;
    width: fit-content;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 6px;
    background: var(--brand-green-shine);
    box-shadow: var(--brand-green-shadow);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition:
        filter 0.2s ease,
        box-shadow 0.2s ease;
}

.private-contact__cta:hover {
    filter: brightness(0.95);
}

.how-we-work-image--round {
    width: 180px;
    height: 180px;
    max-width: 180px !important;
    overflow: hidden;
    border: 3px solid var(--logo-ring-green);
    border-radius: 50%;
}

.how-we-work-image--round .how-we-work-photo {
    width: 100% !important;
    height: 100% !important;
    display: block;
    max-width: none !important;
    max-height: none !important;
    border-radius: 0 !important;
    object-fit: cover;
    object-position: left center;
}

.what-we-do-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 28px;
    align-items: center;
}

.what-we-do-card__media {
    position: relative;
    width: 210px;
    height: 210px;
    justify-self: center;
}

.what-we-do-bitcoin-mark {
    position: absolute;
    z-index: 1;
    top: -28px;
    right: -28px;
    width: 96px;
    height: 96px;
    object-fit: contain;
}

.what-we-do-card__media .how-we-work-image.how-we-work-image--round {
    width: 210px !important;
    height: 210px;
    max-width: 210px !important;
}

@media (max-width: 680px) {
    .what-we-do-card {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .what-we-do-card__media {
        width: 210px;
        height: 210px;
        margin: 4px auto 0;
    }

}

@media (max-width: 768px) {
    .private-contact {
        margin-bottom: 40px;
    }

    .private-contact__action {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .private-contact__cta {
        align-self: center;
    }
}

.homepage-section-heading {
    font-family: var(--heading-font);
    font-weight: 500;
}

.intro-text {
    color: #000;
    font-size: 20px;
    display: inline-block; /* Enables margin-bottom to work */
    margin-bottom: 50px; /* Add 20 pixels of space below the element */
}

.card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: var(--card-pad);
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.04);

    transition: transform 0.3s ease-in-out;
}

.card:hover {
    transform: scale(1);
}

.image img {
    /* Set the image size to fit inside the placeholder */
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures the image fits without being distorted */
    margin-bottom: 10px;
}

.about-intro-card {
    grid-column: 1 / -1;
    display: block;
}

.about-profile-image-frame {
    float: right;
    width: 180px;
    height: 180px;
    margin: 0 0 16px 22px;
    overflow: hidden;
    border: 3px solid var(--logo-ring-green);
    border-radius: 50%;
}

.about-intro-card::after {
    display: block;
    clear: both;
    content: "";
}

.about-profile-image-frame .about-profile-image {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center top;
    transform: translateY(-30px) scale(1.22) scaleX(-1);
    transform-origin: center top;
}

@media (max-width: 768px) {
    .about-profile-image-frame {
        float: none;
        margin: 0 auto 32px;
    }
}

.card h3 {
    margin: 0 0 0.5rem;
    font-family: var(--heading-font);
    font-weight: 500;
}
.card p {
    margin: 0;
}

#notes-grid {
    align-items: stretch;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

#notes-grid .card {
    display: flex;
    flex-direction: column;
    width: 100%;
    font-family: system-ui, sans-serif;
    cursor: default;
}

.note-card__text {
    flex: 1;
    text-align: left;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.note-card__heading {
  display: block;
  font-weight: 700;
  margin-bottom: 2px;
}

.note-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap);
    margin-top: auto;
    padding-top: 16px;
}

.note-card__time {
    color: #555;
    font-size: 0.9rem;
}

.note-card__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.note-card__link {
    color: var(--brand-green-dark);
    background: var(--brand-green-soft);
    border: none;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
}

.note-card__link:hover {
    background: #dff1da;
}

.note-card__toggle,
.note-card__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 10px;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 5px;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.note-card__toggle {
    min-height: 30px;
    padding: 5px 12px;
    flex: 0 0 auto;
    border: 1px solid rgba(105, 168, 91, 0.42);
    border-radius: 5px;
    background: var(--brand-green-soft);
    box-shadow: none;
    color: var(--brand-green-dark);
}

.note-card__toggle:hover {
    border-color: rgba(105, 168, 91, 0.62);
    background: #dff1da;
}

.note-module__link {
    margin-top: 20px;
    border: 1px solid #c9ced2;
}

body.note-module-open {
    overflow: hidden;
}

.note-module {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.note-module.is-open {
    display: block;
}

.note-module__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.note-module__panel {
    position: relative;
    width: min(680px, calc(100% - 32px));
    max-height: calc(100vh - 64px);
    margin: 32px auto;
    padding: 24px;
    overflow: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}

.note-module__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    padding: 0;
    color: var(--brand-green-dark);
    background: var(--brand-green-soft);
    border: 1px solid rgba(105, 168, 91, 0.42);
    border-radius: 50%;
    box-shadow: none;
    cursor: pointer;
    font: inherit;
    font-size: 1.45rem;
    font-weight: 400;
    line-height: 1;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.note-module__close:hover {
    background: #dff1da;
    border-color: rgba(105, 168, 91, 0.62);
}

.note-module__time {
    display: block;
    margin-bottom: 16px;
    color: #555;
    font-size: 0.9rem;
}

.note-module__text {
    margin: 0;
    text-align: left;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    .network-fun {
        margin-top: 52px;
        padding: 0;
    }

    .network-card {
        padding: 20px;
    }

    .network-card__intro {
        align-items: flex-start;
    }

    .network-card__logo {
        width: 52px;
        height: 52px;
    }

    .network-status {
        width: min(320px, calc(100vw - 40px));
        margin-top: 18px;
        grid-template-columns: 1fr;
    }

    .network-status__item {
        padding: 8px 10px;
    }

    .network-status__item + .network-status__item {
        border-top: 1px solid rgba(0, 0, 0, 0.09);
        border-left: 0;
    }

    .network-status__label {
        margin-bottom: 3px;
        font-size: 0.58rem;
    }

    .network-status__value {
        font-size: 0.76rem;
    }

    .network-status__meta {
        margin-top: 2px;
        font-size: 0.56rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    #notes-grid {
        grid-template-columns: 1fr;
    }

    .note-card__footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .how-we-work-card {
        align-items: flex-start !important;
        flex-direction: column !important;
        flex-wrap: wrap !important;
    }

    .contact-card {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .how-we-work-image {
        flex-shrink: 1 !important;
        max-width: 100% !important;
        width: 100%;
    }

    .how-we-work-photo {
        height: auto !important;
        max-height: none !important;
        width: 100% !important;
    }

    .how-we-work-image.how-we-work-image--round {
        width: min(180px, 100%) !important;
        height: auto;
        max-width: 180px !important;
        margin: 0 auto;
        aspect-ratio: 1;
        flex-shrink: 0 !important;
    }

    .how-we-work-image--round .how-we-work-photo {
        height: 100% !important;
    }

    .engagement-options-card .how-we-work-image {
        max-width: 100% !important;
        width: 100% !important;
    }

    .engagement-options-image-placeholder {
        min-height: 180px !important;
        width: 100% !important;
    }

    .nostr-card {
        position: relative;
        width: 100%;
        padding-top: 18px;
    }

    .nostr-card__link {
        display: block;
        width: 100%;
    }

    .nostr-card__logo {
        position: absolute;
        top: 16px;
        right: 16px;
        width: 48px;
        margin-left: 0;
    }

    .nostr-card__text {
        width: 100%;
        padding-top: 64px;
    }

    .nostr-card__text h3 {
        margin-top: 0;
    }

    .topbar {
        /*height: 21%;*/
        /*height: 100%;*/
    }

    #hamburger-button {
        opacity: 1;
        display: block;
        cursor: pointer;
        background: none;
        border: none;
        margin: 0 0 0 80%;

        width: 40px; /* Set the button's width */
        height: 40px; /* Set the button's height */
        padding: 4px; /* Adds space around the SVG icon */
    }

    #hamburger-button img {
        width: 100%; /* Make the image fill the button's content area */
        height: 100%;
    }

    #hamburger-menu {
        /*opacity: 0;*/
        transform: translateY(-100000000px);
        display: block;
        position: fixed;
        top: var(--topbar-height);
        left: 0;
        right: 0;
        z-index: 999;
        background: rgba(255, 255, 255, 0.95);
        height: 100%;

        padding-left: 11%;
        padding-top: 20%;
        font-size: 18pt;
        line-height: 60px;
    }

    #hamburger-menu ul {
        display: block;
    }

    #hamburger-menu ul li {
        margin: 10px 0;
    }

    .topbar a {
        display: none;
    }

    /*.scroll-down { bottom: 3.25rem; --chev-size: 88px; }*/
    /*.scroll-down { bottom: 1%; --chev-size: 88px; }*/
}

@media (max-height: 670px) {
    .scroll-down {
        bottom: 2%;
        --chev-size: 88px;
    }
}

@media (max-width: 480px) {
    .nostr-card__logo {
        top: 12px;
        right: 12px;
        width: 32px;
    }

    .nostr-card__text {
        padding-top: 44px;
    }
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.container_small {
    max-width: 800px;
    margin: 0 auto;
}

/* Shared layout utilities */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-bold {
    font-weight: bold;
}

.footer-bottom {
    padding: 20px;
}

.card--single-column {
    grid-template-columns: 1fr;
}

.card--two-column {
    grid-template-columns: 1fr 1fr;
}

.list-reset {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.principles-heading {
    margin-bottom: 18px;
    text-align: left;
}

.principles-title {
    font-size: 1.2rem;
    font-weight: bold;
}

.principles-copy .principles-privacy {
    margin: 0 0 22px;
}

.principles-copy .principles-subtitle {
    margin: 0 0 12px;
    color: var(--logo-ring-green);
    font-family: var(--heading-font);
    font-size: 1rem;
    font-weight: 600;
}

.principles-copy {
    padding: 12px;
    text-align: left;
}

.principles-copy .list-reset li + li {
    margin-top: 1em;
}

.discovery-actions {
    margin-top: 1px;
}

.contained-image-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.contained-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.product-image--small {
    max-width: 150px;
}

/* Booking Button */

.friendly-button-container {
    /* Remove text-align; not needed for Flexbox centering */
    display: flex; /* Enable Flexbox on the container */
    justify-content: center; /* Center child elements horizontally */
    margin-bottom: 50px;
    gap: 20px; /* Adjust this value to your desired gap size */
}

.friendly-button {
    padding: 12px 24px;
    font-size: 16px;
    font-family: var(--body-font);
    color: #fff;
    background: var(--brand-orange-shine);
    border: none;
    border-radius: 10px; /* Rounded corners */
    cursor: pointer;

    /* Shadow for depth */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

    /* Smooth transitions for hover effects */
    transition:
        filter 0.3s ease,
        box-shadow 0.3s ease;
}

.friendly-button:hover {
    filter: brightness(0.94);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.friendly-button:active {
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

.threat-alerts-cta {
    justify-content: flex-start;
}

.threat-alerts-cta__button {
    align-items: center;
    background: var(--brand-orange-shine);
    border: none;
    border-radius: 6px;
    box-shadow: var(--brand-orange-shadow);
    color: #fff;
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    padding: 8px 13px;
}

.threat-alerts-cta__button:hover {
    box-shadow: var(--brand-orange-shadow);
    filter: brightness(0.94);
}

.threat-alerts-cta__button:active {
    box-shadow: inset 0 1px 2px rgba(207, 95, 8, 0.18);
}

.offerings-intro {
    overflow: hidden;
}

.offerings-photo {
    display: block;
    width: 100%;
    border-radius: 4px;
    object-fit: cover;
}

.offerings-list {
    display: grid;
    gap: 14px;
}

.offering-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 20px;
    padding: 24px;
    border-color: #d6d6d6;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}

.offering-card__number {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 2px;
    color: var(--brand-green);
    font-family: var(--heading-font);
    font-size: 1.55rem;
    line-height: 1;
}

.offering-card__content {
    padding-left: 20px;
    border-left: 1px solid #dedede;
}

.offering-card__eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #6b6b6b;
    font-family: system-ui, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    line-height: 1.2;
    text-transform: uppercase;
}

.offering-card h3 {
    margin-bottom: 8px;
    color: #222;
    font-size: 1.22rem;
}

.offering-card p {
    color: #3f3f3f;
    font-size: 1rem;
    line-height: 1.62;
    text-align: left;
}

.offering-details {
    margin-top: 20px;
    border-top: 1px solid #dedede;
}

.offering-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 14px;
    color: var(--brand-green);
    cursor: pointer;
    font-family: system-ui, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    list-style: none;
}

.offering-details summary::-webkit-details-marker {
    display: none;
}

.offering-details summary:hover {
    color: var(--brand-green-dark);
}

.offering-details__icon {
    display: inline-grid;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    place-items: center;
    border: 1px solid rgba(105, 168, 91, 0.42);
    border-radius: 50%;
    background: var(--brand-green-soft);
    line-height: 1;
}

.offering-details__icon::before {
    content: "+";
    font-size: 1.1rem;
    font-weight: 500;
}

.offering-details[open] .offering-details__icon::before {
    content: "−";
}

.offering-details__body {
    padding-top: 20px;
}

.offering-details__body h4 {
    margin: 0 0 14px;
    color: #222;
    font-family: var(--heading-font);
    font-size: 1.08rem;
    font-weight: 600;
}

.offering-modules {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    counter-reset: module;
    list-style: none;
}

.offering-modules li {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    column-gap: 12px;
    counter-increment: module;
}

.offering-modules li::before {
    content: counter(module);
    display: grid;
    grid-row: 1 / span 2;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 50%;
    background: var(--brand-green-soft);
    color: var(--brand-green-dark);
    font-family: system-ui, sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
}

.offering-modules .offering-module--expanded::before {
    grid-row: 1 / span 3;
}

.offering-modules strong,
.offering-modules span {
    grid-column: 2;
}

.offering-modules strong {
    color: #292929;
    line-height: 1.35;
}

.offering-modules span {
    margin-top: 2px;
    color: #555;
    font-size: 0.92rem;
    line-height: 1.5;
}

.offering-modules .offering-module__detail {
    grid-column: 2;
    margin: 8px 0 0;
    color: #555;
    font-size: 0.92rem;
    line-height: 1.5;
}

.offering-card .offering-details__note {
    margin: 18px 0 0;
    padding: 14px 16px;
    border-radius: 6px;
    background: #f9f9f9;
    color: #444;
    font-size: 0.92rem;
}

.offerings-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
    padding: 18px 20px;
    border-radius: 8px;
    background: #f9f9f9;
}

.offerings-cta p {
    margin: 0;
    color: #333;
    font-weight: 600;
}

.offerings-cta .friendly-button {
    flex-shrink: 0;
    border-radius: 6px;
    box-shadow: var(--brand-orange-shadow);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.1;
    padding: 10px 16px;
}

@media (max-width: 600px) {
    .offering-card {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 20px;
    }

    .offering-card__number {
        justify-content: flex-start;
    }

    .offering-card__content {
        padding-top: 12px;
        padding-left: 0;
        border-top: 1px solid #dedede;
        border-left: 0;
    }

    .offerings-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

.service-card-grid {
    align-items: stretch;
    margin-bottom: 0;
}

.service-card {
    display: flex;
    flex-direction: column;
}

.service-card h3 {
    margin-bottom: 12px;
}

.service-card p {
    flex-grow: 1;
}

.service-card__button {
    align-self: flex-start;
    margin-top: 18px;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 5px;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: var(--brand-orange-shadow);
    transition:
        filter 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.service-card__button:hover,
.service-card__button:active {
    filter: brightness(0.94);
    box-shadow: var(--brand-orange-shadow);
}

.engagement-options-card .service-card {
    background: #fff;
}

.engagement-options-card .how-we-work-image {
    display: flex;
    justify-content: center;
}

.engagement-options-image-placeholder {
    display: grid;
    place-items: center;
    min-height: 220px;
    width: min(260px, 100%);
    border: 1px dashed rgba(0, 0, 0, 0.22);
    border-radius: 4px;
    background: #fff;
    color: #666;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
}

.nostr-card {
    width: 100%;
}

.nostr-card__link {
    display: inline-flex;
    align-items: center;
    flex-direction: row-reverse;
    color: inherit;
    text-decoration: none;
    width: 100%;
}

.nostr-card__logo {
    width: 120px;
    border-radius: 0;
    margin-left: 20px;
}

.nostr-card__cta {
    display: inline-flex;
    margin-top: 14px;
    color: var(--brand-green);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 800px) {
    .nostr-card__logo {
        display: none;
    }

    .nostr-card__text {
        padding-top: 0;
    }
}

body.service-modal-open {
    overflow: hidden;
}

.service-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.service-modal.is-open {
    display: block;
}

.service-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.service-modal__panel {
    position: relative;
    width: min(680px, calc(100% - 32px));
    max-height: calc(100vh - 64px);
    margin: 32px auto;
    padding: 26px;
    overflow: auto;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}

.service-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.service-modal__header h3 {
    margin: 0;
}

.service-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    background: var(--brand-orange-shine);
    color: #fff;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    box-shadow: var(--brand-orange-shadow);
    cursor: pointer;
}

.service-modal__status {
    margin: 0 0 18px;
    color: #333;
    font-size: 1.05rem;
    font-weight: 700;
}

.service-modal__template h4 {
    margin: 0 0 10px;
}

.service-modal__template ul {
    list-style: disc;
    margin: 0;
    padding-left: 22px;
}

.service-modal__template li {
    margin-bottom: 10px;
}

/* Footer */
footer {
    background-color: #f1f1f1;
    padding: 10px 0 20px;
    /*border-top: 1px solid #222;*/
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    margin: 0 5.5%;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #222;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #222;
    transition: color 0.3s;
    /*text-decoration: none;*/
}

.footer-col a:hover {
    color: #999;
}

.footer-bottom {
    text-align: center;
    /*border-top: 1px solid #222;*/
    padding-top: 20px;
    color: #222;
    font-size: 0.9rem;
}

/* Style for the double-wide card on index page */
@media (min-width: 768px) {
    /* Make the card span two columns */
    .grid .double-wide-card {
        grid-column: span 2; /* Span two columns in the grid */
        display: grid;
        grid-template-columns: 1fr 1fr; /* Create two equal columns inside the card */
        gap: var(--gap); /* Use the global gap variable for spacing */
    }

    /* Adjust existing card hover to prevent issues with new layout */
    .grid .double-wide-card:hover {
        transform: scale(1); /* Disable scale effect for this card */
    }

    /* Container for the left side of the card */
    .double-wide-card .card-left {
        text-align: left;
        padding: var(--card-pad);
    }

    /* Container for the right side of the card */
    .double-wide-card .card-right {
        text-align: left;
        padding: var(--card-pad);
    }
}

/*scroll down index middle*/
.container-scroll-down {
    position: relative; /* Make this the positioning context for the child */
    height: 100px; /* Give it a height equal to the viewport */
    /* If you don't want a full-height container, you can set a fixed height like 'height: 500px;' */
}

/*Video container*/
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio (9/16 = 0.5625) */
    height: 0;
    overflow: hidden;
    width: 100%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Style for links within the content-with-image container */
.content-with-image a {
    text-decoration: none; /* Remove the default underline */
    font-weight: bold; /* Make the link text bold */
    color: var(--brand-green-dark);
}

/* Add an underline on hover for better user feedback */
.content-with-image a:hover {
    text-decoration: underline; /* Add underline only when hovering */
}

/* Contact page */
.contact-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: center;
    max-width: 680px;
    margin: 0 auto 54px;
    padding: 28px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.055);
    overflow: hidden;
}

.contact-card__details {
    min-width: 0;
    text-align: left;
}

.contact-card__details h2 {
    margin: 0 0 12px;
    color: #111;
    font-size: 1.5rem;
}

.contact-card__details p {
    margin: 0 0 18px;
    color: #333;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.contact-process {
    margin: 24px 0 28px;
}

.contact-process h2 {
    margin-bottom: 14px;
    color: var(--brand-green-dark);
    font-size: 1.05rem;
}

.contact-card__details .private-contact__steps p {
    margin: 0;
}

.contact-form {
    display: grid;
    gap: 16px;
}

.contact-form__field {
    display: grid;
    gap: 6px;
}

.contact-form__field label {
    color: #222;
    font-size: 0.9rem;
    font-weight: 700;
}

.contact-form__field input,
.contact-form__field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(71, 127, 62, 0.38);
    border-radius: 6px;
    background: #fff;
    color: #111;
    font: inherit;
    line-height: 1.45;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.contact-form__field textarea {
    min-height: 130px;
    resize: vertical;
}

.contact-form__website {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
    border-color: var(--brand-green);
    box-shadow: 0 0 0 3px rgba(105, 168, 91, 0.16);
    outline: none;
}

.contact-card__details .contact-form__privacy {
    margin: 0;
    padding: 10px 12px;
    border-left: 3px solid var(--brand-green);
    background: var(--brand-green-soft);
    color: #3f463e;
    font-size: 0.8rem;
    line-height: 1.5;
}

.contact-form__submit {
    width: fit-content;
    padding: 9px 15px;
    border: none;
    border-radius: 6px;
    background: var(--brand-green-shine);
    box-shadow: var(--brand-green-shadow);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    transition:
        filter 0.2s ease,
        box-shadow 0.2s ease;
}

.contact-form__submit:hover {
    filter: brightness(0.94);
}

.contact-form__submit:disabled {
    cursor: wait;
    filter: grayscale(0.25);
    opacity: 0.72;
}

.contact-card__details .contact-form__status {
    margin: 0;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.45;
}

.contact-card__details .contact-form__status--success {
    border: 1px solid rgba(71, 127, 62, 0.35);
    background: var(--brand-green-soft);
    color: var(--brand-green-dark);
}

.contact-card__details .contact-form__status--error {
    border: 1px solid rgba(166, 45, 45, 0.28);
    background: #fff2f2;
    color: #8b2525;
}

@media (max-width: 768px) {
    .contact-card {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 22px;
    }

}

@media (max-width: 480px) {
    .contact-content {
        padding: 1.25rem;
    }

    .contact-card {
        padding: 18px;
    }

    .contact-form__submit {
        width: 100%;
    }
}

/* Security Blog page */
:root {
    --hub-orange: #69a85b;
    --hub-orange-soft: #eff8ed;
    --hub-ink: #111;
    --hub-muted: #5f6673;
    --hub-line: rgba(0, 0, 0, 0.08);
    --hub-panel: #f9f9f9;
    --hub-panel-strong: #f1f1f1;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.knowledge-hero {
    margin-bottom: 40px;
    text-align: center;
}

.knowledge-hero h1 {
    color: #000;
    font-size: 26px;
    font-weight: bold;
    margin: 40px 0;
}

.knowledge-intro-card {
    margin: 0 0 24px;
    padding: 24px;
    border: 1px solid var(--hub-line);
    border-radius: 8px;
    background: var(--hub-panel);
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.055);
}

.knowledge-intro-card p {
    max-width: 980px;
    margin: 0;
    color: #242424;
    font-size: 1.02rem;
    line-height: 1.7;
    text-align: left;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 46px;
}

.article-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(17, 17, 17, 0.09);
    border-radius: 8px;
    padding: 22px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.055);
}

.article-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.article-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 8px;
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-radius: 5px;
    background: #fff;
    color: var(--hub-muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.article-card h3 {
    margin: 0 0 10px;
    color: var(--hub-ink);
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.28;
}

.article-card__preview,
.article-card__body {
    color: #343a40;
    font-size: 0.98rem;
    line-height: 1.65;
}

.article-card__preview {
    margin: 0;
}

.article-card > .article-card__body {
    display: none;
}

.article-card__body p {
    margin: 0 0 12px;
}

.article-card__body ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.article-card__body li {
    position: relative;
    padding-left: 20px;
}

.article-card__body li::before {
    position: absolute;
    left: 0;
    color: var(--hub-orange);
    font-weight: 800;
    content: ">";
}

.article-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

.article-card__status {
    color: var(--hub-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.78rem;
}

.article-enter,
.article-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    background: var(--brand-green-shine);
    color: #fff;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: var(--brand-green-shadow);
    cursor: pointer;
    transition:
        filter 0.2s ease,
        box-shadow 0.2s ease;
}

.article-enter:hover,
.article-back:hover {
    color: #fff;
    filter: brightness(0.94);
}

.article-reader {
    display: none;
    scroll-margin-top: calc(var(--topbar-height) + 24px);
    margin: 0 0 46px;
    border: 1px solid var(--hub-line);
    border-radius: 8px;
    padding: 26px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.055);
}

.article-reader:target {
    display: block;
}

.article-reader__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--hub-line);
}

.article-reader__title {
    margin: 0;
    color: var(--hub-ink);
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.18;
}

.article-reader__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.article-reader__preview {
    margin: 0 0 18px;
    color: #333;
    font-size: 1.05rem;
    line-height: 1.65;
}

.article-reader__body {
    color: #333;
    font-size: 1rem;
    line-height: 1.7;
}

.article-reader__body h3,
.article-reader__body h4 {
    color: var(--hub-ink);
    line-height: 1.25;
}

.article-reader__body h3 {
    margin: 28px 0 10px;
    font-size: 1.25rem;
}

.article-reader__body h4 {
    margin: 20px 0 8px;
    font-size: 1.06rem;
}

.article-reader__body p {
    margin: 0 0 14px;
}

.article-reader__body ul,
.article-reader__body ol {
    margin: 0 0 16px 22px;
    padding: 0;
}

.article-reader__body li {
    margin-bottom: 8px;
}

.technical-details {
    margin-top: 22px;
}

.technical-details summary {
    align-items: center;
    color: var(--hub-ink);
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    gap: 8px;
    list-style: none;
}

.technical-details summary::-webkit-details-marker {
    display: none;
}

.technical-details summary::before {
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid #777;
    content: "";
    display: inline-block;
    transition: transform 0.2s ease;
}

.technical-details[open] summary::before {
    transform: rotate(180deg);
}

.technical-details p {
    margin-top: 10px;
}

.article-reader__image-wrap {
    float: right;
    width: 25%;
    min-width: 110px;
    max-width: 160px;
    margin: 0 0 14px 18px;
}

.article-reader__image-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    color: inherit;
    cursor: zoom-in;
    font: inherit;
    text-align: center;
}

.article-reader__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.12);
    transition:
        filter 0.2s ease,
        transform 0.2s ease;
}

.article-reader__image-trigger:hover .article-reader__image,
.article-reader__image-trigger:focus-visible .article-reader__image {
    filter: brightness(0.94);
    transform: translateY(-1px);
}

.article-reader__image-hint {
    display: block;
    margin-top: 6px;
    color: #555;
    font-size: 0.82rem;
    line-height: 1.3;
    text-decoration: underline;
}

.article-image-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
    padding: 24px;
    background: rgba(0, 0, 0, 0.72);
}

.article-image-modal.is-open {
    display: grid;
    place-items: center;
}

.article-image-modal__button {
    display: grid;
    gap: 10px;
    justify-items: center;
    max-width: min(92vw, 760px);
    max-height: calc(100vh - 48px);
    padding: 0;
    border: none;
    background: transparent;
    color: #fff;
    cursor: zoom-out;
    font: inherit;
}

.article-image-modal__button img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 96px);
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.article-image-modal__button span {
    font-size: 0.95rem;
    font-weight: 700;
}

body.article-modal-open {
    overflow: hidden;
}

.article-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.article-modal.is-open {
    display: block;
}

.article-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.article-modal__panel {
    position: relative;
    width: min(760px, calc(100% - 32px));
    max-height: calc(100vh - 64px);
    margin: 32px auto;
    padding: 26px;
    overflow: auto;
    background: #fff;
    border: 1px solid var(--hub-line);
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}

.article-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--hub-line);
}

.article-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    background: var(--brand-green-shine);
    color: #fff;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    box-shadow: var(--brand-green-shadow);
    cursor: pointer;
}

.article-modal__close:hover {
    filter: brightness(0.94);
}

.knowledge-footer-bottom {
    padding: 20px;
}

#hamburger-menu:target {
    opacity: 1;
    transform: translateY(0) !important;
}

@media (max-width: 800px) {
    .article-grid {
        grid-template-columns: 1fr;
    }

    .article-reader__header,
    .article-modal__header {
        flex-direction: column;
    }
}

/* Shared persisted theme for non-homepage content pages. */
body.theme-aware {
    --page-background: #0b140e;
    --page-surface: #16191b;
    --page-surface-raised: #1a1e21;
    --page-text: #d2d6d9;
    --page-heading: #e4e7e9;
    --page-muted: #959da2;
    --page-line: rgba(190, 197, 202, 0.2);
    --page-nav: rgba(17, 22, 19, 0.96);
    --page-footer: #080c09;
    --hub-ink: var(--page-heading);
    --hub-muted: var(--page-muted);
    --hub-line: var(--page-line);
    --hub-panel: var(--page-surface);
    --hub-panel-strong: var(--page-surface-raised);
    background: var(--page-background);
    color: var(--page-text);
    color-scheme: dark;
}

html.theme-light body.theme-aware {
    --page-background: #fff;
    --page-surface: #fff;
    --page-surface-raised: #f9f9f9;
    --page-text: #333;
    --page-heading: #111;
    --page-muted: #5f6673;
    --page-line: rgba(0, 0, 0, 0.08);
    --page-nav: rgba(255, 255, 255, 0.95);
    --page-footer: #f1f1f1;
    color-scheme: light;
}

.theme-aware main.content {
    background: var(--page-background);
    color: var(--page-text);
}

.theme-aware .topbar {
    border-bottom: 1px solid var(--page-line);
    background: var(--page-nav);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
}

.theme-aware .topbar a,
.theme-aware #hamburger-menu a {
    color: var(--page-text);
}

.theme-aware #hamburger-menu {
    background: var(--page-nav);
    color: var(--page-text);
}

.theme-aware #hamburger-button img {
    filter: invert(1);
}

html.theme-light .theme-aware #hamburger-button img {
    filter: none;
}

.theme-aware .highlighted-text,
.theme-aware main h1,
.theme-aware main h2,
.theme-aware main h3,
.theme-aware main h4,
.theme-aware main strong {
    color: var(--page-heading);
}

.theme-aware main p,
.theme-aware main li,
.theme-aware .knowledge-intro-card p,
.theme-aware .article-card__preview,
.theme-aware .article-card__body,
.theme-aware .article-reader__preview,
.theme-aware .article-reader__body,
.theme-aware .article-reader__image-hint,
.theme-aware .contact-card__details p,
.theme-aware .contact-form__field label {
    color: var(--page-text);
}

.theme-aware main.content a:not(.friendly-button):not(.join-button):not(.article-back):not(.article-enter) {
    color: var(--brand-green-light);
}

.theme-aware .card,
.theme-aware .contact-card,
.theme-aware .knowledge-intro-card,
.theme-aware .article-card,
.theme-aware .article-reader,
.theme-aware .article-modal__panel {
    border-color: var(--page-line);
    background: var(--page-surface);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
    color: var(--page-text);
}

.theme-aware .article-pill,
.theme-aware .contact-form__field input,
.theme-aware .contact-form__field textarea {
    border-color: var(--page-line);
    background: var(--page-surface-raised);
    color: var(--page-text);
}

.theme-aware .contact-card__details .contact-form__privacy,
.theme-aware .contact-card__details .contact-form__status--success {
    background: rgba(105, 168, 91, 0.12);
    color: var(--page-text);
}

.theme-aware .contact-card__details .contact-form__status--error {
    background: rgba(166, 45, 45, 0.16);
    color: var(--page-text);
}

.theme-aware .article-reader__header,
.theme-aware .article-modal__header {
    border-color: var(--page-line);
}

.theme-aware .technical-details summary {
    color: var(--page-heading);
}

.theme-aware footer {
    border-top: 1px solid var(--page-line);
    background: var(--page-footer);
    color: var(--page-muted);
}

.theme-aware .footer-col h4,
.theme-aware .footer-col a,
.theme-aware .footer-bottom,
.theme-aware footer p {
    color: var(--page-text);
}

html.theme-light .theme-aware .card,
html.theme-light .theme-aware .contact-card,
html.theme-light .theme-aware .knowledge-intro-card,
html.theme-light .theme-aware .article-card,
html.theme-light .theme-aware .article-reader,
html.theme-light .theme-aware .article-modal__panel {
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.055);
}
