/* Equipment rebirth announcement and article. */
.rebirth-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #101315;
    color: #f2f2ef;
}

.rebirth-hero::before,
.rebirth-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.home-rebirth {
    margin: 0 0 28px;
    padding-block: 32px;
    border-block: 1px solid var(--rule-strong);
    color: var(--bone);
}

.home-rebirth__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 40px;
    max-width: 1160px;
    margin-inline: auto;
}

.rebirth-hero__copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.home-rebirth__content { min-width: 0; grid-column: 2; grid-row: 1; }

.rebirth-eyebrow {
    margin: 0 0 12px;
    color: #c8a66b;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.home-rebirth h2 {
    margin: 0 0 12px;
    color: var(--bone);
    font: 700 30px/1.2 var(--font-sans);
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.home-rebirth__lead {
    margin: 0;
    max-width: 40ch;
    color: var(--ink-2);
    font-size: 16px;
    line-height: 1.6;
}

.home-rebirth__eyebrow { margin: 0 0 10px; color: var(--gold-bright); font-size: 11px; font-weight: 700; }
.home-rebirth__facts { margin: 22px 0 16px; }
.home-rebirth__facts > div { display: grid; grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr); gap: 16px; padding-block: 12px; border-top: 1px solid var(--rule); }
.home-rebirth__facts dt { color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.home-rebirth__facts dd { margin: 0; color: var(--gold-bright); font-size: 14px; font-weight: 600; line-height: 1.5; }
.home-rebirth__preview { min-width: 0; margin: 0; grid-column: 1; grid-row: 1; }
.home-rebirth__preview a { display: block; border: 1px solid var(--rule-strong); }
.home-rebirth__preview img { display: block; width: 100%; height: auto; aspect-ratio: 704 / 570; object-fit: contain; }
.home-rebirth__preview a:hover { border-color: var(--gold-bright); }
.home-rebirth a:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 4px; }

.rebirth-hero__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    margin-top: 18px;
    border-bottom: 1px solid #c8a66b;
    color: #f4d39b;
    font-size: 12px;
    font-weight: 800;
    transition: color 180ms ease, border-color 180ms ease;
}

.rebirth-hero__link .ui-icon { width: 16px; height: 16px; }

