html {
    background-color: var(--helios-navy);
}

:root {
    --helios-navy: #0d1c30;
    --helios-navy-deep: #03162a;
    --helios-gold: #b78b3e;
    --helios-ivory: #f7f2e7;
    --helios-mist: #edf5f8;
    --helios-ink: #13202c;
    --helios-shadow: 0 24px 60px rgba(8, 27, 47, 0.16);
    --helios-radius: 1.75rem;
    --admin-bar-offset: 0px;
}

body {
    min-height: 100vh;
    height: initial;
    font-family: "Roboto", Arial, sans-serif;
    color: var(--helios-ink);
    background-color: var(--helios-navy);
    background:
        radial-gradient(circle at top center, rgba(247, 242, 231, 0.58), rgba(247, 242, 231, 0) 32%),
        linear-gradient(180deg, rgba(247, 242, 231, 0.46) 0%, #f8f5ef 26%, #ffffff 54%, #f5f1e8 100%);
}

/*header {*/
/*    opacity: 0.9;*/
/*    backdrop-filter: blur(4px);*/
/*}*/

h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

@media (min-width: 992px) {
    .w-lg-60 {
        width: 60% !important;
    }
}

.masonic-text {
    font-weight: bold;
    text-shadow: 0 4px 24px rgba(4, 15, 30, 0.28);
}

.scc {
    text-shadow: 0 2px 4px rgba(15, 11, 49, 0.6), 0 -2px 2px rgba(60, 59, 54, 0.2);
}

.bg-home {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: clamp(48rem, 94vh, 70rem);
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.bg-img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    transform: translate(-50%, -50%);
}

/* Overlay effect */
.bg-home::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(180deg, rgba(5, 17, 31, 0.7) 0%, rgba(5, 17, 31, 0.72) 100%),
        linear-gradient(90deg, rgba(5, 17, 31, 0.88) 0%, rgba(5, 17, 31, 0.72) 35%, rgba(5, 17, 31, 0.34) 62%, rgba(5, 17, 31, 0.28) 100%);
    z-index: 1;
}

.text-blue {
    color: #003366;
}

.bg-blue {
    background-color: var(--helios-navy);
}

.bg-light-blue {
    background-color: var(--helios-mist);
}

.text-justify {
    text-align: justify;
    text-justify: inter-word;
}


.lora {
    font-family: "Lora", serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}

.mason-font {
    font-family: "Cinzel", "Times New Roman", serif;
    letter-spacing: 0.04em;
}

.min-vh-50 {
    min-height: 50vh;
}

.hero-shell {
    position: relative;
    padding-top: 1.6rem;
    padding-bottom: 2.2rem;
}

.hero-shell--home {
    isolation: isolate;
    overflow: hidden;
    background-color: var(--helios-navy-deep);
    padding-bottom: 0;
}

.hero-shell--home::before,
.hero-shell--home::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-shell--home::before {
    z-index: -2;
    background:
        linear-gradient(180deg, rgba(3, 22, 42, 0.18), rgba(3, 22, 42, 0.18)),
        url("/static/img/masonic-bg.webp") center center / cover no-repeat;
    transform: scale(1.02);
}

.hero-shell--home::after {
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(5, 17, 31, 0.64) 0%, rgba(5, 17, 31, 0.76) 100%),
        linear-gradient(90deg, rgba(5, 17, 31, 0.9) 0%, rgba(5, 17, 31, 0.78) 34%, rgba(5, 17, 31, 0.42) 62%, rgba(5, 17, 31, 0.3) 100%);
}

.hero-container {
    position: relative;
    z-index: 2;
    min-height: 72vh;
    display: flex;
    align-items: center;
}

.hero-shell--home .hero-container {
    min-height: clamp(42rem, 100vh, 56rem);
    padding-top: 2.9rem;
}

.hero-container--wide {
    width: 100%;
}

.hero-copy {
    position: relative;
    max-width: 60rem;
    margin-left: 6vw;
    padding: 3.2rem 0 3.4rem;
}

.hero-copy--home {
    max-width: 88rem;
    margin-left: auto;
    margin-right: auto;
    transform: translateY(-1.9rem);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.82rem;
}

.hero-kicker-strong {
    font-size: 0.82rem;
    padding: 0.55rem 0.95rem;
    color: #10253d;
    background: rgba(255, 255, 255, 0.46);
    border-color: rgba(16, 37, 61, 0.12);
    box-shadow: 0 4px 18px rgba(255, 255, 255, 0.18);
}

.hero-kicker--home {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(5, 17, 31, 0.58);
    color: #fff;
    font-family: "Poppins", "Roboto", sans-serif;
}

.hero-kicker::before {
    content: "";
    width: 0.95rem;
    height: 0.95rem;
    background-color: #e1a93e;
    -webkit-mask: url("/static/img/fm_mark.svg") center / contain no-repeat;
    mask: url("/static/img/fm_mark.svg") center / contain no-repeat;
    opacity: 0.92;
}

.hero-title-glotx {
    max-width: 11ch;
    color: #08192f;
    font-family: "Poppins", "Roboto", sans-serif;
    font-size: clamp(3.6rem, 6.3vw, 5.7rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.045em;
    text-wrap: balance;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.32);
}

.hero-title-glotx--home {
    max-width: 15ch;
    margin-top: 1.4rem;
    color: #fff;
    font-size: clamp(4rem, 7.2vw, 6.8rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
    text-align: center;
    text-shadow: 0 2px 10px rgba(3, 10, 20, 0.38);
}

.hero-title-glow {
    text-shadow:
        0 1px 0 rgba(255, 247, 220, 0.25),
        0 3px 14px rgba(2, 8, 18, 0.42),
        0 0 14px rgba(183, 139, 62, 0.2);
}

.hero-lead-glotx {
    max-width: 34rem;
    margin-bottom: 0.9rem;
    color: #10253d;
    font-family: "Poppins", "Roboto", sans-serif;
    font-size: clamp(1.65rem, 1.1rem + 0.8vw, 2.2rem);
    font-weight: 600;
    line-height: 1.22;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.24);
}

.hero-lead-glotx--home {
    max-width: 58rem;
    margin-bottom: 1rem;
    color: rgba(233, 238, 245, 0.92);
    font-size: clamp(1.45rem, 1rem + 1.05vw, 2.25rem);
    line-height: 1.18;
    text-align: center;
    text-shadow: 0 2px 10px rgba(3, 10, 20, 0.36);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-helios {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 12rem;
    padding: 0.95rem 1.4rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.btn-helios:hover {
    transform: translateY(-2px);
}

.btn-helios-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--helios-gold), #8f6a2c);
    box-shadow: 0 16px 32px rgba(183, 139, 62, 0.28);
}

