/*
 * Dimensions Global site styles.
 * Safe to edit online. Change the brand colours and fonts in :root below.
 * Bootstrap 5 is loaded first (public/vendor/bootstrap), so these rules adjust it.
 */

:root {
    --ink: #0B2033;          /* navy from the logo: text, header, dark bands */
    --ink-soft: #46586A;     /* secondary text */
    --brand: #C8102E;        /* red from the logo: buttons and highlights */
    --brand-dark: #9E0B22;
    --mist: #EEF2F5;         /* alternate section background */
    --line: #D5DDE4;         /* borders and rules */
    --paper: #FFFFFF;

    --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --display-width: 112%;   /* wider letters for headings, like the logo */

    --bs-body-font-family: var(--font);
    --bs-body-color: var(--ink);
    --bs-body-bg: var(--paper);
    --bs-link-color-rgb: 158, 11, 34;
    --bs-link-hover-color-rgb: 11, 32, 51;
    --bs-border-color: var(--line);
}

body {
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .page-title, .section-title, .hero-title {
    font-stretch: var(--display-width);
    color: var(--ink);
    letter-spacing: -0.01em;
}

a { text-underline-offset: 0.2em; }

:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: 1rem;
    z-index: 2000;
    background: var(--ink);
    color: #fff;
    padding: .5rem 1rem;
}

/* Buttons */
.btn { font-weight: 600; border-radius: 4px; }
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-outline-ink { border: 2px solid var(--ink); color: var(--ink); background: transparent; }
.btn-outline-ink:hover, .btn-outline-ink:focus { background: var(--ink); color: #fff; }

/* Header */
.topbar {
    background: var(--ink);
    color: #fff;
    font-size: .875rem;
    padding: .4rem 0;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .bi { margin-right: .25rem; }

.main-nav {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: .75rem 0;
}
.main-nav .navbar-brand img { height: 46px; width: auto; }
.main-nav .nav-link {
    color: var(--ink);
    font-weight: 500;
    padding: .5rem .55rem;
    white-space: nowrap;
}
.main-nav .btn { white-space: nowrap; }
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .main-nav .nav-link { font-size: .95rem; padding: .5rem .45rem; }
}
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--brand); }
.main-nav .dropdown-menu { border-radius: 4px; border-color: var(--line); }
.main-nav .dropdown-item:active { background: var(--brand); }

/* Sections */
.section { padding: 4.5rem 0; }
.section-tight { padding: 2.5rem 0; }
.section-alt { background: var(--mist); }
.section-title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 700; margin-bottom: .75rem; }
.page-title { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 700; margin-bottom: 1rem; }
.text-muted-ink { color: var(--ink-soft); }
.lead-ink { font-size: 1.2rem; color: var(--ink); max-width: 60ch; }
.narrow { max-width: 760px; }

/* Hero: the faceted diamond is the one bold element on the page */
.hero {
    padding: 4.5rem 0 4rem;
    background:
        linear-gradient(90deg, var(--paper) 55%, var(--mist) 55%);
}
.hero-title {
    font-size: clamp(2.1rem, 4.6vw, 3.6rem);
    font-weight: 800;
    line-height: 1.08;
    max-width: 18ch;
    margin-bottom: 1.25rem;
}
.hero-lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 56ch; margin-bottom: 2rem; }
.hero-mark { max-width: 420px; margin-left: auto; }
.hero-mark svg { width: 100%; height: auto; display: block; }

@media (max-width: 991.98px) {
    .hero { background: var(--paper); }
    .hero-mark { max-width: 260px; margin: 0 auto; }
}

/* Vision, mission, values */
.purpose { border-bottom: 1px solid var(--line); }
.purpose-item { border-left: 4px solid var(--brand); padding-left: 1.25rem; }
.purpose-item h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: .35rem; }
.purpose-item p { margin: 0; color: var(--ink-soft); }

/* Benefits */
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem 2.5rem; margin: 0; }
.benefits li { display: flex; gap: 1rem; }
.benefits .bi { font-size: 1.6rem; color: var(--brand); line-height: 1; margin-top: .2rem; }
.benefits h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .25rem; }
.benefits p { margin: 0; color: var(--ink-soft); }

/* Chapters */
.chapter-list { margin: 0; border-top: 2px solid var(--ink); }
.chapter-list li {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 2rem;
    align-items: baseline;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--line);
}
.chapter-name { font-stretch: var(--display-width); font-weight: 700; font-size: 1.35rem; min-width: 12rem; }
.chapter-note { color: var(--ink-soft); }

