/* AirLibrary v3 guest template */
:root {
    --v3-navy: #173255;
    --v3-navy-ink: #13294b;
    --v3-teal: #4aa89d;
    --v3-teal-hover: #3d958b;
    --v3-teal-ink: #2a8f84;
    --v3-text: #1d2b40;
    --v3-muted: #4a5a70;
    --v3-line: #dbe4ee;
    --v3-surface: #ffffff;
    --v3-tint: #f1f6fb;
    --v3-tint-2: #e8f0f8;
    --v3-mint: #d9f0ee;
    --v3-blue: #2b7fd0;
    --v3-purple: #7b4fc4;
    --v3-radius: 6px;
    --v3-container: 1200px;
}

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

body.v3 {
    margin: 0;
    font-family: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.45;
    color: var(--v3-text);
    background: var(--v3-surface);
    -webkit-font-smoothing: antialiased;
}

.v3 h1, .v3 h2, .v3 h3, .v3 p { margin: 0; }
.v3 a { color: inherit; text-decoration: none; }
.v3 img { display: block; max-width: 100%; }

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

/* ---------- Icons (Tabler, via blade-tabler-icons) ---------- */
/* Every svg on v3 is a Tabler line icon; @svg() replaces its class, so target the element. */
.v3 svg { flex: none; stroke-width: 1.5; }
.v3 .v3-arrow, .v3 .v3-chevron, .v3 .v3-nav__caret, .v3 .v3-search__icon { stroke-width: 2; }

