.rich-header .nav-subscribe { background: var(--brand-hover); color: var(--brand-paper) !important; border: 1px solid var(--brand-muted); border-radius: 6px; box-shadow: 0 4px 14px rgb(var(--brand-primary-rgb) / 0.063); gap: .5rem; transition: transform .2s, box-shadow .2s, background .2s; }
.rich-header .nav-subscribe:hover { background: var(--brand-hover); transform: translateY(-2px); box-shadow: 0 7px 20px rgb(var(--brand-primary-rgb) / 0.125); }
@media(max-width:760px) {
    .rich-header .story-dropdown { grid-row: auto; }
    .rich-header .story-dropdown-links { position: static; width: 100%; min-width: 0; transform: none; margin: .4rem 0; box-sizing: border-box; }
    .rich-header .account-dropdown { margin-left: 0; }
    .rich-header .account-dropdown .story-dropdown-links { width: 100%; right: auto; }
}
.community-hero { position: relative; isolation: isolate; min-height: 560px; overflow: hidden; border-radius: 28px; margin: 28px 0 0; background: var(--brand-primary); color: var(--brand-paper); display: flex; align-items: center; }
.community-hero > img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; z-index: -2; animation: community-zoom 1.5s ease-out both; }
.community-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,rgb(var(--brand-primary-rgb) / 0.918) 0%,rgb(var(--brand-primary-rgb) / 0.659) 55%,rgb(var(--brand-primary-rgb) / 0.125)); }
.community-hero-copy { padding: 65px 7% 90px; max-width: 900px; animation: community-rise .75s ease-out both; }
.community-hero .eyebrow { color: var(--brand-line); }
.community-hero h1, .subscription-story h1, .community-policy-head h1 { font: 500 clamp(3rem,6vw,6rem)/1.02 'Cormorant Garamond',Georgia,serif; letter-spacing: -.04em; margin: 20px 0; }
.community-hero-copy > p:not(.eyebrow) { font-size: 1.12rem; max-width: 480px; line-height: 1.7; color: var(--brand-surface); }
.community-button { display: inline-flex; justify-content: center; align-items: center; gap: 18px; border: 1px solid transparent; border-radius: 50px; background: var(--brand-primary); color: var(--brand-paper); padding: 16px 25px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .2s, background .2s; }
.community-button:hover { background: var(--brand-primary); transform: translateY(-2px); color: white; }
.community-button:disabled { cursor: wait; opacity: .65; transform: none; }
.community-hero .community-button { background: var(--brand-accent-soft); color: var(--brand-primary); margin-top: 18px; }
.community-orbit { position: absolute; right: 7%; top: 18%; color: var(--brand-accent-soft); font-size: clamp(5rem,12vw,11rem); line-height: 1; animation: community-turn 35s linear infinite; pointer-events: none; }
.community-hero-foot { position: absolute; bottom: 25px; left: 7%; right: 7%; display: flex; justify-content: space-between; border-top: 1px solid #ffffff40; padding-top: 18px; font-size: .73rem; text-transform: uppercase; letter-spacing: .12em; }
.community-editorial { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(30px,7vw,110px); padding: 85px 5%; animation: community-rise .9s ease-out both; }
.community-editorial h2, .community-invite h2, .agreement-heading h2, .subscription-card h2, .welcome-dialog h2 { font: 500 clamp(2rem,3.3vw,3.5rem)/1.12 'Cormorant Garamond',Georgia,serif; letter-spacing: -.025em; margin: 12px 0 25px; }
.community-editorial em, .community-policy-head em, .subscription-story em { font-weight: 400; color: var(--brand-hover); }
.community-mark { display: block; font-size: 6rem; line-height: 1; color: var(--brand-muted); margin-top: 45px; }
.community-prose { font-size: 1.06rem; line-height: 1.95; color: var(--brand-hover); }
.community-prose p { margin: 0 0 24px; white-space: pre-line; }
.community-prose h2 { font-size: 2rem; color: var(--brand-primary); margin: 35px 0 16px; }
.community-prose h2:first-child { margin-top: 0; }
.community-invite { padding: 55px 24px; text-align: center; border: 1px solid var(--brand-line); background: var(--brand-surface); border-radius: 24px; margin-bottom: 65px; }
.community-policy-head { padding: 65px 5% 45px; border-bottom: 1px solid var(--brand-line); background: radial-gradient(ellipse at top right,var(--brand-accent-soft),transparent 60%); border-radius: 25px 25px 0 0; margin-top: 28px; }
.community-policy-head > p:last-child { color: var(--brand-hover); font-size: 1.1rem; }
.community-policy { padding-top: 50px; }
.community-hero-short { min-height: 380px; }
.community-hero-short .community-hero-copy { padding-top: 45px; padding-bottom: 45px; }
.community-hero-short h1 { font-size: clamp(3rem,5vw,5rem); }
.agreement-panel { margin: 0 3% 80px; border: 1px solid var(--brand-line); background: var(--brand-paper); border-radius: 24px; overflow: hidden; box-shadow: 0 18px 60px rgb(var(--brand-primary-rgb) / 0.063); }
.agreement-heading { display: flex; justify-content: space-between; align-items: center; gap: 25px; padding: 32px; }
.agreement-heading h2 { font-size: 2.25rem; margin-bottom: 12px; }
.agreement-heading p { margin-bottom: 0; }
.agreement-heading .community-button { flex-shrink: 0; }
.agreement-toolbar { background: var(--brand-line); padding: 17px 30px; display: flex; justify-content: space-between; gap: 15px; font-size: .8rem; }
.agreement-toolbar i { display: inline-block; height: 8px; width: 8px; border-radius: 50%; background: var(--brand-muted); margin-right: 7px; }
.agreement-panel iframe { display: block; width: 100%; height: 760px; border: 0; background: #e2e2de; }
.agreement-fallback { font-size: .85rem; padding: 0 30px; }
.subscription-page { display: grid; grid-template-columns: 1.1fr 1fr; gap: 7%; align-items: center; padding: 60px 4% 85px; }
.subscription-story { position: relative; animation: community-rise .7s ease-out both; }
.subscription-story h1 { font-size: clamp(3.4rem,5.4vw,5.5rem); }
.subscription-story > p:not(.eyebrow) { max-width: 420px; line-height: 1.8; color: var(--brand-hover); }
.subscription-story > img { margin-top: 20px; width: 100%; height: 180px; border-radius: 90px 12px 12px 12px; object-fit: cover; }
.subscription-story .community-orbit { top: auto; bottom: 110px; right: -15px; color: var(--brand-muted); font-size: 6rem; }
.subscription-card { padding: clamp(25px,3.5vw,50px); border: 1px solid var(--brand-line); background: var(--brand-paper); border-radius: 28px; box-shadow: 0 20px 65px rgb(var(--brand-primary-rgb) / 0.039); animation: community-rise .9s ease-out both; }
.subscription-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: var(--brand-accent-soft); font-size: 1.8rem; margin-bottom: 25px; }
.subscription-card h2 { font-size: 2.6rem; }
.subscription-card > p:not(.eyebrow) { line-height: 1.7; color: var(--brand-hover); }
.subscription-card .subscription-fields > label:not(.subscription-consent) { display: block; font-size: .87rem; font-weight: 600; margin: 22px 0 9px; }
.subscription-card input:not([type=checkbox]) { box-sizing: border-box; width: 100%; padding: 15px 17px; border: 1px solid var(--brand-line); border-radius: 12px; background: var(--brand-surface); color: var(--brand-primary); font: inherit; }
.subscription-card input:focus-visible { outline: 2px solid var(--brand-muted); outline-offset: 3px; }
.subscription-consent { display: flex; align-items: flex-start; gap: 11px; margin: 23px 0; font-size: .82rem; line-height: 1.65; color: var(--brand-hover); }
.subscription-consent input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; accent-color: var(--brand-primary); }
.subscription-card .subscription-fields > button { width: 100%; font-size: .91rem; }
.subscription-note { display: block; text-align: center; color: var(--brand-muted); margin-top: 20px; font-size: .75rem; }
.subscription-error, .subscription-card .validation-errors { color: var(--brand-danger); }
.welcome-dialog { box-sizing: border-box; width: min(650px,calc(100% - 28px)); max-height: 88dvh; border: 1px solid var(--brand-line); border-radius: 28px; padding: clamp(25px,4vw,50px); background: var(--brand-paper); color: var(--brand-primary); box-shadow: 0 30px 100px rgb(var(--brand-ink-rgb) / 0.376); }
.welcome-dialog[open] { animation: community-rise .4s ease-out both; }
.welcome-dialog::backdrop { background: rgb(var(--brand-primary-rgb) / 0.702); backdrop-filter: blur(7px); }
html:has(.welcome-dialog[open]) { overflow: hidden; }
.welcome-close { position: absolute; right: 17px; top: 14px; border: 0; background: var(--brand-surface); width: 35px; height: 35px; border-radius: 50%; font-size: 1.5rem; color: var(--brand-primary); cursor: pointer; }
.welcome-heading { text-align: center; }
.welcome-check { display: grid; place-items: center; width: 65px; height: 65px; margin: 5px auto 25px; background: var(--brand-accent-soft); border-radius: 50%; box-shadow: 0 0 0 10px var(--brand-surface); font-size: 2rem; }
.welcome-dialog .community-prose { font-size: .96rem; line-height: 1.75; }
.welcome-dialog .community-prose p { margin-bottom: 15px; }
.welcome-social { display: flex; flex-wrap: wrap; gap: 16px; font-size: .82rem; margin: 20px 0; }
.welcome-dialog > .community-button { width: 100%; }
@keyframes community-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes community-zoom { from { transform: scale(1.055); } to { transform: scale(1); } }
@keyframes community-turn { to { transform: rotate(360deg); } }
@media(max-width: 1000px) { .community-hero .community-orbit { opacity: .35; right: 4%; } .subscription-page { gap: 4%; padding-inline: 0; } .subscription-card { padding: 28px; } }
@media(max-width: 700px) { .community-hero { min-height: 470px; border-radius: 20px; } .community-hero-copy { padding: 45px 7% 90px; } .community-hero-foot span:last-child { display: none; } .community-editorial { grid-template-columns: 1fr; padding: 45px 5%; gap: 20px; } .community-editorial aside h2 br { display: none; } .community-mark { display: none; } .community-hero-short { min-height: 330px; } .agreement-heading { flex-direction: column; align-items: flex-start; padding: 24px; } .agreement-toolbar { flex-direction: column; padding: 16px 24px; } .agreement-panel { margin-inline: 0; } .agreement-panel iframe { height: 560px; } .subscription-page { grid-template-columns: 1fr; padding-top: 30px; gap: 35px; } .subscription-story > img { height: 140px; } .subscription-story h1 { font-size: 3.6rem; } }
@media(prefers-reduced-motion: reduce) { .community-hero > img, .community-hero-copy, .community-orbit, .community-editorial, .subscription-story, .subscription-card, .welcome-dialog[open] { animation: none; } .community-button, .rich-header .nav-subscribe { transition: none; } }

