:root {
    --navy: #122348;
    --navy-soft: #1d3466;
    --gold: #cda757;
    --paper: #f4f5f8;
    --ink: #1b2236;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Titillium Web', sans-serif;
}

html {
    scroll-behavior: smooth;
}

.clds {
    color: var(--ink);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

/* HERO */
.clds-hero {
    position: relative;
    color: #fff;
    text-align: center;
    padding: 90px 20px 70px;
    background: url('/res/img/backgrounds/bg1.png') no-repeat center / cover, var(--navy);
    margin-top: -20px;
}

.clds-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 45, .72);
}

.clds-hero>* {
    position: relative;
}

.clds-hero h1 {
    color: #fff;
    font-size: clamp(1.9rem, 5vw, 3.4rem);
    letter-spacing: 2px;
    line-height: 1.1;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, .7);
}

.clds-hero .rule {
    width: 50%;
    max-width: 420px;
    height: 3px;
    border: 0;
    background: var(--gold);
    margin: 22px auto;
}

.clds-hero .sub {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.2rem;
    font-style: italic;
}

/* LAYOUT */
section.block {
    padding: 64px 20px;
    scroll-margin-top: 20px;
}

.wrap {
    max-width: 1300px;
    margin: 0 auto;
    align-items: center;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 12px;
    padding: 25px 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.head {
    text-align: center;
    margin-bottom: 40px;
}

.head h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.3rem);
}

.head hr {
    width: 90px;
    height: 3px;
    background: var(--gold);
    border: 0;
    margin: 12px auto 14px;
}

.head p {
    max-width: 680px;
    margin: 0 auto;
    color: var(--navy);
}

.grid {
    display: grid;
    gap: 20px;
}

.g3 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.g4 {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.g5 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 24px 22px;
    border-top: 4px solid var(--gold);
    box-shadow: 0 2px 10px rgba(18, 35, 72, .12);
}

.block:nth-of-type(even) .card {
    background: var(--paper);
    box-shadow: none;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.card p,
.card li {
    font-size: .98rem;
}

.card ul {
    padding-left: 18px;
    margin-top: 6px;
}

.card .tag {
    color: var(--gold);
    font-weight: 700;
    font-size: .95rem;
    display: block;
    margin-bottom: 2px;
}

#overview {
    background: url('../../../res/img/backgrounds/bg9.png') no-repeat center center/cover;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

#bkd {
    background: url('../../../res/img/backgrounds/military.png') no-repeat center center/cover;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

#roles {
    background: url('../../../res/img/backgrounds/bg10.png') no-repeat center center/cover;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

#camp {
    background: url('../../../res/img/backgrounds/bg4.png') no-repeat center center/cover;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

#years {
    background: url('../../../res/img/backgrounds/bg2.png') no-repeat center center/cover;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

#end {
    background: url('../../../res/img/backgrounds/bg13.jpg') no-repeat center center/cover;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

/* OVERVIEW */
.overview {
    display: grid;
    grid-template-columns: 1.4fr 1.7fr;
    gap: 36px;
}

.overview p+p {
    margin-top: 14px;
}

.belief {
    background: var(--navy);
    color: #fff;
    border-radius: 12px;
    padding: 30px 28px;
    font-family: 'Bree Serif', serif;
    font-size: 1.35rem;
    line-height: 1.4;
    border-left: 6px solid var(--gold);
}

.belief span {
    display: block;
    margin-top: 12px;
    font-family: 'Titillium Web', sans-serif;
    font-size: .95rem;
    opacity: .85;
}

/* BE KNOW DO */
.bkd {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
}

.bkd>div {
    padding: 30px 26px;
    background: var(--navy);
    color: #fff;
}

.bkd>div:nth-child(2) {
    background: var(--navy-soft);
}

.bkd>div:nth-child(3) {
    background: #284680;
}

.bkd h3 {
    color: var(--gold);
    font-size: 2rem;
}

.bkd .what {
    font-weight: 700;
    margin-bottom: 8px;
}

.bkd p {
    font-size: .98rem;
}

.values {
    margin-top: 36px;
    text-align: center;
}

.values h3 {
    font-size: 1.3rem;
    margin-bottom: 14px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.chip {
    background: #fff;
    border: 2px solid var(--gold);
    color: var(--navy);
    border-radius: 999px;
    padding: 6px 18px;
    font-weight: 600;
    font-size: .95rem;
}

/* ROLES */
.role {
    text-align: center;
}

.role h3 {
    font-size: 1.15rem;
}

.role .n {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--paper);
    display: grid;
    place-items: center;
    margin: 0 auto 12px;
    font-family: 'Bree Serif', serif;
    font-size: 1.2rem;
}

/* PROGRESSION: ascending steps */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    align-items: end;
}

