:root {
    --forest: #0b4b39;
    --forest-deep: #073b2d;
    --green: #609f7c;
    --blue: #69abc0;
    --ink: #163e32;
    --muted: #626a69;
    --line: #dfe5e2;
    --pale-green: #e7f1e8;
    font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink);
    font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: white; }
h1, h2, h3, p { margin: 0; }
a { color: var(--forest); text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .8; }
a, button, input { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.skip-link { position: absolute; left: 16px; top: -80px; background: white; padding: 12px 18px; z-index: 20; }
.skip-link:focus { top: 12px; }
.portal-page { position: relative; isolation: isolate; min-height: 100svh; padding-bottom: 70px; overflow: clip; }
.brand-decoration { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.corner-shapes { position: absolute; left: -55px; top: -22px; width: 200px; height: 310px; }
.footer-shapes { position: absolute; bottom: 0; left: 0; width: 100%; height: 100px; }
.portal-header { position: relative; z-index: 2; }
.header-inner { width: min(1440px, calc(100% - 112px)); margin: auto; min-height: 130px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 23px; flex-shrink: 0; }
.brand-lockup { display: flex; align-items: center; gap: 0; }
.brand-stones { width: 93px; height: 86px; object-fit: contain; }
.brand-wordmark { width: 137px; height: 86px; object-fit: contain; }
.brand-stacked { display: none; }
.brand-portal { border-left: 1px solid #b8bfba; padding-left: 26px; font-size: 24px; font-weight: 650; letter-spacing: -.5px; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 36px; }
.header-actions form { margin: 0; }
.community-label { font-size: 15px; color: #5a6260; }
.button-quiet { min-height: 44px; padding: 8px 24px; border: 1px solid #43805c; border-radius: 8px; color: var(--forest); background: white; font-size: 16px; font-weight: 600; }
.button-quiet:hover { background: #f0f6f1; }
.dashboard { width: min(1440px, calc(100% - 112px)); margin: auto; }
.section-label { color: #246450; font-size: 13px; font-weight: 650; letter-spacing: 2.6px; }
.welcome-hero { position: relative; min-height: 405px; display: flex; align-items: center; margin-top: 0; }
.hero-copy { position: relative; z-index: 2; padding: 46px 0 64px 30px; width: 48%; }
.hero-copy h1 { font-size: clamp(34px, 3.45vw, 54px); font-weight: 650; line-height: 1.14; letter-spacing: -1.6px; margin: 25px 0 17px; }
.hero-copy p { max-width: 510px; font-size: 20px; color: #616968; line-height: 1.5; }
.hero-photo { position: absolute; top: 0; right: -56px; width: 59%; height: 100%; overflow: hidden; border-top-left-radius: 36% 80%; border-bottom-left-radius: 3% 10%; }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 55% 68%; }
.hero-pebbles { position: absolute; z-index: 1; right: -95px; bottom: -35px; height: 180px; width: 240px; pointer-events: none; }
.hero-pebbles span { display: block; position: absolute; width: 220px; height: 130px; background: #6bacbdc9; border-radius: 60% 40% 52% 48% / 55% 48% 52% 45%; transform: rotate(-24deg); }
.hero-pebbles span + span { background: #67a67fce; right: -35px; bottom: -8px; transform: rotate(22deg); }
.resident-card { position: relative; z-index: 3; background: white; border: 1px solid #d9e0dc; border-radius: 20px; padding: 30px 38px 34px; box-shadow: 0 9px 24px #204f3810; margin-top: -14px; }
.profile-heading { display: flex; align-items: center; gap: 28px; }
.resident-photo { flex: 0 0 126px; height: 126px; position: relative; border-radius: 50%; overflow: hidden; background: #e1eee4; display: grid; place-items: center; }
.avatar-fallback { font-size: 36px; color: var(--forest); font-weight: 600; }
.resident-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.resident-identity { flex: 1; min-width: 0; }
.resident-identity .section-label { letter-spacing: 1.6px; font-size: 13px; }
.resident-identity h2 { font-size: clamp(24px, 2.3vw, 34px); line-height: 1.25; letter-spacing: -.8px; margin: 10px 0 8px; font-weight: 650; overflow-wrap: anywhere; }
.resident-identity p { color: var(--muted); font-size: 17px; }
.verified-badge { display: inline-flex; align-items: center; gap: 10px; background: #e3f0e2; color: #145232; padding: 11px 19px; border-radius: 30px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.verified-badge svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.profile-grid { display: grid; grid-template-columns: .9fr 1.05fr 1.15fr; border-top: 1px solid #d9dfdc; margin-top: 28px; padding-top: 29px; }
.profile-detail { min-width: 0; padding: 0 32px; }
.profile-detail:first-child { padding-left: 0; }
.profile-detail:last-child { padding-right: 0; }
.profile-detail + .profile-detail { border-left: 1px solid #e3e7e4; }
.profile-detail h3 { color: #5f6564; font-size: 17px; font-weight: 600; margin-bottom: 20px; }
.unit-item, .community-item { display: flex; align-items: flex-start; gap: 17px; }
.unit-item + .unit-item { margin-top: 17px; }
.unit-item strong, .community-item strong { display: block; color: #1d3329; font-size: 18px; line-height: 1.35; font-weight: 650; }
.unit-item strong { padding-top: 3px; }
.unit-item div > span { display: block; color: var(--muted); font-size: 16px; margin-top: 3px; }
.detail-icon { display: inline-grid; place-items: center; width: 58px; height: 58px; flex: 0 0 58px; border-radius: 13px; background: #e9f2e9; color: #155b36; }
.detail-icon svg { width: 33px; height: 33px; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.role-list { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; }
.role-tag { max-width: 100%; overflow-wrap: anywhere; padding: 9px 17px; border-radius: 13px; background: #e5f0e5; color: #164e35; font-size: 17px; font-weight: 600; }
.detail-note { color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 10px; }
.community-item .detail-note { margin-top: 5px; }
.dashboard-footer { display: flex; justify-content: space-between; gap: 20px; color: #68706c; font-size: 14px; padding: 27px 3px 25px; }
/* Login shares the same original logo, photography and organic graphic system. */
.login-shell { display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr); width: min(1380px, calc(100% - 112px)); margin: 24px auto 0; gap: 76px; align-items: start; }
.welcome-panel { position: relative; padding-top: 32px; padding-bottom: 32px; }
.welcome-copy { position: relative; z-index: 2; padding: 0 20px; }
.welcome-copy h1 { font-size: clamp(34px, 3.5vw, 53px); font-weight: 650; line-height: 1.16; letter-spacing: -1.7px; margin: 20px 0 16px; }
.welcome-copy p { max-width: 420px; color: var(--muted); font-size: 18px; }
.login-photo { height: 295px; margin: 33px 0 0; border-radius: 22% 42% 12% 35% / 37% 35% 24% 40%; overflow: hidden; }
.login-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.welcome-pebble { width: 160px; height: 115px; position: absolute; left: -20px; bottom: 30px; background: #69abc0b8; border-radius: 58% 42% 53% 47%; transform: rotate(-24deg); z-index: -1; }
.welcome-pebble::after { content: ""; width: 142px; height: 100px; position: absolute; left: 65px; top: 30px; background: #609f7cb8; border-radius: 40% 60% 43% 57%; }
.welcome-caption { font-size: 14px; color: #567563; margin: 23px 0 0 22px; }
.login-panel { padding: 25px 36px 30px; }
.login-card { width: 100%; max-width: 430px; margin: auto; }
.login-card h2 { font-size: 30px; line-height: 1.22; letter-spacing: -.8px; margin: 16px 0 13px; font-weight: 650; }
.login-intro { max-width: 380px; font-size: 16px; }
.login-form { margin-top: 30px; }
.field { margin-bottom: 21px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 9px; color: #314b3f; }
.field input { width: 100%; min-height: 54px; padding: 12px 15px; border: 1px solid #cbd8cf; border-radius: 9px; background: white; color: #253d30; }
.field input::placeholder { color: #7b877e; }
.field input:focus { border-color: #4b8969; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 86px; }
.password-toggle { position: absolute; right: 8px; top: 8px; border: 0; background: transparent; padding: 9px 8px; color: #3d6550; font-size: 13px; font-weight: 600; }
.recovery-link { display: block; text-align: right; font-size: 14px; margin: -5px 0 25px; }
.button-primary { display: inline-flex; justify-content: center; align-items: center; gap: 12px; background: var(--forest); color: white; padding: 13px 24px; min-height: 53px; border: 0; border-radius: 9px; font-size: 16px; font-weight: 600; }
.button-primary:hover { background: var(--forest-deep); }
.login-submit { width: 100%; }
.spinner { display: none; width: 17px; height: 17px; border: 2px solid #ffffff66; border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; }
.login-form[aria-busy=true] .spinner { display: inline-block; }
.login-progress { color: var(--muted); margin-top: 14px; font-size: 14px; }
.login-assurance { display: flex; align-items: flex-start; gap: 11px; margin-top: 23px; padding: 14px 0 20px; border-bottom: 1px solid var(--line); }
.login-assurance p { font-size: 13px; color: var(--muted); }
.shield-icon { color: #548169; width: 25px; flex: 0 0 25px; }
.shield-icon svg { width: 25px; height: 28px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.access-note { font-size: 13px; color: var(--muted); text-align: center; margin-top: 21px; }
.access-note strong { font-weight: 500; }
.login-footer { width: min(1380px, calc(100% - 112px)); margin: 18px auto 0; display: flex; justify-content: space-between; gap: 20px; font-size: 13px; color: #69766b; padding: 14px 0; }
.notice, .validation-summary:not(:empty) { padding: 14px 16px; border-radius: 9px; margin-top: 23px; font-size: 14px; }
.notice { background: #eff6f0; color: #315f48; }
.validation-summary.validation-summary-errors { background: #fff1ef; color: #96362b; }
.validation-summary ul { margin: 0; padding-left: 18px; }
.validation-summary-valid { display: none; }
.field-error { color: #a0382d; font-size: 13px; display: block; margin-top: 5px; }
.input-validation-error { border-color: #bb5142 !important; }
.error-card { max-width: 680px; background: white; padding: 40px; border: 1px solid var(--line); border-radius: 18px; margin: 70px auto; }
.error-card h1 { font-size: 30px; margin: 14px 0; }
.error-card p { margin-bottom: 24px; color: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1200px) {
    .header-inner, .dashboard { width: calc(100% - 72px); }
    .brand { gap: 16px; }
    .brand-stones { width: 76px; height: 75px; }
    .brand-wordmark { width: 113px; height: 75px; }
    .brand-portal { font-size: 22px; padding-left: 18px; }
    .header-actions { gap: 20px; }
    .community-label { font-size: 13px; }
    .hero-copy { padding-left: 10px; }
    .hero-copy h1 { font-size: 40px; }
    .hero-copy p { font-size: 18px; }
    .hero-photo { right: -36px; }
    .resident-card { padding: 28px; }
    .resident-photo { flex-basis: 106px; height: 106px; }
    .profile-heading { gap: 22px; }
    .verified-badge { padding: 10px 14px; font-size: 13px; }
    .profile-detail { padding: 0 22px; }
    .profile-detail h3 { font-size: 16px; }
    .detail-icon { width: 48px; height: 48px; flex-basis: 48px; }
    .detail-icon svg { width: 28px; height: 28px; }
    .unit-item, .community-item { gap: 12px; }
    .unit-item strong, .community-item strong { font-size: 16px; }
    .role-tag { font-size: 16px; padding: 8px 13px; }
    .login-shell { width: calc(100% - 72px); gap: 28px; }
    .login-panel { padding: 25px 16px 20px; }
    .welcome-copy { padding-left: 8px; }
    .welcome-copy h1 { font-size: 42px; }
    .welcome-copy .section-label { font-size: 12px; letter-spacing: 1.5px; }
    .login-footer { width: calc(100% - 72px); }
}
@media (max-width: 900px) {
    .community-label { display: none; }
    .header-inner { min-height: 112px; }
    .welcome-hero { min-height: 350px; }
    .hero-copy { width: 50%; }
    .hero-copy h1 { font-size: 36px; }
    .hero-copy p { font-size: 17px; }
    .hero-photo { width: 55%; }
    .hero-copy .section-label { font-size: 12px; letter-spacing: 1.5px; }
    .profile-heading { flex-wrap: wrap; }
    .resident-identity { flex-basis: calc(100% - 132px); }
    .verified-badge { margin-left: 128px; margin-top: -8px; }
    .profile-grid { grid-template-columns: 1fr 1fr; row-gap: 24px; }
    .profile-detail:nth-child(2) { padding-right: 0; }
    .profile-detail:last-child { grid-column: 1 / -1; padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--line); }
    .login-shell { gap: 12px; grid-template-columns: 1fr 1fr; }
    .welcome-copy h1 { font-size: 35px; letter-spacing: -1px; }
    .welcome-copy p { font-size: 16px; }
    .login-photo { height: 270px; }
    .login-panel { padding: 25px 0 20px 14px; }
    .login-card h2 { font-size: 27px; }
}
@media (max-width: 640px) {
    .portal-page { padding-bottom: 48px; }
    .corner-shapes { width: 120px; height: 186px; left: -54px; top: -28px; opacity: .7; }
    .footer-shapes { height: 55px; width: 160%; left: -30%; }
    .header-inner { width: calc(100% - 40px); min-height: 106px; gap: 12px; }
    .brand { gap: 13px; }
    .brand-lockup { display: none; }
    .brand-stacked { display: block; width: 65px; height: 76px; object-fit: contain; }
    .brand-portal { font-size: 19px; padding-left: 14px; }
    .button-quiet { min-height: 42px; padding: 8px 17px; font-size: 15px; }
    .dashboard { width: calc(100% - 36px); }
    .welcome-hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
    .hero-copy { width: 100%; padding: 26px 4px 23px; }
    .hero-copy h1 { font-size: clamp(30px, 8vw, 38px); letter-spacing: -1px; margin: 16px 0 13px; }
    .hero-copy p { font-size: 16px; max-width: 95%; }
    .hero-copy .section-label { font-size: 12px; letter-spacing: 2px; }
    .hero-photo { position: relative; right: auto; top: auto; height: 180px; width: calc(100% + 18px); margin-left: 0; border-top-left-radius: 28% 70%; border-bottom-left-radius: 6% 18%; }
    .hero-pebbles { right: -50px; bottom: -15px; transform: scale(.65); transform-origin: right bottom; }
    .resident-card { margin-top: -12px; padding: 23px 21px 25px; border-radius: 17px; }
    .profile-heading { gap: 15px; align-items: center; }
    .resident-photo { flex-basis: 74px; height: 74px; }
    .avatar-fallback { font-size: 25px; }
    .resident-identity { flex-basis: calc(100% - 89px); }
    .resident-identity .section-label { font-size: 11px; letter-spacing: 1.5px; }
    .resident-identity h2 { font-size: 21px; letter-spacing: -.5px; margin: 6px 0 5px; }
    .resident-identity p { font-size: 13px; }
    .verified-badge { margin: 3px 0 0; font-size: 13px; padding: 9px 13px; }
    .verified-badge svg { width: 18px; height: 18px; }
    .profile-grid { grid-template-columns: 1fr; margin-top: 22px; padding-top: 23px; row-gap: 22px; }
    .profile-detail { padding: 0; }
    .profile-detail + .profile-detail { padding: 21px 0 0; border-left: 0; border-top: 1px solid var(--line); }
    .profile-detail:last-child { grid-column: auto; }
    .profile-detail h3 { font-size: 15px; margin-bottom: 14px; }
    .unit-item strong, .community-item strong { font-size: 16px; }
    .detail-note { font-size: 13px; }
    .dashboard-footer { font-size: 12px; padding: 23px 2px 16px; gap: 20px; }
    .dashboard-footer span:last-child { text-align: right; max-width: 170px; }
    .login-shell { width: calc(100% - 40px); display: flex; flex-direction: column; margin-top: 0; gap: 0; }
    .welcome-panel { padding: 22px 0 0; width: 100%; }
    .welcome-copy { padding: 0 2px; }
    .welcome-copy .section-label { font-size: 11px; letter-spacing: 1.5px; }
    .welcome-copy h1 { font-size: 32px; line-height: 1.15; margin: 15px 0 12px; }
    .welcome-copy h1 br { display: none; }
    .welcome-copy p { font-size: 15px; }
    .login-photo { height: 155px; margin-top: 22px; border-radius: 22% 30% 8% 24% / 35% 35% 20% 35%; }
    .welcome-caption, .welcome-pebble { display: none; }
    .login-panel { width: 100%; padding: 33px 0 12px; }
    .login-card { max-width: none; }
    .login-card h2 { font-size: 27px; margin-top: 12px; }
    .login-card > .section-label { font-size: 12px; letter-spacing: 2px; }
    .login-intro { font-size: 15px; }
    .login-form { margin-top: 24px; }
    .field input { min-height: 53px; }
    .login-footer { width: calc(100% - 40px); margin-top: 20px; font-size: 12px; gap: 18px; }
    .login-footer span:last-child { text-align: right; max-width: 190px; }
    .error-card { padding: 26px; margin: 35px auto; }
}
@media (max-width: 360px) {
    .brand-stacked { width: 55px; height: 65px; }
    .brand-portal { font-size: 17px; padding-left: 11px; }
    .brand { gap: 10px; }
    .button-quiet { padding: 8px 13px; }
    .resident-identity h2 { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* Keep the original white logo artwork clear of decorative shapes. */
.portal-header { background: white; }
.welcome-pebble { bottom: 65px; }
@media (max-width: 1200px) and (min-width: 641px) { .corner-shapes { left: -90px; } }

.portal-nav { width: min(1440px, calc(100% - 112px)); margin: 0 auto 20px; display: flex; gap: 8px; border-bottom: 1px solid var(--line); }
.portal-nav a { padding: 12px 20px; border-bottom: 3px solid transparent; font-weight: 600; }
.portal-nav a.selected { border-color: var(--forest); background: #eff6f0; border-radius: 9px 9px 0 0; }
.pool-dashboard { padding-top: 12px; }
.pool-intro { display: flex; gap: 32px; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.pool-intro h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -1px; margin: 12px 0; }
.pool-intro p, .pool-note, .pool-empty p { color: var(--muted); }
.pool-intro img { width: 280px; height: 150px; object-fit: cover; border-radius: 40% 15% 35% 12%; }
.pool-unit-picker { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.pool-unit-picker select { padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; font: inherit; max-width: 100%; background: white; }
.pool-section-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.pool-section-heading h2 { font-size: 23px; }
.pool-section-heading > span { color: var(--muted); font-size: 14px; }
.pool-tabs { display: flex; gap: 12px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.pool-tabs a { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 3px solid transparent; font-weight: 600; }
.pool-tabs a.selected { border-color: var(--forest); }
.pool-tabs span { border-radius: 20px; background: var(--pale-green); padding: 2px 9px; font-size: 13px; }
.pool-note { padding: 15px 18px; background: #f3f6f5; border-radius: 10px; margin-bottom: 22px; font-size: 14px; }
.pool-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.pool-person { border: 1px solid var(--line); border-radius: 18px; padding: 25px; background: white; box-shadow: 0 6px 20px #204f3808; }
.pool-person-heading { display: flex; align-items: center; gap: 20px; }
.pool-person .resident-photo { flex-basis: 80px; height: 80px; }
.pool-person .avatar-fallback { font-size: 25px; }
.pool-person-identity { min-width: 0; }
.pool-person h3 { font-size: 21px; line-height: 1.3; overflow-wrap: anywhere; margin-bottom: 12px; }
.pool-person .role-tag { font-size: 13px; padding: 5px 11px; display: inline-block; }
.pool-permissions { margin: 22px 0 0; border-top: 1px solid var(--line); padding-top: 12px; }
.pool-permissions > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; }
.pool-permissions dt { font-size: 14px; }
.permission { margin: 0; font-size: 13px; font-weight: 600; border-radius: 20px; padding: 5px 12px; white-space: nowrap; }
.permission.allowed { color: #185437; background: #e5f2e8; }
.permission.denied { color: #6b5149; background: #f4eeeb; }
.permission.unknown { color: #636363; background: #f1f1f1; }
.pool-empty { padding: 45px 25px; text-align: center; background: #f5f8f6; border-radius: 16px; }
.pool-empty p { margin-top: 10px; }
@media (max-width: 1200px) { .portal-nav { width: calc(100% - 72px); } }
@media (max-width: 850px) { .pool-people { grid-template-columns: 1fr; } .pool-intro img { width: 200px; } }
@media (max-width: 640px) { .portal-nav { width: calc(100% - 36px); } .portal-nav a { padding: 10px 15px; font-size: 14px; } .pool-intro img { display: none; } .pool-intro { margin-bottom: 24px; } .pool-person { padding: 20px; } .pool-person-heading { gap: 14px; } .pool-person h3 { font-size: 19px; } .pool-person .resident-photo { flex-basis: 68px; height: 68px; } }
/* Public welcome and links follow the approved desktop/mobile proposal. */
.login-shell { grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 40px 64px; margin-top: 20px; }
.login-page .welcome-panel { padding-top: 0; }
.login-page .welcome-copy { padding: 0 4px; }
.login-page .welcome-copy h1 { margin-top: 18px; }
.login-page .welcome-copy p { max-width: 620px; }
.login-page .login-photo { height: 255px; margin-top: 26px; }
.login-page .login-panel { padding: 26px 28px 22px; border: 1px solid #a9cbb3; border-radius: 17px; box-shadow: 0 4px 15px #204f3805; }
.login-page .login-card { max-width: none; }
.login-page .login-card h2 { margin-top: 0; font-size: 33px; }
.login-page .login-assurance { border-bottom: 0; padding-bottom: 0; margin-top: 22px; align-items: center; }
.login-page .login-assurance p { font-size: 14px; }
.public-links { grid-column: 1 / -1; padding-bottom: 24px; }
.public-links h2, .internal-links h1 { font-size: clamp(28px,3vw,38px); line-height: 1.2; letter-spacing: -.8px; }
.links-subtitle { margin-top: 8px; color: var(--muted); font-size: 17px; }
.useful-links-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; margin-top: 24px; }
.useful-link { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 15px; padding: 21px 19px; border: 1px solid #b2d0bc; border-radius: 13px; background: white; box-shadow: 0 6px 16px #204f3809; }
.useful-link:hover { border-color: #4b8969; background: #f7fbf8; }
.useful-link-icon { display: grid; place-items: center; width: 58px; height: 52px; background: #dcefdc; border-radius: 12px; flex: 0 0 auto; }
.useful-link-icon svg { width: 36px; height: 36px; }
.useful-link-copy { min-width: 0; }
.useful-link-copy strong { display: block; font-size: 18px; line-height: 1.3; }
.useful-link-copy > span { display: block; color: var(--muted); font-size: 14px; margin-top: 9px; }
.useful-link-arrow { position: absolute; right: 17px; top: 13px; font-size: 25px; line-height: 1; }
.internal-links { padding-top: 30px; }
.internal-links h1 { margin-top: 12px; }
.internal-links .useful-links-grid { margin-top: 32px; }
.portal-nav { flex-wrap: wrap; }
@media (max-width:1100px) { .useful-links-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .login-shell { gap: 32px; } }
@media (max-width:640px) {
    .login-shell { gap: 24px; margin-top: 6px; }
    .login-page .welcome-panel { padding: 8px 0 0; }
    .login-page .welcome-copy h1 { font-size: 31px; }
    .login-page .welcome-copy p { display: none; }
    .login-page .login-photo { height: 155px; margin-top: 22px; }
    .login-page .login-panel { padding: 22px 18px; }
    .login-page .login-card h2 { font-size: 27px; }
    .login-page .login-assurance { margin-top: 20px; }
    .login-page .login-assurance p { font-size: 12px; }
    .public-links { width: 100%; padding: 0; }
    .links-subtitle { font-size: 14px; }
    .useful-links-grid { grid-template-columns: 1fr; gap: 11px; margin-top: 18px; }
    .useful-link { flex-direction: row; align-items: center; gap: 13px; padding: 10px 36px 10px 10px; border-radius: 12px; }
    .useful-link-icon { width: 43px; height: 40px; border-radius: 9px; }
    .useful-link-icon svg { width: 28px; height: 28px; }
    .useful-link-copy strong { font-size: 15px; }
    .useful-link-copy > span { display: none; }
    .useful-link-arrow { top: 50%; transform: translateY(-50%); right: 12px; font-size: 22px; }
    .internal-links { padding-top: 18px; }
    .portal-nav { gap: 0; } .portal-nav a { padding: 10px 11px; font-size: 13px; }
}
