/* There is no documentation on how to change the CSS files to be better. These things are
beasts of god that should not be tampered with... just paste the whole thing into an LLM and pray
Why did nobody install tailwind? */

/* Shared styles for the Resource Guides pages (resources, recruitment, austin).
   Link order: ../styles.css, ../nav.css, resources.css, then the page's own css.
   Everything is scoped to body.guide / .guide-* so it won't collide with the rest of the site.
   Fonts are declared in your base styles; names here match assets/fonts. */

body.guide {
    --g-navy: #082e68;
    --g-blue: #4371b8;
    --g-teal: #005f86;
    --g-teal-dark: #004a69;
    --g-white: #fff;
    --g-width: var(--content-width, 64rem);
    --g-gutter: var(--page-gutter, 1.25rem);

    margin: 0;
    background: var(--g-white);
    color: var(--g-navy);
    font-family: "Mina", system-ui, sans-serif;
    line-height: 1.65;
}

.guide a:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

/* ---------- HERO ---------- */
.guide-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(16rem, 38vh, 26rem);
    padding: 6rem var(--g-gutter) 3rem;
    overflow: hidden;
    color: var(--g-white);
    /* each page's css sets --hero-image; navy shows if the image is missing */
    background: var(--g-navy) var(--hero-image, none) center / cover no-repeat;
}

.guide-hero--resources {
    --hero-image: url("../assets/photos/hero_photos/resources_hero.jpg");
    padding-block: 3rem;
}

/* navy overlay at 50% */
.guide-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgb(8 46 104 / 50%);
}

.guide-hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--g-width);
    margin: 0 auto;
}

.guide-hero--center .guide-hero__inner {
    text-align: center;
}

.guide-hero__title {
    max-width: 9em;
    margin: 0;
    font-family: "Lucidity Expand", "Arial Black", sans-serif;
    font-size: clamp(1.35rem, 6vw, 3.25rem);
    line-height: 1.1;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.guide-hero--center .guide-hero__title {
    max-width: none;
}

.guide-hero__subtitle {
    max-width: 34rem;
    margin: 0.75rem 0 0;
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    line-height: 1.5;
}

.guide-hero--center .guide-hero__subtitle {
    margin-inline: auto;
}

/* ---------- BANDS ---------- */
.guide-band {
    padding: clamp(3rem, 7vw, 5rem) var(--g-gutter);
    scroll-margin-top: 4rem;
}

.guide-band--white { background: var(--g-white); color: var(--g-navy); }
.guide-band--blue  { background: var(--g-blue);  color: var(--g-white); }
.guide-band--navy  { background: var(--g-navy);  color: var(--g-white); }

.guide-band__inner {
    max-width: var(--g-width);
    margin: 0 auto;
}

/* Full-screen sections may grow to fit their content on smaller screens. */
.guide--fullscreen main > section {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
}

.guide--fullscreen .guide-band__inner {
    width: 100%;
}

.guide-band__title {
    margin: 0 0 1.25rem;
    font-family: "Roboto Mono", ui-monospace, monospace;
    font-weight: 700;
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.2;
}

.guide-band h3,
.guide-band h4 {
    margin: 0 0 0.5rem;
    font-family: "Roboto Mono", ui-monospace, monospace;
    font-weight: 700;
    line-height: 1.3;
}

.guide-band h3 { font-size: 1.1rem; }
.guide-band h4 { font-size: 1rem; }

/* links: teal on white, inherit (white) on blue and navy */
.guide-band--white a { color: var(--g-teal); }
.guide-band--blue a,
.guide-band--navy a { color: inherit; }

.guide-band a {
    text-underline-offset: 0.2em;
}

.guide-band a:hover {
    text-decoration-thickness: 3px;
}

/* ---------- PROSE ---------- */
.guide-prose p,
.guide-prose ul,
.guide-prose ol {
    max-width: 65ch;
    margin: 0 0 1rem;
}

.guide-prose ul {
    padding-left: 1.25rem;
}

.guide-prose h3 {
    margin-top: 1.75rem;
}

/* columns that group sub-sections (housing areas, study spots, ...) */
.guide-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    gap: 2rem 2.5rem;
    margin-top: 1.5rem;
}

.guide-cols--wide {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

.guide-col {
    padding-top: 1rem;
    border-top: 2px solid currentColor;
}

.guide-prose .guide-col h3 {
    margin-top: 0;
}

.guide-prose .guide-col p {
    max-width: none;
}

/* ---------- BUTTON ---------- */
.guide-hero .guide-btn,
.guide-band .guide-btn {
    width: min(32rem, 100%);
    min-width: 0;
    margin-top: 1.5rem;
    padding: 0.45rem 1.5rem;
    line-height: 1.5;
    text-align: center;
    color: var(--g-white);
}

.guide-hero .guide-btn.btn--light,
.guide-band .guide-btn.btn--light {
    color: var(--sponsors-blue);
}

/* ---------- RESOURCES INDEX ---------- */
.guide-band--right .guide-band__inner {
    text-align: right;
}

.guide-band__lead {
    max-width: 40ch;
    margin: 0;
}

.guide-band--right .guide-band__lead {
    margin-left: auto;
}

/* Added by resources.js; content stays visible when JavaScript is unavailable. */
.guide-reveal-line {
    display: block;
}

.guide .guide-reveal {
    opacity: 0;
    transform: translateY(1.25rem);
}

.guide .guide-reveal--visible {
    animation: guide-fade-in-up 0.4s ease-out both;
    animation-delay: var(--guide-reveal-delay, 0s);
}

.guide .guide-reveal--settled {
    opacity: 1;
    transform: none;
    animation: none;
}

@keyframes guide-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(1.25rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .guide .guide-reveal {
        opacity: 1;
        transform: none;
        animation: none;
    }
}