/* ---------- Buttons ---------- */
.v3-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 42px;
    padding: 0 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    white-space: nowrap;
    transition: background-color .15s, border-color .15s;
}
.v3-btn svg { width: 16px; height: 16px; flex: none; }
.v3-btn--teal { background: var(--v3-teal); color: #fff; }
.v3-btn--teal:hover { background: var(--v3-teal-hover); }
.v3-btn--outline { border: 1.5px solid rgba(255,255,255,.9); color: #fff; background: rgba(15,30,55,.25); }
.v3-btn--outline:hover { background: rgba(255,255,255,.12); }
.v3-btn--outline svg { width: 18px; height: 18px; }
.v3-btn--ghost { border: 1px solid rgba(255,255,255,.5); color: #fff; }
.v3-btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.v3-btn:focus-visible, .v3-nav__trigger:focus-visible, .v3-header__login:focus-visible {
    outline: 2px solid #9ee0d7;
    outline-offset: 2px;
}
.v3-btn--sm { height: 36px; padding: 0 14px; font-size: 14px; }
.v3-btn--lg { height: 48px; padding: 0 22px; font-size: 16px; }
.v3-arrow { width: 14px; height: 14px; }

/* ---------- Header ---------- */
.v3-header {
    background: var(--v3-navy);
    color: #fff;
    position: relative;
    z-index: 20;
}
.v3-header__inner {
    display: flex;
    align-items: center;
    height: 64px;
    gap: 40px;
}
.v3-logo { display: inline-flex; align-items: center; flex: none; }
.v3-logo img { display: block; height: 44px; width: auto; }
.v3-nav {
    display: flex;
    align-self: stretch;
    gap: 26px;
    font-size: 14px;
    font-weight: 500;
}
.v3-nav__item { position: relative; display: flex; align-items: center; }
.v3-nav__trigger {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 100%;
    padding: 0;
    background: none;
    border: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
    opacity: .95;
}
.v3-nav__caret { width: 12px; height: 12px; opacity: .7; transition: transform .15s; }
.v3-nav__item:hover .v3-nav__trigger,
.v3-nav__item.is-open .v3-nav__trigger { color: #9ee0d7; }
.v3-nav__item.is-open .v3-nav__caret { transform: rotate(180deg); }
.v3-nav__panel {
    display: none;
    position: absolute;
    top: 100%;
    left: -18px;
    width: 300px;
    padding: 8px;
    background: #fff;
    color: var(--v3-text);
    border-radius: 8px;
    box-shadow: 0 14px 36px rgba(10,25,50,.22);
}
.v3-nav__item:hover .v3-nav__panel,
.v3-nav__item:focus-within .v3-nav__panel,
.v3-nav__item.is-open .v3-nav__panel { display: block; }
.v3-nav__panel a {
    display: block;
    padding: 9px 12px;
    border-radius: 6px;
}
.v3-nav__panel a:hover, .v3-nav__panel a:focus { background: var(--v3-tint); outline: none; }
.v3-nav__panel strong { display: block; font-size: 15px; font-weight: 700; color: var(--v3-navy-ink); }
.v3-nav__panel a:hover strong { color: var(--v3-teal-ink); }
.v3-nav__panel span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 1px;
    font-size: 13px;
    line-height: 1.35;
    color: var(--v3-muted);
}
.v3-header__actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 14px;
    font-weight: 500;
}
.v3-header__actions .v3-header__login { margin-right: 4px; white-space: nowrap; }
.v3-header__login:hover { color: #9ee0d7; }
.v3-header__actions { gap: 12px; }
.v3-nav__account { display: none; }
.v3-burger {
    display: none;
    width: 36px;
    height: 36px;
    padding: 8px 7px;
    background: none;
    border: 0;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
}
.v3-burger span { display: block; height: 2px; background: #fff; border-radius: 2px; }

/* ---------- Hero ---------- */
.v3-hero {
    position: relative;
    color: #fff;
    background: linear-gradient(180deg, #3f5b7e 0%, #5d6c80 45%, #7c7a7c 62%, #2c4566 100%);
    isolation: isolate;
    z-index: 5;
}
.v3-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: min(78%, 1200px);
    background: var(--hero-img) right center / cover no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
    z-index: -1;
}
.v3-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(30,50,82,.55) 0%, rgba(30,50,82,.25) 40%, rgba(30,50,82,0) 60%);
    z-index: -1;
}
.v3-hero__inner {
    padding-top: 36px;
    padding-bottom: 26px;
    min-height: 340px;
}
.v3-hero h1 {
    font-size: 44px;
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -.01em;
    text-shadow: 0 1px 12px rgba(0,0,0,.18);
}
.v3-hero__lead {
    margin-top: 12px;
    max-width: 470px;
    font-size: 17px;
    line-height: 1.45;
    color: rgba(255,255,255,.92);
}
.v3-search {
    margin-top: 18px;
    max-width: 440px;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 16px;
    background: #fff;
    border-radius: 999px;
    color: var(--v3-navy-ink);
    box-shadow: 0 4px 18px rgba(10,25,50,.18);
}
.v3-search { position: relative; }
.v3-search svg { width: 18px; height: 18px; flex: none; }
.v3-search__results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 360px;
    overflow-y: auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(10,25,50,.25);
    padding: 6px 0;
    z-index: 30;
    text-align: left;
}
.v3-search__results a {
    display: block;
    padding: 7px 18px;
    font-size: 15px;
    color: var(--v3-text);
}
.v3-search__results a:hover, .v3-search__results a:focus { background: var(--v3-tint); color: var(--v3-teal-ink); outline: none; }
.v3-search__group {
    padding: 8px 18px 2px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--v3-muted);
}
.v3-search__none { padding: 10px 18px; font-size: 14px; color: var(--v3-muted); }
.v3-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 15px;
    color: var(--v3-text);
}
.v3-search input::placeholder { color: #5b6a7e; }
.v3-hero__ctas {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* ---------- Stats strip ---------- */
.v3-stats {
    background: var(--v3-tint-2);
    border-bottom: 1px solid var(--v3-line);
}
.v3-stats__inner {
    display: grid;
    grid-template-columns: repeat(var(--v3-stat-cols, 5), 1fr);
    padding-top: 14px;
    padding-bottom: 14px;
}
.v3-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 4px 12px;
}
.v3-stat + .v3-stat { border-left: 1px solid #c7d3e1; }
.v3-stat__icon { width: 34px; height: 34px; color: var(--v3-navy); flex: none; }
.v3-stat__value { font-size: 22px; font-weight: 700; line-height: 1.1; color: var(--v3-navy-ink); }
.v3-stat__label { font-size: 15px; color: var(--v3-muted); }

/* ---------- Body grid ---------- */
.v3-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
    grid-template-areas:
        "news explore"
        "aud  aud";
    column-gap: 24px;
    padding-top: 20px;
    padding-bottom: 12px;
}
.v3-news { grid-area: news; }
.v3-explore { grid-area: explore; }
.v3-audiences { grid-area: aud; }

.v3 h2 {
    font-size: 28px;
    line-height: 1.15;
    font-weight: 700;
    color: var(--v3-navy-ink);
    letter-spacing: -.005em;
}

.v3-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}
.v3-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--v3-teal-ink) !important;
}
.v3-link:hover { text-decoration: underline; }

