.edge-page,
.edge-article,
.edge-related {
    width: min(100%, 1180px);
    margin-inline: auto;
}

.edge-index-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 12px;
    margin-bottom: 22px;
    padding: clamp(26px, 5vw, 58px);
    border: 1px solid rgba(227, 207, 91, 0.25);
    border-radius: 28px;
    color: #f8fbff;
    background:
        radial-gradient(circle at 82% 14%, rgba(117, 83, 198, 0.45), transparent 30%),
        linear-gradient(135deg, #151b29 0%, #252a37 68%, #30394c 100%);
    box-shadow: var(--shadow);
}

.edge-index-hero::after {
    content: "";
    position: absolute;
    width: 86px;
    height: 280px;
    right: 12%;
    bottom: -78px;
    border: 1px solid rgba(227, 207, 91, 0.22);
    border-block-width: 2px;
    border-radius: 3px;
    background: linear-gradient(to bottom, transparent 14%, rgba(227, 207, 91, 0.08) 14% 86%, transparent 86%);
    transform: rotate(14deg);
}

.edge-index-hero > * { position: relative; z-index: 1; }
.edge-index-hero__motif {
    position: absolute;
    z-index: 0;
    top: 50%;
    right: 7%;
    width: clamp(84px, 12vw, 144px);
    height: auto;
    color: rgba(248, 251, 255, 0.16);
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.65;
    transform: translateY(-50%);
}
.edge-index-hero .eyebrow { margin: 0; color: var(--brand-gold); }
.edge-index-hero h1 { margin: 0; max-width: 14ch; color: #f8fbff; font-size: clamp(2.4rem, 6vw, 5rem); line-height: 0.98; }
.edge-index-hero > p:last-child { margin: 0; max-width: 650px; color: rgba(248, 251, 255, 0.78); font-size: 1.08rem; }

.edge-index-grid,
.edge-related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.edge-index-grid .edge-card:first-child {
    grid-column: span 2;
}

.edge-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(37, 42, 55, 0.13);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 34px rgba(37, 42, 55, 0.09);
}

.edge-card__link {
    display: grid;
    height: 100%;
    color: var(--brand-navy);
    text-decoration: none;
}

