/* Şehitlerimiz ve Gazilerimiz — 2026 memorial interface */
:root {
    --memorial-red: #b20d1f;
    --memorial-red-deep: #690714;
    --memorial-red-dark: #36070d;
    --memorial-gold: #c9a55d;
    --memorial-gold-light: #ead9ad;
    --memorial-cream: #f8f4e9;
    --memorial-paper: #fcfbf7;
    --memorial-ink: #201d1b;
    --memorial-muted: #756e68;
    --memorial-line: rgba(105, 7, 20, .12);
    --memorial-shadow: 0 24px 70px rgba(42, 12, 15, .13);
}

html { scroll-behavior: smooth; }

body.memorial-page {
    min-width: 320px;
    color: var(--memorial-ink);
    font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 5% 0%, rgba(178, 13, 31, .09), transparent 28rem),
        radial-gradient(circle at 95% 10%, rgba(201, 165, 93, .14), transparent 28rem),
        linear-gradient(145deg, #f5f0e7, #fcfbf7 48%, #f1ece3);
}

.memorial-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .26;
    background-image: radial-gradient(rgba(105, 7, 20, .22) .65px, transparent .65px);
    background-size: 23px 23px;
    mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

.memorial-page .content {
    width: 100% !important;
    max-width: 1540px;
    min-height: 100vh;
    margin: 0 auto !important;
    padding-bottom: 0;
    background: transparent;
}

.memorial-shell,
.memorial-results-status,
.memorial-records,
.memorial-footer { padding-right: clamp(14px, 3vw, 40px); padding-left: clamp(14px, 3vw, 40px); }

.memorial-shell { padding-top: clamp(14px, 3vw, 38px); }

/* Hero */
.memorial-hero {
    position: relative;
    isolation: isolate;
    min-height: 510px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 34px 34px 10px 10px;
    color: #fff;
    background:
        linear-gradient(100deg, rgba(33, 2, 7, .98) 0%, rgba(89, 5, 16, .96) 47%, rgba(142, 8, 24, .80) 70%, rgba(178, 13, 31, .52) 100%),
        #690714;
    box-shadow: 0 30px 80px rgba(76, 5, 15, .28);
}

.memorial-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: .11;
    background-image: linear-gradient(120deg, transparent 46%, rgba(255,255,255,.8) 46.2%, transparent 46.4%);
    background-size: 32px 32px;
}

.memorial-hero::after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: linear-gradient(90deg, transparent, var(--memorial-gold) 20%, #f3e4b8 50%, var(--memorial-gold) 80%, transparent);
}

.memorial-hero__light {
    position: absolute;
    z-index: -1;
    width: 560px;
    height: 560px;
    left: 28%;
    top: -340px;
    border-radius: 50%;
    background: rgba(255, 238, 194, .13);
    filter: blur(35px);
}

.memorial-flag {
    position: absolute;
    z-index: -1;
    width: min(49%, 680px);
    top: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.memorial-flag::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(90deg, #650714 0%, rgba(105, 7, 20, .35) 38%, transparent 100%);
}

.memorial-flag img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    filter: saturate(.92) contrast(1.06);
    transform: scale(1.06);
}

.memorial-hero__content { width: min(58%, 750px); padding: clamp(34px, 6vw, 82px); }

.memorial-municipality {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, .86);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .11em;
    text-decoration: none;
    text-transform: uppercase;
}

