/* =========================================================
   itüöder Dijital Yıllık · Editorial Yearbook Theme
   Palette: ituoder yearbook stone + copper
   Type: Dancing Script (display) + Inter (UI)
   ========================================================= */

@font-face {
    font-family: "Au Bord de la Seine";
    src: url("/assets/fonts/7f3b9a1c6d.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    /* canvas */
    --paper: #edede9;
    --paper-deep: #dedbd2;
    --surface: #ffffff;
    --surface-warm: #f7f3eb;
    --surface-soft: #f2eee5;

    /* ink */
    --ink: #1f1f1d;
    --ink-soft: #33332f;
    --ink-mute: #5f5d55;
    --muted: #747168;
    --muted-soft: #9b978c;

    /* lines */
    --line: #d9d5ca;
    --line-strong: #beb7aa;
    --line-soft: #e8e5dd;

    /* accent */
    --accent: #bc6c25;
    --accent-deep: #8f4b16;
    --accent-soft: #ead0b8;
    --accent-tint: #f4e4d4;

    /* gold (secondary editorial) */
    --gold: #b88941;
    --gold-soft: #f3e7cf;

    /* status */
    --warning: #9a5a00;
    --warning-soft: #fbeacb;
    --danger: #a02525;
    --danger-soft: #fbe2e0;
    --success: #14684a;
    --success-soft: #ddf0e2;

    /* shadows — earthy, soft */
    --shadow-xs: 0 1px 0 rgba(17, 25, 43, 0.04);
    --shadow-sm: 0 2px 8px rgba(17, 25, 43, 0.05);
    --shadow: 0 14px 36px rgba(17, 25, 43, 0.08);
    --shadow-lg: 0 28px 64px rgba(17, 25, 43, 0.12);

    /* type */
    --serif: "Lora", "Iowan Old Style", "Charter", Georgia, "Times New Roman", serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* radius */
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
}

body::before {
    /* large soft gradient wash from top */
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(1100px 600px at 12% -10%, rgba(188, 108, 37, 0.09), transparent 60%),
        radial-gradient(900px 500px at 105% 0%, rgba(31, 31, 29, 0.055), transparent 60%),
        linear-gradient(180deg, #f7f3eb 0%, var(--paper) 480px);
    pointer-events: none;
}

.page-grain {
    /* subtle paper texture for warmth (SVG noise) */
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.07  0 0 0 0 0.06  0 0 0 0 0.05  0 0 0 0.045 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    background-size: 240px 240px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 160ms ease;
}

input,
select,
button,
textarea {
    font: inherit;
    color: inherit;
}

::selection {
    background: var(--accent);
    color: #fff;
}

/* ---------- Top bar ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 72px;
    padding: 10px clamp(20px, 4vw, 56px);
    background: rgba(237, 237, 233, 0.82);
    backdrop-filter: saturate(140%) blur(20px);
    -webkit-backdrop-filter: saturate(140%) blur(20px);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--ink);
    line-height: 1.1;
}

.brand-logo {
    display: block;
    width: clamp(138px, 15vw, 184px);
    max-height: 48px;
    height: auto;
    object-fit: contain;
}

.brand-logo-ituoder {
    width: clamp(108px, 12vw, 146px);
    max-height: 40px;
}

.brand-logo-yearbook {
    width: clamp(78px, 9vw, 110px);
    max-height: 48px;
}

.brand-logo-combined {
    width: auto;
    height: clamp(42px, 4vw, 54px);
    max-width: min(340px, 52vw);
    max-height: none;
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--ink-mute);
    font-weight: 500;
    font-size: 14.5px;
}

.nav a,
.link-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 14px;
    color: var(--ink-soft);
    border-radius: 999px;
    transition: background 160ms ease, color 160ms ease;
}

.nav a:hover,
.link-button:hover {
    color: var(--ink);
    background: rgba(17, 25, 43, 0.06);
}

/* Buttons inside nav must keep their button styling (override .nav a cascade) */
.nav a.button {
    color: #fff;
    background: var(--ink);
}

.nav a.button:hover {
    color: #fff;
    background: #1c2540;
}

.nav a.button.secondary {
    color: var(--accent-deep);
    background: var(--accent-soft);
}

.nav a.button.secondary:hover {
    color: var(--accent-deep);
    background: #fbe5d3;
}

/* Mobile hamburger toggle (hidden on desktop) */
.nav-toggle {
    display: none;
}

.nav-button {
    display: none;
}

.nav form {
    margin: 0;
}

.nav-divider {
    width: 1px;
    height: 22px;
    background: var(--line-strong);
    margin: 0 6px;
    opacity: 0.7;
}

.nav-user {
    color: var(--ink);
    font-weight: 600;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 6px;
}

.nav-account {
    position: relative;
}

.nav-account summary {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 8px 14px;
    color: var(--ink);
    border-radius: 999px;
    cursor: pointer;
    font-weight: 650;
    list-style: none;
}

.nav-account-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-comment-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    min-width: 22px;
    padding: 3px 7px;
    color: var(--accent-deep);
    background: var(--accent-tint);
    border: 1px solid rgba(188, 108, 37, 0.28);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.nav-account summary::-webkit-details-marker {
    display: none;
}

.nav-account summary::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    opacity: 0.72;
}

.nav-account[open] summary,
.nav-account summary:hover {
    background: rgba(17, 25, 43, 0.06);
}

.nav-account-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: grid;
    gap: 4px;
    min-width: 190px;
    padding: 8px;
    background: rgba(255, 252, 247, 0.98);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
}

.nav-account-menu a,
.nav-account-menu .link-button {
    width: 100%;
    justify-content: flex-start;
    border-radius: 10px;
}

.nav-notification-link {
    display: grid !important;
    gap: 2px;
    color: var(--accent-deep) !important;
    background: var(--accent-tint);
    border: 1px solid rgba(188, 108, 37, 0.22);
}

.nav-notification-link:hover {
    background: #f7dfc9 !important;
}

.nav-notification-link strong {
    font-size: 13.5px;
    line-height: 1.2;
}

.nav-notification-link span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

/* ---------- Layout shell ---------- */
.shell {
    width: min(1200px, calc(100% - 36px));
    margin: 0 auto;
    padding: 44px 0 96px;
    flex: 1 0 auto;
}

/* ---------- Headlines ---------- */
h1 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(40px, 5.6vw, 68px);
    line-height: 1.02;
    letter-spacing: 0;
    color: var(--ink);
    max-width: 820px;
}

h2 {
    font-family: var(--serif);
    font-weight: 600;
    letter-spacing: 0;
    color: var(--ink);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    margin: 0 0 14px;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
}

/* Year title tag — like eyebrow but preserves case for mixed-case content */
.year-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    padding: 5px 12px 5px 14px;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--accent-deep);
    background: var(--accent-tint);
    border: 1px solid rgba(188, 108, 37, 0.2);
    border-radius: 999px;
    text-transform: none;
}

.year-tag::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(188, 108, 37, 0.18);
}

.lead {
    max-width: 660px;
    margin: 22px 0 0;
    color: var(--ink-mute);
    font-size: 18px;
    line-height: 1.55;
}

.muted {
    color: var(--muted);
}

/* ---------- Hero ---------- */
.hero {
    padding: clamp(28px, 5vw, 56px) 0 28px;
    position: relative;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.9fr);
    gap: 40px;
    align-items: end;
}

.hero-copy {
    min-width: 0;
}

h1 .accent-italic,
.accent-italic {
    font-style: italic;
    color: var(--accent);
    font-weight: 500;
}

.compact-hero {
    padding-bottom: 14px;
}

/* Phase card (right side of hero) */
.phase-card {
    position: relative;
    display: grid;
    gap: 16px;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.phase-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(420px 220px at 100% 0%, rgba(188, 108, 37, 0.07), transparent 70%),
        radial-gradient(360px 200px at 0% 100%, rgba(17, 25, 43, 0.05), transparent 70%);
    pointer-events: none;
}

.phase-card>* {
    position: relative;
}

.phase-card h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 600;
}

.completion-countdown-card {
    align-self: start;
    justify-self: end;
    min-width: min(100%, 430px);
    padding: 18px;
    background: var(--surface);
    border-color: rgba(188, 108, 37, 0.22);
}

/* ---------- Status / count chips ---------- */
.status-pill,
.count-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.status-pill {
    color: var(--ink-soft);
    background: var(--surface-warm);
    border: 1px solid var(--line);
}

.status-pill::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px rgba(17, 25, 43, 0.06);
}

.status-writing {
    color: var(--success);
    background: var(--success-soft);
    border-color: rgba(20, 104, 74, 0.18);
}

.status-revision {
    color: var(--warning);
    background: var(--warning-soft);
    border-color: rgba(154, 90, 0, 0.22);
}

.status-locked {
    color: var(--ink-soft);
    background: var(--paper-deep);
    border-color: var(--line-strong);
}

.status-published {
    color: var(--accent);
    background: var(--accent-soft);
    border-color: rgba(188, 108, 37, 0.22);
}

.count-badge {
    color: var(--ink-soft);
    background: var(--surface-warm);
    border: 1px solid var(--line);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
}

/* ---------- Timeline (4-step phase calendar) ---------- */
.timeline-panel {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 22px 0 28px;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-sm);
}

.timeline-step {
    position: relative;
    display: grid;
    gap: 6px;
    padding: 18px 16px 16px;
    background: transparent;
    border-radius: var(--r-lg);
    transition: background 200ms ease;
}

.timeline-step+.timeline-step::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -8px;
    width: 16px;
    height: 1px;
    background: var(--line-strong);
    transform: translateY(-50%);
    opacity: 0.6;
}

.timeline-step span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.timeline-step span::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--line-strong);
}

.timeline-step strong {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.35;
    color: var(--ink);
    letter-spacing: 0;
}

