/* ==========================================================================
   Norræna barnahjálpin — public site
   Design tokens mirror the Avada Charity prebuilt: Montserrat headings in
   uppercase with wide tracking, airy Raleway body copy, an amber primary
   action colour and a deep navy chrome.
   ========================================================================== */

:root {
    --c-white: #ffffff;
    --c-offwhite: #f9f9f9;
    --c-border: #e5e5e5;
    /* The organisation's own blue, from the logo. It is light: 5.33:1 on the
       navy chrome, but only 2.5:1 on white, so it never carries body text on a
       light background -- brand-deep does that. */
    --c-brand: #56AAE7;
    --c-brand-deep: #1F6FA8;
    --c-brand-dark: #17547E;
    --c-coral: #ed6967;
    --c-body: #5c6668;
    /* Chrome navy tuned per the 01-02.09.26 feedback: brighter and more
       saturated than the original slate #262e44, still dark enough that
       --c-brand (#56AAE7) clears 4.5:1 on it for kickers and hovers. */
    --c-dark: #1B3A5C;

    --font-head: 'Montserrat', 'Segoe UI', Helvetica, Arial, sans-serif;
    --font-body: 'Raleway', 'Segoe UI', Helvetica, Arial, sans-serif;

    --container: 1200px;
    --gutter: 24px;
    --section-y: 110px;

    --shadow-card: 0 12px 34px rgba(27, 58, 92, 0.09);
    --shadow-raised: 0 20px 48px rgba(27, 58, 92, 0.16);
    --transition: 0.25s ease;
}

/* --------------------------------------------------------------- resets */

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* The browser's own [hidden] rule is display: none on the element itself, so
   any class that sets display beats it — .field is flex, which silently kept
   conditional fields on screen. Toggling `el.hidden` has to win everywhere. */
[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--c-white);
    color: var(--c-body);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 2.05;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--c-brand-deep);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--c-brand-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--c-dark);
    margin: 0 0 24px;
}

h1 { font-size: clamp(30px, 4.4vw, 48px); }
h2 { font-size: clamp(25px, 3.1vw, 34px); }
h3 { font-size: clamp(19px, 2vw, 22px); }
h4 { font-size: 17px; }
h5 { font-size: 15px; }
h6 { font-size: 13px; }

p {
    margin: 0 0 22px;
}

p:last-child {
    margin-bottom: 0;
}

blockquote {
    margin: 0;
}

/* Skip link for keyboard users. */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    background: var(--c-dark);
    color: var(--c-white);
    padding: 12px 20px;
}

.skip-link:focus {
    left: 12px;
    top: 12px;
    color: var(--c-white);
}

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

/* ------------------------------------------------------------- utilities */

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.container--narrow {
    max-width: 860px;
}

.section {
    padding: var(--section-y) 0;
}

.section--tight {
    padding: 72px 0;
}

.section--muted {
    background: var(--c-offwhite);
}

.section--dark {
    background: var(--c-dark);
    color: rgba(255, 255, 255, 0.78);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
    color: var(--c-white);
}

.kicker {
    display: block;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--c-brand-deep);
    margin-bottom: 14px;
}

.section--dark .kicker {
    color: var(--c-brand);
}

.section-head {
    max-width: 760px;
    margin-bottom: 56px;
}

.section-head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.lead {
    font-size: 20px;
    line-height: 1.75;
}

.rule {
    width: 60px;
    height: 3px;
    background: var(--c-brand);
    border: 0;
    margin: 0 0 28px;
}

.section-head--center .rule {
    margin-left: auto;
    margin-right: auto;
}

.text-center { text-align: center; }

/* --------------------------------------------------------------- buttons */

.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 500;
    line-height: 17px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 15px 32px;
    border: 2px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn--primary {
    background: var(--c-brand-deep);
    border-color: var(--c-brand-deep);
    color: var(--c-white);
}

.btn--primary:hover {
    background: var(--c-brand-dark);
    border-color: var(--c-brand-dark);
    color: var(--c-white);
}