/* News cards */
.v3-news__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.v3-card {
    background: var(--v3-surface);
    border: 1px solid var(--v3-line);
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(20,40,70,.04);
}
.v3-card__media { display: block; aspect-ratio: 305 / 114; overflow: hidden; background: var(--v3-tint-2); }
.v3-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.v3-card:hover .v3-card__media img { transform: scale(1.03); }
.v3-card__media--logo { background: #fff; border-bottom: 1px solid var(--v3-line); }
.v3-card__media--logo img { object-fit: contain; padding: 16px 24px; }
.v3-empty { grid-column: 1 / -1; padding: 24px; color: var(--v3-muted); background: var(--v3-tint); border-radius: 3px; }
.v3-card__body { padding: 12px 16px 16px; }
.v3-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--v3-muted);
}
.v3-card__sep { color: var(--v3-line); }
.v3-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.v3-tag--teal { color: var(--v3-teal-ink); }
.v3-tag--blue { color: var(--v3-blue); }
.v3-tag--purple { color: var(--v3-purple); }
.v3-card h3 {
    margin-top: 8px;
    font-size: 17px;
    line-height: 1.22;
    font-weight: 700;
    color: var(--v3-navy-ink);
}
.v3-card h3 a:hover { color: var(--v3-teal-ink); }
.v3-card p {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--v3-muted);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Explore panel */
.v3-explore {
    align-self: start;
    background: var(--v3-tint-2);
    border-radius: var(--v3-radius);
    padding: 18px 14px 14px;
}
.v3-explore h2 { padding: 0 6px; margin-bottom: 12px; }
.v3-explore ul {
    list-style: none;
    margin: 0;
    padding: 0 12px;
    background: var(--v3-tint);
    border-radius: 4px;
}
.v3-explore li + li { border-top: 1px solid var(--v3-line); }
.v3-explore a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 4px;
}
.v3-explore a:hover strong { color: var(--v3-teal-ink); }
.v3-explore__icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    color: var(--v3-navy);
    flex: none;
}
.v3-explore__icon .v3-icon { width: 26px; height: 26px; }
.v3-explore__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.v3-explore__text strong { font-size: 15px; font-weight: 700; color: var(--v3-navy-ink); }
.v3-explore__text span { font-size: 13px; color: var(--v3-muted); }
.v3-chevron { width: 14px; height: 14px; color: var(--v3-blue); flex: none; }

/* Audiences */
.v3-audiences { margin-top: 20px; }
.v3-audiences h2 { margin-bottom: 12px; }
.v3-audiences__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.v3-audience {
    display: flex;
    gap: 28px;
    background: var(--v3-tint);
    border-radius: 3px;
    padding: 14px 24px 16px;
}
.v3-audience__icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--v3-mint);
    color: var(--v3-navy);
    display: grid;
    place-items: center;
    flex: none;
    margin-top: 2px;
}
.v3-audience__icon .v3-icon { width: 28px; height: 28px; }
.v3-audience h3 { font-size: 18px; font-weight: 700; color: var(--v3-navy-ink); }
.v3-audience p { font-size: 14px; color: var(--v3-muted); margin-top: 2px; }
.v3-audience ul { list-style: none; margin: 10px 0 0; padding: 0; }
.v3-audience li {
    position: relative;
    padding-left: 22px;
    font-size: 14px;
    color: var(--v3-muted);
    line-height: 1.75;
}
.v3 .v3-check {
    position: absolute;
    left: 0;
    top: .3em;
    width: 16px;
    height: 16px;
    color: var(--v3-teal);
    stroke-width: 2.5;
}

/* ---------- Footer CTA band ---------- */
.v3-footer {
    margin-top: 12px;
    position: relative;
    color: #fff;
    background: var(--v3-navy);
    isolation: isolate;
}
.v3-footer::before {
    content: "";
    position: absolute;
    inset: 0 0 44px auto; /* stop above .v3-footer__bar */
    width: 34%;
    background: url('../images/v3/cta-band.jpg') right center / cover no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
    z-index: -1;
}
.v3-footer__inner {
    display: flex;
    align-items: center;
    gap: 36px;
    min-height: 104px;
    padding-top: 16px;
    padding-bottom: 16px;
}
.v3-footer__icon {
    flex: none;
    width: 42px;
    color: var(--v3-teal);
    padding-right: 36px;
    box-sizing: content-box;
    border-right: 1px solid rgba(255,255,255,.35);
    height: 52px;
    display: flex;
    align-items: center;
}
.v3-footer__icon svg { width: 42px; height: 42px; }
.v3-footer__text { flex: 1; min-width: 0; }
.v3 .v3-footer h2 { color: #fff; font-size: 22px; font-weight: 700; }
.v3-footer p { margin-top: 4px; font-size: 14px; color: rgba(255,255,255,.85); }

/* Complimentary / Premium options */
.v3-plans {
    flex: none;
    display: grid;
    grid-template-columns: repeat(2, 236px);
    gap: 12px;
}
.v3-plan {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 6px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.16);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.v3-plan--premium { background: rgba(74,168,157,.16); border-color: rgba(74,168,157,.6); }
.v3 .v3-plan h3 { font-size: 17px; font-weight: 700; color: #fff; }
.v3 .v3-footer .v3-plan p { margin-top: 2px; font-size: 13.5px; color: rgba(255,255,255,.8); }
.v3-plan .v3-btn { align-self: flex-start; }
.v3-footer__bar {
    position: relative;
    background: #10243f;
    font-size: 13px;
    color: rgba(255,255,255,.7);
}
.v3-footer__bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 44px;
}
.v3-footer__bar nav { display: flex; gap: 22px; }
.v3-footer__bar a:hover { color: #9ee0d7; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .v3-footer__inner { flex-wrap: wrap; row-gap: 18px; }
    .v3-plans { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .v3-plan { flex-direction: row; align-items: center; }
    .v3-plan .v3-btn { align-self: center; flex: none; }
    .v3-header__inner { gap: 24px; }
}

@media (max-width: 1180px) {
    .v3-burger { display: flex; }
    .v3-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--v3-navy);
        border-top: 1px solid rgba(255,255,255,.1);
        padding: 8px 16px 16px;
    }
    .v3-nav.is-open { display: flex; max-height: calc(100vh - 64px); overflow-y: auto; }
    .v3-nav__item { display: block; border-bottom: 1px solid rgba(255,255,255,.08); }
    .v3-nav__trigger { width: 100%; justify-content: space-between; padding: 12px 0; font-size: 16px; }
    .v3-nav__item:hover .v3-nav__panel,
    .v3-nav__item:focus-within .v3-nav__panel { display: none; }
    .v3-nav__item.is-open .v3-nav__panel { display: block; }
    .v3-nav__panel { position: static; width: auto; margin: 0 0 12px; box-shadow: none; }
    .v3-header__login, .v3-header__register { display: none; }
    .v3-nav__account {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding-top: 16px;
    }
    .v3-nav__account .v3-btn { justify-content: center; }
    .v3-nav__login { grid-column: 1 / -1; text-align: center; padding: 8px 0; font-size: 15px; }

}