.timeline-step.active {
    background: var(--accent-tint);
    box-shadow: inset 0 0 0 1px rgba(188, 108, 37, 0.18);
}

.timeline-step.active span {
    color: var(--accent);
}

.timeline-step.active span::before {
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(188, 108, 37, 0.18);
}

.timeline-step.active strong {
    color: var(--accent-deep);
}

/* ---------- How it works ---------- */
.how-page {
    display: grid;
    gap: 22px;
}

.how-page .section-heading h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.02;
}

.phase-guide {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.phase-guide article {
    min-height: 210px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-sm);
}

.phase-guide article.active {
    border-color: rgba(188, 108, 37, 0.38);
    background: var(--accent-tint);
}

.phase-guide article>span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #fff;
    background: var(--ink);
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
}

.phase-guide h2 {
    margin: 16px 0 8px;
    font-size: 25px;
}

.phase-guide p {
    margin: 0;
    color: var(--ink-soft);
}

/* ---------- Search / directory panel ---------- */
.directory-panel {
    display: grid;
    gap: 22px;
    margin-top: 28px;
    padding: 26px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-sm);
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1.6fr) minmax(170px, 1fr) minmax(170px, 1fr);
    gap: 10px;
    padding: 8px;
    background: var(--surface-warm);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.countdown {
    display: grid;
    gap: 12px;
}

.countdown-title {
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.35;
    text-align: center;
    text-transform: uppercase;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.countdown-unit {
    display: grid;
    place-items: center;
    min-height: 82px;
    padding: 12px 8px 10px;
    background: var(--surface-warm);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.countdown-unit strong {
    color: var(--accent-deep);
    font-family: var(--serif);
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 700;
    line-height: 0.95;
    font-variant-numeric: tabular-nums;
}

.countdown-unit span {
    margin-top: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ---------- Forms ---------- */
input,
select,
textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
    font-size: 15px;
}

textarea {
    min-height: 120px;
    line-height: 1.55;
    padding: 14px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: var(--muted-soft);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(188, 108, 37, 0.12);
}

input:disabled,
select:disabled,
textarea:disabled {
    background: var(--paper);
    color: var(--muted);
    cursor: not-allowed;
}

select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%2311192b' stroke-width='1.6' d='M1 1.5l5 5 5-5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

/* ---------- Buttons ---------- */
.button,
button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 22px;
    color: #fff;
    background: var(--ink);
    border: 1px solid var(--ink);
    border-radius: var(--r-md);
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.005em;
    box-shadow: 0 6px 16px rgba(17, 25, 43, 0.18);
    transition: transform 160ms ease, box-shadow 200ms ease, background 200ms ease, border-color 200ms ease;
}

.button:hover,
button.button:hover {
    transform: translateY(-1px);
    background: #1c2540;
    box-shadow: 0 10px 22px rgba(17, 25, 43, 0.24);
}

.button:active,
button.button:active {
    transform: translateY(0);
}

.button.is-loading,
button.button.is-loading {
    position: relative;
    pointer-events: none;
}

.button.is-loading::before,
button.button.is-loading::before {
    content: "";
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 800ms linear infinite;
}

.button:disabled,
button.button:disabled {
    background: var(--ink-mute);
    border-color: var(--ink-mute);
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
    opacity: 0.7;
}

.button.secondary {
    color: var(--accent-deep);
    background: var(--accent-soft);
    border-color: rgba(188, 108, 37, 0.28);
    box-shadow: 0 4px 12px rgba(188, 108, 37, 0.12);
}

.button.secondary:hover {
    background: #fbe5d3;
    border-color: rgba(188, 108, 37, 0.45);
}

.button-small {
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13.5px;
}

.inline-notice {
    margin: 0 0 18px;
    padding: 13px 15px;
    color: var(--ink-soft);
    background: var(--surface-warm);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    font-size: 14.5px;
    line-height: 1.5;
}

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

/* ---------- Scroll reveal ---------- */
/* Pre-hide reveal targets before first paint when JS is active, so JS class
   additions don't cause a visible-then-hidden flicker. The animation in
   .is-visible takes over the opacity property once triggered. */
html.js .landing-hero > *:not(dialog),
html.js .landing-section,
html.js .landing-closing,
html.js .benefit-card,
html.js .landing-list > li,
html.js .directory-panel,
html.js .profile-grid > *:not(dialog),
html.js .profile-page > *:not(dialog),
html.js .profile-editor > *:not(dialog),
html.js .comment-item,
html.js .archive-item,
html.js .faq-item,
html.js .simple-steps article,
html.js .contact-page > *:not(dialog),
html.js .auth-card {
    opacity: 0;
}

@keyframes scroll-reveal-in {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scroll-reveal-soft-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(28px);
    will-change: opacity, transform;
}

.scroll-reveal.is-visible {
    animation: scroll-reveal-in 760ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
    will-change: auto;
}

.scroll-reveal-soft {
    opacity: 0;
    transform: translateY(8px);
    will-change: opacity, transform;
}

.scroll-reveal-soft.is-visible {
    animation: scroll-reveal-soft-in 460ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
    will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
    .scroll-reveal,
    .scroll-reveal-soft {
        opacity: 1;
        transform: none;
    }

    .scroll-reveal.is-visible,
    .scroll-reveal-soft.is-visible {
        animation: none;
    }
}

/* ---------- Landing / public pages ---------- */
.landing-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(32px, 6vw, 64px);
    align-items: center;
    min-height: calc(100vh - 120px);
    padding: clamp(24px, 5vw, 64px) 0;
    isolation: isolate;
}

.landing-hero::before {
    content: "";
    position: absolute;
    top: -120px;
    bottom: -120px;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    z-index: -1;
    background: url("/assets/img/8061062636.webp") center / cover no-repeat;
    filter: blur(8px);
    opacity: 0.40;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
}

@media (min-width: 1024px) {
    .landing-hero {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    }
}

.landing-section {
    padding: clamp(28px, 6vw, 64px) clamp(20px, 4vw, 44px);
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-sm);
    margin-top: clamp(40px, 8vw, 80px);
}

.landing-copy {
    max-width: 100%;
}

.landing-hero .landing-yearbook-logo,
.landing-copy>img {
    display: none !important;
}

.landing-hook {
    margin: 0 0 20px;
    max-width: 820px;
    font-family: var(--serif);
    font-style: normal;
    font-weight: 500;
    font-size: clamp(38px, 5.5vw, 66px);
    line-height: 1.1;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.landing-hook span {
    color: var(--accent-deep);
    font-style: italic;
    font-weight: 600;
}

.landing-copy .lead {
    max-width: 580px;
    margin: 0;
    font-size: clamp(16px, 1.8vw, 20px);
    line-height: 1.6;
    color: var(--ink-soft);
}

.landing-claim {
    font-weight: 450;
}

.landing-audience {
    width: fit-content;
    margin: 18px 0 0;
    color: var(--ink-soft);
    font-size: clamp(16px, 1.8vw, 20px);
    font-weight: 450;
    line-height: 1.6;
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-top: 36px;
}

.landing-cta {
    min-height: 56px;
    padding: 14px 32px;
    border-radius: var(--r-md);
    font-size: 16.5px;
    box-shadow: 0 12px 28px rgba(17, 25, 43, 0.16);
    background: var(--accent);
    border-color: var(--accent);
    transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.landing-cta:hover {
    background: var(--accent-deep);
    border-color: var(--accent-deep);
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(143, 75, 22, 0.24);
}

.link-quiet {
    color: var(--ink-mute);
    font-weight: 600;
    font-size: 15px;
    border-bottom: 1.5px solid var(--line-strong);
    padding-bottom: 2px;
    transition: color 160ms ease, border-color 160ms ease;
}

.link-quiet:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.landing-actions .link-quiet {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    color: var(--ink);
    box-shadow: 0 4px 12px rgba(17, 25, 43, 0.06);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    backdrop-filter: saturate(140%) blur(10px);
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.landing-actions .link-quiet:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(17, 25, 43, 0.16);
}

/* ---------- Landing: statistics ---------- */
.landing-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 44px;
}

@media (min-width: 640px) {
    .landing-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100px;
    padding: 18px 20px;
    background: var(--surface-warm);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-xs);
    transition: transform 200ms ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-num {
    display: block;
    color: var(--accent-deep);
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 800;
    line-height: 1;
    font-family: var(--sans);
    margin: 0 0 6px;
}

.stat-label {
    display: block;
    color: var(--ink-mute);
    font-size: 13px;
    font-weight: 550;
    line-height: 1.3;
}

/* ---------- Landing: badge ---------- */
.landing-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.landing-badge-sep {
    color: var(--line-strong);
    font-weight: 400;
}

.landing-badge-year {
    color: var(--accent-deep);
    font-family: var(--serif);
    font-style: italic;
    font-weight: 700;
    text-transform: none;
    font-size: 14.5px;
    letter-spacing: 0;
}

/* ---------- Landing: sample profile preview ---------- */
.landing-preview {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
}

.sample-profile {
    position: relative;
    margin: 0;
    padding: 28px;
    width: 100%;
    max-width: 410px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: 0 30px 70px rgba(17, 25, 43, 0.12), 0 2px 8px rgba(17, 25, 43, 0.04);
    transform: rotate(-0.8deg);
    transition: transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 400ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sample-profile:hover {
    transform: rotate(0deg) translateY(-4px);
    box-shadow: 0 40px 90px rgba(17, 25, 43, 0.18), 0 4px 12px rgba(17, 25, 43, 0.06);
}

.sample-profile-edition {
    position: absolute;
    top: -14px;
    right: 24px;
    padding: 5px 14px;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    font-family: var(--serif);
    font-style: italic;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 6px 14px rgba(188, 108, 37, 0.28);
}

.sample-profile-tag {
    display: inline-block;
    margin-bottom: 16px;
    padding: 4px 12px;
    background: var(--accent-tint);
    border: 1px solid rgba(188, 108, 37, 0.18);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-deep);
}

.sample-profile-header {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

.sample-avatar {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    background: var(--surface-warm);
    border: 2px solid var(--line-strong);
    border-radius: 999px;
    color: var(--accent-deep);
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 600;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.sample-avatar::after {
    content: "✓";
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    background: var(--success);
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
    display: grid;
    place-items: center;
    border: 2px solid var(--surface);
}

.sample-profile-meta {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.sample-profile-meta strong {
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--ink);
}

.sample-profile-meta span {
    font-size: 13.5px;
    color: var(--ink-soft);
    line-height: 1.35;
}

.sample-profile-meta .muted {
    font-size: 12px;
    color: var(--muted);
}

.sample-profile-bio {
    margin: 0 0 20px;
    padding: 14px 16px;
    background: var(--surface-warm);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    font-family: var(--serif);
    font-style: italic;
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink-soft);
}

.sample-comments-stack {
    display: grid;
    gap: 12px;
}

.sample-comment {
    padding: 16px;
    background: var(--surface-soft);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-xs);
    position: relative;
}

.sample-comment header {
    display: flex;
    gap: 8px;
    align-items: baseline;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.sample-comment header strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
}

.sample-comment header span {
    font-size: 11.5px;
    color: var(--muted);
}

.sample-comment p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink-soft);
}

