.updates-page{
    width:min(1100px,100%);
    min-width:0;
    min-height:100vh;
    margin:auto;
    padding:140px 48px 90px;
}

.updates-hero{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:28px;
    margin:0 0 48px;
}

.updates-eyebrow{
    margin:0 0 10px;
    color:var(--secondary);
    font-size:.74rem;
    font-weight:800;
    letter-spacing:.18em;
}

.updates-hero h1{
    margin:0 0 12px;
    font-size:clamp(3rem,8vw,5.2rem);
}

.updates-hero p:last-child{
    max-width:660px;
    margin:0;
    color:var(--text-muted);
    font-size:1.08rem;
    line-height:1.7;
}

.updates-publish{
    flex-shrink:0;
    padding:11px 18px;
    border:1px solid rgba(108,197,255,.42);
    border-radius:999px;
    background:rgba(108,197,255,.11);
    color:var(--primary-light);
    font:inherit;
    font-weight:750;
    cursor:pointer;
}

.updates-publish:hover,
.updates-publish:focus-visible{
    border-color:var(--secondary);
    background:rgba(108,197,255,.18);
}

.updates-archive{ display:grid; gap:20px; }

.update-card{
    position:relative;
    padding:28px 30px;
    border:1px solid rgba(108,197,255,.2);
    border-radius:22px;
    background:
        radial-gradient(circle at 90% 0,rgba(108,197,255,.1),transparent 35%),
        linear-gradient(145deg,rgba(8,35,61,.9),rgba(3,17,31,.86));
    box-shadow:0 18px 48px rgba(0,0,0,.23),inset 0 1px rgba(255,255,255,.05);
    backdrop-filter:blur(16px);
    transition:transform .2s,border-color .2s;
}

.update-card:hover{
    transform:translateY(-3px);
    border-color:rgba(108,197,255,.42);
}

.update-card__meta,
.update-detail__meta{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:10px;
    color:var(--text-muted);
    font-size:.85rem;
}

.update-category{
    display:inline-flex;
    align-items:center;
    min-height:25px;
    padding:3px 9px;
    border:1px solid rgba(108,197,255,.27);
    border-radius:999px;
    color:var(--primary-light);
    background:rgba(108,197,255,.08);
    font-size:.75rem;
    font-weight:750;
}

.update-card__title{
    margin:13px 0 10px;
    font-size:clamp(1.35rem,3vw,2rem);
    line-height:1.25;
    overflow-wrap:anywhere;
}

.update-card__title a{
    color:inherit;
    text-decoration:none;
}

.update-card__title a::after{
    position:absolute;
    inset:0;
    content:"";
}

.update-card__title a:focus-visible{ outline:none; }
.update-card:has(.update-card__title a:focus-visible){
    outline:3px solid var(--secondary);
    outline-offset:3px;
}

.update-card__summary{
    max-width:800px;
    margin:0 0 18px;
    color:var(--text-muted);
    line-height:1.7;
    overflow-wrap:anywhere;
}

.update-card__action,
.update-detail__back{
    position:relative;
    z-index:1;
    color:var(--primary-light);
    font-weight:750;
    text-decoration:none;
}

.update-card__action:hover,
.update-card__action:focus-visible,
.update-detail__back:hover,
.update-detail__back:focus-visible{ text-decoration:underline; }

.updates-empty{
    padding:56px 28px;
    border:1px dashed rgba(108,197,255,.28);
    border-radius:22px;
    background:rgba(4,22,39,.65);
    text-align:center;
}

.updates-empty__icon{ display:block; margin-bottom:13px; font-size:2rem; }
.updates-empty h1,.updates-empty h2{ margin:0 0 12px; }
.updates-empty p{ margin:0 auto 20px; color:var(--text-muted); }
.updates-loading{ padding:40px; color:var(--text-muted); text-align:center; }

.update-detail{ width:min(900px,100%); min-width:0; margin:auto; }
.update-detail__back{ display:inline-flex; margin-bottom:28px; }

