/* =====================================================================
   Arsuz Kültür — shared design system (site.css)

   Loaded after bootstrap, style.css, experience.css and alerts.css and
   before pages.css, business.css, auth.css and owner.css, so a rule here
   wins over the older files at equal specificity and a page file can
   still refine it.

    1  Tokens                      10  Tiles, stats, link cards
    2  Base and typography         11  Chips, filters, tones
    3  Focus                       12  Invitations (band, banner, ghost, line)
    4  Buttons                     13  Empty state
    5  Navbar                      14  Prose (article typography)
    6  Sections and headings       15  Forms, tables, alerts, pagination
    7  Page hero                   16  Lightbox, back to top
    8  Media covers                17  Footer
    9  Cards, grids, rails         18  Error pages
                                   19  Legacy markup fixes
                                   20  Motion and print
   ===================================================================== */

/* ---------------------------------------------------------------------
   1  Tokens (the palette itself is defined in experience.css)
   --------------------------------------------------------------------- */
:root {
    --ak-ink: #0d2733;
    --ak-ink-rgb: 9, 34, 45;
    --ak-surface: #fff;
    --ak-tint: #eaf3f4;
    --ak-tint-strong: #d7e7ea;
    --ak-sand: #fbf5e6;
    --ak-sand-strong: #f3e6c4;
    --ak-accent-dark: #e6ab00;
    --ak-accent-deep: #d39c00;
    --ak-accent-ink: #6b4e00;
    --ak-on-dark: #e8f1f3;
    --ak-on-dark-muted: #b9cfdb;

    --ak-font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --ak-font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;

    --ak-radius-sm: .5rem;
    --ak-radius-pill: 999px;
    --ak-shadow-card: 0 1px 2px rgba(23, 59, 77, .04), 0 6px 20px rgba(23, 59, 77, .06);
    --ak-shadow-raised: 0 2px 4px rgba(23, 59, 77, .05), 0 18px 38px rgba(23, 59, 77, .14);
    --ak-ease: cubic-bezier(.2, .7, .2, 1);
    --ak-section-y: clamp(2.75rem, 6vw, 4.5rem);
    --ak-focus: var(--ak-primary);

    --bs-body-font-family: var(--ak-font-body);
    --bs-body-color: var(--ak-text);
    --bs-link-color: var(--ak-primary);
    --bs-link-color-rgb: var(--ak-primary-rgb);
    --bs-link-hover-color: var(--ak-primary-dark);
    --bs-link-hover-color-rgb: 11, 78, 99;
    --bs-border-color: var(--ak-border);
    --bs-secondary-color: rgba(40, 63, 75, .8);
}

/* ---------------------------------------------------------------------
   2  Base and typography
   --------------------------------------------------------------------- */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: var(--ak-font-body);
    text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; }

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--ak-font-display);
    font-variant-numeric: lining-nums;
    letter-spacing: -.005em;
    text-wrap: balance;
}
h1, h2, h3, .h1, .h2, .h3 { overflow-wrap: break-word; }
h1, .h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); line-height: 1.15; }
h2, .h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); line-height: 1.2; }
h3, .h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.3; }

/* Headings take the colour of a dark or white-text container instead of the global dark heading colour. */
.text-white :is(h1, h2, h3, h4, h5, h6),
.text-light :is(h1, h2, h3, h4, h5, h6),
.bg-dark :is(h1, h2, h3, h4, h5, h6) { color: inherit; }
.text-white :is(.card, .bg-white, .bg-light) :is(h1, h2, h3, h4, h5, h6),
.bg-dark :is(.card, .bg-white, .bg-light) :is(h1, h2, h3, h4, h5, h6) { color: var(--ak-dark); }

a { text-underline-offset: .18em; }
hr { border-color: var(--ak-border); opacity: 1; }
::selection { background: rgba(var(--ak-accent-rgb), .45); color: var(--ak-dark); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); font-weight: 400; line-height: 1.6; }

/* ---------------------------------------------------------------------
   3  Focus (one visible ring everywhere; --ak-focus switches on dark areas)
   --------------------------------------------------------------------- */
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible,
.btn:focus-visible, .nav-link:focus-visible, .page-link:focus-visible, .dropdown-item:focus-visible,
.btn-check:focus-visible + .btn, .btn-close:focus-visible {
    outline: 3px solid var(--ak-focus);
    outline-offset: 3px;
    box-shadow: none;
}
.dropdown-item:focus-visible { outline-offset: -3px; }
/* Containers that only receive focus from a script (skip link, in-page links) show no ring. */
main[tabindex]:focus, [tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }
.page-hero, .cta-band, .footer, .tile, .hero-section, .cta-section, .bg-dark, .lightbox { --ak-focus: #fff; }

/* ---------------------------------------------------------------------
   4  Buttons — Bootstrap variables, so hover, focus, active and disabled all stay on brand
   --------------------------------------------------------------------- */
.btn {
    --bs-btn-font-family: var(--ak-font-body);
    --bs-btn-font-weight: 700;
    --bs-btn-border-radius: var(--ak-radius);
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.btn-sm { --bs-btn-border-radius: .65rem; }
.btn-lg { --bs-btn-border-radius: .9rem; --bs-btn-padding-x: 1.6rem; --bs-btn-padding-y: .7rem; --bs-btn-font-size: 1.05rem; }
.btn.rounded-pill { --bs-btn-border-radius: var(--ak-radius-pill); }

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--ak-primary);
    --bs-btn-border-color: var(--ak-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--ak-primary-dark);
    --bs-btn-hover-border-color: var(--ak-primary-dark);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #093f50;
    --bs-btn-active-border-color: #093f50;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--ak-primary);
    --bs-btn-disabled-border-color: var(--ak-primary);
    --bs-btn-focus-shadow-rgb: var(--ak-primary-rgb);
    box-shadow: 0 1px 2px rgba(var(--ak-primary-rgb), .25);
}
.btn-outline-primary {
    --bs-btn-color: var(--ak-primary);
    --bs-btn-border-color: var(--ak-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--ak-primary);
    --bs-btn-hover-border-color: var(--ak-primary);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--ak-primary-dark);
    --bs-btn-active-border-color: var(--ak-primary-dark);
    --bs-btn-disabled-color: var(--ak-primary);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--ak-primary);
    --bs-btn-focus-shadow-rgb: var(--ak-primary-rgb);
}
.btn-accent {
    --bs-btn-color: var(--ak-dark);
    --bs-btn-bg: var(--ak-accent);
    --bs-btn-border-color: var(--ak-accent);
    --bs-btn-hover-color: var(--ak-dark);
    --bs-btn-hover-bg: var(--ak-accent-dark);
    --bs-btn-hover-border-color: var(--ak-accent-dark);
    --bs-btn-active-color: var(--ak-dark);
    --bs-btn-active-bg: var(--ak-accent-deep);
    --bs-btn-active-border-color: var(--ak-accent-deep);
    --bs-btn-disabled-color: var(--ak-dark);
    --bs-btn-disabled-bg: var(--ak-accent);
    --bs-btn-disabled-border-color: var(--ak-accent);
    --bs-btn-focus-shadow-rgb: var(--ak-accent-rgb);
    box-shadow: 0 1px 2px rgba(107, 78, 0, .28);
}
.btn-outline-light {
    --bs-btn-color: #fff;
    --bs-btn-border-color: rgba(255, 255, 255, .78);
    --bs-btn-bg: rgba(255, 255, 255, .08);
    --bs-btn-hover-color: var(--ak-dark);
    --bs-btn-hover-bg: #fff;
    --bs-btn-hover-border-color: #fff;
    --bs-btn-active-color: var(--ak-dark);
    --bs-btn-active-bg: #e8f1f3;
    --bs-btn-active-border-color: #e8f1f3;
    --bs-btn-focus-shadow-rgb: 255, 255, 255;
}
.btn-light {
    --bs-btn-color: var(--ak-dark);
    --bs-btn-bg: #fff;
    --bs-btn-border-color: #fff;
    --bs-btn-hover-color: var(--ak-dark);
    --bs-btn-hover-bg: var(--ak-tint);
    --bs-btn-hover-border-color: var(--ak-tint);
    --bs-btn-active-color: var(--ak-dark);
    --bs-btn-active-bg: var(--ak-tint-strong);
    --bs-btn-active-border-color: var(--ak-tint-strong);
}
/* Neutral buttons stay inside the palette (no pure black, no Bootstrap grey). */
.btn-dark {
    --bs-btn-bg: var(--ak-dark);
    --bs-btn-border-color: var(--ak-dark);
    --bs-btn-hover-bg: var(--ak-ink);
    --bs-btn-hover-border-color: var(--ak-ink);
    --bs-btn-active-bg: var(--ak-ink);
    --bs-btn-active-border-color: var(--ak-ink);
    --bs-btn-disabled-bg: var(--ak-dark);
    --bs-btn-disabled-border-color: var(--ak-dark);
}
.btn-outline-secondary {
    --bs-btn-color: var(--ak-text);
    --bs-btn-border-color: #a9bcc3;
    --bs-btn-hover-color: var(--ak-dark);
    --bs-btn-hover-bg: var(--ak-tint);
    --bs-btn-hover-border-color: #8ea5ad;
    --bs-btn-active-color: var(--ak-dark);
    --bs-btn-active-bg: var(--ak-tint-strong);
    --bs-btn-active-border-color: #8ea5ad;
    --bs-btn-disabled-color: var(--ak-text-light);
    --bs-btn-disabled-border-color: #c5d5d9;
}
/* Quiet text button for secondary actions ("see all", "read the guide"). */
.btn-quiet {
    --bs-btn-color: var(--ak-primary);
    --bs-btn-hover-color: var(--ak-primary-dark);
    --bs-btn-hover-bg: var(--ak-tint);
    --bs-btn-active-color: var(--ak-primary-dark);
    --bs-btn-active-bg: var(--ak-tint-strong);
    --bs-btn-active-border-color: transparent;
    --bs-btn-padding-x: .8rem;
}
@media (hover: hover) {
    .btn-primary:hover, .btn-accent:hover { transform: translateY(-1px); }
}
.btn .bi { line-height: 1; }
/* Round icon-only button with a fixed 44px tap area (social links, toolbar actions). */
.btn-icon {
    --bs-btn-padding-x: 0;
    --bs-btn-padding-y: 0;
    --bs-btn-border-radius: 50%;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    font-size: 1.1rem;
}

