:root {
    --bg: #d9d2c6;
    --bg-soft: #ece5da;
    --panel: rgba(248, 244, 238, 0.92);
    --panel-strong: #f6f1ea;
    --panel-dark: #4f4a44;
    --line: rgba(97, 88, 77, 0.18);
    --line-strong: rgba(97, 88, 77, 0.3);
    --text: #2c2824;
    --muted: #6e665d;
    --heading: #3b342d;
    --accent: #8d7357;
    --accent-strong: #725b45;
    --accent-soft: #d9c7b4;
    --sage: #8f9983;
    --good: #5f7b63;
    --bad: #a05757;
    --shadow: 0 18px 50px rgba(66, 55, 43, 0.14);
    --shadow-soft: 0 10px 28px rgba(66, 55, 43, 0.1);
    --radius-lg: 26px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    padding: 32px 20px 48px;
    color: var(--text);
    line-height: 1.6;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.65), transparent 34%),
        radial-gradient(circle at 85% 12%, rgba(141, 115, 87, 0.12), transparent 22%),
        linear-gradient(180deg, #ebe5dc 0%, #d8d0c4 45%, #cfc6ba 100%);
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.18)),
        repeating-linear-gradient(
            135deg,
            rgba(120, 107, 91, 0.03) 0,
            rgba(120, 107, 91, 0.03) 8px,
            transparent 8px,
            transparent 24px
        );
    pointer-events: none;
    z-index: -1;
}

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

a:hover {
    color: #5f4b38;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 0.75rem;
    color: var(--heading);
    line-height: 1.15;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.35rem);
    letter-spacing: 0.02em;
}

h2 {
    font-size: clamp(1.45rem, 2.6vw, 2.2rem);
}

h3 {
    font-size: clamp(1.15rem, 2vw, 1.45rem);
}

p,
ul,
ol {
    margin: 0 0 1rem;
}

ul,
ol {
    padding-left: 1.2rem;
}

strong {
    color: var(--heading);
}

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

.wrap {
    max-width: 1120px;
    margin: 24px auto;
    padding: 0 16px;
}

.top {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.meta,
.muted,
.zone {
    color: var(--muted);
    font-size: 0.95rem;
}

.pill,
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(141, 115, 87, 0.09);
    border: 1px solid rgba(141, 115, 87, 0.2);
    color: var(--heading);
    font-size: 0.85rem;
    margin-right: 8px;
}

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--panel);
    backdrop-filter: blur(8px);
    padding: 18px;
    margin: 14px 0;
    box-shadow: var(--shadow-soft);
}

.toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}

.search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.52);
    min-width: 260px;
}

.search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
}

.empty {
    padding: 12px 2px;
    color: var(--muted);
}

.name {
    font-weight: 700;
}

.cls {
    color: var(--accent-strong);
    font-weight: 700;
}

.err,
.msg,
.notice {
    border-radius: 14px;
    padding: 12px 14px;
    margin: 10px 0;
    font-weight: 700;
}

.err,
.notice.err {
    color: #7d3030;
    background: rgba(160, 87, 87, 0.09);
    border: 1px solid rgba(160, 87, 87, 0.24);
}

.msg,
.notice.ok {
    color: #365f39;
    background: rgba(95, 123, 99, 0.1);
    border: 1px solid rgba(95, 123, 99, 0.24);
}

label {
    display: block;
    margin: 10px 0 6px;
    font-weight: 700;
    color: var(--heading);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--line-strong);
    color: var(--text);
    border-radius: 12px;
    padding: 0.72rem 0.85rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: rgba(141, 115, 87, 0.55);
    box-shadow: 0 0 0 4px rgba(141, 115, 87, 0.12);
    background: rgba(255, 255, 255, 0.82);
}

input[type="submit"],
button,
.download-btn,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.78rem 1.15rem;
    border-radius: 999px;
    border: 1px solid rgba(114, 91, 69, 0.28);
    background: linear-gradient(180deg, #8d7357, #725b45);
    color: #f9f6f0;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(114, 91, 69, 0.16);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

input[type="submit"]:hover,
button:hover,
.download-btn:hover,
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(114, 91, 69, 0.22);
    filter: brightness(1.03);
}

button.secondary,
.btn.secondary {
    background: rgba(255, 255, 255, 0.65);
    color: var(--heading);
    border-color: var(--line-strong);
    box-shadow: none;
}