.btn-helios-primary:hover {
    color: #fff;
    background: linear-gradient(135deg, #c79d51, #8f6a2c);
}

.btn-helios-secondary {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
}

.btn-helios-secondary:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

.btn-helios-form {
    min-width: 11.5rem;
    color: var(--helios-ivory);
    background: #1b3550;
    border: 1px solid #2b4f73;
    border-radius: 0.8rem;
    box-shadow: 0 10px 22px rgba(8, 27, 47, 0.14);
}

.btn-helios-form:hover {
    color: #fff;
    background: #234262;
    border-color: #335f89;
    transform: translateY(-1px);
}

.btn-helios-form:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(183, 139, 62, 0.22), 0 10px 22px rgba(8, 27, 47, 0.14);
}

.auth-shell .btn-helios {
    border: 1px solid var(--helios-gold);
    border-radius: 0.9rem;
    box-shadow: 0 10px 24px rgba(8, 27, 47, 0.14);
}

.auth-shell .btn-helios-primary {
    color: #fff;
    background: #b78b3e;
    border-color: #b78b3e;
    box-shadow: 0 12px 26px rgba(183, 139, 62, 0.24);
}

.auth-shell .btn-helios-primary:hover {
    color: #fff;
    background: #a67d35;
    border-color: #a67d35;
}

.auth-shell .btn-helios-outline {
    color: #1a2d43;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid #c7a66c;
}

.auth-shell .btn-helios-outline:hover {
    color: #0f2136;
    background: rgba(255, 255, 255, 0.84);
    border-color: #b78b3e;
}

.auth-shell .btn-facebook,
.auth-shell .btn-google {
    border: 1px solid #c7a66c !important;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.68);
    color: #13202c;
    box-shadow: 0 8px 22px rgba(8, 27, 47, 0.1);
}

.auth-shell .btn-facebook:hover,
.auth-shell .btn-google:hover {
    background: rgba(255, 255, 255, 0.84);
    border-color: #b78b3e !important;
    color: #0f2136;
}

.hero-support {
    max-width: 39rem;
    margin-bottom: 0;
    color: rgba(8, 25, 47, 0.88);
    font-family: "Poppins", "Roboto", sans-serif;
    font-size: 1.08rem;
    line-height: 1.7;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

.hero-support--home {
    max-width: 62rem;
    color: rgba(214, 224, 236, 0.88);
    line-height: 1.75;
    text-align: center;
    text-shadow: 0 2px 8px rgba(3, 10, 20, 0.34);
}

.hero-actions-glotx {
    align-items: center;
    gap: 1.25rem;
    margin-top: 2.2rem;
}

.hero-actions-glotx--home {
    justify-content: center;
}

.hero-cta-glotx {
    min-width: 15rem;
    padding: 1.05rem 2rem;
    border: 1px solid #d6b06a;
    border-radius: 999px;
    font-family: "Poppins", "Roboto", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 16px 36px rgba(183, 139, 62, 0.26);
}

.hero-cta-glotx--home {
    color: #111;
    background: #e1a93e;
}

.hero-link-secondary {
    color: #08192f;
    font-family: "Poppins", "Roboto", sans-serif;
    text-decoration: none;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.18);
}

.hero-link-secondary--home {
    color: #fff;
}

.hero-link-secondary--home:hover {
    color: #e1a93e;
    text-decoration: none;
}

.hero-link-secondary:not(.hero-link-secondary--home):hover {
    color: #000;
    text-decoration: underline;
}

.hero-gallery-card,
.history-card,
.history-point {
    border: 1px solid rgba(8, 42, 76, 0.08);
    border-radius: var(--helios-radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--helios-shadow);
}

.hero-gallery-card {
    overflow: hidden;
    padding: 0.75rem;
}

.hero-gallery-card img {
    width: 100%;
    height: 100%;
    min-height: 16rem;
    object-fit: cover;
    border-radius: calc(var(--helios-radius) - 0.55rem);
}

.section-shell {
    position: relative;
    padding-top: clamp(3.25rem, 4vw, 4.5rem);
    padding-bottom: clamp(3.25rem, 4vw, 4.5rem);
    isolation: isolate;
}

.section-shell > .container {
    position: relative;
    z-index: 1;
}

.section-shell + .section-shell {
    padding-top: clamp(2.4rem, 3vw, 3.25rem);
}

.story-intro {
    max-width: 42rem;
    margin-bottom: 2rem;
}

.story-intro.text-center {
    margin-left: auto;
    margin-right: auto;
}

.widget-card-body {
    padding: clamp(1.15rem, 2vw, 2rem) !important;
}

.lux-band::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.lux-band--glass::before {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(248, 245, 239, 0.72) 18%, rgba(247, 242, 231, 0.48) 100%);
}

.lux-band--parchment::before {
    background:
        radial-gradient(circle at top left, rgba(246, 235, 208, 0.58), rgba(246, 235, 208, 0) 32%),
        linear-gradient(180deg, rgba(250, 244, 231, 0.72) 0%, rgba(244, 235, 216, 0.56) 100%);
}

.lux-band--stone::before {
    background:
        radial-gradient(circle at top right, rgba(224, 233, 227, 0.42), rgba(224, 233, 227, 0) 28%),
        linear-gradient(180deg, rgba(237, 242, 238, 0.68) 0%, rgba(220, 229, 223, 0.52) 100%);
}

.section-title {
    margin-bottom: 1rem;
}

.section-intro {
    max-width: 46rem;
    color: rgba(19, 32, 44, 0.74);
}