/* ---------------------------------------------------------------------
   5  Navbar
   --------------------------------------------------------------------- */
.navbar-arsuz {
    --bs-navbar-color: var(--ak-dark);
    --bs-navbar-hover-color: var(--ak-primary-dark);
    --bs-navbar-active-color: var(--ak-primary-dark);
    padding: .55rem 0;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--ak-border);
    box-shadow: 0 4px 20px rgba(23, 59, 77, .05);
}
.navbar-arsuz .navbar-brand { min-height: 44px; }
.navbar-arsuz .navbar-brand img { height: 40px; width: auto; max-width: 204px; }
.navbar-arsuz .nav-link {
    display: inline-flex;
    align-items: center;
    gap: .15rem;
    min-height: 44px;
    padding: .5rem .8rem;
    border-radius: .65rem;
    font-size: .94rem;
    transition: background-color .18s ease, color .18s ease;
}
.navbar-arsuz .nav-link:hover, .navbar-arsuz .nav-link.active, .navbar-arsuz .nav-link.show { background: var(--ak-tint); }
.navbar-arsuz .nav-caret { font-size: .7em; margin-left: .3rem; transition: transform .2s ease; }
.navbar-arsuz .dropdown-toggle[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }
.navbar-arsuz .navbar-toggler { color: var(--ak-dark); border-radius: .65rem; }
.navbar-arsuz .navbar-toggler:hover { background: var(--ak-tint); }
.navbar-actions { display: flex; align-items: center; gap: .5rem; }
.navbar-actions form .btn { min-width: 44px; }
.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 44px;
    padding: .3rem .85rem;
    background: #fff;
    border: 1px solid var(--ak-border);
    color: var(--ak-dark);
    transition: background-color .18s ease, border-color .18s ease;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { background: var(--ak-tint); border-color: var(--ak-tint-strong); color: var(--ak-dark); }
.dropdown-menu {
    --bs-dropdown-link-active-bg: var(--ak-tint);
    --bs-dropdown-link-active-color: var(--ak-primary-dark);
    --bs-dropdown-border-color: var(--ak-border);
    --bs-dropdown-link-color: var(--ak-text);
    box-shadow: 0 14px 40px rgba(23, 59, 77, .14);
}
.dropdown-item { font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.dropdown-item.active, .dropdown-item[aria-current] { font-weight: 800; }
.dropdown-item.active .text-muted, .dropdown-item[aria-current] .text-muted { color: var(--ak-primary-dark) !important; }
.nav-cta { white-space: nowrap; }
.lang-code { display: none; }
.navbar-arsuz .dropdown-menu { min-width: 15.5rem; }

@media (min-width: 1200px) and (max-width: 1399.98px) {
    /* The narrowest desktop row: no leading icons, language as a code, tighter gaps (German labels are the longest). */
    .navbar-arsuz .navbar-nav .nav-link { padding-inline: .5rem; font-size: .9rem; }
    .navbar-arsuz .navbar-nav .nav-link > .bi:first-child, .nav-cta > .bi { display: none; }
    .navbar-actions { gap: .4rem; }
    .lang-btn { padding-inline: .7rem; }
    .lang-name { display: none; }
    .lang-code { display: inline; }
}
@media (max-width: 1199.98px) {
    .navbar-arsuz .navbar-collapse { padding: .75rem 0 .5rem; max-height: calc(100vh - 70px); overflow-y: auto; }
    .navbar-arsuz .navbar-nav { gap: .15rem; }
    .navbar-arsuz .navbar-nav .nav-link { width: 100%; padding: .7rem .9rem; font-size: 1rem; }
    .navbar-arsuz .navbar-nav .nav-caret { margin-left: auto; }
    .navbar-arsuz .navbar-nav .dropdown-menu { margin: .15rem 0 .5rem; background: var(--ak-light); box-shadow: none; border: 1px solid var(--ak-border) !important; }
    .navbar-arsuz .navbar-collapse > .navbar-actions { flex-wrap: wrap; margin-top: .6rem; padding-top: .9rem; border-top: 1px solid var(--ak-border); }
    .navbar-actions .nav-cta { order: -1; flex: 1 0 100%; min-height: 48px; font-size: 1rem; }
    .navbar-actions .nav-login { flex: 1 1 auto; }
}

/* ---------------------------------------------------------------------
   6  Sections and headings
   --------------------------------------------------------------------- */
.section { padding-block: var(--ak-section-y); }
.section--tight { padding-block: calc(var(--ak-section-y) * .6); }
.section--white { background: #fff; }
.section--tint { background: var(--ak-tint); }
.section--sand { background: var(--ak-sand); }
.section--bordered { border-block: 1px solid var(--ak-border); }
.section + .section--flush { padding-top: 0; }

.section-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: .9rem 2rem;
    margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
}
.section-heading > div { min-width: 0; max-width: 46rem; }
.section-heading .section-title { margin: 0; }
.section-heading .section-subtitle { margin: .5rem 0 0; }
.section-heading--center { flex-direction: column; align-items: center; text-align: center; }
.section-eyebrow { display: flex; align-items: center; gap: .6rem; }
.section-eyebrow::before { content: ''; width: 1.6rem; height: 2px; border-radius: 2px; background: var(--ak-accent); flex: none; }
.section-heading--center .section-eyebrow, .text-center > .section-eyebrow { justify-content: center; }
.section-title { font-weight: 800; }
.section-subtitle { font-family: var(--ak-font-body); font-size: 1.02rem; line-height: 1.6; }
/* Text link with an arrow that nudges on hover. */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 44px;
    font-weight: 800;
    color: var(--ak-primary);
    white-space: nowrap;
}
.link-arrow .bi { transition: transform .2s var(--ak-ease); }
.link-arrow:hover { color: var(--ak-primary-dark); }
.link-arrow:hover .bi { transform: translateX(4px); }