button.good,
.btn.good {
    background: linear-gradient(180deg, #7b9074, #5f7b63);
    border-color: rgba(95, 123, 99, 0.32);
}

button.danger,
.btn.danger {
    background: linear-gradient(180deg, #b66a67, #965251);
    border-color: rgba(160, 87, 87, 0.32);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.36);
    margin: 1rem 0;
    border-radius: 16px;
    overflow: hidden;
}

th,
td {
    border-bottom: 1px solid rgba(97, 88, 77, 0.1);
    padding: 0.78rem 0.82rem;
    text-align: left;
}

th {
    background: rgba(141, 115, 87, 0.12);
    color: var(--heading);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.28);
}

details {
    border-top: 1px solid var(--line);
}

details:first-of-type {
    border-top: 0;
}

summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 700;
    color: var(--heading);
}

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

.rightMeta {
    color: var(--muted);
    font-size: 0.85rem;
    display: flex;
    gap: 10px;
    align-items: center;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    display: inline-block;
    margin-right: 8px;
}

.on {
    background: var(--good);
    box-shadow: 0 0 10px rgba(95, 123, 99, 0.24);
}

.off {
    background: #9d978f;
}

.page-layout,
.pageShell {
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.side-banner,
.sideBanner {
    position: sticky;
    top: 20px;
    flex: 0 0 250px;
    display: flex;
    justify-content: center;
}

.side-banner img,
.sideBanner img {
    width: 100%;
    max-width: 250px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(97, 88, 77, 0.12);
}

.banner-link {
    display: block;
}

.hd,
.bd {
    padding: 0;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.col {
    flex: 1 1 240px;
    min-width: 220px;
}

.col.small {
    flex-basis: 180px;
    min-width: 160px;
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.back-link {
    display: inline-block;
    margin-top: 18px;
    font-weight: 700;
}

.site-shell {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.home-header {
    margin-bottom: 24px;
}

.masthead {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 5vw, 48px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(97, 88, 77, 0.12);
    background:
        linear-gradient(140deg, rgba(246, 241, 234, 0.96), rgba(228, 220, 209, 0.92)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0));
    box-shadow: var(--shadow);
}

.masthead::before {
    content: "";
    position: absolute;
    inset: auto -10% -40% auto;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(141, 115, 87, 0.18), transparent 65%);
    pointer-events: none;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
    background: rgba(141, 115, 87, 0.1);
    border: 1px solid rgba(141, 115, 87, 0.18);
    color: var(--accent-strong);
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.masthead-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 28px;
    align-items: center;
}

.lead {
    font-size: 1.08rem;
    color: #4f4941;
    max-width: 56ch;
}

.cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 24px 0 18px;
}

.cta-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    padding: 0.92rem 1.25rem;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.cta-link.primary {
    background: linear-gradient(180deg, #8d7357, #725b45);
    color: #faf6f0;
    box-shadow: 0 12px 24px rgba(114, 91, 69, 0.18);
}

.cta-link.secondary {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--line-strong);
    color: var(--heading);
}

.cta-link:hover {
    transform: translateY(-1px);
}

.masthead-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-frame {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(97, 88, 77, 0.15);
    box-shadow: var(--shadow);
    width: min(100%, 260px);
    max-width: 260px;
    margin: 0 auto;
    justify-self: center;
}

.hero-frame img {
    width: 100%;
    aspect-ratio: 1.85 / 1;
    height: auto;
    object-fit: cover;
}

.hero-frame::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 56%;
    background: linear-gradient(180deg, transparent, rgba(38, 31, 24, 0.42));
    pointer-events: none;
}

.hero-caption {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 12px;
    z-index: 1;
    color: #f5ede2;
    font-size: 0.84rem;
    line-height: 1.45;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.section-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: clamp(22px, 4vw, 30px);
    box-shadow: var(--shadow-soft);
    margin-top: 22px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    max-width: 54ch;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.top-toggle-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.top-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.88rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(114, 91, 69, 0.2);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(232, 223, 212, 0.92));
    color: var(--heading);
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(66, 55, 43, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.top-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(66, 55, 43, 0.12);
    border-color: rgba(114, 91, 69, 0.3);
}

.site-nav {
    margin: 0 0 18px;
}

.toggle-note {
    margin-top: 14px;
    color: var(--muted);
}