/* ---------- Landing: benefits ---------- */
.landing-benefits {
    position: relative;
    isolation: isolate;
    background: transparent;
    overflow: hidden;
}

.landing-benefits::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.45)),
        url("/assets/img/7bf19d1b9c.webp") center / cover no-repeat;
    filter: blur(4px);
    opacity: 0.85;
    transform: scale(1.1);
    pointer-events: none;
}

.landing-benefits .section-header,
.landing-flow .section-header {
    text-align: center;
    margin-bottom: 40px;
    max-width: 720px;
    margin-inline: auto;
}

.landing-benefits h2,
.landing-flow h2 {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    margin: 8px 0 0;
}

.landing-benefits h2 span,
.landing-flow h2 span {
    color: var(--accent-deep);
    font-style: italic;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.benefit-card {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-lg);
    padding: 36px 28px;
    box-shadow: var(--shadow-sm);
    transition: transform 300ms ease, box-shadow 300ms ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.benefit-icon {
    font-size: 32px;
    line-height: 1;
    margin-bottom: 20px;
    background: var(--surface-warm);
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border-radius: var(--r-md);
    border: 1px solid var(--line-soft);
}

.benefit-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-deep);
}

.benefit-card h3 {
    margin: 0 0 12px;
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--ink);
}

.benefit-card p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ink-soft);
}

/* ---------- Landing: flow timeline ---------- */
.landing-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: landing-list;
}

@media (min-width: 640px) {
    .landing-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .landing-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

.landing-list li {
    counter-increment: landing-list;
    position: relative;
    padding: 36px 24px 24px;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 300ms ease, box-shadow 300ms ease;
}

.landing-list li:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.landing-list li::before {
    content: counter(landing-list, decimal-leading-zero);
    position: absolute;
    left: 24px;
    top: -18px;
    font-family: var(--serif);
    font-style: italic;
    font-size: 38px;
    font-weight: 700;
    color: var(--accent);
    background: var(--paper);
    padding: 0 10px;
    line-height: 1;
}

.landing-list strong {
    display: block;
    color: var(--ink);
    font-size: 17px;
    font-weight: 750;
    line-height: 1.35;
    margin-bottom: 10px;
}

.landing-list span {
    display: block;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.55;
}

/* ---------- Landing: about itüöder ---------- */
.about-ituoder {
    background: var(--surface);
}

.about-ituoder-head {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.about-ituoder-logo {
    width: clamp(140px, 16vw, 190px);
    max-height: 76px;
    object-fit: contain;
    flex-shrink: 0;
    transform: translateY(-3px);
}

.about-ituoder-head h2 {
    margin: 0;
}

.about-ituoder-title {
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0;
}

.about-ituoder>p {
    max-width: 820px;
    margin: 0 0 16px;
    color: var(--ink-soft);
    line-height: 1.65;
    font-size: 15.5px;
}

.about-ituoder-actions {
    display: flex;
    justify-content: flex-end;
    margin: 26px 0 0;
}

.about-ituoder-cta {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 14px 30px rgba(195, 106, 41, 0.22);
}

.about-ituoder-cta:hover {
    background: var(--accent-deep);
    border-color: var(--accent-deep);
}

.community-slider {
    position: relative;
    margin: 36px 0 16px;
    overflow: hidden;
    border-radius: var(--r-lg);
}

.community-slider::before,
.community-slider::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    width: clamp(38px, 8vw, 96px);
    pointer-events: none;
}

.community-slider::before {
    left: 0;
    background: linear-gradient(90deg, var(--surface), rgba(255, 255, 255, 0));
}

.community-slider::after {
    right: 0;
    background: linear-gradient(270deg, var(--surface), rgba(255, 255, 255, 0));
}

.community-slider-track {
    display: flex;
    width: max-content;
    animation: community-slide-flow 44s linear infinite;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.community-slider:hover .community-slider-track {
    animation-play-state: paused;
}

.community-slide {
    flex: 0 0 auto;
    width: clamp(220px, 28vw, 360px);
    height: clamp(210px, 24vw, 300px);
    margin: 0 14px 0 0;
    overflow: hidden;
    background: var(--surface-warm);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
}

.community-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms cubic-bezier(0.2, 1, 0.2, 1);
}

.community-slide:hover img {
    transform: scale(1.05);
}

@keyframes community-slide-flow {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-50%, 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .community-slider-track {
        animation: none;
    }
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
}

@media (min-width: 640px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.values-grid article {
    padding: 24px;
    background: var(--surface-warm);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    transition: transform 200ms ease;
}

.values-grid article:hover {
    transform: translateY(-2px);
}

.value-num {
    display: block;
    margin-bottom: 12px;
    color: var(--accent);
    font-family: var(--serif);
    font-style: italic;
    font-size: 19px;
    font-weight: 600;
}

.values-grid h3 {
    margin: 0 0 8px;
    font-size: 15.5px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.25;
}

.values-grid p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 13.5px;
    line-height: 1.55;
}

@keyframes cross-load {
    from {
        opacity: 0;
        transform: translate(-14px, 12px);
    }

    to {
        opacity: 1;
        transform: translate(0, 0);
    }
}

/* ---------- Landing: closing ---------- */
.landing-closing {
    margin-top: clamp(48px, 8vw, 96px);
    padding: clamp(48px, 8vw, 80px) clamp(20px, 4vw, 44px);
    text-align: center;
    background: linear-gradient(135deg, var(--surface-soft) 0%, var(--accent-tint) 50%, var(--surface-warm) 100%);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-sm);
}

.landing-closing h2 {
    margin: 0 auto 16px;
    max-width: 720px;
    font-family: var(--serif);
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.1;
}

.landing-closing p {
    margin: 0 auto 10px;
    max-width: 580px;
    color: var(--ink-soft);
    line-height: 1.6;
    font-size: 16px;
}

.landing-closing .closing-note {
    margin-bottom: 32px;
    font-family: var(--serif);
    font-style: italic;
    font-size: 21px;
    color: var(--accent-deep);
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    background: var(--surface-warm);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.faq-item[open] {
    background: var(--surface);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    position: relative;
    cursor: pointer;
    list-style: none;
    padding: 20px 58px 20px 20px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 650;
    line-height: 1.25;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    width: 26px;
    height: 26px;
    margin-top: -13px;
    display: inline-grid;
    place-items: center;
    color: var(--accent-deep);
    font-family: var(--sans);
    font-size: 19px;
    line-height: 1;
    border: 1px solid rgba(188, 108, 37, 0.28);
    border-radius: 999px;
    background: var(--accent-tint);
    transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.faq-item[open] summary {
    border-bottom: 1px solid var(--line);
}

.faq-item[open] summary::after {
    content: "−";
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

.faq-answer {
    padding: 18px 20px 20px;
}

.faq-answer p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.65;
}

.faq-answer strong {
    color: var(--ink);
}

/* ---------- FAQ closing CTA ---------- */
.faq-closing {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    align-items: center;
    justify-content: space-between;
    margin-top: 22px;
    padding: 22px 24px;
    background: var(--accent-tint);
    border: 1px solid rgba(188, 108, 37, 0.24);
    border-radius: var(--r-lg);
}

.faq-closing p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.55;
    max-width: 460px;
}

.faq-closing strong {
    color: var(--ink);
}

/* ---------- Contact page ---------- */
.contact-page {
    padding: clamp(28px, 5vw, 54px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-sm);
}

.contact-page .section-heading {
    margin-bottom: 24px;
}

.contact-page h1 {
    margin: 6px 0 12px;
    font-family: var(--serif);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
}

.contact-page .section-heading p {
    margin: 0;
    max-width: 560px;
    color: var(--ink-soft);
    line-height: 1.6;
}

.contact-card {
    padding: 24px 26px;
    margin-bottom: 24px;
    background: var(--accent-tint);
    border: 1px solid rgba(188, 108, 37, 0.24);
    border-radius: var(--r-lg);
}

.contact-card .eyebrow {
    margin: 0 0 6px;
}

.contact-card h2 {
    margin: 0 0 8px;
    font-family: var(--serif);
    font-size: clamp(22px, 2.4vw, 28px);
    word-break: break-word;
}

.contact-card h2 a {
    color: var(--accent-deep);
    border-bottom: 1px dotted rgba(138, 63, 21, 0.4);
    padding-bottom: 1px;
    transition: color 160ms ease, border-color 160ms ease;
}

.contact-card h2 a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.contact-card p {
    margin: 0;
    color: var(--ink-mute);
    font-size: 14.5px;
}

.contact-tips {
    display: grid;
    gap: 12px;
}

.contact-tips article {
    padding: 18px 20px;
    background: var(--surface-warm);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
}

.contact-tips h3 {
    margin: 0 0 6px;
    font-size: 16.5px;
    color: var(--ink);
}

.contact-tips p {
    margin: 0;
    color: var(--ink-mute);
    font-size: 14.5px;
    line-height: 1.55;
}

.contact-note {
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.contact-note a {
    color: var(--accent);
    border-bottom: 1px dotted var(--line-strong);
}

.contact-note a:hover {
    border-bottom-color: var(--accent);
}

.link-button {
    padding: 8px 12px;
    color: var(--ink-mute);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-weight: 500;
}

/* ---------- Notices / empty state ---------- */
.notice {
    position: fixed;
    top: 86px;
    right: clamp(14px, 3vw, 34px);
    z-index: 80;
    display: block;
    width: min(420px, calc(100vw - 28px));
    margin: 0;
    padding: 14px 17px;
    overflow: hidden;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--ink-mute);
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(17, 25, 43, 0.13);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.5;
    animation: notice-in 220ms ease both;
}

.notice.is-hiding {
    animation: notice-out 220ms ease-in both;
}

.notice.success {
    color: var(--success);
    background: var(--success-soft);
    border-color: rgba(20, 104, 74, 0.18);
    border-left-color: var(--success);
}

.notice.error {
    color: var(--danger);
    background: var(--danger-soft);
    border-color: rgba(160, 37, 37, 0.18);
    border-left-color: var(--danger);
}

@keyframes notice-in {
    from {
        opacity: 0;
        transform: translate3d(16px, -8px, 0) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes notice-out {
    from {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        opacity: 0;
        transform: translate3d(16px, -8px, 0) scale(0.98);
    }
}

@media (max-width: 640px) {
    .notice {
        top: 74px;
        right: 14px;
        left: 14px;
        width: auto;
    }
}

.empty-state {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-xs);
    color: var(--ink-soft);
    font-size: 15px;
}

.empty-state {
    justify-content: center;
    color: var(--muted);
    font-style: italic;
    font-family: var(--serif);
    font-size: 17px;
}

/* ---------- Profile grid (yearbook) ---------- */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.profile-card {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 0;
    padding: 14px 14px 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-xs);
    color: var(--ink);
    overflow: hidden;
    transition: transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 220ms ease, border-color 220ms ease;
}

.profile-card::before {
    /* polaroid-style top tape strip — purely decorative */
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-soft);
    border-radius: 0 0 4px 4px;
    opacity: 0;
    transition: opacity 220ms ease;
}