/* ---------------------------------------------------------------------
   7  Page hero
   <header class="page-hero [page-hero--photo] [page-hero--compact|--tall] [page-hero--light] [page-hero--center]">
   --------------------------------------------------------------------- */
.page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(2.25rem, 5.5vw, 4rem) 0;
    color: var(--ak-on-dark);
    background:
        radial-gradient(60rem 26rem at 108% -30%, rgba(var(--ak-accent-rgb), .2), transparent 62%),
        linear-gradient(118deg, #0f3140 0%, var(--ak-primary-dark) 58%, #15677d 100%);
}
.page-hero :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6) { color: #fff; }
.page-hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.page-hero--photo { background: var(--ak-ink); }
/* The overlay keeps white text at 4.5:1 or better even over a pure white part of a photo. */
.page-hero--photo::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(var(--ak-ink-rgb), .78), rgba(var(--ak-ink-rgb), .86));
}
.page-hero-inner { position: relative; }
.page-hero-inner > * { max-width: 44rem; }
.page-hero-eyebrow {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 0 0 .8rem;
    color: var(--ak-accent);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.page-hero-eyebrow::before { content: ''; width: 1.6rem; height: 2px; border-radius: 2px; background: var(--ak-accent); flex: none; }
.page-hero h1, .page-hero .page-hero-title {
    margin: 0;
    font-size: clamp(1.9rem, 4.4vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    overflow-wrap: anywhere;
}
.page-hero-lead { margin: .9rem 0 0; font-size: clamp(1.02rem, 1.7vw, 1.2rem); line-height: 1.6; color: var(--ak-on-dark); }
.page-hero-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: 1rem 0 0; padding: 0; list-style: none; font-size: .95rem; font-weight: 600; }
.page-hero-meta li { display: inline-flex; align-items: center; gap: .45rem; }
.page-hero-meta a { color: #fff; text-decoration: underline; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.page-hero-place {
    position: absolute;
    right: .75rem;
    bottom: .5rem;
    margin: 0;
    padding: .15rem .55rem;
    border-radius: var(--ak-radius-pill);
    background: rgba(var(--ak-ink-rgb), .72);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.5;
    pointer-events: none;
}
.page-hero--photo { padding-bottom: clamp(2.6rem, 5.5vw, 4rem); }
.page-hero .breadcrumb {
    --bs-breadcrumb-divider-color: rgba(255, 255, 255, .7);
    --bs-breadcrumb-item-active-color: #fff;
    margin-bottom: 1.1rem;
    font-weight: 600;
}
.page-hero .breadcrumb a { color: var(--ak-on-dark); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .45); }
.page-hero .breadcrumb a:hover { color: #fff; text-decoration-color: #fff; }

.page-hero--compact { padding: clamp(1.6rem, 3.5vw, 2.4rem) 0; }
.page-hero--compact.page-hero--photo { padding-bottom: clamp(2.2rem, 3.5vw, 2.6rem); }
.page-hero--compact h1, .page-hero--compact .page-hero-title { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
.page-hero--compact .page-hero-lead { font-size: 1.02rem; }

.page-hero--tall { display: flex; align-items: center; min-height: clamp(27rem, 72vh, 40rem); padding: clamp(3rem, 7vw, 5rem) 0; }
.page-hero--tall > .container { width: 100%; }
.page-hero--tall h1, .page-hero--tall .page-hero-title { font-size: clamp(2.3rem, 5.6vw, 4.1rem); line-height: 1.07; }
.page-hero--tall .page-hero-inner > * { max-width: 40rem; }
.page-hero--tall .page-hero-lead { font-size: clamp(1.08rem, 1.9vw, 1.3rem); }
.page-hero--tall .page-hero-actions { margin-top: 1.9rem; }

.page-hero--center { text-align: center; }
.page-hero--center .page-hero-inner > * { margin-inline: auto; }
.page-hero--center .page-hero-eyebrow, .page-hero--center .page-hero-actions, .page-hero--center .page-hero-meta, .page-hero--center .breadcrumb { justify-content: center; }

.page-hero--light {
    --ak-focus: var(--ak-primary);
    color: var(--ak-text);
    background: linear-gradient(180deg, var(--ak-tint), #f1f7f7);
    border-bottom: 1px solid var(--ak-border);
}
.page-hero--light :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6) { color: var(--ak-dark); }
.page-hero--light .page-hero-eyebrow { color: var(--ak-primary); }
.page-hero--light .page-hero-lead { color: var(--ak-text-light); }
.page-hero--light .page-hero-meta a { color: var(--ak-primary); }
.page-hero--light .breadcrumb {
    --bs-breadcrumb-divider-color: var(--ak-text-light);
    --bs-breadcrumb-item-active-color: var(--ak-dark);
}
.page-hero--light .breadcrumb a { color: var(--ak-primary); text-decoration-color: rgba(var(--ak-primary-rgb), .4); }
.page-hero--light .breadcrumb a:hover { color: var(--ak-primary-dark); }

@media (max-width: 575.98px) {
    .page-hero-actions .btn { flex: 1 1 auto; }
}
@media (max-width: 1199.98px) {
    /* Tall photo hero: the photo shows through a window above the text; the text starts below it, on the dark part. */
    .page-hero--tall.page-hero--photo { align-items: flex-end; min-height: 0; padding: 9.5rem 0 2.75rem; }
    .page-hero--tall.page-hero--photo::before {
        background: linear-gradient(180deg, rgba(var(--ak-ink-rgb), .2) 0, rgba(var(--ak-ink-rgb), .8) 9rem, rgba(var(--ak-ink-rgb), .9) 100%);
    }
}
@media (min-width: 1200px) {
    /* Text sits on the left 60%; the photo opens up towards the right. */
    .page-hero--photo:not(.page-hero--center)::before {
        background: linear-gradient(90deg, rgba(var(--ak-ink-rgb), .9) 0%, rgba(var(--ak-ink-rgb), .78) 55%, rgba(var(--ak-ink-rgb), .28) 100%);
    }
    .page-hero--tall.page-hero--photo:not(.page-hero--center)::before {
        background:
            linear-gradient(0deg, rgba(var(--ak-ink-rgb), .45), rgba(var(--ak-ink-rgb), 0) 40%),
            linear-gradient(90deg, rgba(var(--ak-ink-rgb), .9) 0%, rgba(var(--ak-ink-rgb), .74) 50%, rgba(var(--ak-ink-rgb), .12) 100%);
    }
    .page-hero-place { right: 1.25rem; bottom: .9rem; font-size: .72rem; }
}

/* ---------------------------------------------------------------------
   8  Media covers (wrapper printed by Core\Media::cover) and own-photo ratio boxes
   --------------------------------------------------------------------- */
.media-cover, .ratio-cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--ak-tint);
}
.media-cover > img, .ratio-cover > img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transition: transform .7s var(--ak-ease);
}
.media-cover--16x9, .ratio-cover--16x9 { aspect-ratio: 16 / 9; }
.media-cover--3x2, .ratio-cover--3x2 { aspect-ratio: 3 / 2; }
.media-cover--4x3, .ratio-cover--4x3 { aspect-ratio: 4 / 3; }
.media-cover--1x1, .ratio-cover--1x1 { aspect-ratio: 1 / 1; }
.media-cover--21x9, .ratio-cover--21x9 { aspect-ratio: 21 / 9; }
.media-cover--fill, .ratio-cover--fill { aspect-ratio: auto; height: 100%; min-height: 12rem; }
.media-cover--rounded, .ratio-cover--rounded { border-radius: var(--ak-radius-lg); }
@media (hover: hover) {
    .card:hover > .media-cover > img, .card:hover .card-media > .media-cover > img,
    a:hover > .media-cover > img, a:hover > .ratio-cover > img, .media-zoom:hover img { transform: scale(1.05); }
}
.media-cover-label {
    position: absolute;
    left: .6rem;
    bottom: .6rem;
    z-index: 1;
    max-width: calc(100% - 1.2rem);
    padding: .2rem .6rem;
    border-radius: var(--ak-radius-pill);
    background: rgba(12, 32, 41, .8);
    color: #fff;
    font-family: var(--ak-font-body);
    font-size: .7rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}