.btn--outline {
    background: transparent;
    border-color: var(--c-white);
    color: var(--c-white);
}

.btn--outline:hover {
    background: var(--c-white);
    color: var(--c-dark);
}

.btn--dark {
    background: var(--c-dark);
    border-color: var(--c-dark);
    color: var(--c-white);
}

.btn--dark:hover {
    background: var(--c-brand-deep);
    border-color: var(--c-brand-deep);
    color: var(--c-white);
}

.btn--ghost {
    background: transparent;
    border-color: var(--c-border);
    color: var(--c-dark);
}

.btn--ghost:hover {
    border-color: var(--c-dark);
    background: var(--c-dark);
    color: var(--c-white);
}

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

.btn-row--center {
    justify-content: center;
}

.link-more {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--c-dark);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.link-more::after {
    content: '→';
    transition: transform var(--transition);
}

.link-more:hover {
    color: var(--c-brand-dark);
}

.link-more:hover::after {
    transform: translateX(4px);
}

/* ---------------------------------------------------------------- header */

.site-header {
    background: var(--c-dark);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 86px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--c-white);
}

.brand:hover {
    color: var(--c-white);
}

/* The organisation's own mark; it carries its own shape and colour, so no
   plate or background behind it. */
.brand__mark {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: block;
}

.brand__name {
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    line-height: 1.25;
}

.brand__tagline {
    display: block;
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: none;
    color: var(--c-brand);
}

.nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav a {
    display: block;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--c-white);
    padding: 12px 11px;
    white-space: nowrap;
}

.nav a:hover,
.nav a[aria-current='page'] {
    color: var(--c-brand);
}

.nav__item {
    position: relative;
}

.nav__panel {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: var(--c-white);
    box-shadow: var(--shadow-raised);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.nav__item:hover .nav__panel,
.nav__item:focus-within .nav__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav__panel a {
    color: var(--c-body);
    letter-spacing: 1px;
    padding: 9px 22px;
    text-transform: none;
    font-family: var(--font-body);
    font-size: 14px;
    white-space: nowrap;
}

.nav__panel a:hover {
    color: var(--c-dark);
    background: var(--c-offwhite);
}

/* Third level, e.g. a school under Infrastructure: indented beneath its unit. */
.nav__panel a.nav__sub {
    padding-left: 38px;
    font-size: 13px;
}

.nav__panel a.nav__sub::before {
    content: '–';
    margin-right: 8px;
    color: var(--c-brand-deep);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-head);
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.lang-switch a {
    color: rgba(255, 255, 255, 0.55);
    padding: 4px 2px;
}

.lang-switch a:hover {
    color: var(--c-white);
}

.lang-switch a[aria-current='true'] {
    color: var(--c-brand);
}

.lang-switch span {
    color: rgba(255, 255, 255, 0.3);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    color: var(--c-white);
    font-family: var(--font-head);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 11px 16px;
    cursor: pointer;
}

/* ------------------------------------------------------------------ hero */

.hero {
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: center;
    color: var(--c-white);
    background: var(--c-dark);
    overflow: hidden;
}

.hero__media {
    position: absolute;
    inset: 0;
}

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

.hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(27, 58, 92, 0.92) 0%, rgba(27, 58, 92, 0.72) 48%, rgba(27, 58, 92, 0.42) 100%);
}

.hero__inner {
    position: relative;
    /* Keeps the container gutter: this rule would otherwise reset it to 0. */
    padding: 120px var(--gutter);
    max-width: 720px;
}

.hero h1 {
    color: var(--c-white);
    margin-bottom: 26px;
}

.hero__text {
    font-size: 19px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 38px;
}

/* Compact hero used on interior pages. */
.page-hero {
    position: relative;
    background: var(--c-dark);
    color: var(--c-white);
    overflow: hidden;
}

.page-hero__media {
    position: absolute;
    inset: 0;
}

.page-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(27, 58, 92, 0.9) 0%, rgba(27, 58, 92, 0.74) 55%, rgba(27, 58, 92, 0.58) 100%);
}