/* Numbers band */
.stats { background: var(--ink); color: #fff; padding: 3rem 0; }
.stats dt { font-weight: 400; font-size: .95rem; color: #C9D3DC; order: 2; }
.stats dd { font-stretch: var(--display-width); font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0 0 .25rem; }
.stats .col-6, .stats .col-lg-3 { display: flex; flex-direction: column-reverse; }

/* How to join: a real sequence, so it is numbered */
.join-steps { padding-left: 1.4rem; margin: 0; }
.join-steps li { padding: 0 0 1.25rem .5rem; }
.join-steps li::marker { color: var(--brand); font-weight: 800; }

/* Auth forms */
.auth-wrap { max-width: 480px; }
.auth-form .form-label { font-weight: 600; }
.auth-links { display: flex; flex-direction: column; gap: .4rem; margin-top: 1.5rem; }

/* Member dashboard */
.tool-list { display: grid; gap: 1rem; margin-top: 1.5rem; max-width: 760px; }
.tool-list li { display: flex; gap: 1rem; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: 4px; }
.tool-list .bi { font-size: 1.4rem; color: var(--brand); }
.tool-list strong { display: block; }

/* Footer */
.site-footer { background: var(--ink); color: #C9D3DC; padding: 3.5rem 0 1.5rem; margin-top: 0; }
.site-footer a { color: #fff; }
.footer-name { font-stretch: var(--display-width); font-weight: 700; font-size: 1.3rem; color: #fff; }
.footer-about { max-width: 46ch; }
.footer-heading { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: .75rem; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-address { font-style: normal; margin-bottom: .75rem; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .875rem; }
.site-footer .social-links a, .topbar .social-links a { color: #fff; font-size: 1.1rem; }

/* WhatsApp button */
.whatsapp-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: #1FA855;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 14px rgba(11, 32, 51, .25);
    z-index: 1000;
}
.whatsapp-float:hover { color: #fff; background: #178A45; }

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; }
}

/* ---------- Content pages ---------- */
.prose-dg { font-size: 1.0625rem; max-width: 72ch; }
.prose-dg h2 { font-size: 1.5rem; font-weight: 700; margin: 2.25rem 0 .75rem; }
.prose-dg h3 { font-size: 1.2rem; font-weight: 700; margin: 1.75rem 0 .5rem; }
.prose-dg p, .prose-dg ul, .prose-dg ol { margin-bottom: 1rem; }
.prose-dg img { max-width: 100%; height: auto; border-radius: 4px; }
.prose-dg figure { margin: 1.5rem 0; }
.prose-dg figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: .4rem; }
.prose-dg blockquote { border-left: 4px solid var(--brand); padding-left: 1rem; color: var(--ink-soft); }
.prose-dg table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.prose-dg td, .prose-dg th { border: 1px solid var(--line); padding: .5rem; }

/* People */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 2rem 1.5rem; margin: 1.25rem 0 0; }
.person { display: flex; flex-direction: column; }
.person img, .person-initials { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; background: var(--mist); margin-bottom: .75rem; }
.person-initials { display: grid; place-items: center; font-stretch: var(--display-width); font-weight: 800; font-size: 2.2rem; color: var(--ink-soft); }
.person-name { font-weight: 700; line-height: 1.3; }
.person-role { color: var(--ink-soft); font-size: .95rem; line-height: 1.35; margin-top: .2rem; }

/* Blog */
.filter-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; border-bottom: 1px solid var(--line); padding-bottom: .75rem; }
.filter-links a { text-decoration: none; color: var(--ink-soft); font-weight: 600; }
.filter-links a.active { color: var(--brand); }
.post-row { display: grid; grid-template-columns: 240px 1fr; gap: 1.5rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.post-row:not(:has(img)) { grid-template-columns: 1fr; }
.post-row img { width: 100%; height: 160px; object-fit: cover; border-radius: 4px; }
.post-row h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: .25rem; }
.post-row h2 a { color: var(--ink); text-decoration: none; }
.post-row h2 a:hover { color: var(--brand); text-decoration: underline; }
.post-meta { color: var(--ink-soft); font-size: .95rem; }
.post-hero { width: 100%; height: auto; border-radius: 4px; margin: 1rem 0 2rem; }
.more-posts li { margin-bottom: .5rem; }
@media (max-width: 575.98px) { .post-row { grid-template-columns: 1fr; } }

/* Newsletters and albums */
.year-heading { font-size: 1.3rem; font-weight: 700; margin: 2.5rem 0 1rem; padding-top: 1rem; border-top: 2px solid var(--ink); }
.cover-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1.75rem 1.25rem; margin: 0; }
.cover-grid a { display: block; color: var(--ink); text-decoration: none; font-weight: 600; }
.cover-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border: 1px solid var(--line); border-radius: 2px; margin-bottom: .6rem; background: var(--mist); }
.cover-grid a:hover span { color: var(--brand); text-decoration: underline; }
.reader { max-width: 900px; margin: 0 auto; display: grid; gap: 1rem; }
.reader img { width: 100%; height: auto; border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(11, 32, 51, .08); }
.issue-nav { display: flex; justify-content: space-between; gap: 1rem; max-width: 900px; margin: 2rem auto 0; font-weight: 600; }

/* Gallery */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; margin: 1.5rem 0 0; }
.photo-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; }
.lightbox { border: 0; padding: 0; max-width: 95vw; max-height: 95vh; background: transparent; }
.lightbox::backdrop { background: rgba(11, 32, 51, .92); }
.lightbox img { max-width: 92vw; max-height: 82vh; display: block; margin: 0 auto; }
.lightbox-controls { display: flex; justify-content: center; align-items: center; gap: 1rem; padding: .75rem; color: #fff; }
.lightbox-controls button { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .6); border-radius: 4px; padding: .35rem .9rem; }

/* Videos */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2rem 1.5rem; margin: 1.5rem 0 0; }
.video-title { font-weight: 600; margin-top: .6rem; }