.profile-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
}

.profile-card:hover::before {
    opacity: 1;
}

.profile-card img,
.profile-card .avatar-placeholder,
.profile-card .graduate-avatar {
    width: 100%;
    aspect-ratio: 4 / 5;
    height: auto;
    border-radius: var(--r-md);
    object-fit: cover;
    background: var(--surface-warm);
    margin-bottom: 14px;
}

.avatar-placeholder {
    display: grid;
    place-items: center;
    color: var(--accent);
    background: var(--accent-tint);
    font-family: var(--serif);
    font-style: italic;
    font-weight: 600;
    font-size: 38px;
}

.graduate-avatar {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--accent-deep);
    background: linear-gradient(145deg, var(--surface-warm), var(--accent-tint));
}

.graduate-avatar::before {
    content: "";
    position: absolute;
    inset: 14%;
    border: 1px solid currentColor;
    border-radius: 999px;
    opacity: 0.1;
}

.graduate-avatar svg {
    position: relative;
    width: clamp(66px, 38%, 104px);
    height: auto;
    filter: drop-shadow(0 10px 16px rgba(31, 31, 29, 0.12));
}

.graduate-avatar-0 {
    color: var(--accent-deep);
    background: linear-gradient(145deg, #f8efe5, #ead0b8);
}

.graduate-avatar-1 {
    color: #235d4f;
    background: linear-gradient(145deg, #eef5ee, #d6e7dd);
}

.graduate-avatar-2 {
    color: #34383f;
    background: linear-gradient(145deg, #f2eee5, #d8d2c7);
}

.graduate-avatar-3 {
    color: #8a5a12;
    background: linear-gradient(145deg, #fbf3dd, #ead9aa);
}

.graduate-avatar-4 {
    color: #7d3f2f;
    background: linear-gradient(145deg, #f7e7e0, #e8c8ba);
}

.profile-card h2 {
    margin: 0 0 4px;
    font-family: var(--serif);
    font-size: 19px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: 0;
}

.profile-card p {
    margin: 2px 0;
    font-size: 13.5px;
    color: var(--ink-mute);
}

.profile-card p.muted {
    color: var(--muted);
    font-size: 12.5px;
}

.nickname {
    color: var(--accent) !important;
    font-style: italic;
    font-family: var(--serif);
    font-weight: 500;
}

/* ---------- Archive list ---------- */
.archive-list {
    display: grid;
    gap: 14px;
}

.archive-item {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    padding: 26px 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-xs);
    transition: transform 200ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.archive-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--line-strong);
}

.archive-item h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: 44px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1;
    color: var(--ink);
}

.archive-item p {
    margin: 6px 0 0;
    font-size: 15px;
    color: var(--ink-mute);
}

.archive-item p.muted {
    font-size: 13.5px;
    color: var(--muted);
}

.archive-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* ---------- Auth cards ---------- */
.auth-card {
    width: min(540px, 100%);
    margin: 48px auto;
    padding: 40px 36px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow);
    position: relative;
}

.auth-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(188, 108, 37, 0.04), transparent 35%);
    pointer-events: none;
}

.auth-card.wide {
    width: min(860px, 100%);
}

.auth-card h1 {
    font-size: clamp(34px, 4vw, 44px);
    margin: 0 0 8px;
}

.auth-card>p {
    color: var(--ink-mute);
    margin: 0 0 26px;
}

.auth-card form {
    position: relative;
}

.auth-card .auth-switch {
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.auth-switch a {
    color: var(--accent-deep);
    font-weight: 700;
    border-bottom: 1px solid rgba(188, 108, 37, 0.32);
}

/* ---------- Step help (alternate actions under a form step) ---------- */
.step-help {
    display: grid;
    gap: 14px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px dashed var(--line-strong);
}

.step-help-item {
    background: var(--surface-warm);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
}

.step-help-item summary {
    position: relative;
    cursor: pointer;
    padding: 14px 44px 14px 16px;
    font-weight: 600;
    color: var(--ink-soft);
    user-select: none;
    list-style: none;
}

.step-help-item summary::-webkit-details-marker {
    display: none;
}

.step-help-item summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    width: 22px;
    height: 22px;
    margin-top: -11px;
    display: inline-grid;
    place-items: center;
    font-size: 18px;
    line-height: 1;
    color: var(--ink-mute);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    transition: transform 180ms ease, color 180ms ease, border-color 180ms ease;
}

.step-help-item[open] summary {
    color: var(--ink);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.step-help-item[open] summary::after {
    content: "−";
    color: var(--accent);
    border-color: var(--accent);
}

.step-help-body {
    padding: 14px 16px 16px;
    background: var(--surface);
}

.step-help-body p {
    margin: 0 0 14px;
    color: var(--ink-mute);
    font-size: 14.5px;
    line-height: 1.6;
}

.step-help-link {
    justify-self: start;
    color: var(--accent);
    font-weight: 600;
    font-size: 14.5px;
    border-bottom: 1px dotted var(--line-strong);
    padding-bottom: 1px;
    transition: color 160ms ease, border-color 160ms ease;
}

.step-help-link:hover {
    color: var(--accent-deep);
    border-bottom-color: var(--accent);
}

/* ---------- Forms layout ---------- */
.stack,
.form-grid {
    display: grid;
    gap: 16px;
}

.form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

label {
    display: grid;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--muted);
}

label>input,
label>select,
label>textarea {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    font-size: 15px;
    color: var(--ink);
}

.checkline {
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 10px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
    color: var(--ink-soft);
    font-size: 14.5px;
}

.checkline input {
    width: auto;
    min-height: auto;
    margin-top: 4px;
    accent-color: var(--accent);
}

.double-major-toggle {
    width: fit-content;
    padding: 12px 14px;
    background: var(--surface-warm);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
}

.double-major-toggle:has(input:checked) {
    color: var(--accent-deep);
    background: var(--accent-tint);
    border-color: rgba(188, 108, 37, 0.28);
}

.auth-submit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding-top: 4px;
}

.mail-delivery-note {
    max-width: 440px;
    padding: 12px 14px;
    color: var(--ink-soft);
    background: var(--surface-warm);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: var(--r-md);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.45;
}

.auth-submit-button {
    min-width: min(100%, 320px);
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 10px 24px rgba(143, 75, 22, 0.2);
}

.auth-submit-button:hover {
    background: var(--accent-deep);
    border-color: var(--accent-deep);
    box-shadow: 0 14px 30px rgba(143, 75, 22, 0.26);
}

.terms-box {
    padding: 18px 20px;
    background: var(--surface-warm);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}

.terms-box h2 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
}

.terms-box p {
    margin: 8px 0 0;
    color: var(--ink-mute);
    font-size: 14px;
    line-height: 1.6;
}

.registration-choice {
    display: grid;
    gap: 14px;
    padding: 18px;
    background: var(--surface-warm);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}

.choice-intro h2 {
    margin: 4px 0 0;
    color: var(--ink);
    font-size: 22px;
    line-height: 1.2;
}

.choice-intro p:not(.eyebrow) {
    margin: 8px 0 0;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.5;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.choice-card {
    position: relative;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    min-height: 180px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
    transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.choice-card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-xs);
    transform: translateY(-1px);
}

.choice-card:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(188, 108, 37, 0.14);
}