.edge-card__link:focus-visible { outline: 3px solid #7553c6; outline-offset: -3px; }
.edge-card__link:hover .edge-card__title { color: #6542bb; }

.edge-visual {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: block;
    min-height: 160px;
    color: #f8fbff;
    background:
        radial-gradient(circle at 75% 25%, rgba(227, 207, 91, 0.42), transparent 23%),
        linear-gradient(135deg, #252a37, #46546d);
}

.edge-visual::before,
.edge-visual::after {
    content: "";
    position: absolute;
}
.edge-visual::before {
    width: clamp(34px, 11%, 58px);
    height: 132%;
    left: 43%;
    top: -16%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-block-width: 2px;
    border-radius: 2px;
    background: linear-gradient(to bottom, transparent 14%, rgba(227, 207, 91, 0.08) 14% 86%, transparent 86%);
    transform: rotate(12deg);
}
.edge-visual::after {
    left: 48%;
    top: 50%;
    width: 32%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,.28), transparent);
    transform: rotate(-13deg);
    transform-origin: left center;
}
.edge-visual--dynamic { background: radial-gradient(circle at 72% 28%, rgba(227, 207, 91, .64), transparent 25%), linear-gradient(135deg, #1b2636, #405874); }
.edge-visual--auction { background: radial-gradient(circle at 70% 20%, rgba(227, 207, 91, .5), transparent 24%), linear-gradient(135deg, #312d25, #665e3c); }
.edge-visual--draft { background: radial-gradient(circle at 72% 25%, rgba(167, 139, 250, .56), transparent 25%), linear-gradient(135deg, #211c34, #54428d); }
.edge-visual--salary_cap { background: radial-gradient(circle at 72% 25%, rgba(82, 201, 146, .48), transparent 25%), linear-gradient(135deg, #162d29, #38675b); }
.edge-visual__motif {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: 11%;
    width: clamp(58px, 13vw, 100px);
    height: auto;
    color: rgba(248, 251, 255, 0.3);
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.65;
    transform: translateY(-50%);
}

.edge-card__copy { display: grid; align-content: start; gap: 9px; padding: 18px; }
.edge-card__context { color: #7553c6; font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.edge-card__title { margin: 0; font: 800 clamp(1.15rem, 2vw, 1.5rem)/1.13 var(--font-display); transition: color 150ms ease; }
.edge-card__standfirst { color: var(--muted); line-height: 1.5; }
.edge-card__meta { display: flex; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: .84rem; }

.edge-home {
    display: grid;
    gap: 18px;
    padding: clamp(18px, 2.5vw, 26px);
    border: 1px solid rgba(227, 207, 91, .2);
    border-radius: 24px;
    background: rgba(10, 15, 25, .84);
    backdrop-filter: blur(14px);
}
.edge-home__header { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.edge-home__header .eyebrow { display: flex; align-items: center; gap: 7px; margin: 0 0 5px; color: var(--brand-gold); }
.edge-home__icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.edge-home__header h2 { margin: 0; color: #f8fbff; font-size: clamp(1.5rem, 3vw, 2rem); }
.edge-home__header p:last-child { margin: 5px 0 0; color: rgba(248,251,255,.72); }
.edge-home__all { flex: 0 0 auto; color: #d9ccff; font-weight: 800; text-underline-offset: 4px; }
.edge-home__all:hover, .edge-home__all:focus-visible { color: #fff; }
.edge-home__grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .85fr); gap: 14px; }
.edge-home__grid--single { grid-template-columns: 1fr; }
.edge-home__secondary { display: grid; gap: 14px; }
.edge-home .edge-card { border-color: rgba(255,255,255,.13); background: rgba(255,255,255,.06); box-shadow: none; }
.edge-home .edge-card__link { color: #f8fbff; }
.edge-home .edge-card__title { color: #f8fbff; }
.edge-home .edge-card__context { color: #c8b8ff; }
.edge-home .edge-card__standfirst, .edge-home .edge-card__meta { color: rgba(248,251,255,.7); }
.edge-home .edge-card--compact .edge-card__link { grid-template-columns: 132px minmax(0, 1fr); }
.edge-home .edge-card--compact .edge-visual { min-height: 100%; }
.edge-home .edge-card--compact .edge-visual__motif { width: 46px; right: 12%; }

.edge-article { max-width: 1040px; }
.edge-article__header { display: grid; justify-items: start; gap: 15px; }
.edge-article__back { color: #6542bb; font-weight: 800; }
.edge-article__header .eyebrow { margin: 8px 0 0; color: #7553c6; }
.edge-article__header h1 { margin: 0; max-width: 15ch; font-size: clamp(2.5rem, 7vw, 5.3rem); line-height: .98; letter-spacing: -.045em; }
.edge-article__standfirst { margin: 0; max-width: 770px; color: var(--muted); font-size: clamp(1.08rem, 2.4vw, 1.35rem); line-height: 1.55; }
.edge-article__meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .92rem; }
.edge-article__coverage { margin: -4px 0 0; padding: 7px 10px; border-left: 3px solid #7553c6; border-radius: 3px; color: #4d3b79; background: #f1ebff; font-size: .9rem; }
.edge-article__hero { width: 100%; min-height: 0; aspect-ratio: 16 / 7; margin-top: 14px; border-radius: 24px; }
.edge-article__hero .edge-visual__motif { width: clamp(116px, 20vw, 210px); color: rgba(248, 251, 255, 0.24); }
.edge-article__body { width: min(100%, 760px); margin: 34px auto 0; }
.edge-article__body p, .edge-article__body li { color: #363d4d; font-size: 1.05rem; line-height: 1.75; }
.edge-article__body h2 { margin: 2.2em 0 .55em; font-size: clamp(1.55rem, 3vw, 2.1rem); }
.edge-article__body ul { display: grid; gap: 8px; padding-left: 1.3rem; }
.edge-correction, .edge-sources { margin-top: 32px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.72); }
.edge-correction { border-left: 4px solid var(--brand-gold); }
.edge-correction p { margin-bottom: 0; font-size: .95rem; }
.edge-sources h2 { margin-top: 0; font-size: 1.25rem; }
.edge-sources ol { display: grid; gap: 8px; padding-left: 1.25rem; }
.edge-related { margin-top: 54px; }
.edge-related > header .eyebrow { margin: 0; color: #7553c6; }
.edge-related > header h2 { margin: 4px 0 18px; }
.edge-pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 24px; }
.edge-empty { display: grid; justify-items: start; gap: 10px; padding: clamp(24px,5vw,48px); border: 1px solid var(--line); border-radius: 24px; background: var(--panel); }
.edge-empty .eyebrow, .edge-empty h2, .edge-empty p { margin: 0; }
.edge-empty > div { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

@container app-content (max-width: 940px) {
    .edge-home__grid { grid-template-columns: 1fr; }
    .edge-home__secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .edge-index-grid, .edge-related__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 799px) {
    .edge-index-hero { border-radius: 22px; }
    .edge-home__grid { grid-template-columns: 1fr; }
    .edge-index-grid, .edge-related__grid, .edge-home__secondary { grid-template-columns: 1fr; }
    .edge-index-grid .edge-card:first-child { grid-column: auto; }
    .edge-home__header { align-items: start; flex-direction: column; }
    .edge-home .edge-card--compact .edge-card__link { grid-template-columns: 96px minmax(0, 1fr); }
    .edge-home .edge-card--compact .edge-visual { width: 100%; min-width: 0; min-height: 100%; aspect-ratio: auto; }
    .edge-home .edge-card--compact .edge-card__copy { padding: 14px; }
    .edge-home .edge-card--compact .edge-card__title { font-size: 1rem; }
    .edge-home .edge-card--compact .edge-card__meta span:last-child,
    .edge-home .edge-card--compact .edge-card__meta span[aria-hidden] { display: none; }
    .edge-article__hero { aspect-ratio: 16 / 9; border-radius: 18px; }
    .edge-article__body p, .edge-article__body li { font-size: 1rem; }
    .edge-pagination { flex-wrap: wrap; }
}

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