.quick-link {
    display: block;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(97, 88, 77, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(235, 229, 219, 0.92));
    box-shadow: 0 10px 24px rgba(66, 55, 43, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.quick-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(66, 55, 43, 0.12);
    border-color: rgba(114, 91, 69, 0.24);
}

.quick-link strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.quick-link span {
    color: var(--muted);
    font-size: 0.66rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.feature-card {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(97, 88, 77, 0.1);
}

.feature-card p:last-child {
    margin-bottom: 0;
    color: var(--muted);
}

.story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 18px;
}

.info-stack {
    display: grid;
    gap: 14px;
}

.info-panel {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid rgba(97, 88, 77, 0.1);
}

.image-pair {
    display: grid;
    gap: 14px;
}

.image-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    min-height: 210px;
    box-shadow: var(--shadow-soft);
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-card span {
    position: absolute;
    left: 14px;
    bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(32, 27, 23, 0.6);
    color: #f6efe6;
    font-size: 0.85rem;
    backdrop-filter: blur(6px);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(55px, 65px));
    gap: 10px;
    margin-top: 20px;
    max-width: 290px;
}

.mini-shot-row {
    display: grid;
    grid-template-columns: minmax(0, 55px);
    gap: 10px;
    justify-content: start;
    margin-bottom: 14px;
}

.mini-shot {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.48);
    border: 1px solid rgba(97, 88, 77, 0.1);
    box-shadow: var(--shadow-soft);
}

.mini-shot-trigger,
.mini-shot img {
    width: 100%;
    display: block;
}

.mini-shot-trigger {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.mini-shot img {
    height: 31px;
    object-fit: cover;
}

.mini-shot figcaption {
    padding: 7px 8px 8px;
    font-size: 0.68rem;
    line-height: 1.4;
    color: var(--muted);
}

.gallery figure {
    margin: 0;
    padding: 0;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.48);
    border: 1px solid rgba(97, 88, 77, 0.1);
    box-shadow: var(--shadow-soft);
}

.gallery-item {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: left;
    display: block;
    cursor: zoom-in;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 48px;
    object-fit: cover;
    transition: transform 0.28s ease, filter 0.28s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
    filter: saturate(1.04);
}

.gallery figcaption {
    padding: 7px 8px 9px;
    font-size: 0.68rem;
    color: var(--muted);
}

.lightbox-open {
    overflow: hidden;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    place-items: center;
    padding: 22px;
    background: rgba(45, 37, 29, 0.76);
    backdrop-filter: blur(10px);
}

.lightbox.is-open {
    display: grid;
}

.lightbox-panel {
    position: relative;
    width: min(92vw, 980px);
    max-height: min(90vh, 900px);
    padding: 18px;
    border-radius: 28px;
    background: rgba(246, 241, 234, 0.98);
    border: 1px solid rgba(97, 88, 77, 0.14);
    box-shadow: 0 28px 70px rgba(38, 31, 24, 0.28);
}

.lightbox-image {
    width: 100%;
    max-height: calc(90vh - 110px);
    object-fit: contain;
    border-radius: 20px;
    background: rgba(45, 37, 29, 0.92);
}

.lightbox-caption {
    margin: 14px 4px 0;
    color: var(--muted);
    font-size: 0.98rem;
}

.lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 999px;
    font-size: 1.5rem;
    line-height: 1;
}

.banner-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.faq-page .faq-grid {
    display: grid;
    gap: 16px;
}

.faq-page details {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.52);
    padding: 0 16px;
}

.faq-page details + details {
    margin-top: 12px;
}

.faq-page details[open] summary {
    padding-bottom: 8px;
}

.faq-page .faq-answer {
    padding-bottom: 16px;
    color: var(--muted);
}

@media (max-width: 1120px) {
    .quick-links,
    .feature-grid,
    .banner-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .masthead-grid,
    .story-grid {
        grid-template-columns: 1fr;
    }

    .page-layout,
    .pageShell {
        display: block;
        padding: 0 12px;
    }

    .side-banner,
    .sideBanner {
        position: static;
        max-width: 320px;
        margin: 0 auto 18px;
    }
}

@media (max-width: 720px) {
    body {
        padding: 18px 12px 34px;
    }

    .site-shell {
        width: calc(100% - 8px);
    }

    .section-card,
    .masthead {
        border-radius: 22px;
    }

    .quick-links,
    .feature-grid,
    .banner-strip {
        grid-template-columns: 1fr;
    }

    .mini-shot-row {
        grid-template-columns: 1fr;
    }

    .cta-row,
    .masthead-pills,
    .actions {
        width: 100%;
    }

    .cta-link,
    input[type="submit"],
    button,
    .download-btn,
    .btn {
        width: 100%;
    }

    .search {
        min-width: 100%;
    }

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