/* The timeline uses the same centered width as its breadcrumb. The shared theme
   styles every header and nav, so the page's inner landmarks need their own skin. */
body.updates-page main.updates-main {
    display: block;
    width: calc(100% - 32px);
    max-width: 1080px;
    min-width: 0;
    margin: 0 auto;
    padding: 0 0 72px;
}

.updates-page .updates-main .breadcrumbs {
    width: 100%;
    min-height: 0;
    padding: 25px 2px 21px;
    margin: 0;
    background: transparent;
    border: 0;
}

.updates-page .updates-panel {
    width: 100%;
    min-width: 0;
    padding: 32px clamp(20px, 4vw, 42px) 36px;
    border: 1px solid #2b405d;
    border-radius: 14px;
    background: linear-gradient(145deg, #14263f 0, #101d31 190px);
    box-shadow: 0 22px 60px #02081733;
}

.updates-page .updates-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 24px;
    min-width: 0;
    background: transparent;
}

.updates-kicker {
    display: block;
    margin-bottom: 11px;
    color: #78bff6;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.updates-heading h1 {
    margin: 0;
    color: #f1f7ff;
    font-size: clamp(27px, 3vw, 36px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.03em;
    overflow-wrap: anywhere;
}

.updates-heading p {
    max-width: 68ch;
    margin: 10px 0 0;
    color: #aebfd5;
    font-size: 15px;
    line-height: 1.65;
}

.updates-count {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 11px;
    border: 1px solid #33516f;
    border-radius: 999px;
    background: #1a3450;
    color: #b9dcf8;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.updates-page .updates-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    min-width: 0;
    margin: 29px 0 0;
    padding: 0 0 24px;
    border: 0;
    border-bottom: 1px solid #2a3e58;
    background: transparent;
}

.updates-filters a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 14px;
    border: 1px solid #354a65;
    border-radius: 999px;
    color: #b9c9dc;
    background: #14243a;
    font-size: 13px;
    line-height: 1.3;
    text-decoration: none;
    white-space: normal;
}

.updates-filters a:hover {
    border-color: #6497c2;
    color: #ecf7ff;
}

.updates-filters a.active {
    border-color: #4e96cf;
    background: #1c4465;
    color: #d9f0ff;
    font-weight: 700;
}

.updates-timeline {
    display: grid;
    gap: 32px;
    min-width: 0;
    margin-top: 27px;
}

.updates-week { min-width: 0; }

.updates-week-heading {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 7px 14px;
    min-width: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #31465f;
}

.updates-week-heading h2 {
    margin: 0;
    color: #edf6ff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.updates-week-heading span {
    color: #91a8c2;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.updates-item {
    display: grid;
    grid-template-columns: 65px minmax(0, 1fr);
    gap: 18px;
    min-width: 0;
    padding: 19px 0;
    border-bottom: 1px solid #263b55;
    scroll-margin-top: 90px;
}

.updates-item:last-child { border-bottom: 0; }
.updates-item:target { border-radius: 8px; background: #183553; }

.updates-date {
    padding-top: 3px;
    color: #8ea6c1;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.updates-item-content {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.updates-item-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    min-width: 0;
}

.updates-item-heading h3 {
    margin: 0;
    color: #edf5ff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.updates-item-content p {
    max-width: 74ch;
    margin: 0;
    color: #b2c4d9;
    font-size: 14px;
    line-height: 1.7;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.updates-target {
    justify-self: start;
    color: #88cbff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.updates-target:hover { color: #c2e8ff; text-decoration: underline; }

.updates-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}

.updates-chip--seller { color: #9de6c2; background: #173d33; }
.updates-chip--buyer,
.updates-chip--publisher { color: #bcc0ff; background: #292f5c; }
.updates-chip--payment { color: #f1c972; background: #3c321e; }
.updates-chip--account { color: #f1a09a; background: #432a32; }
.updates-chip--game { color: #d5e1f1; background: #2b3547; }

.updates-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 255px;
    padding: 35px 20px;
    text-align: center;
}

.updates-empty__icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin-bottom: 17px;
    border: 1px solid #366185;
    border-radius: 16px;
    background: #1c3c5a;
    color: #8dccfb;
    font-size: 30px;
}

.updates-empty h2 { margin: 0; color: #edf5ff; font-size: 18px; }
.updates-empty p { max-width: 45ch; margin: 9px 0 0; color: #9db2cc; line-height: 1.6; }
.updates-empty a { margin-top: 17px; color: #88cbff; font-weight: 700; }

.updates-page .updates-pagination {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 0;
    margin-top: 24px;
    padding-top: 21px;
    border: 0;
    border-top: 1px solid #31465f;
    background: transparent;
}

.updates-pagination a {
    color: #88cbff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.updates-pagination a:hover { text-decoration: underline; }
.updates-pagination > :last-child { justify-self: end; }
.updates-pagination > span:nth-child(2) { color: #9db2cc; font-size: 12px; text-align: center; }
.updates-panel a:focus-visible { outline: 2px solid #83caff; outline-offset: 3px; }

@media (max-width: 760px) {
    body.updates-page main.updates-main { width: calc(100% - 28px); padding-bottom: 42px; }
    .updates-page .updates-panel { padding: 25px 22px 29px; }
    .updates-heading p { font-size: 14px; }
    .updates-page .updates-filters { margin-top: 24px; }
}

@media (max-width: 520px) {
    body.updates-page main.updates-main { width: calc(100% - 24px); }
    .updates-page .updates-main .breadcrumbs { padding: 18px 2px; }
    .updates-page .updates-panel { padding: 22px 16px 25px; border-radius: 10px; }
    .updates-heading h1 { font-size: 28px; }
    .updates-count { min-height: 29px; }
    .updates-filters a { min-height: 32px; padding: 6px 10px; font-size: 12px; }
    .updates-timeline { margin-top: 22px; gap: 25px; }
    .updates-item { grid-template-columns: minmax(0, 1fr); gap: 5px; padding: 17px 0; }
    .updates-item-heading h3 { font-size: 15px; }
    .updates-item-content p { font-size: 13px; }
    .updates-page .updates-pagination { grid-template-columns: 1fr 1fr; row-gap: 13px; }
    .updates-pagination > span:nth-child(2) { grid-column: 1 / -1; grid-row: 1; }
    .updates-pagination > :first-child { grid-column: 1; grid-row: 2; }
    .updates-pagination > :last-child { grid-column: 2; grid-row: 2; }
}

@media print {
    .updates-page .updates-panel { box-shadow: none; border-color: #aaa; background: #fff; }
    .updates-page :is(.updates-heading h1, .updates-week-heading h2, .updates-item-heading h3, .updates-empty h2) { color: #111; }
    .updates-page :is(.updates-heading p, .updates-item-content p, .updates-week-heading span, .updates-date) { color: #333; }
}