.page-hero__inner {
    position: relative;
    padding: 92px var(--gutter);
    max-width: 800px;
}

.page-hero h1 {
    color: var(--c-white);
    margin-bottom: 0;
}

.page-hero__intro {
    margin-top: 22px;
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.82);
}

.breadcrumb {
    font-family: var(--font-head);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--c-brand);
    margin-bottom: 16px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a:hover {
    color: var(--c-white);
}

/* ------------------------------------------------------------------ grids */

.grid {
    display: grid;
    gap: 30px;
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.split--wide-left {
    grid-template-columns: 1.15fr 0.85fr;
}

/* ------------------------------------------------------------- statistics */

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}

.stat {
    text-align: center;
    padding: 34px 18px;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: 3px;
}

.section--dark .stat {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

.stat__value {
    font-family: var(--font-head);
    font-size: 44px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--c-brand-deep);
    line-height: 1;
    display: block;
    margin-bottom: 12px;
}

.stat__label {
    font-family: var(--font-head);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--c-dark);
    line-height: 1.6;
}

.section--dark .stat__value {
    color: var(--c-brand);
}

.section--dark .stat__label {
    color: rgba(255, 255, 255, 0.8);
}

/* ------------------------------------------------------------------ cards */

.card {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: 3px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.card__media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--c-offwhite);
}

.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card__media img {
    transform: scale(1.05);
}

.card__body {
    padding: 30px 28px 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 14px;
}

.card__body h3 {
    margin: 0;
    font-size: 18px;
    letter-spacing: 1.4px;
}

.card__meta {
    font-family: var(--font-head);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--c-brand-deep);
}

.card__text {
    font-size: 15px;
    line-height: 1.85;
    margin: 0;
}

.card__footer {
    margin-top: auto;
    padding-top: 6px;
}

/* Focus-area card: icon on top, no image. */
.focus-card {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: 3px;
    padding: 44px 32px;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.focus-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    border-color: transparent;
}

.focus-card__icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 26px;
    border-radius: 50%;
    background: var(--c-offwhite);
    color: var(--c-brand-deep);
    display: grid;
    place-items: center;
    transition: background var(--transition), color var(--transition);
}

.focus-card:hover .focus-card__icon {
    background: var(--c-brand-deep);
    color: var(--c-white);
}

.focus-card__icon svg {
    width: 32px;
    height: 32px;
}

.focus-card h3 {
    font-size: 16px;
    letter-spacing: 1.6px;
    margin-bottom: 14px;
}

.focus-card p {
    font-size: 15px;
    line-height: 1.85;
}

/* ----------------------------------------------------------- testimonials */

.quote-card {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: 3px;
    padding: 40px 34px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    position: relative;
}

.quote-card::before {
    content: '“';
    position: absolute;
    top: 6px;
    right: 26px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 84px;
    line-height: 1;
    color: var(--c-brand);
    opacity: 0.35;
}

.quote-card__text {
    font-size: 16px;
    line-height: 1.9;
}

.quote-card__text p {
    margin-bottom: 16px;
}

.quote-card__person {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--c-border);
}

.avatar {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--c-offwhite);
    margin-top: 22px;
}

.avatar--placeholder {
    display: grid;
    place-items: center;
    font-family: var(--font-head);
    font-size: 18px;
    letter-spacing: 1px;
    color: var(--c-white);
    background: var(--c-brand-deep);
}

.quote-card__name {
    margin-top: 22px;
}

.quote-card__name strong {
    display: block;
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--c-dark);
}

.quote-card__name span {
    font-size: 13px;
    color: var(--c-brand-deep);
}

/* -------------------------------------------------------------- galleries */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

.gallery-grid figure {
    margin: 0;
    border-radius: 3px;
    overflow: hidden;
    background: var(--c-offwhite);
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-grid figure:hover img {
    transform: scale(1.06);
}

.gallery-grid figcaption {
    font-family: var(--font-head);
    font-size: 11px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--c-dark);
    padding: 14px 14px 16px;
    line-height: 1.6;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-top: 0;
}