.step {
    background: var(--navy);
    color: #fff;
    border-radius: 12px 12px 0 0;
    padding: 22px 18px;
    border-top: 4px solid var(--gold);
}

.step:nth-child(1) {
    min-height: 380px;
}

.step:nth-child(2) {
    min-height: 420px;
    background: var(--navy-soft);
}

.step:nth-child(3) {
    min-height: 460px;
    background: #284680;
}

.step:nth-child(4) {
    min-height: 500px;
    background: #345aa3;
}

.step .yr {
    color: var(--gold);
    font-weight: 700;
}

.step h3 {
    color: #fff;
    font-size: 1.4rem;
    margin: 2px 0 4px;
}

.step .cls {
    font-style: italic;
    opacity: .85;
    font-size: .92rem;
    margin-bottom: 10px;
}

.step p {
    font-size: .95rem;
}

.quote-line {
    text-align: center;
    margin-top: 26px;
    font-style: italic;
    color: var(--navy);
}

/* TWO COLUMN LISTS */
.cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.principles {
    columns: 2;
    column-gap: 24px;
    list-style: none;
    padding: 0 !important;
}

.principles li {
    padding: 5px 0 5px 20px;
    position: relative;
    break-inside: avoid;
}

.principles li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 9px;
    height: 9px;
    background: var(--gold);
    border-radius: 2px;
}


/* IMAGES: placeholders show until real files exist at /res/img/clds/<name>.jpg */
.pic {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    margin-bottom: 14px;
    background: #dfe3ec;
}

.step .pic {
    aspect-ratio: 16 / 10;
}

.overview .pic {
    aspect-ratio: 16 / 10;
    margin: 0 0 18px;
    border-radius: 12px;
    border-bottom: 4px solid var(--gold);
}


/* INTERACTIVE */
.grid {
    align-items: start;
}

.more {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 2px dashed var(--gold);
    text-align: left;
    font-size: .95rem;
}

.more ul {
    padding-left: 18px;
    margin: 0;
}

.more li {
    margin-bottom: 4px;
}

.bkd .more {
    border-top-color: rgba(255, 255, 255, .45);
}

button.chip {
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, color .2s, transform .15s;
}

button.chip:hover {
    transform: translateY(-2px);
}

button.chip[aria-pressed="true"] {
    background: var(--navy);
    color: #fff;
}

.value-panel {
    max-width: 720px;
    margin: 24px auto 0;
    background: #fff;
    border-left: 6px solid var(--gold);
    border-radius: 12px;
    padding: 20px 24px;
    text-align: left;
    box-shadow: 0 2px 10px rgba(18, 35, 72, .12);
}

.value-panel h4 {
    font-family: 'Bree Serif', serif;
    font-weight: 400;
    font-size: 1.3rem;
    color: var(--navy);
    margin-bottom: 4px;
}

.step {
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

.step:hover {
    transform: translateY(-4px);
}

.step[aria-pressed="true"] {
    box-shadow: 0 0 0 4px var(--gold);
}

.year-panel {
    margin-top: 22px;
    background: var(--paper);
    border-left: 6px solid var(--gold);
    border-radius: 12px;
    padding: 24px 26px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 22px;
}

.year-panel h4 {
    font-family: 'Bree Serif', serif;
    font-weight: 400;
    color: var(--navy);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.year-panel .ttl {
    grid-column: 1 / -1;
    font-family: 'Bree Serif', serif;
    font-size: 1.4rem;
    color: var(--navy);
}

/* HONOR CODE */
.honor {
    background: var(--navy);
    color: #fff;
    text-align: center;
    padding: 56px 20px;
    border-top: 4px solid var(--gold);
    border-bottom: 4px solid var(--gold);
}

.honor p {
    font-family: 'Bree Serif', serif;
    font-size: clamp(1.4rem, 3.4vw, 2.1rem);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.35;
}

.honor span {
    display: block;
    margin-top: 14px;
    color: var(--gold);
    font-weight: 600;
}

@media (max-width: 860px) {

    .overview,
    .bkd {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }

    .step,
    .step:nth-child(n) {
        min-height: 0;
        border-radius: 12px;
    }

    .principles {
        columns: 1;
    }

    .toc {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .steps {
        grid-template-columns: 1fr;
    }

    section.block {
        padding: 44px 16px;
    }

    .g3 {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .g4 {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .g5 {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}