.rebirth-hero__link:hover { color: #fff; border-color: #fff; }

.home-rebirth__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding-block: 8px;
    color: var(--bone);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.home-rebirth__link .ui-icon { color: var(--gold-bright); transition: transform 160ms ease; }
.home-rebirth__link:hover { color: var(--gold-bright); }
.home-rebirth__link:hover .ui-icon { transform: translateX(3px); }

.rebirth-page {
    width: min(1160px, 100%);
    margin: 0 auto;
}

.rebirth-hero {
    display: flex;
    align-items: flex-end;
    min-height: 380px;
    padding: 40px 46px;
    border: 1px solid #697177;
}

.rebirth-hero::before {
    background: url("../images/equipment-rebirth/choose-stat.png") right center / auto 100% no-repeat;
}

.rebirth-hero::after {
    background: linear-gradient(90deg, #101315 0%, #101315ed 34%, #101315a6 66%, #10131524 100%);
}

.rebirth-hero__copy { max-width: 660px; }

.rebirth-hero h1 {
    margin: 0 0 16px;
    color: #f2f2ef;
    font: 700 40px/1.1 var(--font-sans);
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.rebirth-hero__copy > p:not(.rebirth-eyebrow) {
    max-width: 56ch;
    color: #dfe1dd;
    font-size: 15px;
    line-height: 1.7;
}

.rebirth-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    border-bottom: 1px solid var(--rule);
}

.rebirth-facts > div { min-width: 0; padding: 24px 28px 24px 0; }
.rebirth-facts > div + div { padding-left: 28px; border-left: 1px solid var(--rule); }

.rebirth-facts dt {
    margin-bottom: 7px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.rebirth-facts dd {
    margin: 0;
    color: var(--bone);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.rebirth-section {
    display: grid;
    grid-template-columns: minmax(190px, 280px) minmax(0, 1fr);
    gap: 34px;
    padding: 52px 0;
    border-bottom: 1px solid var(--rule);
    scroll-margin-top: 24px;
}

.rebirth-section__heading h2,
.rebirth-assurance h2 {
    color: var(--bone);
    font: 700 25px/1.25 var(--font-sans);
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.rebirth-section__body { min-width: 0; }

.rebirth-section__body > p,
.rebirth-assurance > p {
    max-width: 75ch;
    color: var(--ink-2);
    font-size: 14px;
    line-height: 1.75;
}

.rebirth-section__body > p + p { margin-top: 16px; }
.rebirth-section__body > .rebirth-lead { color: var(--bone); font-size: 15px; }

.rebirth-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.rebirth-steps li { min-width: 0; padding-top: 15px; border-top: 2px solid var(--rule-gold); }
.rebirth-steps li > span { display: block; margin-bottom: 12px; color: var(--gold); font: 700 25px/1 var(--font-sans); }
.rebirth-steps strong { display: block; color: var(--bone); font-size: 14px; }
.rebirth-steps p { margin-top: 8px; color: var(--ink-2); font-size: 13px; line-height: 1.55; }

.rebirth-paths { margin-top: 26px; }

.rebirth-paths > div {
    display: grid;
    grid-template-columns: minmax(145px, 210px) minmax(0, 1fr);
    gap: 20px;
    padding: 17px 0;
    border-top: 1px solid var(--rule);
}

.rebirth-paths strong { color: var(--bone); font-size: 14px; }
.rebirth-paths p { color: var(--ink-2); font-size: 14px; line-height: 1.55; }

.rebirth-assurance {
    display: grid;
    grid-template-columns: minmax(190px, 280px) minmax(0, 1fr);
    gap: 34px;
    margin-top: 36px;
    padding: 34px;
    border-top: 1px solid var(--rule-strong);
    border-bottom: 1px solid var(--rule-strong);
    background: var(--surface);
}

.rebirth-section--last { border-bottom: 0; }

.rebirth-stat-selector { display: grid; gap: 8px; margin-bottom: 20px; }
.rebirth-stat-selector label { color: var(--ink-2); font-size: 13px; }
.rebirth-stat-selector select {
    width: 100%; min-width: 0; max-width: 420px; min-height: 44px;
    padding: 10px 12px; border: 1px solid var(--rule-strong); border-radius: 0;
    background: var(--surface-sunken); color: var(--bone); font: inherit; font-size: 15px;
}
.rebirth-stat-selector select:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
.rebirth-stat-panel[hidden] { display: none !important; }
.rebirth-stat-table { width: 100%; max-width: 720px; border-collapse: collapse; table-layout: fixed; color: var(--bone); font-size: 14px; }
.rebirth-stat-table caption { margin-bottom: 12px; text-align: left; font-size: 16px; font-weight: 700; color: var(--bone); }
.rebirth-stat-table th,
.rebirth-stat-table td { padding: 12px 8px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.rebirth-stat-table th:first-child { width: 55%; text-align: left; font-weight: 500; overflow-wrap: anywhere; }
.rebirth-stat-table td,
.rebirth-stat-table thead th:not(:first-child) { text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rebirth-stat-table thead th { color: var(--ink-2); font-weight: 700; letter-spacing: 0; }
.rebirth-stat-table td { color: var(--gold-bright); font-weight: 700; }

.rebirth-section__body > .rebirth-rule {
    margin-top: 24px;
    padding: 4px 0 4px 18px;
    border-left: 3px solid var(--gold);
    color: var(--bone);
    font-weight: 700;
}

.rebirth-gallery-section { padding: 38px 0 44px; border-bottom: 1px solid var(--rule); }
.rebirth-gallery-section h2 { margin-bottom: 24px; }
.rebirth-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 18px;
}
.rebirth-shot { min-width: 0; margin: 0; }
.rebirth-shot a {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    padding: 8px;
    overflow: hidden;
    border: 1px solid var(--rule-strong);
    background: #151310;
    transition: border-color 160ms ease;
}
.rebirth-shot a:hover { border-color: var(--gold); }
.rebirth-shot a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.rebirth-shot img { display: block; width: 100%; height: 100%; object-fit: contain; }
.rebirth-shot figcaption { margin-top: 10px; color: var(--ink-2); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.rebirth-gallery--legacy { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; }
.rebirth-gallery--legacy a { aspect-ratio: 4 / 5; }

@media (max-width: 900px) {
    .home-rebirth__layout { grid-template-columns: minmax(0, 1fr); gap: 24px; max-width: 650px; }
    .home-rebirth__content { grid-column: 1; grid-row: 1; }
    .home-rebirth__preview { grid-column: 1; grid-row: 2; }
}

@media (max-width: 600px) {
    .home-rebirth { padding-block: 24px; }
    .home-rebirth h2 { font-size: 25px; }
    .home-rebirth__facts > div { gap: 12px; }
}

@media (max-width: 760px) {
    .rebirth-hero { min-height: 340px; padding: 32px; }
    .rebirth-hero h1 { font-size: 32px; }
    .rebirth-section,
    .rebirth-assurance { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .rebirth-section { padding: 38px 0; }
    .rebirth-assurance { padding: 26px; }
    .rebirth-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
    .rebirth-stat-table { font-size: 12px; }
    .rebirth-stat-table th,
    .rebirth-stat-table td { padding: 10px 4px; }
    .rebirth-stat-table th:first-child { width: 49%; }
    .rebirth-hero { min-height: 320px; padding: 26px 20px; }
    .rebirth-hero::after { background: #101315c9; }
    .rebirth-hero h1 { font-size: 27px; }
    .rebirth-hero__copy > p:not(.rebirth-eyebrow) { font-size: 14px; }
    .rebirth-facts { grid-template-columns: minmax(0, 1fr); }
    .rebirth-facts > div { padding: 13px 0; }
    .rebirth-facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
    .rebirth-steps { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .rebirth-paths > div { grid-template-columns: minmax(0, 1fr); gap: 5px; }
    .rebirth-gallery { grid-template-columns: minmax(0, 1fr); }
    .rebirth-gallery--legacy { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .home-rebirth__link .ui-icon,
    .rebirth-hero__link,
    .rebirth-shot a { transition: none; }
}