.light-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .85rem;
    min-height: 180px;
    color: var(--brand-hover);
    font-size: .88rem;
    letter-spacing: .03em;
}

.profile-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 2rem 0 5rem;
}

.profile-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1.5rem;
    padding: clamp(2rem, 5vw, 4.5rem);
    background: linear-gradient(125deg, var(--brand-primary), var(--brand-hover));
    color: var(--brand-paper);
    box-shadow: 0 24px 70px rgb(var(--brand-primary-rgb) / .18);
}

.profile-hero .eyebrow { color: var(--brand-accent-soft); }
.profile-hero h1 { margin: .6rem 0 1rem; color: inherit; font: 500 clamp(2.5rem, 5vw, 5rem)/1.02 'Cormorant Garamond', Georgia, serif; }
.profile-hero p:not(.eyebrow) { max-width: 620px; margin: 0; color: var(--brand-surface); line-height: 1.75; }
.profile-hero-mark {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border: 1px solid rgb(var(--brand-accent-rgb) / .65);
    border-radius: 50%;
    background: rgb(var(--brand-accent-rgb) / .16);
    color: var(--brand-accent-soft);
    font: 600 1.5rem 'DM Sans', sans-serif;
    letter-spacing: .08em;
}
.profile-content { padding: 2.5rem 0; }
.profile-content > h2 { margin-top: 3rem; }
.profile-loading {
    display: grid;
    place-items: center;
    gap: 1rem;
    min-height: 55vh;
    color: var(--brand-hover);
    text-align: center;
}
.profile-loading p { margin: 0; font-size: 1rem; letter-spacing: .04em; }
.profile-loading-orbit {
    position: relative;
    width: 7rem;
    height: 7rem;
    border: 1px solid var(--brand-line);
    border-radius: 50%;
    box-shadow: 0 0 0 18px var(--brand-surface), 0 0 0 19px var(--brand-line);
    animation: light-loading-spin 2.4s linear infinite;
}
.profile-loading-orbit::before,
.profile-loading-orbit::after,
.profile-loading-orbit span {
    content: "";
    position: absolute;
    border-radius: 50%;
}
.profile-loading-orbit::before {
    inset: .7rem;
    border: 2px solid transparent;
    border-top-color: var(--brand-accent);
    border-left-color: var(--brand-accent);
}
.profile-loading-orbit::after {
    width: .7rem;
    height: .7rem;
    top: -.35rem;
    left: calc(50% - .35rem);
    background: var(--brand-accent);
    box-shadow: 0 0 0 .35rem var(--brand-accent-soft);
}
.profile-loading-orbit span {
    inset: 1.65rem;
    border: 1px solid var(--brand-muted);
    border-right-color: var(--brand-primary);
    animation: light-loading-spin 1.3s linear infinite reverse;
}