.lux-section {
    position: relative;
    border-radius: calc(var(--helios-radius) + 0.75rem);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 28px 72px rgba(10, 19, 28, 0.12),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lux-section::before {
    content: "";
    position: absolute;
    inset: 1rem;
    border-radius: calc(var(--helios-radius) + 0.15rem);
    pointer-events: none;
}

.lux-section--glass {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 24%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
    border-color: rgba(255, 255, 255, 0.18);
}

.lux-section--glass::before {
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.lux-section--parchment {
    background:
        radial-gradient(circle at top left, rgba(255, 244, 214, 0.34), rgba(255, 244, 214, 0) 28%),
        linear-gradient(135deg, rgba(255, 250, 240, 0.58), rgba(245, 235, 214, 0.42) 52%, rgba(236, 223, 197, 0.5));
    border-color: rgba(120, 86, 34, 0.16);
}

.lux-section--parchment::before {
    border: 1px solid rgba(120, 86, 34, 0.1);
}

.lux-section--stone {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 24%),
        linear-gradient(135deg, rgba(223, 231, 226, 0.26), rgba(199, 210, 202, 0.16));
    border-color: rgba(79, 107, 99, 0.16);
}

.lux-section--stone::before {
    border: 1px solid rgba(79, 107, 99, 0.1);
}

.lux-card {
    box-shadow:
        0 18px 42px rgba(10, 19, 28, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.lux-card--parchment {
    background:
        radial-gradient(circle at top left, rgba(255, 248, 231, 0.62), rgba(255, 248, 231, 0) 34%),
        linear-gradient(180deg, rgba(255, 252, 245, 0.88), rgba(240, 229, 205, 0.8));
    border-color: rgba(120, 86, 34, 0.18);
}

.lux-card--stone {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0) 34%),
        linear-gradient(180deg, rgba(247, 249, 247, 0.82), rgba(223, 231, 226, 0.74));
    border-color: rgba(79, 107, 99, 0.16);
}

.ancient-story {
    position: relative;
}

.ancient-story__frame {
    position: relative;
    padding: clamp(2rem, 4vw, 3.5rem);
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(255, 244, 214, 0.42), rgba(255, 244, 214, 0) 26%),
        radial-gradient(circle at bottom right, rgba(183, 139, 62, 0.08), rgba(183, 139, 62, 0) 28%),
        linear-gradient(135deg, rgba(255, 250, 240, 0.72), rgba(245, 235, 214, 0.6) 52%, rgba(236, 223, 197, 0.68));
}

.ancient-story__frame::before,
.ancient-story__frame::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.ancient-story__frame::before {
    inset: auto;
    border: 0;
    border-radius: 0;
}

.ancient-story__frame::after {
    top: -4rem;
    right: -1rem;
    width: clamp(16rem, 28vw, 26rem);
    aspect-ratio: 1;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 62%),
        url("/static/img/21664835_6512391.svg") center/contain no-repeat;
    opacity: 0.08;
    filter: sepia(1) saturate(0.7) hue-rotate(348deg);
}

.ancient-story__intro {
    position: relative;
    z-index: 1;
}

.ancient-story__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
    color: rgba(88, 58, 18, 0.9);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.ancient-story__eyebrow::before {
    content: "";
    width: 3.25rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(120, 86, 34, 0.9), rgba(120, 86, 34, 0));
}

.ancient-story__title {
    margin-bottom: 0.85rem;
    color: #3e2810;
    font-size: clamp(2rem, 1.6rem + 1.4vw, 3.2rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ancient-story__lead {
    max-width: 38rem;
    margin-bottom: 0;
    color: rgba(56, 36, 12, 0.82);
    font-size: 1.02rem;
    line-height: 1.85;
}

.ancient-story__grid {
    position: relative;
    z-index: 1;
}

.ancient-story__article {
    position: relative;
    z-index: 1;
}

.ancient-history-point {
    min-height: 100%;
    background:
        radial-gradient(circle at top left, rgba(255, 248, 231, 0.88), rgba(255, 248, 231, 0) 32%),
        linear-gradient(180deg, rgba(255, 252, 245, 0.96), rgba(240, 229, 205, 0.94));
    border: 1px solid rgba(120, 86, 34, 0.24);
    box-shadow:
        0 18px 40px rgba(55, 39, 14, 0.12),
        inset 0 0 0 1px rgba(255, 255, 255, 0.44);
}

.ancient-history-point::after {
    border-color: rgba(120, 86, 34, 0.16);
}

.history-point {
    position: relative;
    height: 100%;
    padding: clamp(1.15rem, 2vw, 2rem);
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(183, 139, 62, 0.14), rgba(183, 139, 62, 0) 34%),
        radial-gradient(circle at bottom left, rgba(8, 42, 76, 0.08), rgba(8, 42, 76, 0) 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 242, 231, 0.96));
    border: 1px solid rgba(183, 139, 62, 0.3);
    box-shadow:
        0 24px 60px rgba(8, 27, 47, 0.12),
        inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}

.history-point::before {
    content: attr(data-year);
    display: inline-block;
    margin-bottom: 0.85rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(183, 139, 62, 0.12);
    color: var(--helios-gold);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.history-point::after {
    content: "";
    position: absolute;
    inset: 0.7rem;
    border: 1px solid rgba(183, 139, 62, 0.18);
    border-radius: calc(var(--helios-radius) - 0.45rem);
    pointer-events: none;
}

.history-point .masonic-motif {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.24;
    z-index: 0;
}

.history-point .masonic-motif::before,
.history-point .masonic-motif::after {
    content: "";
    position: absolute;
}

.history-point .masonic-motif::before {
    top: 1rem;
    right: 1rem;
    width: 9rem;
    height: 9rem;
    background:
        linear-gradient(135deg, transparent 49.2%, rgba(183, 139, 62, 0.24) 49.5%, rgba(183, 139, 62, 0.24) 50.5%, transparent 50.8%),
        linear-gradient(45deg, transparent 49.2%, rgba(8, 42, 76, 0.14) 49.5%, rgba(8, 42, 76, 0.14) 50.5%, transparent 50.8%);
    border-radius: 1rem;
    transform: rotate(45deg);
}

.history-point .masonic-motif::after {
    right: 2.2rem;
    top: 2.2rem;
    width: 6.5rem;
    height: 6.5rem;
    background:
        radial-gradient(circle at 50% 50%, rgba(183, 139, 62, 0.24) 0 0.18rem, transparent 0.2rem),
        linear-gradient(180deg, rgba(183, 139, 62, 0.18), rgba(183, 139, 62, 0.02));
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    opacity: 0.8;
}

.history-point h3 {
    position: relative;
    margin-bottom: 0.85rem;
    padding-bottom: 0.8rem;
    color: var(--helios-navy-deep);
    font-family: "Cinzel", "Times New Roman", serif;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-bottom: none !important;
}

.history-point h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 5.5rem;
    height: 2px;
    background: linear-gradient(90deg, var(--helios-gold), rgba(183, 139, 62, 0.18));
}

.history-point p {
    position: relative;
    z-index: 1;
    line-height: 1.8;
}

.history-point > *:not(.masonic-motif) {
    position: relative;
    z-index: 1;
}

.history-card {
    overflow: hidden;
    border: none;
}

.history-card .rounded-5 {
    border-radius: 0 !important;
}

.history-card .p-5 {
    padding: 2rem !important;
}