.media-cover-empty { display: grid; place-items: center; background: linear-gradient(135deg, var(--ak-tint), var(--ak-sand)); }
.media-cover-empty > img { position: static; width: 56px; height: 56px; object-fit: contain; opacity: .55; mix-blend-mode: multiply; transform: none !important; }
.media-cover-empty > .media-cover-label { display: none; }

/* ---------------------------------------------------------------------
   9  Cards, grids, rails
   <article class="card ak-card h-100"> cover, .card-body > .card-kicker, .card-heading > a.stretched-link, .card-excerpt, .card-meta
   --------------------------------------------------------------------- */
.card {
    --bs-card-border-color: var(--ak-border);
    --bs-card-border-radius: var(--ak-radius-lg);
    --bs-card-inner-border-radius: calc(var(--ak-radius-lg) - 1px);
    --bs-card-cap-bg: transparent;
    box-shadow: var(--ak-shadow-card);
}
.ak-card {
    position: relative;
    height: 100%;
    border: 1px solid var(--ak-border);
    transition: transform .28s var(--ak-ease), box-shadow .28s var(--ak-ease), border-color .2s ease;
}
@media (hover: hover) {
    .ak-card:hover { transform: translateY(-4px); box-shadow: var(--ak-shadow-raised); border-color: var(--ak-tint-strong); }
}
.ak-card:focus-within { border-color: var(--ak-primary); box-shadow: 0 0 0 3px rgba(var(--ak-primary-rgb), .3), var(--ak-shadow-card); }
.ak-card > .card-body { display: flex; flex-direction: column; gap: .55rem; padding: 1.15rem 1.25rem 1.3rem; }
.card-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    margin: 0;
    color: var(--ak-primary);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.card-kicker .chip { letter-spacing: 0; text-transform: none; }
.card-heading, .ak-card .card-title {
    margin: 0;
    font-family: var(--ak-font-body);
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}
.card-heading a, .ak-card .card-title a { color: var(--ak-dark); text-decoration: none; }
.ak-card:hover .card-heading a, .ak-card:hover .card-title a { color: var(--ak-primary); }
.card-heading a:focus-visible, .ak-card .card-title a:focus-visible { outline: none; text-decoration: underline; }
.card-excerpt {
    margin: 0;
    color: var(--ak-text-light);
    font-size: .94rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem 1rem;
    margin: auto 0 0;
    padding: .35rem 0 0;
    list-style: none;
    color: var(--ak-text-light);
    font-size: .84rem;
    font-weight: 600;
}
.card-meta li { display: inline-flex; align-items: baseline; gap: .4rem; min-width: 0; }
.card-meta .bi { color: var(--ak-primary); flex: none; }
.card-meta--stack { flex-direction: column; gap: .3rem; }
.card-meta a { position: relative; z-index: 2; color: var(--ak-primary-dark); font-weight: 800; text-decoration: none; }
.card-meta a:hover { text-decoration: underline; }
.card-meta a[href^="tel:"] { display: inline-flex; align-items: center; min-height: 28px; }
.ak-card .card-flag { position: absolute; top: .7rem; right: .7rem; z-index: 2; }

/* Date badge (events): day over month. */
.date-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 3.4rem;
    padding: .4rem .55rem .45rem;
    border-radius: .8rem;
    background: #fff;
    color: var(--ak-dark);
    box-shadow: 0 6px 18px rgba(var(--ak-ink-rgb), .22);
    line-height: 1;
    text-align: center;
}
.date-badge-day { font-family: var(--ak-font-display); font-variant-numeric: lining-nums; font-size: 1.5rem; font-weight: 800; color: var(--ak-primary); }
.date-badge-month { margin-top: .2rem; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ak-text); }
.date-badge-year { margin-top: .15rem; font-size: .66rem; font-weight: 700; color: var(--ak-text-light); }
.date-badge .bi { font-size: 1.25rem; color: var(--ak-primary); }
.ak-card > .date-badge, .card-media > .date-badge { position: absolute; top: .75rem; left: .75rem; z-index: 2; }
.date-badge--flat { box-shadow: none; background: var(--ak-tint); }
.card-media { position: relative; }

/* Horizontal card: image beside the text from md up. */
@media (min-width: 768px) {
    .ak-card--horizontal { flex-direction: row; }
    .ak-card--horizontal > .media-cover, .ak-card--horizontal > .card-media { flex: 0 0 44%; aspect-ratio: auto; min-height: 15rem; }
    .ak-card--horizontal > .card-media > .media-cover { height: 100%; aspect-ratio: auto; }
    .ak-card--horizontal > .card-body { justify-content: center; padding: 1.6rem 1.75rem; }
    .ak-card--horizontal .card-heading, .ak-card--horizontal .card-title { font-family: var(--ak-font-display); font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.25; }
    .ak-card--horizontal .card-excerpt { -webkit-line-clamp: 4; line-clamp: 4; font-size: 1rem; }
    .ak-card--horizontal .card-meta { margin-top: .4rem; }
}
/* Compact card: small thumbnail on the left (related lists, side columns). */
.ak-card--compact { flex-direction: row; align-items: stretch; }
.ak-card--compact > .media-cover, .ak-card--compact > .card-media { flex: 0 0 6.5rem; aspect-ratio: auto; min-height: 5.5rem; }
.ak-card--compact > .card-media > .media-cover { height: 100%; aspect-ratio: auto; }
.ak-card--compact > .card-body { padding: .8rem 1rem; gap: .3rem; justify-content: center; }
.ak-card--compact .card-heading, .ak-card--compact .card-title { font-size: 1rem; }
.ak-card--compact .media-cover-label { left: .3rem; bottom: .3rem; max-width: calc(100% - .6rem); padding: .1rem .4rem; font-size: .66rem; }
/* Agenda row (events): date badge on the left, no photo. */
.ak-card--row { flex-direction: row; align-items: center; gap: 1rem; padding: .9rem 1rem; }
.ak-card--row > .date-badge { position: static; flex: none; }
.ak-card--row > .card-body { padding: 0; gap: .25rem; }