/* Two large feature tiles linking to the galleries. */
.feature-tile {
    position: relative;
    display: block;
    border-radius: 3px;
    overflow: hidden;
    min-height: 320px;
    color: var(--c-white);
}

.feature-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.feature-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(27, 58, 92, 0.15) 20%, rgba(27, 58, 92, 0.88) 100%);
}

.feature-tile:hover img {
    transform: scale(1.05);
}

.feature-tile__body {
    position: relative;
    z-index: 1;
    padding: 40px 34px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 320px;
}

.feature-tile h3 {
    color: var(--c-white);
    font-size: 19px;
    margin-bottom: 10px;
}

.feature-tile span {
    font-family: var(--font-head);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--c-brand);
}

/* ---------------------------------------------------------------- prose */

.prose {
    font-size: 16px;
    line-height: 2;
}

.prose h2 {
    font-size: 24px;
    margin-top: 48px;
}

.prose h3 {
    font-size: 18px;
    margin-top: 38px;
}

.prose h2:first-child,
.prose h3:first-child {
    margin-top: 0;
}

.prose ul,
.prose ol {
    padding-left: 22px;
    margin: 0 0 22px;
}

.prose li {
    margin-bottom: 8px;
}

/* -------------------------------------------------------------- profiles */

.profile {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 44px;
    align-items: start;
    padding: 44px 0;
    border-bottom: 1px solid var(--c-border);
}

.profile:last-child {
    border-bottom: 0;
}

.profile__photo {
    border-radius: 3px;
    overflow: hidden;
    background: var(--c-offwhite);
    aspect-ratio: 3 / 4;
}

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

.profile__photo--placeholder {
    display: grid;
    place-items: center;
    background: var(--c-dark);
    color: var(--c-brand);
    font-family: var(--font-head);
    font-size: 44px;
    letter-spacing: 2px;
}

.profile h3 {
    margin-bottom: 6px;
}

.profile__role {
    font-family: var(--font-head);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--c-brand-deep);
    margin-bottom: 22px;
}

/* ------------------------------------------------------------------ forms */

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field--full {
    grid-column: 1 / -1;
}

.field label {
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--c-dark);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--c-dark);
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: 2px;
    padding: 13px 15px;
    transition: border-color var(--transition);
}

/* Carried over from an earlier step: shown, not editable (feedback 13.09.26).
   Greyed so the fields the donor can still fill in stand out against them.
   The text stays at 4.5:1 or better, so it is dimmed, not hard to read. */
.field input:disabled,
.field input[readonly] {
    background: var(--c-offwhite);
    color: #5c6670;
    border-style: dashed;
    cursor: not-allowed;
    -webkit-text-fill-color: #5c6670;
    opacity: 1;
}

/* The one box on the review step the donor fills in. */
.field--active label {
    color: var(--c-dark);
}

.field--active input {
    border-color: var(--c-brand-deep);
}

.notice {
    border-left: 3px solid var(--c-brand-deep);
    background: var(--c-offwhite);
    padding: 16px 20px;
    font-size: 14px;
    line-height: 1.7;
}

.notice h4 {
    margin: 0 0 6px;
    font-size: 14px;
}

.notice p {
    margin: 0;
}

.field textarea {
    min-height: 165px;
    resize: vertical;
    line-height: 1.7;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--c-brand-deep);
    outline: none;
}

.field .error {
    font-size: 13px;
    color: var(--c-coral);
}

.field--radios {
    gap: 12px;
}

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

.radio-chip {
    position: relative;
}