.history-card p:last-child,
.history-point p:last-child {
    margin-bottom: 0;
}

.stone-history {
    background: transparent;
}

.stone-history__frame {
    position: relative;
    padding: clamp(2rem, 4vw, 3.5rem);
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 26%),
        radial-gradient(circle at bottom left, rgba(79, 107, 99, 0.18), rgba(79, 107, 99, 0) 34%),
        linear-gradient(135deg, rgba(235, 240, 236, 0.98), rgba(212, 221, 214, 0.96) 52%, rgba(191, 203, 194, 0.98));
}

.stone-history__frame::before,
.stone-history__frame::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.stone-history__frame::before {
    inset: auto;
    border: 0;
    border-radius: 0;
}

.stone-history__frame::after {
    top: -3rem;
    left: -2rem;
    width: clamp(14rem, 24vw, 22rem);
    aspect-ratio: 1;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 64%),
        url("/static/img/21664835_6512391.svg") center/contain no-repeat;
    opacity: 0.08;
    filter: grayscale(1) sepia(0.35) hue-rotate(118deg) saturate(0.75);
}

.stone-history__intro {
    position: relative;
    z-index: 1;
}

.stone-history__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.7rem;
    color: #4f6b63;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.stone-history__eyebrow::before {
    content: "";
    width: 3.25rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(79, 107, 99, 0.92), rgba(79, 107, 99, 0));
}

.stone-history__title {
    color: #243530;
}

.stone-history__lead {
    color: rgba(36, 53, 48, 0.78);
}

.stone-history-card {
    position: relative;
    height: 100%;
    border-radius: calc(var(--helios-radius) + 0.35rem);
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(79, 107, 99, 0.14), rgba(79, 107, 99, 0) 34%),
        radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0) 38%),
        linear-gradient(180deg, rgba(247, 249, 247, 0.98), rgba(223, 231, 226, 0.96));
    border: 1px solid rgba(79, 107, 99, 0.26);
    box-shadow:
        0 24px 60px rgba(36, 53, 48, 0.12),
        inset 0 0 0 1px rgba(255, 255, 255, 0.58);
}

.stone-history-card::before {
    content: "";
    position: absolute;
    inset: 0.7rem;
    border: 1px solid rgba(79, 107, 99, 0.18);
    border-radius: calc(var(--helios-radius) - 0.15rem);
    pointer-events: none;
}

.stone-history-card > .rounded-5 {
    border-radius: inherit !important;
}

.stone-history-card__title {
    position: relative;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    color: #2f4a43;
    font-family: "Cinzel", "Times New Roman", serif;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.stone-history-card__title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 5.5rem;
    height: 2px;
    background: linear-gradient(90deg, #4f6b63, rgba(79, 107, 99, 0.16));
}

.stone-history-card__copy {
    position: relative;
    z-index: 1;
    color: rgba(31, 46, 41, 0.86);
    line-height: 1.8;
}

.navbar {
    backdrop-filter: blur(10px);
    background:
        radial-gradient(circle at 18% 32%, rgba(155, 118, 45, 0.12), rgba(155, 118, 45, 0) 24%),
        radial-gradient(circle at 72% 82%, rgba(7, 24, 46, 0.26), rgba(7, 24, 46, 0) 28%),
        linear-gradient(180deg, rgba(13, 28, 48, 0.99) 0%, rgba(8, 18, 33, 0.99) 100%);
}

.navbar-site {
    padding-top: 0.95rem !important;
    padding-bottom: 0.95rem !important;
    padding-left: 1.15rem !important;
    padding-right: 1.15rem !important;
    transition:
        transform 260ms ease,
        opacity 220ms ease,
        background-color 220ms ease,
        box-shadow 220ms ease,
        backdrop-filter 220ms ease;
    will-change: transform;
}

.navbar-site.is-hidden-on-scroll {
    transform: translateY(calc(-100% - var(--admin-bar-offset)));
    opacity: 0;
}

.navbar-home {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none;
    backdrop-filter: none;
    position: fixed;
    top: var(--admin-bar-offset);
    left: 0;
    right: 0;
    z-index: 30;
    opacity: 1;
    transform: translateY(0);
}

.navbar-home.is-sticky-visible {
    background:
        radial-gradient(circle at 18% 32%, rgba(155, 118, 45, 0.12), rgba(155, 118, 45, 0) 24%),
        radial-gradient(circle at 72% 82%, rgba(7, 24, 46, 0.26), rgba(7, 24, 46, 0) 28%),
        linear-gradient(180deg, rgba(13, 28, 48, 0.99) 0%, rgba(8, 18, 33, 0.99) 100%) !important;
    background-color: rgba(13, 28, 48, 0.98) !important;
    box-shadow: 0 16px 36px rgba(2, 11, 22, 0.24);
    backdrop-filter: blur(10px);
    top: var(--admin-bar-offset);
    transform: translateY(0);
    opacity: 1;
    border-bottom: 1px solid rgba(184, 146, 70, 0.14);
}

.navbar-dark .navbar-nav .nav-link,
.navbar-dark .navbar-brand {
    color: rgba(255, 255, 255, 0.92);
}

.navbar-site .nav-link.active {
    color: var(--helios-gold) !important;
}

.navbar-site .nav-link.active svg,
.navbar-site .nav-link.active i {
    color: var(--helios-gold);
}

.navbar-brand-logo {
    height: 42px;
    width: auto;
}

.navbar-nav-helios {
    --bs-nav-link-padding-y: 1rem;
    --bs-navbar-nav-link-padding-x: 1rem;
}

.navbar-site .navbar-brand img {
    height: 36px !important;
}

.navbar-dark a.nav-link:hover {
    border-bottom-color: var(--helios-gold);
}

.navbar-site .nav-link-login {
    border: 1px solid rgba(183, 139, 62, 0.52);
    border-radius: 999px;
    background: rgba(183, 139, 62, 0.12);
    color: #f0cf8d !important;
    font-weight: 600;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.navbar-site .nav-link-login:hover {
    background: rgba(183, 139, 62, 0.2);
    border-color: rgba(183, 139, 62, 0.78);
    color: #ffe2a8 !important;
}

.helios-breadcrumb-container {
    position: relative;
    z-index: 10;
    height: 0;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
}

.helios-breadcrumb-plain {
    display: inline-block;
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0;
    transform: translateY(1.2rem);
}

.helios-breadcrumb-nav {
    display: block;
    padding: 0;
    transform: none;
    background: transparent !important;
    background-color: transparent !important;
}

.helios-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    list-style: none;
    font-family: "Poppins", "Roboto", sans-serif;
    font-size: 0.86rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: transparent !important;
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

.helios-crumb a {
    color: var(--helios-navy);
    text-decoration: none;
}

.helios-crumb a:hover {
    color: #8f6a2c;
}

.helios-crumb + .helios-crumb::before {
    content: "/";
    color: rgba(34, 48, 70, 0.35);
    margin: 0 0.6rem;
}

.helios-crumb--active {
    color: var(--helios-navy);
}

main.min-vh-75 > .helios-breadcrumb-container + .section-shell {
    padding-top: clamp(3.15rem, 3.9vw, 4.1rem);
}

.helios-admin-bar {
    position: relative;
    top: auto;
    z-index: 1100;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #1a1a1a;
    background: #000;
    backdrop-filter: none;
    box-shadow: none;
}

.helios-admin-bar--home {
    border-bottom-color: rgba(184, 146, 70, 0.12);
}

.helios-admin-bar__brand,
.helios-admin-bar__user {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: #fff;
    text-decoration: none;
    font-family: "Poppins", "Roboto", sans-serif;
    font-size: 0.98rem;
    font-weight: 600;
    background: none;
    border: 0;
    padding: 0;
}

.helios-admin-bar__brand:hover,
.helios-admin-bar__user:hover {
    color: #fff;
    opacity: 0.9;
}

.helios-admin-bar__brand i,
.helios-admin-bar__user i {
    color: #fff;
}

.helios-admin-bar .dropdown-menu {
    background: #000;
    border: 1px solid #1f1f1f;
}

.helios-admin-bar .dropdown-item {
    color: #fff;
}

.helios-admin-bar .dropdown-item:hover,
.helios-admin-bar .dropdown-item:focus {
    color: #fff;
    background: #111;
}

.helios-footer {
    position: relative;
    margin-top: 2.25rem;
    padding: 3.25rem 0 2.5rem;
    background:
        radial-gradient(circle at 18% 32%, rgba(155, 118, 45, 0.12), rgba(155, 118, 45, 0) 24%),
        radial-gradient(circle at 72% 82%, rgba(7, 24, 46, 0.26), rgba(7, 24, 46, 0) 28%),
        linear-gradient(180deg, rgba(13, 28, 48, 0.99) 0%, rgba(8, 18, 33, 0.99) 100%);
    color: rgba(245, 239, 225, 0.92);
    overflow: hidden;
    border-top: 1px solid rgba(184, 146, 70, 0.2);
}

.helios-footer::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0) 56%);
    pointer-events: none;
}