.choice-card input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.choice-card:has(input:checked) {
    background: var(--accent-tint);
    border-color: rgba(188, 108, 37, 0.45);
    box-shadow: 0 0 0 3px rgba(188, 108, 37, 0.12), var(--shadow-sm);
}

.choice-mark {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    margin-top: 2px;
    background: var(--surface);
    border: 2px solid var(--line-strong);
    border-radius: 999px;
}

.choice-mark::after {
    content: "";
    width: 10px;
    height: 10px;
    background: transparent;
    border-radius: inherit;
}

.choice-card:has(input:checked) .choice-mark {
    background: var(--ink);
    border-color: var(--ink);
}

.choice-card:has(input:checked) .choice-mark::after {
    background: #fff;
}

.choice-body {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.choice-kicker {
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(18px, 1.8vw, 21px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
}

.choice-card strong {
    display: block;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.25;
}

.choice-card small {
    display: block;
    color: var(--ink-soft);
    font-weight: 500;
    line-height: 1.5;
}

.choice-text {
    display: block;
    color: var(--ink-soft);
    font-weight: 500;
    font-size: 14.5px;
    line-height: 1.55;
}

.choice-rule {
    color: var(--accent-deep);
    font-weight: 700;
}

.choice-selected {
    display: none;
    width: fit-content;
    margin-top: 6px;
    padding: 5px 10px;
    color: #fff;
    background: var(--ink);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.choice-card:has(input:checked) .choice-selected {
    display: inline-flex;
}

.span-2 {
    grid-column: 1 / -1;
}

.form-note {
    margin: 0;
    color: var(--danger);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.4;
    text-transform: none;
}

.personal-email-note {
    color: var(--muted);
    line-height: 1.45;
}

.personal-email-note.form-note-warning {
    color: var(--danger);
    font-weight: 700;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.auth-card .form-actions {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
}

.verification-wait-actions>.button,
.verification-wait-actions>button.button {
    width: 100%;
    justify-self: stretch;
}

/* ---------- Profile editor ---------- */
.profile-editor {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    max-width: 920px;
    margin-inline: auto;
}

.settings-heading {
    padding: 24px 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
}

.settings-heading .year-tag {
    margin: 0 0 6px;
}

.settings-heading h1 {
    margin: 6px 0 8px;
    font-family: var(--serif);
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.1;
}

.settings-heading .muted {
    margin: 0;
    color: var(--ink-mute);
    font-size: 14.5px;
    line-height: 1.5;
}

.verification-banner {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 22px 24px;
    color: var(--warning);
    background: var(--warning-soft);
    border: 1px solid rgba(154, 90, 0, 0.24);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-sm);
}

.participation-banner {
    color: var(--success);
    background: var(--success-soft);
    border-color: rgba(20, 104, 74, 0.24);
}

.yearbook-direct-banner {
    justify-content: space-between;
    padding: 18px 20px;
    color: var(--ink);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.58)),
        var(--success-soft);
    border-color: rgba(20, 104, 74, 0.18);
}

.yearbook-direct-banner .button {
    min-width: min(190px, 100%);
    text-align: center;
    justify-content: center;
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
    box-shadow: 0 12px 24px rgba(17, 25, 43, 0.14);
}

.yearbook-direct-banner .button:hover {
    background: var(--accent-deep);
    border-color: var(--accent-deep);
}

.yearbook-direct-copy {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 600;
    line-height: 1.15;
}

.yearbook-direct-copy::before {
    content: "";
    width: 12px;
    height: 12px;
    background: var(--success);
    border-radius: 999px;
    box-shadow: 0 0 0 6px rgba(20, 104, 74, 0.12);
    flex-shrink: 0;
}

/* ---------- Yearbook callout banner ---------- */
.yearbook-callout {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: clamp(14px, 2vw, 20px);
    align-items: center;
    padding: clamp(18px, 2.4vw, 24px) clamp(20px, 2.6vw, 28px);
    border-radius: var(--r-xl);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 8px 22px rgba(17, 25, 43, 0.04);
    color: var(--ink);
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.yearbook-callout::before {
    content: "";
    position: absolute;
    top: -55%;
    right: -8%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(188, 108, 37, 0.14), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.yearbook-callout:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(17, 25, 43, 0.08);
    border-color: rgba(188, 108, 37, 0.3);
}

.yearbook-callout:hover .yearbook-callout-cta svg {
    transform: translateX(3px);
}

.yearbook-callout-mark {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: var(--r-md);
    background: var(--accent-tint);
    color: var(--accent-deep);
    border: 1px solid rgba(188, 108, 37, 0.22);
    flex-shrink: 0;
}

.yearbook-callout-body {
    min-width: 0;
    display: block;
}

.yearbook-callout-body strong {
    display: block;
    font-family: var(--serif);
    font-size: clamp(18px, 2.2vw, 22px);
    font-weight: 600;
    line-height: 1.25;
    color: var(--ink);
}

.yearbook-callout-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 14.5px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 10px 22px rgba(17, 25, 43, 0.16);
    flex-shrink: 0;
}

.yearbook-callout-cta svg {
    transition: transform 200ms ease;
}

@media (max-width: 720px) {
    .yearbook-callout {
        grid-template-columns: auto minmax(0, 1fr);
        row-gap: 12px;
    }

    .yearbook-callout-cta {
        grid-column: 1 / -1;
        justify-content: center;
        width: 100%;
        padding: 12px 20px;
    }
}

.verification-banner h2 {
    margin: 4px 0 6px;
    color: var(--ink);
    font-size: 22px;
    line-height: 1.2;
}

.verification-banner p {
    margin: 0;
    max-width: 760px;
    color: var(--ink-soft);
    font-size: 14.5px;
}

.verification-banner form {
    flex-shrink: 0;
    margin: 0;
}

.verification-banner-actions,
.profile-summary-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.verification-banner-actions form,
.profile-summary-actions form {
    margin: 0;
}

.verification-banner-actions .button,
.profile-summary-actions .button {
    white-space: nowrap;
}

.verification-banner-actions.stacked-actions {
    flex-direction: column;
    align-items: stretch;
    min-width: min(280px, 100%);
}

.verification-banner-actions.stacked-actions form,
.verification-banner-actions.stacked-actions .button,
.verification-banner-actions.stacked-actions button {
    width: 100%;
}

.profile-summary,
.profile-form,
.settings-panel,
.received-comments-panel,
.profile-preview {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-sm);
}

.profile-summary h1 {
    font-size: 38px;
    margin-bottom: 18px;
}

.profile-form {
    display: grid;
    gap: 20px;
}

.settings-panel {
    display: grid;
    gap: 18px;
}