.update-detail__article{
    min-width:0;
    overflow:hidden;
    border:1px solid rgba(108,197,255,.22);
    border-radius:26px;
    background:linear-gradient(150deg,rgba(8,35,61,.94),rgba(3,17,31,.91));
    box-shadow:0 24px 72px rgba(0,0,0,.3),inset 0 1px rgba(255,255,255,.06);
    backdrop-filter:blur(18px);
}

.update-detail__header{ min-width:0; padding:42px 48px 34px; border-bottom:1px solid rgba(255,255,255,.08); }
.update-detail__header h1{
    margin:17px 0 16px;
    font-size:clamp(2.1rem,5.5vw,4rem);
    line-height:1.13;
    overflow-wrap:anywhere;
}

.update-detail__summary{
    max-width:750px;
    margin:0;
    color:var(--text-muted);
    font-size:1.1rem;
    line-height:1.72;
}

.update-detail__body{
    min-width:0;
    padding:38px 48px 50px;
    color:#e8f6ff;
    font-size:1.05rem;
    line-height:1.82;
    overflow-wrap:anywhere;
}

.update-detail__body h2,.update-detail__body h3,.update-detail__body h4{ margin:1.7em 0 .65em; }
.update-detail__body h2:first-child,.update-detail__body h3:first-child{ margin-top:0; }
.update-detail__body p{ margin:0 0 1.2em; }
.update-detail__body ul{ margin:0 0 1.4em; padding-left:1.4em; }
.update-detail__body li{ margin:.35em 0; }
.update-detail__body a{ color:var(--secondary); overflow-wrap:anywhere; }

.update-editor{
    position:fixed;
    z-index:1350;
    inset:0;
    display:grid;
    place-items:center;
    padding:20px;
    background:rgba(0,8,18,.8);
    backdrop-filter:blur(12px);
}

.update-editor__panel{
    width:min(720px,100%);
    min-width:0;
    max-height:calc(100vh - 40px);
    overflow:auto;
    padding:30px;
    border:1px solid rgba(108,197,255,.3);
    border-radius:22px;
    background:linear-gradient(145deg,#08243d,#031322);
    box-shadow:0 28px 90px rgba(0,0,0,.55);
}

.update-editor__panel h2{ margin:0 0 8px; }
.update-editor__intro,.update-editor__guidance{ color:var(--text-muted); }
.update-editor__form{ display:grid; gap:16px; margin-top:22px; }
.update-editor__field{ display:grid; min-width:0; gap:7px; font-weight:750; }
.update-editor input,.update-editor textarea,.update-editor select{
    width:100%;
    min-width:0;
    padding:12px 13px;
    border:1px solid rgba(255,255,255,.15);
    border-radius:11px;
    background:rgba(255,255,255,.06);
    color:var(--text);
    font:inherit;
}
.update-editor textarea{ resize:vertical; line-height:1.5; }
.update-editor select option{ background:#08243d; }
.update-editor__guidance,.update-editor__message{ margin:0; font-size:.86rem; }
.update-editor__message{ min-height:1.3em; color:var(--text-muted); }
.update-editor__message--error{ color:#ffb4b4; }
.update-editor__actions{ display:flex; justify-content:flex-end; gap:10px; }
.update-editor__actions button{ padding:11px 18px; border-radius:999px; font:inherit; cursor:pointer; }
.update-editor__actions .button{ border:1px solid rgba(139,233,255,.4); background:linear-gradient(135deg,var(--primary),#2d8fd8); color:#fff; font-weight:800; }
.update-editor__cancel{ border:1px solid rgba(255,255,255,.15); background:rgba(255,255,255,.05); color:var(--text-muted); }
.update-editor__actions button:disabled{ cursor:wait; opacity:.65; }

@media (max-width:650px){
    .updates-page{ padding:112px 18px 64px; }
    .updates-hero{ align-items:flex-start; flex-direction:column; margin-bottom:34px; }
    .update-card{ padding:23px 20px; }
    .update-detail__header{ padding:30px 21px 26px; }
    .update-detail__body{ padding:28px 21px 36px; font-size:1rem; }
    .update-editor{ padding:8px; }
    .update-editor__panel{ max-height:calc(100vh - 16px); padding:22px 17px; }
    .update-editor__actions{ align-items:stretch; flex-direction:column-reverse; }
}

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