.radio-chip input {
    position: absolute;
    opacity: 0;
    inset: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.radio-chip span {
    display: block;
    font-family: var(--font-head);
    font-size: 12px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    padding: 12px 20px;
    border: 1px solid var(--c-border);
    border-radius: 2px;
    color: var(--c-body);
    transition: all var(--transition);
}

.radio-chip input:checked + span {
    background: var(--c-dark);
    border-color: var(--c-dark);
    color: var(--c-white);
}

.radio-chip input:focus-visible + span {
    outline: 3px solid var(--c-brand-deep);
    outline-offset: 2px;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-note {
    font-size: 13px;
    color: var(--c-body);
}

.alert {
    border-radius: 2px;
    padding: 18px 22px;
    margin-bottom: 30px;
    font-size: 15px;
}

.alert--success {
    background: rgba(31, 111, 168, 0.10);
    border-left: 4px solid var(--c-brand-deep);
    color: var(--c-dark);
}

.alert--error {
    background: rgba(237, 105, 103, 0.1);
    border-left: 4px solid var(--c-coral);
    color: var(--c-dark);
}

.alert ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

/* --------------------------------------------------------------- panels */

.panel {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: 3px;
    padding: 44px 40px;
}

.panel--muted {
    background: var(--c-offwhite);
}

.detail-list {
    margin: 0;
    display: grid;
    gap: 2px;
}

/* Label above value.
   `space-between` used to fling the two to opposite edges, leaving a long gap
   in a wide panel. Two columns are no better here: these panels are ~380px
   wide and the label eats 144px of it, so an email address (230px) broke
   mid-word. Stacking keeps the value with its label at any width. */
.detail-list div {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--c-border);
}

.detail-list div:last-child {
    border-bottom: 0;
}

.detail-list dt {
    font-family: var(--font-head);
    font-size: 11px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--c-body);
    margin-bottom: 4px;
}

.detail-list dd {
    margin: 0;
    font-weight: 600;
    color: var(--c-dark);
    /* Long emails and IBANs must break rather than overflow a narrow panel. */
    overflow-wrap: anywhere;
}

/* ------------------------------------------------------------------- CTA */

.cta {
    background: var(--c-dark);
    color: var(--c-white);
    text-align: center;
    padding: 90px 0;
}

.cta h2 {
    color: var(--c-white);
    max-width: 780px;
    margin: 0 auto 34px;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
    background: var(--c-dark);
    color: rgba(255, 255, 255, 0.62);
    font-size: 15px;
}

.site-footer__top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 50px;
    padding: 78px var(--gutter) 62px;
}

.footer-mark {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
}

.site-footer h4 {
    color: var(--c-white);
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.62);
}

.site-footer a:hover {
    color: var(--c-brand);
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
    font-size: 14px;
}

.social-row {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.social-row a {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: all var(--transition);
}

.social-row a:hover {
    background: var(--c-brand);
    border-color: var(--c-brand);
    color: var(--c-dark);
}

.social-row svg {
    width: 16px;
    height: 16px;
}

.site-footer__note {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 20px var(--gutter);
    font-size: 13px;
    line-height: 1.7;
    opacity: 0.75;
}

.site-footer__note strong {
    opacity: 0.95;
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 24px var(--gutter);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}

/* ------------------------------------------------------------ pagination */

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 56px;
    font-family: var(--font-head);
    font-size: 13px;
    letter-spacing: 1px;
}

.pagination a,
.pagination span {
    display: grid;
    place-items: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--c-border);
    border-radius: 2px;
    color: var(--c-dark);
}

.pagination a:hover {
    background: var(--c-dark);
    border-color: var(--c-dark);
    color: var(--c-white);
}

.pagination .is-active {
    background: var(--c-brand-deep);
    border-color: var(--c-brand-deep);
    color: var(--c-white);
}