/* Equal-height grid. Columns: 1 on phones, 2 from 576px, 3 from 992px (use --2 or --4 to change the maximum). */
.card-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
@media (min-width: 576px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; } }
@media (min-width: 992px) {
    .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) { .card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card-grid > .card-grid-wide { grid-column: 1 / -1; }

/* The rails below bleed into the page gutter; clip keeps that from widening the page on phones. */
main { overflow-x: clip; }

/* Rail: swipeable scroll-snap row on phones, an ordinary grid from md up. .rail--always keeps it a rail. */
.rail {
    display: flex;
    gap: 1rem;
    margin-inline: calc(var(--bs-gutter-x, 1.5rem) * -.5);
    padding: .25rem calc(var(--bs-gutter-x, 1.5rem) * .5) 1rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: calc(var(--bs-gutter-x, 1.5rem) * .5);
    scrollbar-width: thin;
    scrollbar-color: var(--ak-tint-strong) transparent;
    -webkit-overflow-scrolling: touch;
}
.rail > * { flex: 0 0 min(80%, 19rem); height: auto; scroll-snap-align: start; min-width: 0; }
.rail--narrow > * { flex-basis: min(62%, 14rem); }
@media (min-width: 768px) {
    .rail:not(.rail--always) {
        display: grid;
        grid-template-columns: repeat(var(--rail-cols, 2), minmax(0, 1fr));
        gap: 1.5rem;
        margin-inline: 0;
        padding: 0;
        overflow: visible;
    }
}
@media (min-width: 992px) {
    .rail:not(.rail--always) { --rail-cols: 3; }
    .rail--4:not(.rail--always) { --rail-cols: 4; }
    .rail--2:not(.rail--always) { --rail-cols: 2; }
}

/* ---------------------------------------------------------------------
   10  Tiles, stats, link cards
   --------------------------------------------------------------------- */
.tile {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border-radius: var(--ak-radius-lg);
    background: var(--ak-ink);
    color: #fff;
    text-decoration: none;
    box-shadow: var(--ak-shadow-card);
    transition: transform .28s var(--ak-ease), box-shadow .28s var(--ak-ease);
}
.tile--wide { aspect-ratio: 16 / 9; }
.tile--square { aspect-ratio: 1 / 1; }
.tile--short { aspect-ratio: 4 / 3; }
.tile > img, .tile-media, .tile-media > img { position: absolute; inset: 0; z-index: -1; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.tile > img, .tile-media > img { transition: transform .7s var(--ak-ease); }
.tile-body {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    width: 100%;
    padding: 3.2rem 1rem 1rem;
    background: linear-gradient(0deg, rgba(var(--ak-ink-rgb), .92) 0, rgba(var(--ak-ink-rgb), .7) calc(100% - 3rem), rgba(var(--ak-ink-rgb), 0) 100%);
}
.tile-kicker { color: var(--ak-accent); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.tile-title { color: #fff; font-family: var(--ak-font-display); font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 700; line-height: 1.2; }
.tile-text { color: var(--ak-on-dark); font-size: .86rem; font-weight: 600; line-height: 1.4; }
.tile:hover { color: #fff; }
@media (hover: hover) {
    .tile:hover { transform: translateY(-4px); box-shadow: var(--ak-shadow-raised); }
    .tile:hover > img, .tile:hover .tile-media > img { transform: scale(1.06); }
}
.tile:focus-visible { outline: 3px solid var(--ak-primary); outline-offset: 3px; }

.stat-row { display: flex; flex-wrap: wrap; gap: 1rem clamp(1.5rem, 4vw, 3rem); margin: 0; padding: 0; list-style: none; }
.stat { display: flex; flex-direction: column; gap: .15rem; color: inherit; text-decoration: none; }
.stat-value { font-family: var(--ak-font-display); font-variant-numeric: lining-nums; font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 800; line-height: 1; color: var(--ak-primary); }
.stat-label { font-size: .84rem; font-weight: 700; color: var(--ak-text-light); }
a.stat:hover .stat-label { text-decoration: underline; }
.page-hero .stat-value, .cta-band .stat-value { color: var(--ak-accent); }
.page-hero .stat-label, .cta-band .stat-label { color: var(--ak-on-dark); }
.page-hero .stat-row { margin-top: 1.75rem; }

/* Link card: icon, title and one line of help (shortcuts, 404 suggestions). */
.link-card {
    display: flex;
    align-items: center;
    gap: .9rem;
    height: 100%;
    min-height: 4.5rem;
    padding: .9rem 1rem;
    border: 1px solid var(--ak-border);
    border-radius: var(--ak-radius-lg);
    background: #fff;
    color: var(--ak-dark);
    text-decoration: none;
    box-shadow: var(--ak-shadow-card);
    transition: transform .25s var(--ak-ease), box-shadow .25s var(--ak-ease), border-color .2s ease;
}
.link-card-body { display: flex; flex-direction: column; min-width: 0; }
.link-card-title { font-weight: 800; line-height: 1.3; }
.link-card-text { color: var(--ak-text-light); font-size: .84rem; line-height: 1.4; }
.link-card-arrow { margin-left: auto; color: var(--ak-primary); transition: transform .2s var(--ak-ease); }
.link-card:hover { color: var(--ak-primary-dark); border-color: var(--ak-primary); }
@media (hover: hover) {
    .link-card:hover { transform: translateY(-2px); box-shadow: var(--ak-shadow-raised); }
    .link-card:hover .link-card-arrow { transform: translateX(4px); }
}

/* ---------------------------------------------------------------------
   11  Chips, filters, tones
   A tone sets --tone-bg and --tone-fg; every pair is 4.5:1 or better.
   --------------------------------------------------------------------- */
.tone-teal { --tone-bg: #e3f0f2; --tone-fg: #0b4e63; }
.tone-amber { --tone-bg: #fff1c9; --tone-fg: #6b4e00; }
.tone-red { --tone-bg: #fde5e3; --tone-fg: #9a1f17; }
.tone-green { --tone-bg: #dff2e6; --tone-fg: #17603a; }
.tone-blue { --tone-bg: #e1ecfb; --tone-fg: #1c4f96; }
.tone-violet { --tone-bg: #ece6f8; --tone-fg: #55309a; }
.tone-slate { --tone-bg: #e8edf0; --tone-fg: #34495a; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    max-width: 100%;
    padding: .2rem .7rem;
    border-radius: var(--ak-radius-pill);
    background: var(--tone-bg, var(--ak-tint));
    color: var(--tone-fg, var(--ak-primary-dark));
    font-family: var(--ak-font-body);
    font-size: .78rem;
    font-weight: 800;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
}
a.chip { min-height: 32px; transition: box-shadow .18s ease; }
a.chip:hover { color: var(--tone-fg, var(--ak-primary-dark)); box-shadow: inset 0 0 0 1px currentColor; }
.chip--solid { background: var(--ak-accent); color: var(--ak-dark); }
.chip--outline { background: transparent; box-shadow: inset 0 0 0 1px currentColor; }
.chip--on-photo { background: rgba(12, 32, 41, .8); color: #fff; }

.icon-circle {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--tone-bg, var(--ak-tint));
    color: var(--tone-fg, var(--ak-primary));
    font-size: 1.25rem;
    line-height: 1;
}
.icon-circle--sm { width: 2.5rem; height: 2.5rem; font-size: 1.05rem; }
.icon-circle--lg { width: 4rem; height: 4rem; font-size: 1.7rem; }
.icon-circle--on-dark { background: rgba(255, 255, 255, .12); color: var(--ak-accent); }

.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-pill {
    min-height: 44px;
    padding: .45rem 1.05rem;
    border-color: var(--ak-border);
    color: var(--ak-dark);
    font-size: .9rem;
    font-weight: 700;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.filter-pill:hover { border-color: var(--ak-primary); color: var(--ak-primary-dark); background: var(--ak-tint); }
.filter-pill.active, .filter-pill[aria-current] { background: var(--ak-primary); border-color: var(--ak-primary); color: #fff; }
.filter-pill-count { padding: 0 .45rem; border-radius: var(--ak-radius-pill); background: rgba(var(--ak-primary-rgb), .12); font-size: .76rem; }
.filter-pill.active .filter-pill-count, .filter-pill[aria-current] .filter-pill-count { background: rgba(255, 255, 255, .22); }
@media (max-width: 767.98px) {
    /* One swipeable row instead of three wrapped rows. */
    .filter-bar {
        flex-wrap: nowrap;
        justify-content: flex-start !important;
        margin-inline: calc(var(--bs-gutter-x, 1.5rem) * -.5);
        padding: .15rem calc(var(--bs-gutter-x, 1.5rem) * .5) .5rem;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .filter-bar::-webkit-scrollbar { display: none; }
    .filter-bar > * { flex: 0 0 auto; }
}

/* Tinted Bootstrap pairs used by older markup (badge bg-X bg-opacity-10 text-X): darker text keeps them AA. */
.bg-opacity-10.text-warning, .bg-opacity-10 > .text-warning { color: #7a5200 !important; }
.bg-opacity-10.text-info, .bg-opacity-10 > .text-info { color: #0a5a6b !important; }
.bg-opacity-10.text-success, .bg-opacity-10 > .text-success { color: #146c43 !important; }
.bg-opacity-10.text-danger, .bg-opacity-10 > .text-danger { color: #a52834 !important; }
.bg-opacity-10.text-secondary, .bg-opacity-10 > .text-secondary { color: #495057 !important; }
.bg-purple { --bs-bg-opacity: 1; background-color: rgba(111, 66, 193, var(--bs-bg-opacity)) !important; }
.text-purple { color: #55309a !important; }
.form-check-input:checked { background-color: var(--ak-primary); border-color: var(--ak-primary); }

/* ---------------------------------------------------------------------
   12  Invitations for business owners (printed by partials/business-cta.php)
   --------------------------------------------------------------------- */
.cta-band {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(2.75rem, 6vw, 4.5rem) 0;
    background: var(--ak-ink);
    color: var(--ak-on-dark);
}
.cta-band :is(h2, h3, h4, .h2, .h3) { color: #fff; }
.cta-band-media { position: absolute; inset: 0; z-index: -2; }
.cta-band-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(100deg, rgba(var(--ak-ink-rgb), .93) 0%, rgba(var(--ak-ink-rgb), .84) 55%, rgba(var(--ak-ink-rgb), .7) 100%);
}
.cta-band-inner { display: grid; gap: 1.75rem; align-items: center; }
.cta-band-eyebrow { display: flex; align-items: center; gap: .6rem; margin: 0 0 .7rem; color: var(--ak-accent); font-size: .76rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.cta-band-eyebrow::before { content: ''; width: 1.6rem; height: 2px; border-radius: 2px; background: var(--ak-accent); flex: none; }
.cta-band-title { margin: 0; font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; line-height: 1.18; }
.cta-band-text { margin: .8rem 0 0; max-width: 38rem; font-size: 1.05rem; line-height: 1.6; }
.cta-band-list { display: grid; gap: .55rem; margin: 1.2rem 0 0; padding: 0; list-style: none; font-weight: 600; }
.cta-band-list li { display: flex; align-items: flex-start; gap: .65rem; line-height: 1.45; }
.cta-band-list .bi { margin-top: .12rem; color: var(--ak-accent); flex: none; }
.cta-band-action { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; }
.cta-band-note { margin: 0; font-size: .86rem; color: var(--ak-on-dark); }
@media (max-width: 575.98px) { .cta-band-action .btn { width: 100%; } }
@media (min-width: 992px) {
    .cta-band-inner { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 3rem; }
    .cta-band-action { align-items: flex-end; text-align: right; }
}
.cta-band--inset { border-radius: var(--ak-radius-lg); padding: clamp(1.75rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3rem); }

.cta-banner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--ak-sand-strong);
    border-radius: var(--ak-radius-lg);
    background: var(--ak-sand);
    color: var(--ak-text);
}
.cta-banner-copy { display: flex; align-items: flex-start; gap: .9rem; min-width: 0; }
.cta-banner-title { margin: 0; font-family: var(--ak-font-body); font-size: 1.08rem; font-weight: 800; line-height: 1.35; letter-spacing: 0; color: var(--ak-dark); }
.cta-banner-text { margin: .2rem 0 0; font-size: .94rem; line-height: 1.5; color: var(--ak-text); }
.cta-banner .btn { align-self: stretch; white-space: nowrap; }
@media (min-width: 768px) {
    .cta-banner { flex-direction: row; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.15rem 1.5rem; }
    .cta-banner-copy { align-items: center; }
    .cta-banner .btn { align-self: center; flex: none; }
}

/* Dashed invitation card: sized like a listing card, visibly not a listing. */
.ghost-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    height: 100%;
    min-height: 16rem;
    padding: 1.75rem 1.5rem;
    border: 2px dashed rgba(var(--ak-primary-rgb), .5);
    border-radius: var(--ak-radius-lg);
    background: repeating-linear-gradient(135deg, rgba(var(--ak-primary-rgb), .035) 0 12px, transparent 12px 24px), var(--ak-surface);
    text-align: center;
    transition: border-color .2s ease, background-color .2s ease;
}
.ghost-card-title { margin: .2rem 0 0; font-family: var(--ak-font-body); font-size: 1.08rem; font-weight: 800; line-height: 1.35; letter-spacing: 0; color: var(--ak-dark); }
.ghost-card-text { margin: 0; max-width: 22rem; font-size: .94rem; line-height: 1.55; color: var(--ak-text-light); }
.ghost-card .btn { margin-top: .5rem; }
.ghost-card:hover, .ghost-card:focus-within { border-color: var(--ak-primary); }

.cta-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .3rem .6rem; margin: 0; color: var(--ak-text-light); font-size: .95rem; }
.cta-line a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; text-decoration: underline; }
.cta-line .bi { color: var(--ak-primary); }

/* ---------------------------------------------------------------------
   13  Empty state
   --------------------------------------------------------------------- */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: clamp(2rem, 5vw, 3.25rem) 1.25rem;
    border: 1px dashed var(--ak-tint-strong);
    border-radius: var(--ak-radius-lg);
    background: #fff;
    color: var(--ak-text-light);
    text-align: center;
}
/* color needs !important only to beat .text-muted on the icons of older markup. */
.empty-state > .bi, .empty-state > i, .empty-state-icon {
    display: inline-block;
    width: 4rem;
    height: 4rem;
    margin: 0 0 .4rem;
    border-radius: 50%;
    background: var(--ak-tint);
    color: var(--ak-primary) !important;
    font-size: 1.7rem;
    line-height: 4rem;
    text-align: center;
}
.empty-state :is(h2, h3, h4), .empty-state-title { margin: 0; font-family: var(--ak-font-body); font-size: 1.12rem; font-weight: 800; letter-spacing: 0; color: var(--ak-dark); }
.empty-state p { margin: 0; max-width: 34rem; line-height: 1.6; }
.empty-state .btn { margin-top: .7rem; }

/* ---------------------------------------------------------------------
   14  Prose (article bodies: .prose or the existing .article-content)
   --------------------------------------------------------------------- */
.prose, .article-content {
    color: var(--ak-text);
    font-size: 1.09rem;
    line-height: 1.75;
    overflow-wrap: break-word;
}
.prose > :first-child, .article-content > :first-child { margin-top: 0; }
.prose > :last-child, .article-content > :last-child { margin-bottom: 0; }
:is(.prose, .article-content) p { margin: 0 0 1.15em; }
:is(.prose, .article-content) :is(h2, h3, h4) { margin: 1.9em 0 .6em; line-height: 1.25; }
:is(.prose, .article-content) h2 { font-size: clamp(1.45rem, 2.6vw, 1.8rem); font-weight: 800; }
:is(.prose, .article-content) h3 { font-size: clamp(1.2rem, 2vw, 1.38rem); font-weight: 700; }
:is(.prose, .article-content) h4 { font-family: var(--ak-font-body); font-size: 1.08rem; font-weight: 800; letter-spacing: 0; }
:is(.prose, .article-content) a:not(.btn) { color: var(--ak-primary); font-weight: 600; text-decoration: underline; text-decoration-thickness: .08em; }
:is(.prose, .article-content) a:not(.btn):hover { color: var(--ak-primary-dark); text-decoration-thickness: .14em; }
:is(.prose, .article-content) :is(ul, ol) { margin: 0 0 1.15em; padding-left: 1.4em; }
:is(.prose, .article-content) li { margin-bottom: .4em; }
:is(.prose, .article-content) li::marker { color: var(--ak-primary); font-weight: 800; }
:is(.prose, .article-content) blockquote {
    margin: 1.6em 0;
    padding: .9em 1.25em;
    border-left: 4px solid var(--ak-accent);
    border-radius: 0 var(--ak-radius) var(--ak-radius) 0;
    background: var(--ak-sand);
    color: var(--ak-dark);
    font-family: var(--ak-font-display);
    font-size: 1.15em;
    font-weight: 600;
    line-height: 1.5;
}
:is(.prose, .article-content) blockquote > :last-child { margin-bottom: 0; }
:is(.prose, .article-content) img { height: auto; border-radius: var(--ak-radius); }
:is(.prose, .article-content) figure { margin: 1.75em 0; }
:is(.prose, .article-content) figcaption { margin-top: .55em; color: var(--ak-text-light); font-size: .86rem; line-height: 1.5; text-align: center; }
:is(.prose, .article-content) hr { margin: 2em 0; }
:is(.prose, .article-content) table { width: 100%; margin: 1.5em 0; border-collapse: collapse; font-size: .96rem; }
:is(.prose, .article-content) :is(th, td) { padding: .6rem .8rem; border: 1px solid var(--ak-border); text-align: left; vertical-align: top; }
:is(.prose, .article-content) th { background: var(--ak-tint); color: var(--ak-dark); font-weight: 800; }
:is(.prose, .article-content) :is(code, kbd) { padding: .1em .35em; border-radius: .3em; background: var(--ak-tint); color: var(--ak-primary-dark); font-size: .9em; }
:is(.prose, .article-content) iframe { max-width: 100%; border: 0; border-radius: var(--ak-radius); }
.prose--narrow { max-width: 46rem; }
@media (max-width: 575.98px) {
    .prose, .article-content { font-size: 1.04rem; line-height: 1.7; }
    :is(.prose, .article-content) table { display: block; overflow-x: auto; }
}

/* ---------------------------------------------------------------------
   15  Forms, tables, alerts, pagination, breadcrumb
   --------------------------------------------------------------------- */
.form-label { margin-bottom: .4rem; font-size: .92rem; font-weight: 800; }
.form-control, .form-select {
    min-height: 46px;
    border-color: #c5d5d9;
    color: var(--ak-dark);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control::placeholder { color: #70868f; opacity: 1; }
textarea.form-control { min-height: 7.5rem; line-height: 1.6; }
.form-control-sm, .form-select-sm { min-height: 40px; }
.form-control[type="file"] { padding-block: .6rem; }
.form-control:focus, .form-select:focus, .form-control:focus-visible, .form-select:focus-visible {
    border-color: var(--ak-primary);
    outline: 2px solid var(--ak-primary);
    outline-offset: 0;
    box-shadow: 0 0 0 4px rgba(var(--ak-primary-rgb), .16);
}
.form-check-input { width: 1.25em; height: 1.25em; margin-top: .2em; border-color: #8ea5ad; }
.form-check-input:focus { border-color: var(--ak-primary); box-shadow: 0 0 0 4px rgba(var(--ak-primary-rgb), .2); }
.form-check-input:focus-visible { outline: 2px solid var(--ak-primary); outline-offset: 2px; }
.form-check-label { padding-left: .15rem; }
.form-text { color: var(--ak-text-light); font-size: .86rem; }
.form-control.is-invalid, .form-select.is-invalid { border-color: #b3261e; }
.invalid-feedback { color: #a1211a; font-weight: 600; }
.input-group-text { border-color: #c5d5d9; background: var(--ak-tint); color: var(--ak-primary-dark); }
/* A heading-styled legend sits in the notch of its fieldset border instead of colliding with it. */
fieldset > legend:is(.h5, .h6) { float: none; width: auto; margin-bottom: .5rem; padding-inline: .35rem; font-family: var(--ak-font-body); font-size: .98rem; font-weight: 800; letter-spacing: 0; color: var(--ak-dark); }
@media (max-width: 767.98px) {
    .form-control, .form-select { min-height: 48px; font-size: 1rem; }
    .form-control-sm, .form-select-sm { min-height: 44px; }
}

.table {
    --bs-table-color: var(--ak-text);
    --bs-table-border-color: var(--ak-border);
    --bs-table-striped-bg: #f7fafa;
    --bs-table-hover-bg: var(--ak-tint);
    margin-bottom: 0;
}
.table > :not(caption) > * > * { padding: .8rem 1rem; }
.table > thead th {
    background: #f1f6f7;
    color: var(--ak-text-light);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
    border-bottom-width: 1px;
}
.table td { vertical-align: middle; }
.table-responsive { border: 1px solid var(--ak-border); border-radius: var(--ak-radius-lg); background: #fff; }
.card > .table-responsive, .card-body > .table-responsive { border: 0; border-radius: 0; }
.table-responsive > .table > :last-child > tr:last-child > * { border-bottom: 0; }
@media (max-width: 767.98px) { .table-responsive > .table { min-width: 34rem; } }

.alert { --bs-alert-border-radius: var(--ak-radius); --bs-alert-padding-x: 1.1rem; --bs-alert-padding-y: .9rem; font-weight: 600; line-height: 1.5; }
.alert-success { --bs-alert-color: #0f5132; --bs-alert-bg: #e2f3e9; --bs-alert-border-color: #b9dfc8; }
.alert-danger { --bs-alert-color: #8a1c15; --bs-alert-bg: #fde8e6; --bs-alert-border-color: #f3c1bc; }
.alert-warning { --bs-alert-color: #6b4e00; --bs-alert-bg: #fff4d6; --bs-alert-border-color: #f0d78c; }
.alert-info { --bs-alert-color: var(--ak-primary-dark); --bs-alert-bg: var(--ak-tint); --bs-alert-border-color: #c4dde2; }
.alert-dismissible { border: 1px solid var(--bs-alert-border-color); }
.alert .alert-link { color: inherit; text-decoration: underline; }
.flash-stack { display: grid; gap: .6rem; margin-top: 1rem; }
.flash-stack .alert { display: flex; align-items: flex-start; gap: .7rem; margin: 0; box-shadow: var(--ak-shadow-card); }
.flash-stack .alert > .bi { margin-top: .1rem; font-size: 1.1rem; flex: none; }
.flash-stack .btn-close { padding: 1.05rem 1.1rem; }

.pagination {
    --bs-pagination-color: var(--ak-primary);
    --bs-pagination-border-color: var(--ak-border);
    --bs-pagination-hover-color: var(--ak-primary-dark);
    --bs-pagination-hover-bg: var(--ak-tint);
    --bs-pagination-hover-border-color: var(--ak-tint-strong);
    --bs-pagination-focus-color: var(--ak-primary-dark);
    --bs-pagination-focus-bg: var(--ak-tint);
    --bs-pagination-focus-box-shadow: none;
    --bs-pagination-active-bg: var(--ak-primary);
    --bs-pagination-active-border-color: var(--ak-primary);
    --bs-pagination-disabled-color: #70868f;
    --bs-pagination-disabled-bg: transparent;
    flex-wrap: wrap;
    gap: .35rem;
}
.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    font-family: var(--ak-font-body);
    font-weight: 700;
}
.breadcrumb { --bs-breadcrumb-divider-color: var(--ak-text-light); --bs-breadcrumb-item-active-color: var(--ak-text); flex-wrap: wrap; row-gap: .15rem; }
.breadcrumb-item a { display: inline-block; padding-block: .2rem; }

/* ---------------------------------------------------------------------
   16  Lightbox (shared modal #siteLightbox, opened by a[data-lightbox]) and back to top
   --------------------------------------------------------------------- */
.lightbox .modal-dialog { max-width: min(1100px, calc(100vw - 1.5rem)); }
.lightbox .modal-content { background: #0b1d26; border: 0; border-radius: var(--ak-radius-lg); overflow: hidden; color: #fff; }
.lightbox-bar { display: flex; align-items: center; gap: 1rem; min-height: 52px; padding: .35rem .5rem .35rem 1rem; }
.lightbox-title { flex: 1; min-width: 0; margin: 0; color: #fff; font-family: var(--ak-font-body); font-size: .98rem; font-weight: 700; letter-spacing: 0; line-height: 1.4; }
.lightbox-stage { position: relative; display: grid; place-items: center; min-height: 12rem; background: #06141a; }
.lightbox-stage img { display: block; max-width: 100%; max-height: min(78vh, 900px); width: auto; height: auto; }
.lightbox-caption { margin: 0; padding: .6rem 1rem .8rem; color: var(--ak-on-dark-muted); font-size: .84rem; line-height: 1.5; }
.lightbox-caption:empty { display: none; }
.lightbox-nav {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(12, 32, 41, .78);
    color: #fff;
    font-size: 1.2rem;
    transform: translateY(-50%);
}
.lightbox-nav:hover { background: rgba(12, 32, 41, .95); }
.lightbox-nav[hidden] { display: none; }
.lightbox-prev { left: .6rem; }
.lightbox-next { right: .6rem; }
.lightbox .btn-close { width: 44px; height: 44px; margin: 0; padding: 0; background-size: 1rem; opacity: .9; }

#backToTop {
    display: flex;
    right: 1rem;
    bottom: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s, background-color .2s ease;
}
#backToTop.is-visible { opacity: 1; visibility: visible; transform: none; }
#backToTop:hover { transform: translateY(-2px); }
@media (min-width: 992px) { #backToTop { right: 1.75rem; bottom: 1.75rem; } }

/* ---------------------------------------------------------------------
   17  Footer
   --------------------------------------------------------------------- */
.footer {
    padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem;
    background: linear-gradient(180deg, var(--ak-dark) 0%, #12303f 100%);
    color: var(--ak-on-dark-muted);
    font-size: .94rem;
}
.footer a:not(.btn) { color: var(--ak-on-dark-muted); font-size: inherit; text-decoration: none; }
.footer a:not(.btn):hover { color: #fff; text-decoration: underline; }
.footer-invites { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 5vw, 3rem); }
.footer-invite {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .9rem;
    padding: 1.25rem 1.35rem;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--ak-radius-lg);
    background: rgba(255, 255, 255, .05);
}
.footer-invite--accent { border-color: rgba(var(--ak-accent-rgb), .5); background: rgba(var(--ak-accent-rgb), .08); }
.footer-invite-copy { display: flex; align-items: flex-start; gap: .9rem; }
.footer-invite-title { margin: 0 0 .25rem; color: #fff; font-size: 1.06rem; font-weight: 800; line-height: 1.35; }
.footer-invite-text { margin: 0; color: var(--ak-on-dark); font-size: .94rem; line-height: 1.55; }
.footer-invite .btn { margin-top: auto; white-space: nowrap; }
@media (min-width: 768px) { .footer-invites { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; } }

.footer-brand { display: inline-flex; padding: .6rem .9rem; border-radius: .9rem; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.footer-brand img { display: block; height: 40px; width: auto; }
.footer-tagline { margin: 1rem 0; max-width: 24rem; color: var(--ak-on-dark-muted); line-height: 1.6; }
.footer-social .btn-icon { --bs-btn-color: #fff; --bs-btn-border-color: rgba(255, 255, 255, .45); --bs-btn-hover-color: var(--ak-dark); --bs-btn-hover-bg: var(--ak-accent); --bs-btn-hover-border-color: var(--ak-accent); --bs-btn-active-color: var(--ak-dark); --bs-btn-active-bg: var(--ak-accent-dark); --bs-btn-active-border-color: var(--ak-accent-dark); }
.footer-title {
    margin: 0 0 .7rem;
    color: #fff;
    font-family: var(--ak-font-body);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .1em;
    line-height: 1.4;
    text-transform: uppercase;
}
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { break-inside: avoid; }
.footer-links a { display: inline-flex; align-items: center; gap: .55rem; min-width: 44px; min-height: 44px; padding-block: .3rem; line-height: 1.35; }
.footer-links .bi { color: #7fa3b5; flex: none; }
.footer-links a:hover .bi { color: var(--ak-accent); }
.footer .footer-links a.footer-link-strong { color: #fff; font-weight: 800; }
.footer .footer-links a.footer-link-strong .bi { color: var(--ak-accent); }
.footer-address { display: flex; align-items: center; gap: .55rem; min-height: 44px; margin: 0; }
.footer-address .bi { color: #7fa3b5; }
@media (max-width: 991.98px) { .footer-links--split { columns: 2; column-gap: 1.5rem; } }
@media (min-width: 992px) { .footer-links a { min-height: 36px; padding-block: .2rem; } .footer-address { min-height: 36px; } }
.footer-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin-top: clamp(1.5rem, 4vw, 2.5rem);
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, .14);
    color: #a9c0cc;
    font-size: .82rem;
    line-height: 1.6;
}
.footer-disclaimer p { margin: 0; max-width: 62rem; }
.footer-disclaimer strong { color: var(--ak-on-dark); }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .25rem 1.5rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .14);
    color: #a9c0cc;
    font-size: .84rem;
}
.footer-bottom-links { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.footer-bottom a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; color: var(--ak-on-dark); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); }

/* ---------------------------------------------------------------------
   18  Error pages (404, 403)
   --------------------------------------------------------------------- */
.error-shortcuts { display: grid; gap: .85rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 576px) { .error-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .error-shortcuts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------------
   19  Legacy markup fixes (views that still carry inline styles or old classes)
   --------------------------------------------------------------------- */
/* Inline dark gradient page headers: the section sets color:#fff, headings did not inherit it. */
[style*="linear-gradient(135deg, var(--ak-dark)"] :is(h1, h2, h3, h4, h5, h6) { color: #fff; }
[style*="linear-gradient(135deg, var(--ak-dark)"] { --ak-focus: #fff; }
/* .fs-5.lh-lg on article bodies gave 20px text with a 2.0 line height. */
.article-content.fs-5.lh-lg { font-size: 1.09rem !important; line-height: 1.75 !important; }
/* Old sun placeholders keep working until every view uses Media::cover. */
.card-img-placeholder, .detail-img-placeholder { background: linear-gradient(135deg, var(--ak-tint), var(--ak-sand)); }
.card-img-placeholder img, .detail-img-placeholder img { mix-blend-mode: multiply; }
.cta-section { border-radius: 0; }
.gallery-item { display: block; }
@media (hover: hover) { .gallery-item:hover img { transform: scale(1.04); } }

/* ---------------------------------------------------------------------
   20  Motion and print
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .ak-card:hover, .tile:hover, .link-card:hover, .btn:hover, #backToTop:hover { transform: none; }
    .media-cover > img, .ratio-cover > img, .tile > img, .tile-media > img { transition: none; transform: none !important; }
    .rail { scroll-behavior: auto; }
}
@media print {
    .navbar-arsuz, .footer, #backToTop, .skip-link, .flash-stack, .cta-band, .cta-banner, .ghost-card, .cta-line, .page-hero-actions, .page-hero-place { display: none !important; }
    body { display: block; background: #fff; }
    .page-hero { padding: 0 0 1rem; background: none !important; color: #000; }
    .page-hero::before, .page-hero-media { display: none; }
    .page-hero :is(h1, h2, h3, .page-hero-lead, .page-hero-eyebrow) { color: #000; }
    .card, .ak-card { box-shadow: none; break-inside: avoid; }
    a[href^="http"]:not(.btn)::after { content: ' (' attr(href) ')'; font-size: .85em; word-break: break-all; }
}