.helios-footer::before {
    content: "";
    position: absolute;
    right: clamp(-1rem, 2vw, 1.5rem);
    bottom: clamp(-1.5rem, -1vw, -0.5rem);
    width: clamp(16rem, 30vw, 26rem);
    height: clamp(16rem, 30vw, 26rem);
    transform: none;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 64%),
        url("/static/img/svlh.png") center/contain no-repeat;
    opacity: 0.18;
    filter: brightness(0.38) grayscale(0.05) saturate(0.85) contrast(1.04);
    pointer-events: none;
}

.helios-footer__inner::before {
    content: "";
    display: block;
    width: min(100%, 18rem);
    height: 1px;
    margin: 0 auto 1.6rem;
    background: linear-gradient(90deg, rgba(184, 146, 70, 0), rgba(184, 146, 70, 0.9), rgba(184, 146, 70, 0));
}

.helios-footer__inner {
    position: relative;
    max-width: 68rem;
    margin: 0 auto;
    z-index: 1;
}

.helios-footer__top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.35rem;
    padding-bottom: 1.5rem;
}

.helios-footer__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    justify-content: center;
    min-height: 4.5rem;
    padding: 0;
    color: rgba(255, 255, 255, 0.96);
    text-decoration: none;
}

.helios-footer__mark {
    width: 1.1rem;
    height: 1.1rem;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.18));
    opacity: 0.96;
}

.helios-footer__logo {
    width: 3.25rem;
    height: 3.25rem;
    display: block;
    object-fit: contain;
    filter: brightness(1.08) saturate(0.9) contrast(1.06);
}

.helios-footer__brand-text {
    font-family: "Cinzel", "Times New Roman", serif;
    font-size: 1.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    white-space: nowrap;
    text-transform: uppercase;
}

.helios-footer__content {
    max-width: 38rem;
}

.helios-footer__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.85rem;
    color: rgba(212, 178, 109, 0.9);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.helios-footer__eyebrow::before,
.helios-footer__eyebrow::after {
    content: "";
    width: 2.5rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(184, 146, 70, 0), rgba(184, 146, 70, 0.85));
}

.helios-footer__eyebrow::after {
    background: linear-gradient(90deg, rgba(184, 146, 70, 0.85), rgba(184, 146, 70, 0));
}

.helios-footer__tagline {
    color: rgba(245, 239, 225, 0.94);
    font-family: "Cinzel", "Times New Roman", serif;
    font-size: clamp(1.15rem, 1rem + 0.35vw, 1.45rem);
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1.45;
    text-transform: uppercase;
}

.helios-footer__copy {
    color: rgba(228, 219, 196, 0.8);
    font-family: "Lora", "Times New Roman", serif;
    font-size: 0.98rem;
    line-height: 1.85;
}

.helios-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.1rem 1.4rem;
}

.helios-footer__link {
    color: rgba(229, 221, 204, 0.8);
    font-family: "Cinzel", "Times New Roman", serif;
    font-size: 0.87rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
}

.helios-footer__link:hover {
    color: rgba(255, 247, 230, 1);
    text-decoration: none;
}

.helios-footer__legal {
    padding-top: 1.35rem;
    color: rgba(214, 203, 180, 0.58);
    font-family: "Lora", "Times New Roman", serif;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    display: block;
    text-align: center;
}