.pagination .is-disabled {
    opacity: 0.4;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1080px) {
    :root {
        --section-y: 80px;
    }

    .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1080px) {
    .nav-toggle {
        display: block;
        order: 2;
    }

    .site-header__inner {
        flex-wrap: wrap;
        min-height: 0;
        padding-top: 14px;
        padding-bottom: 14px;
        row-gap: 12px;
        column-gap: 16px;
    }

    /* Brand and menu button share the first row; the language switcher and
       donate button drop to a second row underneath. */
    .brand {
        /* `1 1 0` lets the name wrap so the menu button stays on the first row. */
        flex: 1 1 0;
        min-width: 0;
    }

    .brand__name {
        font-size: 13px;
        letter-spacing: 1.2px;
    }

    .header-actions {
        order: 4;
        flex-basis: 100%;
        justify-content: space-between;
    }

    .nav {
        order: 3;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        display: none;
        padding-bottom: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        margin-top: 4px;
    }

    .nav.is-open {
        display: flex;
    }

    .nav a {
        padding: 13px 2px;
    }

    .nav__panel {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding: 0 0 6px 16px;
        min-width: 0;
    }

    .nav__panel a {
        color: rgba(255, 255, 255, 0.66);
    }

    .nav__panel a:hover {
        background: transparent;
        color: var(--c-brand);
    }

    .split,
    .split--wide-left {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .profile {
        grid-template-columns: 190px 1fr;
        gap: 30px;
    }

    .hero {
        min-height: 520px;
    }

    .hero__inner {
        padding: 90px var(--gutter);
    }
}

@media (max-width: 720px) {
    :root {
        --section-y: 64px;
    }

    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .profile__photo {
        max-width: 240px;
        aspect-ratio: 1 / 1;
    }

    .panel {
        padding: 32px 24px;
    }

    .site-footer__top {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 56px var(--gutter) 44px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
}

/* ==========================================================================
   Donation flow (feedback 01.09.26)
   The three option cards are the selector: choosing one reveals the form and
   stays raised until another is picked.
   ========================================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    border: 0;
    margin: 0;
    padding: 0;
}

/* The grid follows however many options are switched on. */
.choice-grid--1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
.choice-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.choice-card {
    position: relative;
    display: block;
    cursor: pointer;
}

/* The radio stays focusable but invisible; the card is the visible control. */
.choice-card input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.choice-card__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: 3px;
    padding: 44px 30px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.choice-card:hover .choice-card__inner {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.choice-card.is-selected .choice-card__inner {
    transform: translateY(-4px);
    box-shadow: var(--shadow-raised);
    border-color: var(--c-brand-deep);
}

.choice-card input:focus-visible + .choice-card__inner {
    outline: 3px solid var(--c-brand-deep);
    outline-offset: 3px;
}

.choice-card__icon {
    width: 74px;
    height: 74px;
    margin-bottom: 26px;
    border-radius: 50%;
    background: var(--c-offwhite);
    color: var(--c-brand-deep);
    display: grid;
    place-items: center;
    transition: background var(--transition), color var(--transition);
}

.choice-card__icon svg {
    width: 32px;
    height: 32px;
}

.choice-card:hover .choice-card__icon,
.choice-card.is-selected .choice-card__icon {
    background: var(--c-brand-deep);
    color: var(--c-white);
}

.choice-card__title {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--c-dark);
    margin-bottom: 14px;
}

/* Three methods side by side (with PayPal) leave narrow cards, and
   "Greiðsluseðill" is one long word: tighten so it stays inside the card.
   Its label carries a soft hyphen, so if it must break it breaks there. */
.choice-grid--3 .choice-card__title {
    font-size: 14px;
    letter-spacing: 0.6px;
    hyphens: manual;
}

.choice-card__text {
    font-size: 15px;
    line-height: 1.85;
}

.choice-card__price {
    margin-top: 16px;
    font-family: var(--font-head);
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--c-dark);
}

/* Hidden only where the script can reveal it again. */
.donate-form[data-collapsed] {
    display: none;
}

.field-split {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 10px;
}

/* ------------------------------------------------------- funding progress */

.progress {
    margin: 4px 0 6px;
}

.progress__bar {
    height: 8px;
    border-radius: 20px;
    background: var(--c-border);
    overflow: hidden;
}

.progress__bar span {
    display: block;
    height: 100%;
    border-radius: 20px;
    background: var(--c-brand-deep);
}

.progress__meta {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.6;
}

.progress__meta strong {
    color: var(--c-dark);
}

@media (max-width: 900px) {
    .choice-grid,
    .choice-grid--2 {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .choice-card__inner {
        padding: 32px 24px;
    }
}

/* ------------------------------------------------- suggested giving levels */

.amount-set {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.amount-set[hidden] {
    display: none;
}

.amount-chip {
    position: relative;
}

.amount-chip input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.amount-chip span {
    display: block;
    font-family: var(--font-head);
    font-size: 15px;
    letter-spacing: 1px;
    padding: 15px 26px;
    border: 2px solid var(--c-border);
    border-radius: 3px;
    color: var(--c-dark);
    cursor: pointer;
    transition: all var(--transition);
}

.amount-chip span:hover {
    border-color: var(--c-brand-deep);
}

.amount-chip input:checked + span {
    background: var(--c-brand-deep);
    border-color: var(--c-brand-deep);
    color: var(--c-white);
}

.amount-chip input:focus-visible + span {
    outline: 3px solid var(--c-brand-deep);
    outline-offset: 3px;
}

.amount-other {
    position: relative;
    max-width: 260px;
}

.amount-other input {
    width: 100%;
    padding-right: 46px;
}

.amount-other__suffix {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--c-body);
    pointer-events: none;
}

/* A sponsorship is counted in children, with the month's total beside it. */

.children-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-bottom: 12px;
}

.children-row input[type="number"] {
    width: 110px;
    flex: 0 0 110px;
    font-family: var(--font-head);
    font-size: 18px;
    letter-spacing: 1px;
    text-align: center;
}

.children-total {
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 15px;
    line-height: 1.4;
}

.children-total strong {
    font-family: var(--font-head);
    font-size: 22px;
    letter-spacing: 1px;
    color: var(--c-brand-deep);
}

.amount-impact {
    margin: 14px 0 0;
    padding: 12px 16px;
    border-left: 3px solid var(--c-brand);
    background: var(--c-offwhite);
    font-size: 15px;
    line-height: 1.7;
}

@media (max-width: 720px) {
    .amount-chip span { padding: 13px 18px; font-size: 14px; }
    .amount-other { max-width: none; }
    .children-row { gap: 14px; }
    .children-total strong { font-size: 19px; }
}

/* ------------------------------------------------------------- lightbox */
/* Gallery slideshow (feedback 06.09.26): images open here rather than each
   spawning its own browser tab. */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(20, 25, 38, 0.94);
    display: grid;
    place-items: center;
    padding: 56px 72px 44px;
}