.writing-only-settings {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.writing-only-settings h2 {
    margin: 4px 0 8px;
    font-size: clamp(24px, 3vw, 32px);
}

.writing-only-settings p:not(.eyebrow):not(.form-note) {
    max-width: 760px;
    margin: 0;
    color: var(--ink-mute);
    line-height: 1.55;
}

.writing-only-settings .button {
    flex-shrink: 0;
}

.account-security-panel .button {
    justify-self: start;
}

.account-danger-panel {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.account-danger-panel h2 {
    margin: 4px 0 8px;
    font-size: clamp(24px, 3vw, 32px);
}

.account-danger-panel p:not(.eyebrow) {
    margin: 0;
    max-width: 700px;
    color: var(--ink-mute);
    line-height: 1.55;
}

.danger-button {
    color: #fff !important;
    background: var(--danger) !important;
    border-color: var(--danger) !important;
}

.danger-button:hover {
    background: #7f1d1d !important;
    border-color: #7f1d1d !important;
}

.authored-comments-panel .section-heading {
    margin-bottom: 0;
}

.authored-comment-list {
    display: grid;
    gap: 12px;
}

.authored-comment-card {
    display: grid;
    gap: 12px;
    padding: 18px 20px;
    background: var(--surface-warm);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}

.authored-comment-card header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.authored-comment-card strong {
    display: block;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
}

.authored-comment-card header span:not(.comment-status-badge) {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.authored-comment-card > p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.6;
}

.authored-comment-image {
    margin-left: 0;
}

.authored-comment-link {
    justify-self: start;
    color: var(--accent-deep);
    font-weight: 700;
    border-bottom: 1px dotted rgba(188, 108, 37, 0.45);
}

.authored-comment-link:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.participation-change-link {
    justify-self: start;
    width: auto;
    min-height: 0;
    padding: 0;
    color: var(--danger);
    background: transparent;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    font-weight: 800;
    font-size: 14.5px;
    letter-spacing: 0;
    text-align: left;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.participation-change-link:hover {
    color: #7d1b1b;
}

.participation-choice-modal {
    width: min(860px, calc(100% - 32px));
}

.participation-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-preview-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.profile-preview-card img,
.profile-preview-card .avatar-placeholder,
.profile-preview-card .graduate-avatar {
    width: 120px;
    aspect-ratio: 4 / 5;
    border-radius: var(--r-lg);
    object-fit: cover;
}

.profile-preview-card .graduate-avatar {
    height: auto;
}

.profile-preview-card h3 {
    margin: 0 0 6px;
    font-size: 28px;
}

.profile-preview-card p {
    margin: 4px 0;
    color: var(--ink-mute);
}

.bio-preview {
    padding-top: 12px;
    color: var(--ink-soft) !important;
    font-family: var(--serif);
    font-style: italic;
    line-height: 1.6;
}

.profile-image-status-note {
    width: fit-content;
    margin-top: 10px !important;
    padding: 8px 10px;
    color: var(--accent-deep) !important;
    background: var(--accent-tint);
    border: 1px solid rgba(188, 108, 37, 0.2);
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
}

.detail-list {
    display: grid;
    gap: 0;
    margin: 22px 0 0;
}

.detail-list div {
    display: grid;
    gap: 4px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.detail-list div:last-child {
    border-bottom: 1px solid var(--line);
}

.detail-list dt {
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.detail-list dd {
    margin: 0;
    color: var(--ink);
    font-weight: 600;
    font-size: 15px;
}

.resend-form {
    margin-top: 22px;
}

.profile-timeline {
    margin: 0;
}

.participates {
    padding: 16px 18px;
    background: var(--accent-tint);
    border: 1px solid rgba(188, 108, 37, 0.22);
    border-radius: var(--r-md);
    color: var(--accent-deep);
    font-size: 15px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
}

.participates small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 500;
}

.inline-photo-upload {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 16px;
    background: var(--surface-warm);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}

.inline-photo-current img,
.inline-photo-current .graduate-avatar {
    width: 140px;
    aspect-ratio: 4 / 5;
    border-radius: var(--r-md);
    object-fit: cover;
}

.inline-photo-current .photo-modal-trigger {
    display: block;
    width: 140px;
}

.inline-photo-body {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.inline-photo-body label {
    margin: 0;
}

.inline-photo-body input[type="file"] {
    margin-top: 8px;
}

.inline-photo-remove {
    justify-self: start;
}

.photo-upload-panel {
    display: grid;
    gap: 12px;
    padding: 24px 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
}

.photo-upload-panel h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.photo-preview {
    width: 160px;
    height: 200px;
    border-radius: var(--r-md);
    background: var(--surface-warm);
    border: 1px dashed var(--line-strong);
    overflow: hidden;
}

.photo-preview:empty {
    display: none;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-upload-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.photo-upload-actions[hidden] {
    display: none;
}

/* ---------- Profile public page ---------- */
.profile-page {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.profile-identity,
.comments-panel,
.comment-form,
.comment-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-sm);
}

.profile-identity {
    padding: 28px;
    position: sticky;
    top: 96px;
}

.profile-photo-large,
.profile-identity .avatar-placeholder.profile-photo-large,
.profile-identity .graduate-avatar.profile-photo-large {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: var(--r-lg);
    object-fit: cover;
    margin-bottom: 22px;
    background: var(--surface-warm);
}

.profile-identity .graduate-avatar.profile-photo-large {
    height: auto;
}

.profile-photo-trigger {
    width: 100%;
    margin-bottom: 22px;
}

.profile-photo-trigger .profile-photo-large {
    margin-bottom: 0;
}

.profile-identity .avatar-placeholder {
    font-size: 64px;
}

.profile-identity h1 {
    font-size: 36px;
    margin-bottom: 6px;
    line-height: 1.05;
}

.profile-identity p {
    margin: 4px 0;
    font-size: 15px;
    color: var(--ink-mute);
}

.profile-identity p.muted {
    color: var(--muted);
    font-size: 13.5px;
}

.owner-edit-block {
    margin-top: 22px;
    padding-top: 18px;
    text-align: center;
    border-top: 1px solid var(--line);
}

.owner-edit-block .button {
    width: 100%;
    box-sizing: border-box;
}

.owner-invite-block {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.owner-invite-block h2 {
    margin: 4px 0 14px;
    font-size: 18px;
}

.owner-invite-block .invite-url-row {
    margin-bottom: 12px;
}

.owner-invite-block .invite-url-display {
    min-width: 0;
}

.owner-invite-block .invite-share-row {
    justify-content: stretch;
}

.owner-invite-block .invite-share-btn {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
    min-width: 92px;
}

.bio {
    padding-top: 18px;
    margin-top: 14px;
    border-top: 1px solid var(--line);
    font-family: var(--serif);
    font-style: italic;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-soft);
}

.comments-panel {
    padding: 28px;
}

.owner-invite-strip {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 22px;
    padding: 16px 18px;
    background: var(--surface-warm);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}

.owner-invite-strip h3 {
    margin: 3px 0 0;
    font-size: 18px;
}

.invite-compact-share {
    flex-shrink: 0;
    min-width: 118px;
}

.pending-comments-panel {
    display: grid;
    gap: 12px;
    margin: 22px 0;
    padding: 20px;
    background: var(--accent-tint);
    border: 1px solid rgba(188, 108, 37, 0.24);
    border-radius: var(--r-lg);
}

.pending-comments-panel .section-heading {
    margin-bottom: 0;
}

.pending-comments-panel h3 {
    margin: 4px 0 0;
    font-size: 22px;
}

.pending-comment-list {
    margin-top: 4px;
}

.pending-comment {
    box-shadow: none;
}

.authored-pending-comment {
    border-color: rgba(188, 108, 37, 0.34);
    background: linear-gradient(180deg, var(--surface) 0%, var(--accent-tint) 100%);
}

.comment-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    color: var(--accent-deep) !important;
    background: var(--accent-soft);
    border: 1px solid rgba(188, 108, 37, 0.26);
    border-radius: 999px;
    font-family: var(--sans) !important;
    font-size: 11px !important;
    font-style: normal;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase;
}

.comment-status-note {
    margin-top: 12px !important;
    color: var(--accent-deep) !important;
    font-size: 13.5px !important;
    line-height: 1.45 !important;
}

/* ---------- Section heading ---------- */
.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: end;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.section-heading .eyebrow {
    margin-bottom: 6px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 600;
    letter-spacing: 0;
}

.section-heading>a {
    font-size: 14px;
    color: var(--muted);
    border-bottom: 1px dotted var(--line-strong);
    padding-bottom: 1px;
    transition: color 160ms ease;
}

.section-heading>a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ---------- Comments ---------- */
.comment-form {
    position: relative;
    display: grid;
    gap: 14px;
    margin-bottom: 22px;
    padding: 22px 24px;
    background: var(--surface-warm);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
}

.comment-form>* {
    position: relative;
}

.comment-form label {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
    font-size: 13.5px;
    color: var(--ink-soft);
}

.comment-form label .muted {
    font-weight: 500;
    font-size: 12.5px;
}

.character-counter {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: right;
}

.comment-image-field {
    display: grid;
    gap: 8px;
}

.comment-image-field input[type="file"] {
    width: 100%;
    padding: 10px 12px;
    color: var(--ink-soft);
    background: #fff;
    border: 1px dashed var(--line-strong);
    border-radius: 10px;
}

.comment-image-preview {
    width: min(240px, 100%);
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
}

.comment-image-preview:empty {
    display: none;
}

.comment-image-preview img {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: contain;
}

.comment-image-remove {
    justify-self: start;
    min-height: 34px;
    padding: 7px 12px;
    color: var(--danger);
    background: var(--danger-soft);
    border: 1px solid rgba(160, 37, 37, 0.2);
    border-radius: 8px;
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 700;
}

.comment-image-remove:hover {
    background: #fde2e2;
    border-color: rgba(160, 37, 37, 0.32);
}

.comment-form .form-actions {
    padding-top: 4px;
    border-top: 1px dashed var(--line);
    margin-top: 2px;
}

.comment-list {
    display: grid;
    gap: 14px;
}

/* Comment card */
.comment-item {
    position: relative;
    padding: 22px 24px 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-xs);
    transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
    overflow: hidden;
}

.comment-item.is-dragging {
    opacity: 0.55;
    border-style: dashed;
}

.comment-item:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-sm);
}

.comment-item.own-comment {
    border-color: rgba(188, 108, 37, 0.46);
    box-shadow: 0 0 0 3px rgba(188, 108, 37, 0.08), var(--shadow-xs);
}

.comment-item.own-comment:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(188, 108, 37, 0.12), var(--shadow-sm);
}

.comment-drag-handle {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    color: var(--muted);
    background: var(--surface-warm);
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: grab;
    font-weight: 800;
}

.comment-drag-handle:active {
    cursor: grabbing;
}

.comment-drag-handle svg {
    width: 18px;
    height: 18px;
}

.comment-item::before {
    /* serif open quote mark — top-left decorative */
    content: "\201C";
    position: absolute;
    top: 6px;
    left: 14px;
    font-family: var(--serif);
    font-style: italic;
    font-size: 56px;
    line-height: 1;
    color: var(--accent-soft);
    pointer-events: none;
    user-select: none;
}

.comment-item header {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    align-items: baseline;
    margin: 0 0 10px;
    padding: 0 0 12px 32px;
    border-bottom: 1px solid var(--line-soft);
}

.comment-item header strong {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--ink);
    letter-spacing: 0;
}

.comment-author-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(188, 108, 37, 0.34);
    transition: color 160ms ease, border-color 160ms ease;
}

.comment-author-link:hover {
    color: var(--accent-deep);
    border-bottom-color: var(--accent-deep);
}

.comment-item header span {
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.comment-nickname {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 3px 10px;
    color: var(--accent-deep);
    background: var(--accent-tint);
    border: 1px solid rgba(188, 108, 37, 0.22);
    border-radius: 999px;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.2;
}

.comment-nickname::before {
    content: "—\00a0";
    color: var(--accent);
    opacity: 0.6;
    font-style: normal;
}

.own-comment-badge {
    color: var(--accent-deep) !important;
    background: var(--accent-tint);
    border: 1px solid rgba(188, 108, 37, 0.24);
    border-radius: 999px;
    padding: 4px 9px;
    letter-spacing: 0 !important;
    text-transform: none !important;
    font-size: 12px !important;
    font-weight: 750 !important;
}

.comment-item p {
    margin: 0;
    padding: 0 0 0 32px;
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--ink-soft);
}

.comment-image {
    margin: 14px 0 0 32px;
}

.comment-image img {
    display: block;
    width: min(280px, 100%);
    max-height: 320px;
    object-fit: contain;
    background: var(--surface-warm);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
}

.comment-image-trigger {
    display: inline-block;
}

.comment-image-status-note {
    margin: 10px 0 0 32px !important;
    padding: 10px 12px !important;
    color: var(--accent-deep) !important;
    background: var(--accent-tint);
    border: 1px solid rgba(188, 108, 37, 0.2);
    border-radius: var(--r-md);
    font-size: 13px !important;
    font-weight: 700;
    line-height: 1.45 !important;
}

/* Actions footer */
.comment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 0 32px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
}

