:root {
    --bg: #f4f8f3;
    --surface: #ffffff;
    --surface-soft: #f8fbf7;
    --ink: #173125;
    --muted: #6d7d72;
    --line: #dfe9e1;
    --green-900: #0f3f2b;
    --green-800: #15553a;
    --green-700: #1f6f4c;
    --green-500: #47a269;
    --teal: #168c8a;
    --gold: #c68a13;
    --shadow: 0 20px 60px rgba(31, 70, 48, .09);
    --shadow-hover: 0 28px 72px rgba(31, 70, 48, .16);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body.portal-page {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 0%, rgba(112, 164, 116, .10), transparent 30rem),
        radial-gradient(circle at 100% 20%, rgba(198, 138, 19, .06), transparent 24rem),
        var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.portal-shell {
    width: min(1180px, calc(100% - 48px));
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}
.portal-shell--compact { width: min(1080px, calc(100% - 48px)); }

.portal-header {
    min-height: 102px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid rgba(26, 78, 51, .08);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    border-radius: 16px;
    outline: none;
}
.brand img { width: 54px; height: 54px; object-fit: contain; transition: transform .28s ease; }
.brand:hover img, .brand:focus-visible img { transform: rotate(-3deg) scale(1.04); }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { color: var(--green-800); font-size: 22px; letter-spacing: .015em; }
.brand-copy span { margin-top: 5px; font-size: 13px; color: #52665a; }
.header-meta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.72);
    border-radius: 999px;
    color: #4c6253;
    font-size: 13px;
    backdrop-filter: blur(8px);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #42a66d; box-shadow: 0 0 0 5px rgba(66,166,109,.12); animation: pulse-status 2.6s ease-in-out infinite; }
.header-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; text-decoration: none; border: 1px solid var(--line); border-radius: 14px; color: #435b4b; background: rgba(255,255,255,.72); transition: border-color .2s ease, transform .2s ease, background .2s ease; }
.header-back svg { width: 18px; height: 18px; transition: transform .2s ease; }
.header-back:hover, .header-back:focus-visible { border-color: rgba(31,111,76,.36); background: #fff; transform: translateY(-1px); }
.header-back:hover svg { transform: translateX(-3px); }

.header-back { border-color:#fff; background:#fff; color:#165b3d; font-size:17px; font-weight:800; }
.header-back:hover, .header-back:focus-visible { border-color:#165b3d; background:#165b3d; color:#fff; }

main { flex: 1; }
.portal-intro { padding: 72px 0 42px; max-width: 760px; }
.eyebrow { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; background: #e9f3eb; color: var(--green-700); font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.portal-intro h1 { margin: 19px 0 18px; font-size: clamp(42px, 6vw, 72px); line-height: .99; letter-spacing: -.052em; max-width: 760px; color: #183529; }
.portal-intro h1 span { color: var(--green-700); }
.portal-intro p { margin: 0; max-width: 620px; color: var(--muted); font-size: 17px; line-height: 1.75; }

.role-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; padding-bottom: 30px; }
.role-card {
    position: relative;
    isolation: isolate;
    min-height: 340px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    text-decoration: none;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(17,63,43,.08);
    box-shadow: var(--shadow);
    transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .3s ease;
    outline: none;
}
.role-card::before, .role-card::after { content:""; position:absolute; border-radius:50%; pointer-events:none; z-index:-1; transition: transform .45s ease, opacity .45s ease; }
.role-card::before { width: 230px; height: 230px; right: -72px; top: -82px; background: rgba(255,255,255,.11); }
.role-card::after { width: 160px; height: 160px; right: 40px; bottom: -108px; border: 1px solid rgba(255,255,255,.17); }
.role-card:hover, .role-card:focus-visible { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.role-card:hover::before { transform: scale(1.16) translate(-8px, 8px); }
.role-card:hover::after { transform: scale(1.1) translateY(-12px); }
.role-card--student { color: #fff; background: linear-gradient(145deg, #0f5137 0%, #19744d 62%, #258359 100%); }
.role-card--lecturer { color: #eef8f2; background: linear-gradient(145deg, #173c31 0%, #234f43 58%, #2d6253 100%); }
.role-orbit { position:absolute; width: 260px; height:260px; border:1px solid rgba(255,255,255,.10); border-radius:50%; right:-88px; top:62px; }
.role-orbit::before, .role-orbit::after { content:""; position:absolute; border:1px solid rgba(255,255,255,.08); border-radius:50%; inset:28px; }
.role-orbit::after { inset:61px; }
.role-topline, .role-action { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.role-icon { display:grid; place-items:center; width:64px; height:64px; border-radius:20px; background:rgba(255,255,255,.13); border:1px solid rgba(255,255,255,.17); backdrop-filter: blur(5px); transition: transform .3s ease, background .3s ease; }
.role-card:hover .role-icon { transform: rotate(-4deg) scale(1.05); background:rgba(255,255,255,.18); }
.role-icon svg { width:32px; height:32px; }
.role-badge { padding:8px 12px; border-radius:999px; background:rgba(255,255,255,.10); border:1px solid rgba(255,255,255,.13); font-size:12px; font-weight:700; letter-spacing:.03em; }
.role-content { display:grid; gap:10px; margin-top:46px; max-width:390px; }
.role-content strong { font-size:34px; line-height:1.05; letter-spacing:-.035em; }
.role-content span { max-width:350px; font-size:15px; line-height:1.6; color:rgba(255,255,255,.76); }
.role-action { margin-top:34px; font-size:13px; font-weight:750; }
.arrow-button { display:grid; place-items:center; width:48px; height:48px; border-radius:50%; background:#fff; color:var(--green-800); transition: transform .3s cubic-bezier(.2,.8,.2,1); box-shadow:0 10px 30px rgba(0,0,0,.12); }
.arrow-button svg { width:21px; height:21px; }
.role-card:hover .arrow-button { transform: translateX(5px) rotate(-4deg); }

.quick-note { display:flex; align-items:center; gap:12px; margin: 0 0 48px; padding:16px 18px; border:1px solid var(--line); background:rgba(255,255,255,.7); border-radius:18px; color:#607166; }
.quick-note-icon { width:27px; height:27px; display:grid; place-items:center; color:var(--green-700); flex:0 0 auto; }
.quick-note-icon svg { width:22px; height:22px; }
.quick-note p { margin:0; font-size:13px; line-height:1.55; }

.sub-intro { padding: 64px 0 34px; display:flex; align-items:flex-start; gap:20px; }
.sub-icon { width:66px; height:66px; display:grid; place-items:center; flex:0 0 auto; border-radius:22px; color:#fff; background:linear-gradient(145deg,#176445,#26845b); box-shadow:0 15px 35px rgba(31,111,76,.18); }
.sub-icon--lecturer { background:linear-gradient(145deg,#1d463a,#326a58); }
.sub-icon svg { width:33px; height:33px; }
.sub-intro h1 { margin:10px 0 7px; font-size:clamp(34px,5vw,52px); line-height:1; letter-spacing:-.04em; }
.sub-intro p { margin:0; color:var(--muted); font-size:15px; line-height:1.6; max-width:650px; }

.service-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; padding:12px 0 54px; }
.service-card { position:relative; min-height:270px; padding:24px; display:flex; flex-direction:column; text-decoration:none; border:1px solid var(--line); border-radius:var(--radius-lg); background:#fff; box-shadow:0 12px 36px rgba(39,72,52,.07); overflow:hidden; transition:transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease, border-color .28s ease; }
.service-card::after { content:""; position:absolute; width:140px; height:140px; border-radius:50%; right:-70px; bottom:-74px; background:var(--card-wash); transition:transform .35s ease; }
.service-card:hover, .service-card:focus-visible { transform:translateY(-7px); box-shadow:0 22px 48px rgba(39,72,52,.12); border-color:var(--card-border); outline:none; }
.service-card:hover::after { transform:scale(1.25); }
.service-card--kuliah { --card-color:#4b8227; --card-wash:rgba(75,130,39,.10); --card-border:rgba(75,130,39,.28); }
.service-card--praktikum { --card-color:#128e91; --card-wash:rgba(18,142,145,.10); --card-border:rgba(18,142,145,.27); }
.service-card--akademik { --card-color:#c38a10; --card-wash:rgba(195,138,16,.11); --card-border:rgba(195,138,16,.28); }
.service-icon { width:56px; height:56px; display:grid; place-items:center; border-radius:18px; background:color-mix(in srgb, var(--card-color) 10%, white); color:var(--card-color); transition:transform .28s ease; }
.service-card:hover .service-icon { transform:rotate(-5deg) scale(1.05); }
.service-icon svg { width:28px; height:28px; }
.service-copy { display:grid; gap:10px; margin-top:30px; padding-right:8px; }
.service-copy strong { color:#1f392c; font-size:22px; letter-spacing:-.025em; }
.service-copy span { color:var(--muted); font-size:14px; line-height:1.6; }
.service-arrow { margin-top:auto; width:42px; height:42px; display:grid; place-items:center; border-radius:50%; background:var(--card-color); color:#fff; font-size:20px; transition:transform .28s ease; z-index:1; }
.service-card:hover .service-arrow { transform:translateX(5px); }

.coming-card { position:relative; margin-top:10px; padding:26px; min-height:170px; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:22px; border:1px solid var(--line); border-radius:var(--radius-lg); background:#fff; box-shadow:0 14px 40px rgba(39,72,52,.07); overflow:hidden; }
.coming-pulse { position:absolute; inset:auto auto -100px -80px; width:230px; height:230px; border-radius:50%; background:rgba(31,111,76,.07); }
.coming-icon { width:58px; height:58px; display:grid; place-items:center; color:#285a48; background:#edf5f0; border-radius:18px; }
.coming-icon svg { width:28px; height:28px; }
.coming-copy { display:grid; gap:7px; }
.coming-copy strong { font-size:20px; }
.coming-copy span { color:var(--muted); font-size:14px; line-height:1.6; }
.coming-badge { align-self:start; padding:8px 12px; border-radius:999px; background:#eef5ef; color:#3e6f52; font-size:12px; font-weight:750; }

.portal-footer { margin-top:auto; min-height:86px; display:flex; align-items:center; justify-content:space-between; gap:18px; border-top:1px solid rgba(26,78,51,.08); color:#7a897f; font-size:12px; }
.footer-mark { color:#54705f; }

.portal-enter { animation: portal-in .58s cubic-bezier(.2,.8,.2,1) both; }
.portal-enter--2 { animation-delay:.08s; }
.portal-enter--3 { animation-delay:.15s; }
.portal-enter--4 { animation-delay:.22s; }

@keyframes portal-in { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:none; } }
@keyframes pulse-status { 0%,100% { box-shadow:0 0 0 4px rgba(66,166,109,.10); } 50% { box-shadow:0 0 0 8px rgba(66,166,109,.03); } }

@media (max-width: 820px) {
    .portal-shell, .portal-shell--compact { width:min(100% - 28px, 680px); }
    .portal-header { min-height:84px; }
    .brand img { width:46px; height:46px; }
    .brand-copy strong { font-size:19px; }
    .header-meta { padding:8px 11px; }
    .portal-intro { padding:52px 0 30px; }
    .portal-intro h1 { font-size:clamp(39px,12vw,58px); }
    .portal-intro p { font-size:15px; line-height:1.65; }
    .role-grid { grid-template-columns:1fr; gap:15px; }
    .role-card { min-height:272px; padding:23px; border-radius:25px; }
    .role-content { margin-top:30px; }
    .role-content strong { font-size:28px; }
    .role-icon { width:56px; height:56px; border-radius:17px; }
    .arrow-button { width:44px; height:44px; }
    .quick-note { margin-bottom:32px; }
    .sub-intro { padding:46px 0 25px; gap:15px; }
    .sub-icon { width:56px; height:56px; border-radius:18px; }
    .sub-intro h1 { font-size:38px; }
    .service-grid { grid-template-columns:1fr; padding-bottom:36px; }
    .service-card { min-height:190px; padding:21px; display:grid; grid-template-columns:auto 1fr auto; grid-template-rows:auto; align-items:center; column-gap:17px; }
    .service-icon { grid-column:1; width:50px; height:50px; }
    .service-copy { grid-column:2; margin:0; gap:6px; }
    .service-copy strong { font-size:19px; }
    .service-copy span { font-size:13px; }
    .service-arrow { grid-column:3; margin:0; width:40px; height:40px; }
    .coming-card { grid-template-columns:auto 1fr; min-height:190px; gap:16px; }
    .coming-badge { grid-column:2; justify-self:start; }
    .portal-footer { min-height:80px; flex-direction:column; justify-content:center; text-align:center; gap:5px; }
}

@media (max-width: 460px) {
    .portal-shell, .portal-shell--compact { width:calc(100% - 22px); }
    .header-meta span:last-child { display:none; }
    .header-meta { width:36px; height:36px; padding:0; justify-content:center; }
    .header-meta .status-dot { margin:0; }
    .header-back span { display:none; }
    .header-back { width:42px; justify-content:center; padding:0; }
    .portal-intro { padding-top:38px; }
    .portal-intro h1 { font-size:42px; }
    .role-card { min-height:255px; }
    .role-content span { font-size:14px; }
    .sub-intro { align-items:center; }
    .sub-intro h1 { font-size:32px; }
    .sub-intro p { font-size:13px; }
    .service-card { min-height:178px; grid-template-columns:50px 1fr 38px; padding:18px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
}


/* =========================================================
   V83 - PUBLIC HOME / MODERN INSTITUTIONAL
   Scoped to homepage only. Student, lecturer, admin, and
   schedule pages keep their existing styles.
   ========================================================= */
.portal-home-page {
    overflow-x: hidden;
    background:
        radial-gradient(circle at 8% 0%, rgba(84, 139, 94, .075), transparent 27rem),
        radial-gradient(circle at 96% 22%, rgba(198, 138, 19, .045), transparent 22rem),
        #f6f9f5;
}

.portal-home-page .portal-home-shell {
    width: calc(100% - 36px);
    max-width: none;
}

.portal-home-page .portal-home-header {
    min-height: 82px;
    border-bottom-color: rgba(24, 75, 48, .08);
}

.portal-home-page .brand {
    gap: 10px;
}

.portal-home-page .brand img {
    width: 48px;
    height: 48px;
}

.portal-home-page .brand-copy strong {
    font-size: 20px;
}

.portal-home-page .brand-copy span {
    margin-top: 4px;
    font-size: 12px;
}

.portal-home-page .portal-home-main {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 34px 0 30px;
}

.portal-home-page .portal-home-content {
    width: min(1320px, 100%);
    margin: 0 auto;
}

.portal-home-page .portal-home-hero {
    text-align: center;
    margin: 0 auto 22px;
}

.portal-home-page .portal-home-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 11px;
    border: 1px solid rgba(31, 111, 76, .10);
    border-radius: 999px;
    background: rgba(232, 242, 234, .8);
    color: var(--green-700);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.portal-home-page .portal-home-hero h1 {
    max-width: 780px;
    margin: 12px auto 8px;
    color: #183529;
    font-size: clamp(36px, 4.1vw, 58px);
    line-height: 1.02;
    letter-spacing: -.05em;
}

.portal-home-page .portal-home-hero h1 span {
    color: var(--green-700);
}

.portal-home-page .portal-home-hero p {
    margin: 0;
    color: #6a7a70;
    font-size: 14px;
    line-height: 1.6;
}

.portal-home-page .portal-announcement {
    width: min(980px, 100%);
    margin: 0 auto 20px;
    padding: 13px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(31, 111, 76, .11);
    border-radius: 16px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 10px 28px rgba(31, 70, 48, .055);
    backdrop-filter: blur(7px);
}

.portal-home-page .portal-announcement-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--green-700);
    background: #edf6ef;
}

.portal-home-page .portal-announcement-icon svg {
    width: 18px;
    height: 18px;
}

.portal-home-page .portal-announcement-copy {
    display: grid;
    gap: 3px;
}

.portal-home-page .portal-announcement-copy strong {
    color: #234233;
    font-size: 13px;
    line-height: 1.25;
}

.portal-home-page .portal-announcement-copy span {
    color: #64756a;
    font-size: 12px;
    line-height: 1.45;
}

.portal-home-page .portal-home-grid {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.portal-home-page .role-card {
    --pointer-x: 50%;
    --pointer-y: 50%;
    position: relative;
    isolation: isolate;
    min-height: 252px;
    padding: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 26px;
    box-shadow: 0 16px 38px rgba(31, 70, 48, .11);
    outline: none;
    transform: translateZ(0);
    transition:
        transform .28s cubic-bezier(.2,.8,.2,1),
        box-shadow .28s ease,
        border-color .28s ease;
}

.portal-home-page .role-card--student {
    color: #f5fbf7;
    background: linear-gradient(145deg, #0d5a3b 0%, #18754d 58%, #25865b 100%);
}

.portal-home-page .role-card--lecturer {
    color: #f5fbf7;
    background: linear-gradient(145deg, #183d32 0%, #244f42 58%, #2d6554 100%);
}

.portal-home-page .role-card:hover,
.portal-home-page .role-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 22px 48px rgba(31, 70, 48, .16);
    border-color: rgba(255, 255, 255, .2);
}

.portal-home-page .role-card:active {
    transform: translateY(-1px) scale(.994);
}

.portal-home-page .role-card::before,
.portal-home-page .role-card::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
}

.portal-home-page .role-card::before {
    width: 190px;
    height: 190px;
    top: -92px;
    right: -44px;
    background: rgba(255,255,255,.105);
}

.portal-home-page .role-card::after {
    width: 130px;
    height: 130px;
    right: 16px;
    bottom: -92px;
    border: 1px solid rgba(255,255,255,.09);
}

.portal-home-page .role-shine {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(
        250px circle at var(--pointer-x) var(--pointer-y),
        rgba(255,255,255,.15),
        transparent 64%
    );
    transition: opacity .24s ease;
}

.portal-home-page .role-card:hover .role-shine,
.portal-home-page .role-card:focus-visible .role-shine {
    opacity: 1;
}

.portal-home-page .role-orbit {
    position: absolute;
    z-index: -1;
    width: 205px;
    height: 205px;
    right: -76px;
    top: 48px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 50%;
    transition: transform .4s cubic-bezier(.2,.8,.2,1);
}

.portal-home-page .role-orbit::before,
.portal-home-page .role-orbit::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 50%;
}

.portal-home-page .role-orbit::before { inset: 29px; }
.portal-home-page .role-orbit::after { inset: 62px; }

.portal-home-page .role-card:hover .role-orbit,
.portal-home-page .role-card:focus-visible .role-orbit {
    transform: translate(-6px, 5px) scale(1.035);
}

.portal-home-page .role-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.portal-home-page .role-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 16px;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(5px);
    transition: transform .28s ease, background .28s ease;
}

.portal-home-page .role-card:hover .role-icon,
.portal-home-page .role-card:focus-visible .role-icon {
    transform: translateY(-2px) rotate(-3deg);
    background: rgba(255,255,255,.17);
}

.portal-home-page .role-icon svg {
    width: 26px;
    height: 26px;
}

.portal-home-page .role-number {
    color: rgba(255,255,255,.44);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

.portal-home-page .role-content {
    display: grid;
    gap: 8px;
    margin-top: 34px;
    max-width: 330px;
}

.portal-home-page .role-content strong {
    color: #fff;
    font-size: clamp(26px, 2vw, 32px);
    line-height: 1.05;
    letter-spacing: -.035em;
}

.portal-home-page .role-content span {
    color: rgba(255,255,255,.76);
    font-size: 13px;
    line-height: 1.45;
}

.portal-home-page .role-action {
    margin-top: auto;
    padding-top: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
}

.portal-home-page .role-action-label {
    min-height: 34px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .01em;
    transition: background .25s ease, border-color .25s ease;
}

.portal-home-page .arrow-button {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--green-800);
    box-shadow: 0 8px 18px rgba(0,0,0,.12);
    transition: transform .25s cubic-bezier(.2,.8,.2,1);
}

.portal-home-page .arrow-button svg {
    width: 16px;
    height: 16px;
}

.portal-home-page .role-card:hover .role-action-label,
.portal-home-page .role-card:focus-visible .role-action-label {
    background: rgba(255,255,255,.15);
    border-color: rgba(255,255,255,.22);
}

.portal-home-page .role-card:hover .arrow-button,
.portal-home-page .role-card:focus-visible .arrow-button {
    transform: translateX(4px);
}

.portal-home-page .portal-home-reference {
    width: min(960px, 100%);
    margin: 17px auto 0;
    text-align: center;
    color: #76847b;
    font-size: 11px;
    line-height: 1.55;
}

.portal-home-page .portal-home-footer {
    min-height: 58px;
    justify-content: center;
    color: #87938b;
    font-size: 10px;
    border-top-color: rgba(26,78,51,.055);
}

@media (max-width: 820px) {
    .portal-home-page .portal-home-shell {
        width: calc(100% - 20px);
    }

    .portal-home-page .portal-home-header {
        min-height: 72px;
    }

    .portal-home-page .brand img {
        width: 42px;
        height: 42px;
    }

    .portal-home-page .brand-copy strong {
        font-size: 18px;
    }

    .portal-home-page .brand-copy span {
        font-size: 10.5px;
    }

    .portal-home-page .portal-home-main {
        align-items: flex-start;
        padding: 24px 0 20px;
    }

    .portal-home-page .portal-home-hero {
        margin-bottom: 16px;
    }

    .portal-home-page .portal-home-eyebrow {
        min-height: 24px;
        padding: 0 9px;
        font-size: 9.5px;
    }

    .portal-home-page .portal-home-hero h1 {
        margin-top: 9px;
        font-size: clamp(31px, 7.5vw, 42px);
    }

    .portal-home-page .portal-home-hero p {
        font-size: 12px;
    }

    .portal-home-page .portal-announcement {
        margin-bottom: 14px;
        padding: 11px 12px;
        gap: 10px;
        border-radius: 14px;
    }

    .portal-home-page .portal-announcement-icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }

    .portal-home-page .portal-announcement-copy strong {
        font-size: 11.5px;
    }

    .portal-home-page .portal-announcement-copy span {
        font-size: 10.5px;
        line-height: 1.35;
    }

    .portal-home-page .portal-home-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .portal-home-page .role-card {
        min-height: 190px;
        padding: 16px;
        border-radius: 20px;
    }

    .portal-home-page .role-icon {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .portal-home-page .role-icon svg {
        width: 22px;
        height: 22px;
    }

    .portal-home-page .role-content {
        margin-top: 20px;
        gap: 5px;
        max-width: 190px;
    }

    .portal-home-page .role-content strong {
        font-size: 21px;
    }

    .portal-home-page .role-content span {
        font-size: 11px;
        line-height: 1.35;
    }

    .portal-home-page .role-action {
        padding-top: 17px;
        gap: 6px;
    }

    .portal-home-page .role-action-label {
        min-height: 28px;
        padding: 0 10px;
        font-size: 9.5px;
    }

    .portal-home-page .arrow-button {
        width: 28px;
        height: 28px;
    }

    .portal-home-page .arrow-button svg {
        width: 13px;
        height: 13px;
    }

    .portal-home-page .role-orbit {
        width: 135px;
        height: 135px;
        top: 42px;
        right: -50px;
    }

    .portal-home-page .portal-home-reference {
        margin-top: 13px;
        font-size: 9.5px;
    }
}

@media (max-width: 520px) {
    .portal-home-page .portal-home-shell {
        width: calc(100% - 14px);
    }

    .portal-home-page .portal-home-header {
        min-height: 66px;
    }

    .portal-home-page .brand img {
        width: 38px;
        height: 38px;
    }

    .portal-home-page .brand-copy strong {
        font-size: 16px;
    }

    .portal-home-page .portal-home-main {
        padding: 18px 0 14px;
    }

    .portal-home-page .portal-home-hero {
        margin-bottom: 13px;
    }

    .portal-home-page .portal-home-hero h1 {
        font-size: clamp(28px, 8.4vw, 36px);
        max-width: 340px;
    }

    .portal-home-page .portal-announcement {
        padding: 10px;
        align-items: flex-start;
    }

    .portal-home-page .portal-announcement-copy span {
        font-size: 10px;
    }

    .portal-home-page .portal-home-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .portal-home-page .role-card {
        min-height: 168px;
        padding: 12px;
        border-radius: 17px;
    }

    .portal-home-page .role-card::before {
        width: 105px;
        height: 105px;
        top: -52px;
        right: -30px;
    }

    .portal-home-page .role-card::after {
        width: 72px;
        height: 72px;
        right: 4px;
        bottom: -48px;
    }

    .portal-home-page .role-orbit {
        width: 104px;
        height: 104px;
        top: 44px;
        right: -42px;
    }

    .portal-home-page .role-orbit::before { inset: 20px; }
    .portal-home-page .role-orbit::after { inset: 40px; }

    .portal-home-page .role-icon {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .portal-home-page .role-icon svg {
        width: 19px;
        height: 19px;
    }

    .portal-home-page .role-number {
        font-size: 9px;
    }

    .portal-home-page .role-content {
        margin-top: 15px;
        gap: 4px;
        max-width: 140px;
    }

    .portal-home-page .role-content strong {
        font-size: 16.5px;
        line-height: 1.08;
    }

    .portal-home-page .role-content span {
        font-size: 9.5px;
        line-height: 1.3;
    }

    .portal-home-page .role-action {
        padding-top: 12px;
        gap: 5px;
    }

    .portal-home-page .role-action-label {
        min-height: 25px;
        padding: 0 8px;
        font-size: 8.5px;
        white-space: nowrap;
    }

    .portal-home-page .arrow-button {
        width: 25px;
        height: 25px;
    }

    .portal-home-page .portal-home-reference {
        margin-top: 11px;
        padding: 0 4px;
        font-size: 8.8px;
        line-height: 1.45;
    }

    .portal-home-page .portal-home-footer {
        min-height: 48px;
        font-size: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .portal-home-page *,
    .portal-home-page *::before,
    .portal-home-page *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