.lightbox[hidden] { display: none; }

.lightbox__figure {
    margin: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* Scaled to fill the screen, whatever the file's own size (feedback 13.09.26),
   and contained so nothing is cropped. */
.lightbox__figure img {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    height: calc(100vh - 150px);
    object-fit: contain;
}

.lightbox__figure figcaption {
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    max-width: 60ch;
}

.lightbox__close,
.lightbox__nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: background var(--transition), border-color var(--transition);
}

.lightbox__close:hover,
.lightbox__nav:hover {
    background: var(--c-brand-deep);
    border-color: var(--c-brand-deep);
}

.lightbox__close {
    top: 20px;
    right: 24px;
    width: 46px;
    height: 46px;
    font-size: 30px;
    line-height: 1;
}

.lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    font-size: 20px;
}

.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }

.lightbox__count {
    position: absolute;
    bottom: 22px;
    left: 0;
    right: 0;
    margin: 0;
    text-align: center;
    font-family: var(--font-head);
    font-size: 12px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.6);
}

/* The thumbnails are now buttons in effect. */
.gallery-grid a { cursor: zoom-in; }

@media (max-width: 720px) {
    .lightbox { padding: 60px 12px 56px; }
    .lightbox__nav { width: 42px; height: 42px; }
    .lightbox__nav--prev { left: 6px; }
    .lightbox__nav--next { right: 6px; }
    .lightbox__figure img { height: calc(100vh - 140px); }
}

/* Tax-deductibility note under the giving options (feedback 06.09.26). */
.tax-note {
    max-width: 760px;
    margin: 30px auto 0;
    text-align: center;
    font-size: 14px;
    line-height: 1.75;
    color: var(--c-body);
}
