/* footer ชิดล่างสุดเสมอ แม้เนื้อหาสั้นกว่าความสูงจอ */
.public-page {
    background: #f6f7fb;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.public-page > main {
    flex: 1 0 auto;
}

.public-page > footer {
    flex-shrink: 0;
}

.text-brand {
    color: var(--brand);
}

/* ไล่จากส้มเดิมไปส้มเข้ม ตัวอักษรขาวขนาดใหญ่ยังอ่านได้ทั้งแถบ (≥ 3:1) */
.hero {
    background: linear-gradient(135deg, #e8690f, var(--brand-hover));
    border-bottom: 4px solid var(--brand);
    color: #fff;
    border-radius: 1rem;
    padding: 2.5rem 1.5rem;
}

.year-tile {
    display: block;
    text-align: center;
    background: #fff;
    border: 1px solid #e7e8ee;
    border-radius: .75rem;
    padding: 1.25rem .5rem;
    color: inherit;
    text-decoration: none;
    transition: border-color .15s, transform .15s;
}

.year-tile:hover,
.year-tile:focus-visible {
    border-color: var(--brand);
    transform: translateY(-2px);
}

.year-tile .year {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-strong);
}

.public-page .navbar {
    border-bottom: 4px solid var(--brand) !important;
}

.public-page .navbar .nav-link.active {
    color: var(--brand-strong);
}

.message-card img {
    width: 120px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: .5rem;
}

.message-body {
    white-space: pre-line;
}

.grad-card {
    height: 100%;
    color: inherit;
    text-decoration: none;
    transition: box-shadow .15s, transform .15s;
}

.grad-card:hover,
.grad-card:focus-visible {
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .08);
    transform: translateY(-2px);
}

.grad-photo {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    width: 100%;
    background: #eef0f5;
}

.grad-photo-empty {
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef0f5;
    color: #9ca3af;
    font-size: 3rem;
}

.profile-photo {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: .75rem;
}