.comment-actions:empty,
.comment-actions:not(:has(*)) {
    display: none;
}

.comment-actions form {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin: 0;
}

.comment-actions button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 6px 12px;
    color: var(--ink-soft);
    background: var(--surface-warm);
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12.5px;
    letter-spacing: 0.01em;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.comment-actions button:hover {
    background: var(--accent-tint);
    color: var(--accent-deep);
    border-color: rgba(188, 108, 37, 0.35);
    transform: translateY(-1px);
}

.comment-actions button[data-report-open] {
    color: var(--muted);
    background: transparent;
    border-color: transparent;
}

.comment-actions button[data-report-open]:hover {
    color: #8f153f;
    background: #fff1f5;
    border-color: rgba(180, 35, 85, 0.24);
}

.comment-report-trigger {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    width: 34px;
    height: 34px;
    min-height: 34px;
    min-width: 34px;
    padding: 0 !important;
    line-height: 1;
}

.comment-report-trigger svg {
    display: block;
    width: 17px;
    height: 17px;
    transform: translateX(1px);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Comment modals */
.report-modal,
.confirm-modal,
.invite-modal {
    width: min(520px, calc(100% - 32px));
    padding: 0;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
}

.edit-comment-modal {
    width: min(720px, calc(100% - 32px));
}

.report-modal::backdrop,
.confirm-modal::backdrop,
.invite-modal::backdrop {
    background: rgba(17, 25, 43, 0.42);
    backdrop-filter: blur(4px);
}

.confirm-modal-body {
    display: grid;
    gap: 12px;
    padding: 24px;
}

.confirm-modal-body h3 {
    margin: 0;
    font-size: 24px;
}

.confirm-modal-body p {
    margin: 0;
    color: var(--muted);
}

.invite-modal {
    width: min(620px, calc(100% - 32px));
}

.invite-modal-body {
    position: relative;
    display: grid;
    gap: 16px;
    padding: 26px;
}

.invite-modal-body h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 38px);
}

.invite-modal-body p {
    margin: 0;
    color: var(--ink-mute);
}

.report-modal-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
    padding: 22px 24px 16px;
    border-bottom: 1px solid var(--line);
}

.report-modal-head h3 {
    margin: 4px 0 0;
    font-size: 24px;
}

.report-modal .modal-close,
.invite-modal .modal-close {
    min-height: 34px;
    padding: 6px 10px;
    color: var(--muted);
    background: var(--surface-warm);
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
}

.invite-modal .modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
}

.report-modal .modal-close:hover,
.invite-modal .modal-close:hover {
    color: var(--ink);
    background: var(--surface-soft);
    border-color: var(--line-strong);
    transform: none;
}

.comment-actions .report-form,
.report-form {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 20px 24px 24px;
}

.report-form label {
    display: grid;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink-soft);
}

.edit-comment-form {
    display: grid;
    gap: 16px;
}

.comment-actions .edit-comment-form {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 16px;
    width: 100%;
}

.edit-comment-form label {
    display: grid;
    gap: 7px;
    color: var(--ink-soft);
    font-size: 13.5px;
    font-weight: 700;
}

.comment-actions .edit-comment-form label {
    width: 100%;
}

.edit-comment-form textarea {
    min-height: 180px;
    resize: vertical;
}

.edit-comment-form input,
.edit-comment-form textarea {
    width: 100%;
}

.edit-comment-form .character-counter {
    margin-top: 0;
}

.edit-comment-modal .confirm-modal-body {
    gap: 18px;
    padding: clamp(22px, 4vw, 34px);
}

.edit-comment-modal .confirm-modal-body h3 {
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.18;
}

.edit-comment-modal .modal-actions {
    justify-content: flex-end;
    gap: 12px;
    padding-top: 4px;
}

.edit-comment-modal .button {
    min-width: 150px;
}

.report-info {
    margin: 0;
    padding: 10px 12px;
    color: var(--ink-mute);
    background: var(--surface-warm);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    font-size: 13px;
    line-height: 1.45;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 4px;
}

.comment-actions .modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
}

.report-modal .button,
.confirm-modal .button {
    min-height: 44px;
    padding: 10px 18px;
    font-size: 14px;
}

.report-modal .button.secondary,
.confirm-modal .button.secondary {
    color: var(--accent-deep);
    background: var(--accent-soft);
    border-color: rgba(188, 108, 37, 0.28);
}

.report-modal .button:hover,
.confirm-modal .button:hover {
    color: #fff;
    background: #1c2540;
    border-color: #1c2540;
}

.report-modal .button.secondary:hover,
.confirm-modal .button.secondary:hover {
    color: var(--accent-deep);
    background: #fbe5d3;
    border-color: rgba(188, 108, 37, 0.45);
}

.report-form select,
.report-form textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.report-form textarea {
    min-height: 110px;
    resize: vertical;
}

.report-form select:focus,
.report-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(188, 108, 37, 0.14);
}

/* Photo modal */
.photo-modal-trigger {
    display: block;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    border-radius: var(--r-lg);
    cursor: zoom-in;
    text-align: left;
}

.photo-modal-trigger img {
    display: block;
    transition: filter 160ms ease;
}

.photo-modal-trigger:hover img {
    filter: brightness(0.96);
}

.photo-modal-trigger:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.34);
    outline-offset: 3px;
}

.photo-modal {
    width: min(920px, calc(100% - 28px));
    max-height: calc(100dvh - 28px);
    padding: 44px 16px 16px;
    color: var(--ink);
    background: rgba(255, 252, 247, 0.98);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
}

.photo-modal::backdrop {
    background: rgba(17, 25, 43, 0.62);
    backdrop-filter: blur(5px);
}

.photo-modal img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: calc(100dvh - 104px);
    margin: 0 auto;
    border-radius: var(--r-lg);
    object-fit: contain;
    background: var(--surface-warm);
}

.photo-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    min-height: 34px;
    padding: 6px 10px;
    color: var(--muted);
    background: var(--surface-warm);
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
}

.photo-modal-close:hover {
    color: var(--ink);
    background: var(--surface-soft);
    border-color: var(--line-strong);
}

/* ---------- Footer ---------- */
.site-footer {
    flex-shrink: 0;
    margin-top: auto;
    padding: 36px clamp(20px, 4vw, 56px);
    background: linear-gradient(180deg, transparent 0, rgba(17, 25, 43, 0.04));
    border-top: 1px solid var(--line);
}