@media (max-width: 960px) {
    .v3-body {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "news" "explore" "aud";
        row-gap: 24px;
    }
    .v3-audiences { margin-top: 0; }
    .v3-stats__inner { grid-template-columns: repeat(3, 1fr); row-gap: 12px; }
    .v3-stat:nth-child(4) { border-left: 0; }
}

@media (max-width: 720px) {
    .v3-logo img { height: 32px; }
    .v3-hero::before { width: 100%; background-position: 70% center; -webkit-mask-image: none; mask-image: none; }
    .v3-hero::after { background: linear-gradient(180deg, rgba(30,50,82,.55) 0%, rgba(30,50,82,.85) 100%); }
    .v3-footer::before { display: none; }
    .v3-hero h1 { font-size: 34px; }
    .v3-hero__lead { font-size: 16px; }
    .v3-news__grid { grid-template-columns: minmax(0, 1fr); }
    .v3-audiences__grid { grid-template-columns: minmax(0, 1fr); }
    .v3-audience { gap: 16px; padding: 16px; }
    .v3 h2 { font-size: 24px; }
    .v3-stats__inner { grid-template-columns: repeat(2, 1fr); }
    .v3-stat { justify-content: flex-start; border-left: 0 !important; }
    .v3-footer__inner { flex-wrap: wrap; gap: 16px; }
    .v3-footer__icon { display: none; }
    .v3-plans { grid-template-columns: minmax(0, 1fr); width: 100%; }
    .v3-plan { flex-direction: row; align-items: center; }
    .v3-plan .v3-btn { align-self: center; flex: none; }
}

@media (max-width: 360px) {
    .v3-header__actions .v3-btn { display: none; }
}

/* ---------- Cookie consent ---------- */
.v3-cookie {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background: #fff;
    border-top: 3px solid var(--v3-teal);
    box-shadow: 0 -6px 24px rgba(10,25,50,.15);
    transform: translateY(100%);
    transition: transform .3s ease;
}
.v3-cookie.is-visible { transform: translateY(0); }
.v3-cookie__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 14px;
    padding-bottom: 14px;
}
.v3-cookie p { flex: 1; font-size: 14px; color: var(--v3-muted); }
.v3-cookie p a { color: var(--v3-teal-ink); font-weight: 600; }
.v3-cookie p a:hover { text-decoration: underline; }
.v3-cookie__actions { display: flex; gap: 10px; flex: none; }
.v3-cookie__actions .v3-btn { font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; border: 0; }
.v3-cookie__decline { background: none; color: var(--v3-muted); box-shadow: inset 0 0 0 1px var(--v3-line); }
.v3-cookie__decline:hover { color: var(--v3-text); box-shadow: inset 0 0 0 1px #b6c3d3; }
.v3-cookie .v3-btn:focus-visible { outline-color: var(--v3-teal-ink); }

@media (max-width: 720px) {
    .v3-cookie__inner { flex-direction: column; align-items: stretch; gap: 12px; text-align: center; }
    .v3-cookie__actions .v3-btn { flex: 1; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .v3-cookie { transition: none; }
}