@media (max-width: 991.98px) {
    .navbar-home {
        background:
            radial-gradient(circle at 18% 32%, rgba(155, 118, 45, 0.1), rgba(155, 118, 45, 0) 24%),
            radial-gradient(circle at 72% 82%, rgba(7, 24, 46, 0.24), rgba(7, 24, 46, 0) 28%),
            linear-gradient(180deg, rgba(13, 28, 48, 0.98) 0%, rgba(8, 18, 33, 0.98) 100%);
        background-color: rgba(13, 28, 48, 0.98) !important;
        position: sticky;
        top: var(--admin-bar-offset);
        box-shadow: 0 12px 28px rgba(2, 11, 22, 0.18);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(184, 146, 70, 0.12);
    }

    .navbar-site {
        padding-top: 0.8rem !important;
        padding-bottom: 0.8rem !important;
        padding-left: 0.95rem !important;
        padding-right: 0.95rem !important;
    }

    .navbar-home .navbar-collapse {
        margin-top: 0.85rem;
        padding: 0.85rem 1rem;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 1rem;
        background: rgba(6, 18, 33, 0.92);
        box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
    }

    .navbar-site .navbar-nav {
        width: 100%;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .navbar-site .nav-link {
        font-size: 1.18rem;
        line-height: 1.35;
        padding-top: 0.9rem !important;
        padding-bottom: 0.9rem !important;
    }

    .navbar-site .nav-link-login {
        width: 100%;
        text-align: center;
        margin-top: 0.4rem;
    }

    .navbar-site .dropdown-toggle {
        font-size: 1.24rem;
        font-weight: 600;
        line-height: 1.35;
        padding-top: 0.95rem !important;
        padding-bottom: 0.95rem !important;
    }

    .navbar-site .dropdown-menu {
        width: 100%;
        margin-top: 0.5rem;
        padding: 0.6rem 0.75rem;
        border-radius: 0.95rem;
        background: rgba(6, 18, 33, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-site .dropdown-item-text {
        font-size: 1.02rem;
        font-weight: 600;
        color: rgba(228, 219, 196, 0.92);
        padding: 0.35rem 0.2rem 0.55rem;
    }

    .navbar-site .dropdown-menu .btn-link {
        display: block;
        width: 100%;
        padding: 0.62rem 0.2rem;
        color: rgba(255, 255, 255, 0.92);
        font-size: 1.08rem;
        line-height: 1.35;
        text-decoration: none;
    }

    .navbar-site .dropdown-menu .btn-link:hover {
        color: #e1a93e;
        text-decoration: none;
    }

    .helios-breadcrumb-nav {
        padding-top: 0;
        padding-bottom: 0;
        transform: none;
    }

    .helios-crumbs {
        font-size: 0.92rem;
        letter-spacing: 0.02em;
    }

    .helios-breadcrumb-container {
        height: auto;
        padding-top: 0.35rem;
        padding-bottom: 0.15rem;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    main.min-vh-75 > .helios-breadcrumb-container + .section-shell {
        padding-top: 0;
    }

    .helios-breadcrumb-plain {
        display: block;
        transform: none;
    }

    .hero-shell {
        padding-top: 1.25rem;
        padding-bottom: 1.75rem;
    }

    .hero-container--wide {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .hero-container {
        min-height: auto;
    }

    .hero-shell--home .hero-container {
        min-height: auto;
        padding-top: 2.6rem;
    }

    .hero-copy {
        margin-left: 0;
        padding: 1rem 0 1.4rem;
    }

    .hero-copy--home {
        transform: translateY(-0.7rem);
    }

    .hero-shell--home::before {
        background-position: center top;
        transform: none;
    }

    .hero-shell--home::after {
        background:
            linear-gradient(180deg, rgba(5, 17, 31, 0.74) 0%, rgba(5, 17, 31, 0.82) 100%),
            linear-gradient(180deg, rgba(5, 17, 31, 0.48) 0%, rgba(5, 17, 31, 0.14) 100%);
    }

    .hero-title-glotx {
        max-width: none;
        font-size: clamp(2.9rem, 11vw, 4.35rem);
    }

    .hero-lead-glotx {
        font-size: 1.35rem;
    }

    .hero-actions-glotx {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        text-align: center;
    }

    .hero-cta-glotx {
        width: 100%;
        min-width: 0;
    }

    .hero-link-secondary {
        width: 100%;
        text-align: center;
    }

    .section-shell {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .section-shell > .container {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .section-shell + .section-shell {
        padding-top: 2.25rem;
    }

    .ancient-story__frame {
        padding: 1.25rem;
    }

    .ancient-story__frame::before {
        inset: 0.6rem;
    }

    .ancient-story__frame::after {
        top: auto;
        bottom: -2rem;
        right: -2rem;
        width: 14rem;
        opacity: 0.09;
    }

    .stone-history__frame {
        padding: 1.25rem;
    }

    .stone-history__frame::before {
        inset: 0.6rem;
    }

    .stone-history__frame::after {
        top: auto;
        bottom: -2rem;
        left: -2rem;
        width: 12rem;
        opacity: 0.06;
    }

    .history-card .p-5,
    .history-card .p-4,
    .history-card .p-lg-5,
    .stone-history-card .p-5,
    .stone-history-card .p-4,
    .stone-history-card .p-lg-5 {
        padding: 1.05rem !important;
    }

    .helios-footer {
        margin-top: 1.5rem;
        padding: 2.5rem 0 2rem;
    }

    .helios-admin-bar {
        padding: 0.7rem 0.85rem;
    }

    .helios-footer__top {
        gap: 1.25rem;
    }

    .helios-footer::before {
        right: 50%;
        bottom: -1rem;
        width: 12rem;
        height: 12rem;
        transform: translateX(50%);
        opacity: 0.12;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn-helios,
    .navbar,
    .nav-link,
    img {
        transition: none !important;
    }
}

.library-book-cover-wrap {
    width: 140px;
    height: 200px;
    margin-inline: auto;
    border-radius: 16px;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(255, 248, 231, 0.72), rgba(255, 248, 231, 0) 34%),
        linear-gradient(180deg, rgba(255, 252, 245, 0.9), rgba(240, 229, 205, 0.78));
    border: 1px solid rgba(120, 86, 34, 0.18);
}

.library-book-cover {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.library-book-cover--fallback {
    object-fit: contain;
    padding: 10px;
    background-color: rgba(248, 230, 188, 0.26);
}

.library-gold .stone-history__eyebrow::before {
    background: linear-gradient(90deg, rgba(183, 139, 62, 0.92), rgba(183, 139, 62, 0));
}

.library-gold .stone-history__eyebrow::after {
    content: none;
}

.library-gold .text-center .stone-history__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    color: rgba(150, 112, 45, 0.94);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.library-gold .text-center .stone-history__eyebrow::before,
.library-gold .text-center .stone-history__eyebrow::after {
    content: "";
    width: 2.5rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(183, 139, 62, 0), rgba(183, 139, 62, 0.9));
}

.library-gold .text-center .stone-history__eyebrow::after {
    background: linear-gradient(90deg, rgba(183, 139, 62, 0.9), rgba(183, 139, 62, 0));
}

.static-info-page .card.stone-history-card {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.static-info-page .card.stone-history-card::before {
    display: none;
}

.static-info-page .card.stone-history-card .rounded-5 {
    border-radius: 0 !important;
}

.static-info-page .card.stone-history-card .p-4,
.static-info-page .card.stone-history-card .p-lg-5 {
    padding: 0 !important;
}

.static-info-page .stone-history-card__title {
    color: #3e2810;
}

.static-info-page .stone-history-card__copy {
    color: rgba(56, 36, 12, 0.82);
    font-family: "Lora", "Times New Roman", serif;
}

.static-info-page .stone-history__eyebrow {
    color: rgba(88, 58, 18, 0.9);
}

.static-info-page .stone-history__eyebrow::before {
    background: linear-gradient(90deg, rgba(120, 86, 34, 0.9), rgba(120, 86, 34, 0));
}

.static-info-page .stone-history__title {
    color: #3e2810;
}

.static-info-article {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.section-shell.static-info-page {
    padding-top: clamp(2rem, 2.8vw, 2.75rem);
    padding-bottom: clamp(2rem, 2.8vw, 2.75rem);
}

.static-info-page .ancient-story__frame {
    padding: clamp(1.4rem, 2.2vw, 2.2rem);
}

.static-info-page .static-info-article .rounded-5 {
    border-radius: 0 !important;
}

.static-info-page .static-info-article .p-4,
.static-info-page .static-info-article .p-lg-5 {
    padding: 0 !important;
}

.static-info-page .stone-history__intro {
    margin-bottom: 1.1rem !important;
}

.static-info-page .stone-history-card__copy {
    margin-bottom: 0.9rem;
}

.static-info-page .stone-history-card__copy:last-child {
    margin-bottom: 0;
}

.library-search-form {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.library-search-input-wrap {
    flex: 1 1 auto;
    min-width: 0;
}

.library-search-input {
    height: 3.55rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(120, 86, 34, 0.2);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
    font-size: 1.08rem;
}

.library-search-input:focus {
    border-color: rgba(183, 139, 62, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(183, 139, 62, 0.15);
}

.library-search-actions {
    display: flex;
    gap: 0.65rem;
    flex: 0 0 auto;
}

.library-search-btn {
    min-width: 0;
    border-radius: 999px;
    font-weight: 600;
    padding: 0.85rem 1.2rem;
}

.library-search-btn--primary {
    border: 1px solid rgba(183, 139, 62, 0.72);
    color: #111;
    background: linear-gradient(135deg, #e1a93e, #b88b39);
}

.library-search-btn--primary:hover {
    color: #111;
    background: linear-gradient(135deg, #e7b355, #bd9041);
}

.library-search-btn--secondary {
    border: 1px solid rgba(120, 86, 34, 0.35);
    color: #4b3c23;
    background: rgba(255, 255, 255, 0.78);
}

.library-search-btn--secondary:hover {
    color: #2f2515;
    background: rgba(255, 255, 255, 0.95);
}

.library-sort-shell {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.85rem;
    padding: 0.55rem 0.75rem;
    max-width: 56rem;
    margin: 0 auto;
    border-radius: 0.95rem;
    border: 1px solid rgba(120, 86, 34, 0.16);
    background:
        linear-gradient(135deg, rgba(255, 252, 245, 0.86), rgba(245, 237, 219, 0.7));
}

.library-kind-nav {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.library-kind-nav__link {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.78rem;
    border-radius: 999px;
    border: 1px solid rgba(120, 86, 34, 0.28);
    color: #4b3c23;
    background: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
}

.library-kind-nav__link:hover {
    color: #2f2515;
    background: rgba(255, 255, 255, 0.95);
}

.library-kind-nav__link--active {
    border-color: rgba(183, 139, 62, 0.72);
    color: #111;
    background: linear-gradient(135deg, #e1a93e, #b88b39);
}

.library-sort-form {
    flex: 0 0 auto;
    min-width: 12.25rem;
    max-width: 100%;
}

.library-sort-select {
    height: 2.35rem;
    font-size: 0.92rem;
    border-radius: 999px;
    border: 1px solid rgba(120, 86, 34, 0.28);
    background-color: rgba(255, 255, 255, 0.9);
    color: #3c301d;
    font-weight: 600;
    padding-left: 1rem;
    padding-right: 2.2rem;
}

.library-sort-select:focus {
    border-color: rgba(183, 139, 62, 0.58);
    box-shadow: 0 0 0 0.2rem rgba(183, 139, 62, 0.15);
}

.library-gold .pagination .page-link {
    color: #4b3c23;
    border-color: rgba(120, 86, 34, 0.28);
    background: rgba(255, 255, 255, 0.82);
}

.library-gold .pagination .page-item.active .page-link {
    color: #111;
    border-color: rgba(183, 139, 62, 0.74);
    background: linear-gradient(135deg, #e1a93e, #b88b39);
}

.library-book-title-link {
    color: #1f2f44;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.library-card-link {
    display: block;
    text-decoration: none !important;
    color: var(--helios-ink) !important;
}

.library-card-link:visited,
.library-card-link:hover,
.library-card-link:focus-visible {
    text-decoration: none !important;
    color: var(--helios-ink) !important;
}

.library-card-link article,
.library-card-link article * {
    color: inherit !important;
    text-decoration: none !important;
}

.library-card-link article .library-visibility-badge,
.library-card-link article .library-visibility-badge * {
    text-decoration: none !important;
}

.library-card-link article {
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.library-visibility-badge {
    position: absolute !important;
    top: 1.3rem !important;
    right: 1.3rem !important;
    left: auto !important;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    padding: 0;
    border-radius: 0;
    border: 0;
    font-size: 0.78rem;
    background: transparent !important;
    box-shadow: none;
}

.library-visibility-badge svg {
    width: 1.05rem;
    height: 1.05rem;
    filter: drop-shadow(0 1px 1px rgba(5, 16, 30, 0.28));
}

.library-visibility-badge--private {
    color: #f6e7c8 !important;
}

.library-visibility-badge--public {
    color: rgba(183, 139, 62, 0.98) !important;
}

.library-visibility-badge--single {
    position: static !important;
    top: auto;
    right: auto;
    flex: 0 0 auto;
}

.library-card-link:hover article,
.library-card-link:focus-visible article {
    transform: translateY(-2px);
    box-shadow:
        0 26px 62px rgba(8, 27, 47, 0.16),
        inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}

.library-book-title-link:hover {
    color: #8f6a2c;
    border-color: rgba(143, 106, 44, 0.55);
}

.library-card-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #8f6a2c !important;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    text-decoration: underline !important;
    text-decoration-color: rgba(143, 106, 44, 0.35) !important;
}

.library-card-toggle:hover,
.library-card-toggle:focus-visible {
    color: #6d501f !important;
    text-decoration-color: rgba(109, 80, 31, 0.65) !important;
}

.library-book-single__content {
    padding: clamp(0.25rem, 0.4vw, 0.65rem) 0.1rem;
}

.library-book-single__content--essay .library-book-single__description {
    width: 100%;
    max-width: none;
}

.library-book-single__content--essay .library-book-single__description--summary,
.library-book-single__content--essay .library-book-single__description--essay-body {
    position: relative;
    border-radius: 1.1rem;
    border: 1px solid rgba(138, 103, 42, 0.24);
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 241, 226, 0.92));
    box-shadow:
        0 18px 40px rgba(20, 16, 10, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.62);
    padding: clamp(1.1rem, 1.8vw, 1.8rem) clamp(1rem, 1.9vw, 2rem);
    color: #2a2117;
}

.library-book-single__content--essay .library-book-single__description--summary {
    margin-bottom: 1rem !important;
}

.library-book-single__content--essay .library-book-single__description--essay-body {
    line-height: 1.9;
    font-family: "Lora", "Times New Roman", serif;
    font-size: clamp(1.03rem, 0.98rem + 0.25vw, 1.14rem);
    letter-spacing: 0.01em;
}

.library-book-single__content--essay .library-book-single__description--essay-body p {
    margin-bottom: 1.15rem;
}

.library-book-single__content--essay .library-book-single__description--essay-body p:first-of-type::first-letter {
    float: left;
    margin-right: 0.3rem;
    margin-top: 0.16rem;
    color: #7b5724;
    font-family: "Cinzel", "Times New Roman", serif;
    font-size: 2.45em;
    line-height: 0.85;
    font-weight: 700;
}

.library-book-single__content--essay .library-book-single__description--essay-body h2,
.library-book-single__content--essay .library-book-single__description--essay-body h3,
.library-book-single__content--essay .library-book-single__description--essay-body h4 {
    color: #3b2a14;
    font-family: "Cinzel", "Times New Roman", serif;
    margin-top: 1.35rem;
    margin-bottom: 0.75rem;
}

.library-book-single__card {
    border: 1px solid rgba(120, 86, 34, 0.2);
    border-radius: var(--helios-radius);
    background:
        radial-gradient(circle at top left, rgba(255, 248, 231, 0.62), rgba(255, 248, 231, 0) 34%),
        linear-gradient(180deg, rgba(255, 252, 245, 0.88), rgba(240, 229, 205, 0.8));
    box-shadow:
        0 18px 42px rgba(10, 19, 28, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.28);
    padding: 1rem;
}

.library-book-single__eyebrow {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(71, 53, 24, 0.8);
}

.library-book-single__title {
    font-family: "Lora", serif;
    font-size: clamp(2rem, 1.1rem + 2.1vw, 3.5rem);
    line-height: 1.08;
    color: #251a0f;
}

.library-book-single__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1.1rem;
    color: #4c4031;
}

.library-book-single__description {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #2f2b25;
}

.library-book-single__description--essay {
    padding: clamp(1rem, 1.1vw, 1.35rem);
    border: 1px solid rgba(18, 24, 33, 0.1);
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 10px 24px rgba(10, 19, 28, 0.06);
}

.library-book-single__content--essay .library-book-single__description--essay {
    background: #fff !important;
    background-image: none !important;
    border-color: rgba(18, 24, 33, 0.14);
}

.library-book-single__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.library-book-single__tag {
    display: inline-flex;
    align-items: center;
    padding: 0.36rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(120, 86, 34, 0.28);
    background: rgba(255, 255, 255, 0.64);
    color: #4a3a22;
    font-size: 0.86rem;
    font-weight: 600;
}

.library-book-single__actions .btn-helios {
    min-width: 14rem;
}

.library-copy-link {
    border: 0;
    background: transparent;
    padding: 0;
    color: #1f4f8a;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(31, 79, 138, 0.45);
    text-underline-offset: 0.14em;
}

.library-copy-link:hover {
    color: #163c69;
    text-decoration-color: rgba(22, 60, 105, 0.72);
}

.library-book-single__actions .btn-helios-form {
    color: #f6f1e6;
    background: #213c59;
    border-color: #34597d;
}

.library-book-single__actions .btn-helios-form:hover {
    color: #fff;
    background: #2b4b6b;
    border-color: #3e6994;
}

.library-book-single__actions .js-share-status {
    color: #4c4031 !important;
}

.library-book-single .library-visibility-badge--single {
    color: #121212 !important;
}

.library-book-single__cover-wrap {
    width: min(100%, 26rem);
    margin: 0 auto;
    padding: 0.75rem;
    border-radius: 1.1rem;
    overflow: visible;
    border: 1px solid rgba(120, 86, 34, 0.2);
    background: rgba(255, 255, 255, 0.54);
    display: flex;
    align-items: center;
    justify-content: center;
}

.library-book-single__cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    height: auto;
    max-height: min(78vh, 38rem);
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
    border-radius: 0.85rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 237, 219, 0.82));
}

.library-book-single__cover--fallback {
    padding: 1.25rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 237, 219, 0.8));
}

@media (max-width: 767.98px) {
    .library-visibility-badge {
        top: 1.15rem !important;
        right: 1.15rem !important;
    }

    .navbar-site {
        padding-left: 0.72rem !important;
        padding-right: 0.72rem !important;
    }

    .hero-container--wide {
        padding-left: 0.72rem !important;
        padding-right: 0.72rem !important;
    }

    .section-shell > .container {
        padding-left: 0.72rem;
        padding-right: 0.72rem;
    }

    .ancient-story__frame,
    .stone-history__frame {
        padding: 0.85rem;
    }

    .library-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .library-search-actions {
        width: 100%;
    }

    .library-search-btn {
        flex: 1 1 0;
        text-align: center;
    }

    .library-sort-shell {
        padding: 0.5rem 0.65rem;
        gap: 0.6rem;
    }

    .library-sort-form {
        width: 100%;
    }

    .library-book-single__title {
        font-size: clamp(1.8rem, 1.35rem + 1.8vw, 2.5rem);
    }

    .library-book-single__description {
        font-size: 0.98rem;
        line-height: 1.65;
    }

    .library-book-single__cover-wrap {
        width: min(100%, 18rem);
        padding: 0.55rem;
    }

    .library-book-single__card {
        padding: 0.65rem;
    }

    .library-book-single__cover {
        max-height: min(52vh, 20.5rem);
    }
}