.light-loading-orbit {
    position: relative;
    display: inline-block;
    width: 1.7rem;
    height: 1.7rem;
    border: 1px solid var(--brand-line);
    border-radius: 50%;
}

.light-loading-orbit::before,
.light-loading-orbit::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.light-loading-orbit::before {
    inset: .27rem;
    border: 2px solid transparent;
    border-top-color: var(--brand-accent);
    border-right-color: var(--brand-accent);
    animation: light-loading-spin .9s linear infinite;
}

.light-loading-orbit::after {
    width: .28rem;
    height: .28rem;
    top: .15rem;
    left: calc(50% - .14rem);
    background: var(--brand-accent);
    box-shadow: 0 0 0 .22rem var(--brand-accent-soft);
}

.profile-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.profile-fields label,
.profile-comment textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.profile-fields input,
.profile-comment textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: .45rem;
    padding: .75rem .85rem;
    border: 1px solid var(--brand-line);
    border-radius: 10px;
    background: var(--brand-surface);
    color: var(--brand-primary);
    font: inherit;
}

.profile-save-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    min-width: 178px;
    min-height: 50px;
    margin: .4rem 0 0;
    padding: .8rem 1.15rem;
    border: 1px solid var(--brand-accent);
    border-radius: 6px;
    background: linear-gradient(135deg, var(--brand-accent), #ff9b62);
    color: var(--brand-ink);
    box-shadow: 0 10px 24px rgb(var(--brand-accent-rgb) / .2);
    cursor: pointer;
    font: 700 .82rem/1 'DM Sans', sans-serif;
    letter-spacing: .035em;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.profile-save-button:hover:not(:disabled) {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #ff9b62, var(--brand-accent));
    box-shadow: 0 14px 30px rgb(var(--brand-accent-rgb) / .3);
}

.profile-save-button:focus-visible {
    outline: 3px solid var(--brand-primary);
    outline-offset: 3px;
}

.profile-save-button:disabled {
    cursor: wait;
    opacity: .8;
}

.profile-button-spinner {
    width: .9rem;
    height: .9rem;
    border: 2px solid rgb(var(--brand-ink-rgb) / .25);
    border-top-color: var(--brand-ink);
    border-radius: 50%;
    animation: light-loading-spin .7s linear infinite;
}

.profile-save-message {
    margin: .8rem 0 0;
    color: var(--brand-hover);
    font-size: .88rem;
}

.profile-favorites,
.profile-comments {
    display: grid;
    gap: .7rem;
    padding: 0;
    margin: 1rem 0 2.4rem;
    list-style: none;
}

.profile-favorites li,
.profile-comment {
    padding: 1rem 1.1rem;
    border: 1px solid var(--brand-line);
    border-radius: 13px;
    background: var(--brand-paper);
}

.profile-favorites li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.profile-favorites a,
.profile-comment a {
    color: var(--brand-primary);
    font-weight: 600;
}

.profile-favorites button,
.profile-comment-actions button {
    border: 0;
    border-radius: 999px;
    padding: .45rem .75rem;
    background: var(--brand-accent-soft);
    color: var(--brand-primary);
    cursor: pointer;
    font: inherit;
    font-size: .78rem;
}

.profile-comment header,
.profile-comment-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.profile-comment header time {
    margin-left: auto;
    color: var(--brand-muted);
    font-size: .78rem;
}

.profile-comment p {
    margin: .85rem 0;
    line-height: 1.65;
    white-space: pre-line;
}

.profile-comment-actions {
    justify-content: flex-start;
}

.profile-comment-actions .text-button {
    background: transparent;
    color: var(--brand-hover);
}

.comments-sign-in {
    margin: 1.5rem 0;
    padding: 1.2rem 1.3rem;
    border: 1px solid var(--brand-line);
    border-radius: 13px;
    background: var(--brand-surface);
    color: var(--brand-hover);
}

.comments-sign-in a {
    color: var(--brand-primary);
    font-weight: 700;
}

@keyframes light-loading-spin { to { transform: rotate(360deg); } }

@media(max-width:700px) {
    .profile-page { padding: 0 0 3rem; }
    .profile-hero { grid-template-columns: 1fr; padding: 2.25rem 1.35rem; }
    .profile-hero-mark { width: 68px; height: 68px; }
    .profile-content { padding: 1.5rem 0; }
    .profile-fields { grid-template-columns: 1fr; }
    .profile-favorites li { align-items: flex-start; flex-direction: column; }
}

@media(prefers-reduced-motion:reduce) {
    .light-loading-orbit::before,
    .profile-button-spinner,
    .profile-save-button { animation: none; transition: none; }
}