.footer-inner {
    width: min(1200px, calc(100% - 36px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-logo {
    display: block;
    width: 132px;
    height: auto;
    flex-shrink: 0;
}

.footer-title {
    margin: 0;
    font-family: var(--serif);
    font-style: normal;
    font-weight: 600;
    font-size: 22px;
    color: var(--ink);
}

.footer-sub {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 13.5px;
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 13.5px;
}

.footer-meta .dot {
    opacity: 0.5;
}

.footer-meta a {
    color: var(--ink-mute);
    border-bottom: 1px dotted var(--line-strong);
    padding-bottom: 1px;
    transition: color 160ms ease, border-color 160ms ease;
}

.footer-meta a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .dashboard-hero {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .landing-hero,
    .landing-stats,
    .simple-steps,
    .choice-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sample-profile {
        transform: rotate(0);
        margin-top: 12px;
    }

    .landing-preview {
        order: 2;
    }

    .landing-copy {
        order: 1;
    }

    .profile-page {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
    }

    .profile-page>*,
    .profile-identity,
    .comments-panel {
        width: 100%;
        min-width: 0;
    }

    .profile-editor {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        grid-template-columns: none;
        grid-template-areas: none;
        grid-template-rows: none;
    }

    .profile-editor>* {
        width: 100%;
        min-width: 0;
        grid-area: auto !important;
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .account-danger-panel {
        grid-template-columns: 1fr;
    }

    .writing-only-settings {
        align-items: stretch;
        flex-direction: column;
    }

    .verification-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .verification-banner-actions,
    .profile-summary-actions {
        justify-content: flex-start;
    }

    .profile-identity {
        position: static;
    }

    .photo-upload-panel,
    .received-comments-panel,
    .profile-timeline,
    .verification-banner {
        grid-column: auto;
        grid-area: auto;
    }

    .timeline-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .timeline-step+.timeline-step::before {
        display: none;
    }

    .search-panel,
    .form-grid,
    .phase-guide {
        grid-template-columns: 1fr;
    }

    .profile-preview-card {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .profile-preview-card img,
    .profile-preview-card .avatar-placeholder,
    .profile-preview-card .graduate-avatar {
        width: 92px;
    }

    .inline-photo-upload {
        grid-template-columns: 1fr;
    }

    .inline-photo-current img,
    .inline-photo-current .graduate-avatar,
    .inline-photo-current .photo-modal-trigger {
        width: min(160px, 100%);
    }

    .archive-item {
        align-items: stretch;
        flex-direction: column;
    }

    .archive-actions {
        justify-content: flex-start;
    }

    .comment-actions form {
        display: grid !important;
        grid-template-columns: 1fr;
    }

    .report-form select,
    .report-form textarea {
        width: 100%;
    }

    .edit-comment-modal .modal-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .edit-comment-modal .button {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .topbar {
        position: sticky;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 64px;
        padding: 12px 18px;
    }

    /* Hamburger button */
    .nav-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 12px;
        cursor: pointer;
        box-shadow: var(--shadow-xs);
        transition: background 160ms ease, border-color 160ms ease;
        flex-shrink: 0;
    }

    .nav-button:hover {
        background: var(--surface-warm);
    }

    .nav-button:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
    }

    .nav-button-bars {
        position: relative;
        display: block;
        width: 18px;
        height: 14px;
    }

    .nav-button-bars span {
        position: absolute;
        left: 0;
        right: 0;
        height: 2px;
        background: var(--ink);
        border-radius: 2px;
        transition: transform 220ms ease, opacity 200ms ease, top 220ms ease;
    }

    .nav-button-bars span:nth-child(1) {
        top: 0;
    }

    .nav-button-bars span:nth-child(2) {
        top: 6px;
    }

    .nav-button-bars span:nth-child(3) {
        top: 12px;
    }

    /* Open state (X icon) */
    .nav-toggle:checked~.nav-button .nav-button-bars span:nth-child(1) {
        top: 6px;
        transform: rotate(45deg);
    }

    .nav-toggle:checked~.nav-button .nav-button-bars span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle:checked~.nav-button .nav-button-bars span:nth-child(3) {
        top: 6px;
        transform: rotate(-45deg);
    }

    /* Dropdown menu */
    .nav {
        position: absolute;
        top: calc(100% + 8px);
        right: 12px;
        left: 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 10px;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: var(--r-lg);
        box-shadow: var(--shadow-lg);
        z-index: 40;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-4px);
        transition: opacity 180ms ease, transform 180ms ease, max-height 220ms ease, padding 180ms ease;
        padding-block: 0;
    }

    .nav-toggle:checked~.nav {
        max-height: calc(100vh - 100px);
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        padding: 10px;
        overflow: auto;
    }

    .nav form {
        display: block;
        margin: 0;
    }

    .nav a,
    .nav-account summary,
    .link-button {
        justify-content: flex-start;
        width: 100%;
        min-height: 44px;
        padding: 10px 14px;
        border-radius: var(--r-md);
        font-size: 15px;
        font-weight: 500;
        color: var(--ink);
    }

    .nav a:hover,
    .nav-account summary:hover,
    .link-button:hover {
        background: var(--surface-warm);
    }

    .nav a.button,
    .nav a.button:hover {
        margin-top: 6px;
        justify-content: center;
        padding: 12px 16px;
    }

    .nav-user {
        display: block;
        max-width: none;
        padding: 8px 14px 10px;
        font-size: 14px;
        font-weight: 600;
        color: var(--ink);
        border-bottom: 1px solid var(--line-soft);
        margin-bottom: 4px;
    }

    .nav-user::before {
        content: "Giriş yapıldı";
        display: block;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: var(--muted);
        margin-bottom: 2px;
    }

    .nav-divider {
        display: none;
    }

    .nav-account {
        width: 100%;
    }

    .nav-account summary {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 2px 10px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .nav-account-name {
        grid-column: 1;
        grid-row: 1;
    }

    .nav-comment-badge {
        grid-column: 1;
        grid-row: 3;
        justify-self: start;
        margin-top: 6px;
    }

    .nav-account summary::after {
        grid-column: 2;
        grid-row: 1 / span 3;
        align-self: center;
    }

    .nav-account summary::before {
        content: "Giriş yapıldı";
        display: block;
        grid-column: 1;
        grid-row: 2;
        color: var(--muted);
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.13em;
        line-height: 1.2;
        text-transform: uppercase;
    }

    .nav-account-menu {
        position: static;
        min-width: 0;
        margin: 4px 0 8px;
        padding: 6px;
        background: var(--surface-warm);
        box-shadow: none;
    }

    .shell {
        padding: 24px 0 64px;
    }

    .profile-identity,
    .comments-panel {
        padding: 22px;
        border-radius: var(--r-lg);
    }

    .owner-invite-strip {
        align-items: stretch;
        flex-direction: column;
    }

    .invite-compact-share {
        width: 100%;
    }

    h1 {
        font-size: 38px;
    }

    .archive-item h2 {
        font-size: 36px;
    }

    .auth-card {
        margin: 24px auto;
        padding: 28px 22px;
    }

    .double-major-toggle,
    .auth-submit-button {
        width: 100%;
    }

    .auth-submit-row {
        display: grid;
        gap: 12px;
        justify-content: stretch;
    }

    .mail-delivery-note {
        max-width: none;
    }

    .timeline-panel {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .profile-card {
        padding: 10px 10px 14px;
    }

    .profile-card h2 {
        font-size: 16px;
    }
}

/* ---------- Invite / Share panel ---------- */
.invite-panel {
    margin-top: 22px;
    padding: 22px 24px 20px;
    background: var(--surface-warm);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.invite-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(380px 180px at 100% 0%, rgba(188, 108, 37, 0.06), transparent 65%);
    pointer-events: none;
}

.invite-panel>* {
    position: relative;
}

.invite-panel-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.invite-panel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-deep);
    font-size: 18px;
    flex-shrink: 0;
}

.invite-panel-head h3 {
    margin: 0 0 2px;
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.15;
}

.invite-panel-head p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.4;
}

.invite-url-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
    margin-bottom: 14px;
}

.invite-url-display {
    flex: 1;
    min-height: 42px;
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    font-size: 13px;
    color: var(--ink-mute);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    font-family: monospace;
    letter-spacing: 0;
    cursor: default;
    user-select: all;
}

.invite-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 8px 16px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    cursor: pointer;
    font-weight: 600;
    font-size: 13.5px;
    white-space: nowrap;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
    flex-shrink: 0;
}

.invite-copy-btn:hover {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
    transform: translateY(-1px);
}

.invite-copy-btn.copied {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

.invite-share-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.invite-share-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 9px 16px 9px 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-mute);
    letter-spacing: 0.01em;
    text-align: left;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
    min-height: 44px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.invite-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--line-strong);
    color: var(--ink);
}

.invite-share-btn .share-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    transition: transform 200ms ease;
}

.invite-share-btn:hover .share-icon {
    transform: scale(1.1);
}

.invite-share-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Platform-specific icon colors */
.invite-share-btn.whatsapp .share-icon {
    background: #dcfce7;
    color: #15803d;
}

.invite-share-btn.telegram .share-icon {
    background: #dbeafe;
    color: #1d4ed8;
}

.invite-share-btn.sms .share-icon {
    background: #f0fdf4;
    color: #16a34a;
}

.invite-share-btn.instagram .share-icon {
    background: #fdf2f8;
    color: #9d174d;
}

.invite-share-btn.native .share-icon {
    background: var(--accent-soft);
    color: var(--accent-deep);
}

.invite-share-btn.email .share-icon {
    background: var(--surface-warm);
    color: var(--ink-soft);
    border: 1px solid var(--line);
}

.invite-share-btn:hover.whatsapp {
    background: #f0fdf4;
    border-color: rgba(21, 128, 61, 0.3);
}

.invite-share-btn:hover.telegram {
    background: #eff6ff;
    border-color: rgba(29, 78, 216, 0.3);
}

.invite-share-btn:hover.sms {
    background: #f0fdf4;
    border-color: rgba(22, 163, 74, 0.3);
}

.invite-share-btn:hover.instagram {
    background: #fdf2f8;
    border-color: rgba(157, 23, 77, 0.25);
}

.invite-share-btn:hover.native {
    background: var(--accent-tint);
    border-color: rgba(188, 108, 37, 0.3);
}

/* Native share pulse when API is supported */
.invite-share-btn.native.has-native-share {
    border-color: rgba(188, 108, 37, 0.3);
    background: var(--accent-tint);
}

.invite-share-btn.native.has-native-share .share-icon {
    animation: invite-pulse 2.4s ease-in-out infinite;
}

@keyframes invite-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(188, 108, 37, 0.3);
    }

    50% {
        box-shadow: 0 0 0 7px rgba(188, 108, 37, 0);
    }
}

/* Toast */
.invite-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    z-index: 200;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: var(--ink);
    color: #fff;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 260ms ease, transform 260ms cubic-bezier(0.2, 0.85, 0.3, 1);
    white-space: nowrap;
}

.invite-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

@media (max-width: 860px) {
    .invite-share-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .invite-share-btn {
        padding: 10px 6px 9px;
        font-size: 11px;
        min-height: 66px;
    }

    .invite-share-btn .share-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
        border-radius: 8px;
    }
}

@media (max-width: 540px) {
    .invite-share-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .invite-url-row {
        flex-direction: column;
    }

    .invite-copy-btn {
        justify-content: center;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .about-ituoder-head {
        gap: 14px;
    }

    .about-ituoder-logo {
        width: 128px;
        max-height: 60px;
    }
}

/* ---------- Horizontal invite panel (profilim sayfası) ---------- */
.invite-panel-horizontal {
    max-width: var(--page-max, 1080px);
    margin: 0 auto 48px;
    padding: 20px 26px;
    border-radius: var(--r-xl);
}

.invite-panel-horizontal-inner {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.invite-panel-horizontal .invite-panel-head {
    margin-bottom: 0;
    flex-shrink: 0;
    min-width: 180px;
}

.invite-horizontal-controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.invite-share-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Horizontal modda butonlar daha kompakt */
.invite-panel-horizontal .invite-share-btn {
    flex-direction: row;
    min-height: 40px;
    padding: 8px 14px;
    gap: 8px;
    font-size: 13px;
    min-width: auto;
}

.invite-panel-horizontal .invite-share-btn .share-icon {
    width: 26px;
    height: 26px;
    font-size: 13px;
    border-radius: 8px;
    flex-shrink: 0;
}

/* Başlık küçük: profilim sayfasında fazla yer kaplamayalım */
.invite-panel-horizontal .invite-panel-head h3 {
    font-size: 15px;
    margin-bottom: 1px;
}

.invite-panel-horizontal .invite-panel-head p {
    font-size: 12px;
}

/* Dikey seperatör */
.invite-panel-horizontal .invite-panel-head {
    padding-right: 24px;
    border-right: 1px solid var(--line);
}

@media (max-width: 860px) {
    .invite-panel-horizontal .invite-panel-horizontal-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .invite-panel-horizontal .invite-panel-head {
        padding-right: 0;
        border-right: none;
        padding-bottom: 14px;
        border-bottom: 1px solid var(--line);
        min-width: 0;
    }

    .invite-panel-horizontal .invite-share-btn {
        flex: 1;
        justify-content: center;
        min-width: 100px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}