.memorial-municipality:hover { color: #fff; }
.memorial-municipality__logo { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: rgba(255, 255, 255, .96); box-shadow: 0 10px 24px rgba(0,0,0,.22); }
.memorial-municipality__logo img { max-width: 42px; max-height: 42px; }
.memorial-kicker { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; color: var(--memorial-gold-light); font-size: .7rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.memorial-kicker i { font-size: .92rem; }
.memorial-hero h1 { margin: 0; color: #fff; font-family: "Roboto Slab", Georgia, serif; font-size: clamp(2.8rem, 6vw, 5.15rem); font-weight: 600; line-height: .97; letter-spacing: -.045em; text-shadow: 0 8px 34px rgba(25, 0, 4, .30); }
.memorial-hero h1 em { color: #f1dfaf; font-style: normal; }
.memorial-hero__content > p { max-width: 620px; margin: 23px 0 28px; color: rgba(255,255,255,.76); font-size: 1rem; line-height: 1.75; }
.memorial-hero__honour { display: inline-flex; flex-direction: column; gap: 3px; padding: 13px 17px; border: 1px solid rgba(234, 217, 173, .26); border-radius: 13px; background: rgba(25, 1, 5, .28); backdrop-filter: blur(8px); }
.memorial-hero__honour span { color: var(--memorial-gold-light); font-size: .62rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.memorial-hero__honour strong { color: #fff; font-size: .82rem; }

/* Historical statistics */
.memorial-statistics {
    position: relative;
    padding: clamp(34px, 5vw, 62px);
    border-radius: 0 0 30px 30px;
    color: #fff;
    background: linear-gradient(145deg, #171515, #25201d);
    box-shadow: var(--memorial-shadow);
}

.memorial-statistics::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .035; background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 18px 18px; }
.memorial-section-heading { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 28px; text-align: center; }
.memorial-section-heading > div { min-width: 0; }
.memorial-section-heading small { display: block; margin-bottom: 4px; color: var(--memorial-red); font-size: .68rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.memorial-section-heading h2 { margin: 0; color: var(--memorial-ink); font-family: "Roboto Slab", Georgia, serif; font-size: clamp(1.55rem, 3vw, 2.15rem); font-weight: 600; }
.memorial-section-heading p { margin: 6px 0 0; color: var(--memorial-muted); font-size: .88rem; }
.memorial-section-heading__line { width: 70px; height: 1px; background: linear-gradient(90deg, transparent, var(--memorial-gold)); }
.memorial-section-heading__line:last-child { transform: rotate(180deg); }
.memorial-section-heading--light small { color: var(--memorial-gold); }
.memorial-section-heading--light h2 { color: #fff; }

.memorial-stats-grid { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.memorial-stats-grid article { min-height: 112px; display: flex; flex-direction: column; justify-content: center; padding: 18px; border: 1px solid rgba(234, 217, 173, .13); border-radius: 15px; text-align: center; background: rgba(255, 255, 255, .035); transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.memorial-stats-grid article:hover { transform: translateY(-3px); border-color: rgba(234, 217, 173, .32); background: rgba(255,255,255,.06); }
.memorial-stats-grid span { color: #efdca9; font-family: "Roboto Slab", Georgia, serif; font-size: 1.65rem; font-weight: 700; line-height: 1; }
.memorial-stats-grid strong { margin-top: 9px; color: rgba(255,255,255,.73); font-size: .66rem; font-weight: 700; line-height: 1.35; letter-spacing: .03em; text-transform: uppercase; }
.memorial-total { position: relative; margin-top: 18px; padding: 21px; border: 1px solid rgba(201, 165, 93, .28); border-radius: 16px; text-align: center; background: linear-gradient(90deg, rgba(105,7,20,.20), rgba(178,13,31,.34), rgba(105,7,20,.20)); }
.memorial-total span, .memorial-total small { display: block; color: rgba(255,255,255,.62); font-size: .65rem; letter-spacing: .11em; text-transform: uppercase; }
.memorial-total strong { display: block; margin: 3px 0 5px; color: #fff; font-family: "Roboto Slab", Georgia, serif; font-size: clamp(1.55rem, 4vw, 2.35rem); }

/* Search */
.memorial-search { margin-top: 28px; padding: clamp(24px, 4vw, 44px); border: 1px solid rgba(255,255,255,.9); border-radius: 28px; background: rgba(255,255,255,.90); box-shadow: var(--memorial-shadow); backdrop-filter: blur(14px); }
.memorial-section-heading__icon { width: 56px; height: 56px; flex: 0 0 56px; display: grid; place-items: center; border-radius: 17px; color: #fff; font-size: 1.15rem; background: linear-gradient(135deg, var(--memorial-red-deep), var(--memorial-red)); box-shadow: 0 11px 24px rgba(105,7,20,.22); }
.memorial-search > .memorial-section-heading { justify-content: flex-start; text-align: left; }
.memorial-form-grid { max-width: 1180px; margin-right: auto; margin-left: auto; }
.memorial-page .form-label { margin-bottom: 8px; color: #443c38; font-size: .76rem; font-weight: 800; letter-spacing: .025em; }
.memorial-page .form-control, .memorial-page .form-select { min-height: 54px; border: 1px solid #e1d9d1; border-radius: 14px; color: var(--memorial-ink); background-color: #fcfbf8; box-shadow: inset 0 1px 2px rgba(40,20,20,.02); }
.memorial-page .form-control::placeholder { color: #aaa19b; }
.memorial-page .form-control:focus, .memorial-page .form-select:focus { border-color: rgba(178,13,31,.62); background-color: #fff; box-shadow: 0 0 0 4px rgba(178,13,31,.09); }
.memorial-action-col { margin-top: 8px; }
.memorial-btn { width: 100%; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; font-size: .84rem; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease; }
.memorial-btn:hover { transform: translateY(-2px); }
.memorial-btn--primary { border: 0; color: #fff; background: linear-gradient(135deg, var(--memorial-red-deep), var(--memorial-red)); box-shadow: 0 12px 26px rgba(105,7,20,.23); }
.memorial-btn--primary:hover { color: #fff; box-shadow: 0 15px 30px rgba(105,7,20,.29); }
.memorial-btn--ghost { border: 1px solid #d9cdc5; color: #5b514c; background: #f7f3ee; }
.memorial-btn--ghost:hover { border-color: #c3b1a5; color: var(--memorial-red-deep); background: #f2ebe5; }

/* Search status and result cards */
.memorial-results-status { margin-top: 28px; }
.memorial-results-status__inner { display: flex; align-items: center; gap: 12px; padding: 20px 24px; border: 1px solid rgba(255,255,255,.85); border-radius: 20px; background: rgba(255,255,255,.84); box-shadow: 0 12px 32px rgba(42,12,15,.08); }
.memorial-results-status__inner > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--memorial-red); background: #f8e9e9; }
.memorial-results-status__inner small { color: var(--memorial-red); font-size: .62rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.memorial-results-status__inner h2 { margin: 2px 0 0; color: var(--memorial-ink); font-family: "Roboto Slab", Georgia, serif; font-size: 1.35rem; }
.memorial-results-status .alert { margin: 12px 0 0; border: 1px solid #efc8c8; border-radius: 14px; color: #812433; background: #fff1f1; }
.memorial-records { padding-top: 22px; padding-bottom: 36px; }
.memorial-record-card { position: relative; overflow: hidden; height: 100%; border: 1px solid rgba(105,7,20,.13); border-radius: 23px; background: rgba(255,255,255,.92); box-shadow: 0 16px 42px rgba(42,12,15,.09); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.memorial-record-card:hover { transform: translateY(-4px); border-color: rgba(178,13,31,.28); box-shadow: 0 22px 48px rgba(42,12,15,.13); }
.memorial-record-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--memorial-red), var(--memorial-gold)); }
.memorial-record-card__header { position: relative; min-height: 108px; display: flex; align-items: center; gap: 14px; overflow: hidden; padding: 22px 25px; color: #fff; background: linear-gradient(120deg, #4f0711, #850b1a 68%, #a40d1e); }
.memorial-record-card__header::after { content: ""; position: absolute; inset: 0; opacity: .08; background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 15px 15px; pointer-events: none; }
.memorial-record-card__symbol { position: relative; z-index: 1; width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 14px; color: var(--memorial-gold-light); background: rgba(255,255,255,.08); }
.memorial-record-card__header > div { position: relative; z-index: 1; min-width: 0; }
.memorial-record-card__header small { display: block; margin-bottom: 3px; color: rgba(255,255,255,.64); font-size: .62rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.memorial-record-card__header h3 { margin: 0; color: #fff; font-family: "Roboto Slab", Georgia, serif; font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 600; overflow-wrap: anywhere; }
.memorial-record-card__flag { position: absolute; z-index: 1; right: 24px; width: 34px; height: 34px; border: 6px solid rgba(255,255,255,.86); border-right-color: transparent; border-radius: 50%; opacity: .45; }
.memorial-record-card__flag::after { content: "★"; position: absolute; left: 17px; top: -7px; color: rgba(255,255,255,.88); font-size: 15px; }
.memorial-record-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 10px 24px 22px; }
.memorial-record-grid > div { min-width: 0; padding: 13px 9px; border-bottom: 1px solid #eee7e2; }
.memorial-record-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
.memorial-record-grid__wide { grid-column: 1 / -1; }
.memorial-record-grid dt { margin-bottom: 3px; color: #928780; font-size: .62rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.memorial-record-grid dd { margin: 0; color: #302b28; font-size: .82rem; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.memorial-record-grid__emphasis { margin: 5px 0; border: 1px solid #ead9b5 !important; border-radius: 12px; background: #fffaf0; }
.memorial-record-grid__emphasis dt { color: #917038; }
.memorial-record-grid__emphasis dd { color: #5d481f; }

/* Footer */
.memorial-footer { min-height: 155px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; color: #fff; background: linear-gradient(120deg, #2a070c, #560712 62%, #790a18); }
.memorial-footer__flag { width: 82px; height: 58px; overflow: hidden; border: 1px solid rgba(255,255,255,.24); border-radius: 12px; box-shadow: 0 8px 22px rgba(0,0,0,.2); }
.memorial-footer__flag img { width: 100%; height: 100%; object-fit: cover; }
.memorial-footer span { display: block; margin-bottom: 4px; color: var(--memorial-gold-light); font-size: .64rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.memorial-footer strong { display: block; font-family: "Roboto Slab", Georgia, serif; font-size: clamp(.95rem, 2vw, 1.25rem); font-weight: 500; }
.memorial-footer > small { color: rgba(255,255,255,.55); font-size: .67rem; text-align: right; }

.memorial-page .back-to-top { right: 24px; bottom: 24px; border: 1px solid rgba(255,255,255,.28); color: #fff; background: linear-gradient(135deg, var(--memorial-red-deep), var(--memorial-red)); box-shadow: 0 12px 28px rgba(105,7,20,.28); }
.memorial-page #spinner { z-index: 99999; background: #faf7f1 !important; }
.memorial-page #spinner .spinner-border { width: 3rem; height: 3rem; color: var(--memorial-red); }

/* 2026 editorial direction — a digital monument, not a theme template */
.memorial-page .content { max-width: 1760px; }
.memorial-shell { padding-top: 18px; }

.memorial-hero {
    min-height: 430px;
    border-radius: 26px;
    background: linear-gradient(120deg, #2c050b 0%, #570912 62%, #78101d 100%);
}

.memorial-hero::before {
    opacity: .18;
    background:
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 72px 72px;
}

.memorial-hero::after { height: 2px; left: 4%; right: 4%; bottom: 20px; }
.memorial-hero__light { width: 720px; height: 720px; left: -180px; top: -390px; background: rgba(210, 166, 82, .16); }
.memorial-flag { width: 34%; top: 28px; right: 28px; bottom: 28px; left: auto; border: 1px solid rgba(255,255,255,.16); border-radius: 20px; clip-path: none; box-shadow: 0 22px 50px rgba(20,0,4,.22); }
.memorial-flag::before { background: linear-gradient(90deg, rgba(44,5,11,.26), transparent 55%); }
.memorial-flag::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18,1,4,.58), transparent 52%); }
.memorial-flag img { object-position: center; transform: scale(1.02); }

.memorial-hero__rail {
    position: absolute;
    z-index: 3;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    border-bottom: 1px solid rgba(255,255,255,.11);
    color: rgba(255,255,255,.55);
    font-size: .59rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.memorial-hero__content { position: relative; z-index: 2; width: 64%; padding: 74px clamp(28px, 4vw, 62px) 52px; }
.memorial-municipality { margin-bottom: 32px; }
.memorial-kicker { margin-bottom: 12px; }
.memorial-hero h1 { font-size: clamp(2.65rem, 4.6vw, 4.6rem); line-height: .94; letter-spacing: -.052em; }
.memorial-hero h1 > span { display: inline-block; }
.memorial-hero h1 em { display: inline-block; margin-left: 18px; color: #ead9ad; font-size: .68em; letter-spacing: -.025em; }
.memorial-hero__content > p { max-width: 520px; margin: 20px 0 18px; padding-left: 16px; border-left: 1px solid rgba(234,217,173,.48); font-size: .84rem; line-height: 1.6; }
.memorial-hero__honour { margin-left: 16px; padding: 8px 12px; border: 0; border-radius: 0; border-left: 2px solid var(--memorial-gold); background: transparent; backdrop-filter: none; }

.memorial-monument-number {
    position: absolute;
    z-index: 4;
    right: 48px;
    bottom: 48px;
    min-width: 148px;
    padding: 14px 17px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 2px;
    color: #fff;
    background: rgba(49,3,10,.45);
    box-shadow: 0 18px 50px rgba(16,0,3,.22);
    backdrop-filter: blur(16px);
}

.memorial-monument-number small, .memorial-monument-number span { display: block; color: rgba(255,255,255,.62); font-size: .56rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.memorial-monument-number strong { display: block; margin: 4px 0; color: #fff; font-family: "Roboto Slab", Georgia, serif; font-size: 2rem; line-height: 1; }
.memorial-scroll-cue { position: absolute; z-index: 4; left: 28px; bottom: 5px; display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.62); font-size: .52rem; font-weight: 700; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
.memorial-scroll-cue:hover { color: #fff; }

.memorial-statistics { overflow: hidden; margin-top: 14px; padding: 34px; border-radius: 24px; background: #181716; }
.memorial-section-index { position: absolute; top: -25px; right: 25px; color: rgba(255,255,255,.03); font-family: "Roboto Slab", Georgia, serif; font-size: 9rem; font-weight: 700; line-height: 1; pointer-events: none; }
.memorial-stats-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: auto; }
.memorial-stats-grid article, .memorial-stats-grid article:first-child, .memorial-stats-grid article:nth-child(2), .memorial-stats-grid article:nth-child(n+3), .memorial-stats-grid article:nth-child(9), .memorial-stats-grid article:nth-child(10) { grid-column: span 1; grid-row: span 1; min-height: 88px; align-items: center; justify-content: center; padding: 14px 10px; text-align: center; }
.memorial-stats-grid article:first-child { background: linear-gradient(145deg, rgba(178,13,31,.36), rgba(105,7,20,.18)); }
.memorial-stats-grid article:first-child span { font-size: 1.65rem; }
.memorial-total { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 15px 20px; text-align: left; }
.memorial-total strong { font-size: 1.55rem; }
.memorial-total small { text-align: right; }

.memorial-search { position: relative; overflow: hidden; padding: 0; border: 0; border-radius: 28px; background: #fff; }
.memorial-section-index--dark { z-index: 2; top: 12px; right: 18px; color: rgba(105,7,20,.035); font-size: 10rem; }
.memorial-search__layout { display: grid; grid-template-columns: minmax(275px, 31%) 1fr; min-height: 470px; }
.memorial-search__intro { position: relative; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: clamp(35px, 5vw, 72px); color: #fff; background: linear-gradient(145deg, #39070e, #720916 72%, #8e0b1b); }
.memorial-search__intro::before { content: ""; position: absolute; width: 410px; height: 410px; right: -245px; top: -130px; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; box-shadow: 0 0 0 55px rgba(255,255,255,.022), 0 0 0 110px rgba(255,255,255,.016); }
.memorial-search__seal { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 30px; border: 1px solid rgba(234,217,173,.32); border-radius: 50%; color: var(--memorial-gold-light); font-size: 1.1rem; }
.memorial-search__intro > small { color: var(--memorial-gold-light); font-size: .62rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.memorial-search__intro h2 { margin: 9px 0 18px; color: #fff; font-family: "Roboto Slab", Georgia, serif; font-size: clamp(2rem, 3.2vw, 3.15rem); font-weight: 500; line-height: 1.04; letter-spacing: -.04em; }
.memorial-search__intro > p { max-width: 380px; color: rgba(255,255,255,.68); font-size: .86rem; line-height: 1.7; }
.memorial-search__note { display: flex; align-items: flex-start; gap: 9px; margin-top: 24px; color: rgba(255,255,255,.56); font-size: .66rem; line-height: 1.5; }
.memorial-search__note i { color: var(--memorial-gold); }
.memorial-form-grid { align-content: center; max-width: none; margin: 0; padding: clamp(32px, 5vw, 76px); }
.memorial-form-grid > div { position: relative; z-index: 3; }

.memorial-results-status__inner { position: relative; overflow: hidden; border-radius: 2px; border-right: 0; border-left: 0; background: transparent; box-shadow: none; }
.memorial-results-status__inner > i { margin-left: auto; color: rgba(105,7,20,.12); font-size: 2rem; }
.memorial-results-status__number { width: auto !important; height: auto !important; color: var(--memorial-red) !important; font-family: "Roboto Slab", Georgia, serif; font-size: 2rem; background: none !important; }
.memorial-record-card { border-radius: 3px 22px 22px 3px; box-shadow: 0 20px 48px rgba(42,12,15,.08); }
.memorial-record-card::before { width: 6px; }
.memorial-record-card__header { color: var(--memorial-ink); background: linear-gradient(105deg, #fff, #f9f4ee); }
.memorial-record-card__header::after { display: none; }
.memorial-record-card__symbol { color: #fff; background: linear-gradient(145deg, var(--memorial-red-deep), var(--memorial-red)); box-shadow: 0 10px 22px rgba(105,7,20,.2); }
.memorial-record-card__header small { color: var(--memorial-red); }
.memorial-record-card__header h3 { color: var(--memorial-ink); }
.memorial-record-card__flag { border-color: rgba(178,13,31,.30); border-right-color: transparent; }
.memorial-record-card__flag::after { color: rgba(178,13,31,.42); }

@media (max-width: 1199.98px) {
    .memorial-stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .memorial-hero__content { width: 66%; }
    .memorial-stats-grid article, .memorial-stats-grid article:first-child, .memorial-stats-grid article:nth-child(2), .memorial-stats-grid article:nth-child(n+3) { grid-column: span 1; grid-row: span 1; }
    .memorial-stats-grid article:first-child span { font-size: 1.65rem; }
    .memorial-search__layout { grid-template-columns: minmax(280px, 34%) 1fr; }
}

@media (max-width: 767.98px) {
    .memorial-shell, .memorial-results-status, .memorial-records, .memorial-footer { padding-right: 13px; padding-left: 13px; }
    .memorial-shell { padding-top: 13px; }
    .memorial-hero { min-height: 510px; align-items: flex-end; border-radius: 22px; }
    .memorial-hero::before { display: none; }
    .memorial-flag { width: calc(100% - 24px); height: 158px; top: 42px; right: 12px; bottom: auto; }
    .memorial-flag { clip-path: none; }
    .memorial-flag::before { background: linear-gradient(0deg, #4f0711 0%, rgba(79,7,17,.36) 52%, transparent); }
    .memorial-flag img { object-position: center 47%; }
    .memorial-hero__content { width: 100%; padding: 218px 22px 28px; }
    .memorial-hero__rail { padding: 12px 14px; font-size: .47rem; }
    .memorial-hero__rail span:nth-child(2) { display: none; }
    .memorial-municipality { position: absolute; top: 48px; left: 18px; margin: 0; padding: 7px 11px 7px 7px; border: 1px solid rgba(255,255,255,.28); border-radius: 13px; background: rgba(54,7,13,.55); backdrop-filter: blur(9px); }
    .memorial-municipality__logo { width: 40px; height: 40px; border-radius: 11px; }
    .memorial-municipality__logo img { max-width: 32px; max-height: 32px; }
    .memorial-municipality > span:last-child { font-size: .54rem; }
    .memorial-hero h1 { font-size: clamp(2.45rem, 13vw, 3.7rem); }
    .memorial-hero h1 em { margin-left: 13px; font-size: .72em; }
    .memorial-hero__content > p { margin: 17px 0 20px; font-size: .86rem; line-height: 1.6; }
    .memorial-hero__honour { display: flex; }
    .memorial-monument-number { top: 119px; right: 24px; bottom: auto; min-width: 126px; padding: 10px 13px; }
    .memorial-monument-number strong { font-size: 1.75rem; }
    .memorial-scroll-cue { display: none; }
    .memorial-statistics { padding: 28px 15px; border-radius: 20px; }
    .memorial-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .memorial-stats-grid article { min-height: 96px; padding: 13px 8px; }
    .memorial-stats-grid span { font-size: 1.35rem; }
    .memorial-stats-grid strong { font-size: .57rem; }
    .memorial-section-heading__line { display: none; }
    .memorial-search { margin-top: 17px; padding: 24px 16px; border-radius: 22px; }
    .memorial-search { padding: 0; }
    .memorial-search__layout { grid-template-columns: 1fr; }
    .memorial-search__intro { min-height: 290px; padding: 30px 24px; }
    .memorial-search__seal { margin-bottom: 28px; }
    .memorial-form-grid { padding: 28px 18px; }
    .memorial-search > .memorial-section-heading { align-items: flex-start; }
    .memorial-section-heading__icon { width: 46px; height: 46px; flex-basis: 46px; border-radius: 13px; }
    .memorial-section-heading p { font-size: .78rem; }
    .memorial-records { padding-top: 14px; }
    .memorial-record-card { border-radius: 19px; }
    .memorial-record-card__header { min-height: 100px; padding: 20px 18px; }
    .memorial-record-card__flag { right: 18px; }
    .memorial-record-grid { padding: 8px 14px 18px; }
    .memorial-footer { min-height: 190px; grid-template-columns: auto 1fr; padding-top: 24px; padding-bottom: 24px; border-radius: 0; }
    .memorial-footer > small { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 420px) {
    .memorial-hero { min-height: 525px; }
    .memorial-kicker { font-size: .58rem; letter-spacing: .12em; }
    .memorial-record-grid { grid-template-columns: 1fr; }
    .memorial-record-grid__wide { grid-column: auto; }
    .memorial-record-grid > div:nth-last-child(-n+2) { border-bottom: 1px solid #eee7e2; }
    .memorial-record-grid > div:last-child { border-bottom: 0; }
    .memorial-record-card__flag { display: none; }
    .memorial-footer { grid-template-columns: 1fr; text-align: center; }
    .memorial-footer__flag { margin: 0 auto; }
    .memorial-footer > small { grid-column: auto; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Compact contemporary pass */
.memorial-page { font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.memorial-hero { min-height: 338px; border-radius: 24px; }
.memorial-hero::after { bottom: 15px; height: 1px; }
.memorial-flag { width: clamp(230px, 21vw, 280px); height: 205px; top: 76px; right: 38px; bottom: auto; border-radius: 18px; box-shadow: 0 18px 42px rgba(20,0,4,.2); }
.memorial-hero__rail { padding: 13px 25px; }
.memorial-hero__content { width: calc(100% - 315px); padding: 56px clamp(28px, 4vw, 56px) 30px; }
.memorial-municipality { margin-bottom: 18px; }
.memorial-municipality__logo { width: 44px; height: 44px; border-radius: 13px; }
.memorial-municipality__logo img { max-width: 35px; max-height: 35px; }
.memorial-kicker { margin-bottom: 9px; font-size: .61rem; }
.memorial-hero h1 { font-family: "Manrope", sans-serif; font-size: clamp(2.25rem, 3.7vw, 3.65rem); font-weight: 800; line-height: .95; letter-spacing: -.06em; }
.memorial-hero h1 em { margin-left: 11px; font-size: .66em; letter-spacing: -.035em; }
.memorial-hero__content > p { max-width: 490px; margin: 15px 0 13px; padding-left: 13px; font-size: .76rem; line-height: 1.55; }
.memorial-hero__honour { margin-left: 13px; padding: 7px 10px; }
.memorial-monument-number, .memorial-scroll-cue { display: none; }
.memorial-section-heading h2, .memorial-stats-grid span, .memorial-total strong, .memorial-search__intro h2, .memorial-results-status__inner h2, .memorial-results-status__number, .memorial-record-card__header h3, .memorial-footer strong { font-family: "Manrope", sans-serif; }
.memorial-section-heading h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); font-weight: 800; letter-spacing: -.035em; }
.memorial-section-index { font-family: "Manrope", sans-serif; font-size: 7rem; font-weight: 800; }
.memorial-total strong { font-weight: 800; }
.memorial-search__intro h2 { font-size: clamp(1.85rem, 3vw, 2.75rem); font-weight: 800; letter-spacing: -.055em; }
.memorial-results-status__inner h2, .memorial-record-card__header h3, .memorial-footer strong { font-weight: 800; }

@media (max-width: 767.98px) {
    .memorial-hero { min-height: 420px; }
    .memorial-flag { width: 128px; height: 86px; top: 52px; right: 18px; bottom: auto; border-radius: 13px; }
    .memorial-flag img { transform: scale(1.02); }
    .memorial-municipality { top: 52px; left: 18px; padding: 5px; border: 0; background: transparent; backdrop-filter: none; }
    .memorial-municipality > span:last-child { display: none; }
    .memorial-municipality__logo { width: 42px; height: 42px; }
    .memorial-hero__content { width: 100%; padding: 154px 20px 23px; }
    .memorial-kicker { margin-bottom: 8px; }
    .memorial-hero h1 { font-size: clamp(2.05rem, 10vw, 2.75rem); line-height: .98; }
    .memorial-hero h1 em { margin-left: 7px; }
    .memorial-hero__content > p { max-width: 330px; margin: 13px 0 11px; font-size: .76rem; }
    .memorial-hero__honour { max-width: 300px; margin-left: 12px; }
    .memorial-statistics { padding-top: 24px; }
    .memorial-section-heading { margin-bottom: 20px; }
    .memorial-search__intro { min-height: 245px; }
}

@media (max-width: 420px) {
    .memorial-hero { min-height: 420px; }
}

/* Search form alignment */
.memorial-search__layout { min-height: 420px; }
.memorial-form-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-content: center;
    gap: 18px 16px;
    margin: 0;
    padding: clamp(34px, 4.5vw, 62px);
    background: linear-gradient(145deg, #fff 0%, #fbf9f6 100%);
}
.memorial-field { min-width: 0; }
.memorial-field--quarter { grid-column: span 3; }
.memorial-field--third { grid-column: span 4; }
.memorial-action-col { margin-top: 2px; }
.memorial-action-col--primary { grid-column: span 8; }
.memorial-action-col--secondary { grid-column: span 4; }
.memorial-page .memorial-field .form-label {
    display: block;
    min-height: 18px;
    margin: 0 0 7px;
    color: #3c3431;
    font-size: .68rem;
    line-height: 18px;
    letter-spacing: .045em;
}
.memorial-page .memorial-field .form-control,
.memorial-page .memorial-field .form-select {
    width: 100%;
    height: 56px;
    min-height: 56px;
    padding: 0 15px;
    border-color: #ded7d0;
    border-radius: 13px;
    background-color: #fff;
    box-shadow: 0 5px 16px rgba(45, 28, 25, .035);
}
.memorial-page .memorial-field .form-select { padding-right: 38px; }
.memorial-btn { min-height: 56px; border-radius: 13px; }

@media (max-width: 1199.98px) and (min-width: 768px) {
    .memorial-field--quarter,
    .memorial-field--third { grid-column: span 6; }
    .memorial-field--third:last-of-type { grid-column: span 12; }
    .memorial-action-col--primary,
    .memorial-action-col--secondary { grid-column: span 6; }
}

@media (max-width: 767.98px) {
    .memorial-form-grid { grid-template-columns: 1fr; gap: 15px; padding: 25px 20px 27px; }
    .memorial-field--quarter,
    .memorial-field--third,
    .memorial-action-col--primary,
    .memorial-action-col--secondary { grid-column: 1; }
    .memorial-action-col { margin-top: 1px; }
    .memorial-page .memorial-field .form-control,
    .memorial-page .memorial-field .form-select,
    .memorial-btn { height: 54px; min-height: 54px; }
}
