.public-portal-page { min-width: 320px; color: #edf4ff; background: #0b1728; }
.public-portal-page .public-site-footer { color: #9fb0c8; background: #0b1728; border-top: 1px solid rgba(159,176,200,.15); }
.public-portal-page .public-site-footer a { color: #d9ac63; }
.public-portal-page .public-site-footer__tagline-link,.public-portal-page .public-site-footer__tagline-link:hover { text-decoration: none; }
.public-portal-page .public-site-footer__credits { display: inline-block; font-weight: 400; text-decoration: none; }
.portal-shell { min-height: calc(100vh - 112px); background: radial-gradient(circle at 50% -15%, #25486c 0, #14283f 36%, #0b1728 77%); }
.portal-header { display: flex; align-items: center; justify-content: space-between; width: min(1240px, calc(100% - 40px)); min-height: 82px; margin: auto; }
.portal-brand { display: inline-flex; gap: .8rem; align-items: center; color: #fff; text-decoration: none; }
.portal-brand__logo { width: 3.15rem; height: 3.15rem; object-fit: contain; }
.portal-brand strong,.portal-brand small { display: block; }.portal-brand strong { font-family: var(--e-service-font-family, 'Noto Sans Thai', sans-serif); font-size: 1.2rem; letter-spacing: -.01em; }.portal-brand small { margin-top: .12rem; color: #b8c7d9; font-size: .86rem; }
.public-portal-page:not(.portal-light) .portal-brand:hover,.public-portal-page:not(.portal-light) .portal-brand:hover small { color: #fff; }
.portal-header__actions { display: flex; align-items: center; gap: .45rem; }.portal-header__link,.portal-icon-button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 2.45rem; padding: 0 .75rem; color: #d9e6f5; background: transparent; border: 1px solid transparent; border-radius: .65rem; font: inherit; cursor: pointer; text-decoration: none; }.portal-header__link:hover,.portal-icon-button:hover { color: #fff; background: rgba(255,255,255,.1); }.portal-icon-button { width: 2.45rem; padding: 0; font-size: 1.1rem; }
.portal-theme-toggle { display: inline-flex; align-items: center; width: 3.35rem; height: 2rem; padding: .18rem; color: #0f2740; background: #cbd9e7; border: 1px solid rgba(184,207,232,.3); border-radius: 99px; cursor: pointer; transition: background .2s ease; }.portal-theme-toggle:hover { background: #e0e9f1; }.portal-theme-toggle__thumb { display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; color: #415c78; background: #fff; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,.22); transform: translateX(0); transition: transform .2s ease,background .2s ease,color .2s ease; }.portal-theme-toggle[aria-checked="true"] { background: #173753; }.portal-theme-toggle[aria-checked="true"] .portal-theme-toggle__thumb { color: #f0c76d; background: #234e72; transform: translateX(1.32rem); }.portal-theme-toggle svg { width: 1rem; height: 1rem; }
.portal-hero { width: min(920px, calc(100% - 40px)); padding: 50px 0 42px; margin: auto; text-align: center; }.portal-eyebrow { display: inline-flex; gap: .4rem; align-items: center; margin: 0 0 .85rem; color: #e5b767; font-size: .78rem; font-weight: 700; letter-spacing: .14em; }.portal-hero h1 { margin: 0; color: #fff; font-size: clamp(2rem,5vw,3.6rem); font-weight: 800; letter-spacing: -.05em; }.portal-hero > p:not(.portal-eyebrow) { margin: .9rem 0 1.8rem; color: #bdcadb; font-size: clamp(.95rem,2vw,1.1rem); }
.portal-search { display: flex; align-items: center; box-sizing: border-box; width: min(650px,100%); max-width: 100%; height: 3.2rem; padding: 0 .8rem 0 1.15rem; margin: auto; color: #a6b7ca; background: #fff; border: 1px solid rgba(255,255,255,.38); border-radius: 1rem; box-shadow: 0 18px 45px rgba(0,0,0,.23); }.portal-search i { flex: 0 0 auto; font-size: 1.35rem; }.portal-search input { flex: 1; min-width: 0; padding: .75rem; color: #17283b; background: transparent; border: 0; outline: 0; font: inherit; }.portal-search kbd { flex: 0 0 auto; padding: .25rem .45rem; color: #6e7e91; background: #edf1f5; border-radius: .35rem; font-size: .7rem; }
.portal-directory { width: min(1240px, calc(100% - 40px)); padding: 16px 0 58px; margin: auto; }.portal-tabs { display: flex; flex-wrap: wrap; gap: .55rem; }.portal-tab { padding: .6rem .85rem; color: #b9c8d8; background: rgba(255,255,255,.045); border: 1px solid rgba(184,207,232,.16); border-radius: .6rem; font: inherit; font-size: .86rem; cursor: pointer; }.portal-tab i { margin-right: .3rem; }.portal-tab:hover,.portal-tab.is-active { color: #fff; background: #2a5279; border-color: #4c759c; }.portal-directory__meta { display: flex; justify-content: space-between; gap: 1rem; padding: 1.4rem 0 1rem; color: #9eb0c4; font-size: .86rem; }.portal-directory__meta span:first-child { color: #f4f8ff; font-weight: 700; }
.portal-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; }.portal-card { position: relative; display: flex; flex-direction: column; min-height: 270px; padding: 1.25rem; overflow: hidden; color: #edf5ff; background: linear-gradient(150deg,rgba(31,58,87,.95),rgba(19,37,58,.96)); border: 1px solid rgba(161,190,221,.14); border-radius: 1rem; box-shadow: 0 12px 30px rgba(0,0,0,.14); cursor: pointer; transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease; }.portal-card:hover,.portal-card:focus { outline: 0; transform: translateY(-4px); border-color: rgba(229,183,103,.7); box-shadow: 0 18px 34px rgba(0,0,0,.28); }.portal-card[hidden] { display: none; }.portal-card__badge { position: absolute; top: .85rem; left: .85rem; padding: .22rem .45rem; border-radius: .35rem; font-size: .62rem; font-weight: 800; letter-spacing: .04em; }.portal-card__badge--hot { color: #fff1e6; background: #bf5941; }.portal-card__badge--new { color: #fdf4d7; background: #8f6a28; }.portal-card__badge--recommend { color: #f2eaff; background: #7758a6; }.portal-favourite { position: absolute; top: .75rem; right: .75rem; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 2.55rem; height: 2.55rem; color: #7d8ea3; background: rgba(255,255,255,.96); border: 1px solid rgba(255,255,255,.8); border-radius: 50%; box-shadow: 0 4px 12px rgba(11,28,47,.18); cursor: pointer; font-size: 1.25rem; transition: color .18s ease,background .18s ease,border-color .18s ease,transform .18s ease; }.portal-favourite:hover,.portal-favourite[aria-pressed="true"] { color: #d54e64; background: #fff0f2; border-color: #f4c8d0; transform: scale(1.06); }.portal-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 3.15rem; height: 3.15rem; margin: 2rem 0 1rem; color: #f1c873; background: rgba(230,182,93,.13); border: 1px solid rgba(230,182,93,.18); border-radius: .85rem; font-size: 1.55rem; }.portal-card:not(:has(.portal-card__badge)) .portal-card__icon { margin-top: .25rem; }.portal-card h2 { margin: 0; color: #fff; font-size: 1rem; font-weight: 700; line-height: 1.4; }.portal-card p { display: -webkit-box; margin: .5rem 0 1rem; overflow: hidden; color: #b6c4d5; font-size: .82rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }.portal-card__footer { display: flex; align-items: flex-end; justify-content: space-between; gap: .7rem; margin-top: auto; color: #e5b767; }.portal-card__footer > i { font-size: 1.15rem; }.portal-card__audiences { display: flex; flex-wrap: wrap; gap: .3rem; }.portal-card__audiences span { padding: .2rem .4rem; color: #b7c7d8; background: rgba(255,255,255,.07); border-radius: .28rem; font-size: .65rem; }
.portal-preference[hidden] { display: none; }.portal-preference { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 1rem; }.portal-preference__backdrop { position: absolute; inset: 0; background: rgba(4,11,20,.75); backdrop-filter: blur(4px); }.portal-preference__dialog { position: relative; width: min(500px,100%); padding: 2rem; color: #213347; background: #fff; border-radius: 1.15rem; box-shadow: 0 28px 60px rgba(0,0,0,.35); text-align: center; }.portal-preference__icon { display: inline-flex; align-items: center; justify-content: center; width: 3.3rem; height: 3.3rem; color: #795126; background: #fbebcd; border-radius: 1rem; font-size: 1.6rem; }.portal-preference h2 { margin: 1rem 0 .45rem; font-size: 1.45rem; }.portal-preference p { margin: 0 0 1.35rem; color: #637388; }.portal-preference__choices { display: grid; grid-template-columns: repeat(2,1fr); gap: .65rem; }.portal-preference__choices button { padding: .85rem; color: #34485f; background: #f5f7fa; border: 1px solid #e0e6ee; border-radius: .65rem; font: inherit; cursor: pointer; }.portal-preference__choices button:hover { color: #fff; background: #264c73; border-color: #264c73; }.portal-preference__choices i { display: block; margin-bottom: .35rem; font-size: 1.25rem; }
.public-portal-page.portal-light { color: #24364b; background: #edf3f8; }.portal-light .portal-shell { background: radial-gradient(circle at 50% -20%,#d8e5ef 0,#f3f6f8 42%,#e9eff4 100%); }.portal-light .portal-brand { color: #21364c; }.portal-light .portal-brand small,.portal-light .portal-hero > p:not(.portal-eyebrow),.portal-light .portal-directory__meta { color: #60758a; }.portal-light .portal-hero h1,.portal-light .portal-directory__meta span:first-child { color: #1e354d; }.portal-light .portal-tab { color: #52687f; background: rgba(255,255,255,.6); border-color: #d5e0e9; }.portal-light .portal-tab.is-active { color: #52687f; background: #fff; border-color: #d5e0e9; font-weight: 700; }.portal-light .portal-tab:hover { color: #213b56; background: #f2f6f9; border-color: #c4d4e1; }.portal-light .portal-card { color: #283d52; background: #fff; border-color: #dae4ec; box-shadow: 0 10px 25px rgba(45,67,91,.1); }.portal-light .portal-card h2 { color: #24394e; }.portal-light .portal-card p { color: #607386; }.portal-light .portal-card__audiences span { color: #50677f; background: #eef3f7; }.portal-light .public-site-footer { color: #60758a; background: #edf3f8; border-color: #d4dee7; }
.portal-light .portal-header__link,.portal-light .portal-icon-button { color: #3f5870; }.portal-light .portal-header__link:hover,.portal-light .portal-icon-button:hover { color: #213b56; background: rgba(65,100,133,.12); }.portal-light .portal-theme-toggle { background: #cbd9e7; border-color: #c2d1de; }.portal-light .portal-theme-toggle:hover { background: #b9cddd; }

/* Portal palette aligned with the e-Service Statistics dashboard tokens. */
.portal-card { min-height: 200px; padding: 1rem; }
.portal-card__icon { width: 3.45rem; height: 3.45rem; margin: 1.15rem 0 .7rem; font-size: 1.7rem; }
.portal-card:not(:has(.portal-card__badge)) .portal-card__icon { margin-top: .2rem; }
.portal-card p { margin: .4rem 0 .7rem; font-size: .9rem; -webkit-line-clamp: 2; }
.portal-card__badge { padding: .12rem .32rem; font-size: .5rem; }
.portal-card__footer { margin-top: 0.96rem; }
.portal-card__clicks { display: inline-flex; align-items: center; gap: .28rem; margin-left: auto; font-size: .72rem; font-weight: 600; line-height: 1; white-space: nowrap; }
.portal-card__clicks i { font-size: .92rem; }
.portal-directory { width: 90%; max-width: none; }
@media (min-width: 1600px) { .portal-directory { width: 80%; } }
@media (max-width: 1100px) { .portal-directory { width: 96%; } }
.portal-modal-open { overflow: hidden; }
.portal-app-modal[hidden] { display: none; }
.portal-app-modal { position: fixed; z-index: 1050; inset: 0; display: grid; place-items: center; padding: 1rem; }
.portal-app-modal__backdrop { position: absolute; inset: 0; background: rgba(17,24,39,.68); backdrop-filter: blur(4px); }
.portal-app-modal__dialog { position: relative; width: min(456px,100%); max-height: calc(100vh - 2rem); padding: 2.1rem 2rem 1.8rem; overflow-y: auto; color: #3f342a; background: #fff; border-radius: 1.5rem; box-shadow: 0 28px 70px rgba(0,0,0,.34); text-align: center; }
.portal-app-modal__close,.portal-app-modal__favourite { position: absolute; top: 1.15rem; display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; padding: 0; color: #8f857b; background: transparent; border: 0; border-radius: 50%; cursor: pointer; font-size: 1.35rem; }
.portal-app-modal__close { right: 1.15rem; }.portal-app-modal__favourite { left: 1.15rem; }
.portal-app-modal__close:hover { color: #6a4b2e; background: #f1e9de; }.portal-app-modal__favourite:hover,.portal-app-modal__favourite[aria-pressed="true"] { color: #d54e64; background: #fff0f2; }
.portal-app-modal__icon { display: inline-flex; align-items: center; justify-content: center; width: 5rem; height: 5rem; margin: .15rem auto 1.25rem; color: #6a4b2e; background: #f1e9de; border-radius: 1rem; font-size: 2.2rem; }
.portal-app-modal h2 { margin: 0; color: #3f342a; font-size: 1.65rem; font-weight: 800; }.portal-app-modal p { margin: .65rem 0 1.75rem; color: #6a5e52; font-size: .94rem; line-height: 1.65; }
.portal-app-modal__actions { display: grid; gap: .5rem; }.portal-app-modal__go,.portal-app-modal__manual { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 2.35rem; padding: .35rem .85rem; border-radius: .65rem; font-size: 1rem; font-weight: 700; text-decoration: none; }.portal-app-modal__go { color: #fff; background: #6a4b2e; box-shadow: 0 5px 12px rgba(106,75,46,.2); }.portal-app-modal__go:hover { color: #fff; background: #543a24; }.portal-app-modal__manual { color: #6a4b2e; background: #f8f5f1; border: 1px solid #e5ddd3; }.portal-app-modal__manual:hover { color: #543a24; background: #f1e9de; }
@media (max-width: 450px) { .portal-app-modal__dialog { padding: 2rem 1.3rem 1.35rem; border-radius: 1.2rem; }.portal-app-modal__close { right: .7rem; }.portal-app-modal__favourite { left: .7rem; }.portal-app-modal__icon { width: 4.4rem; height: 4.4rem; margin-bottom: 1rem; font-size: 1.9rem; }.portal-app-modal h2 { font-size: 1.45rem; }.portal-app-modal p { font-size: .88rem; } }
.portal-hero { padding: 10px 0 28px; }
@media (max-width: 760px) { .portal-hero { padding-top: 20px !important; padding-bottom: 24px; } }
.public-portal-page .portal-eyebrow { color: #ab824b !important; }
.public-portal-page:not(.portal-light) .portal-preference__dialog { color: #3f342a; }
.public-portal-page:not(.portal-light) .portal-preference__icon { color: #6a4b2e; background: #f1e9de; }
.public-portal-page:not(.portal-light) .portal-preference p { color: #6a5e52; }
.public-portal-page:not(.portal-light) .portal-preference__choices button { color: #6a5e52; background: #f8f5f1; border-color: #e5ddd3; }
.public-portal-page:not(.portal-light) .portal-preference__choices button:hover { color: #fff; background: #6a4b2e; border-color: #6a4b2e; }
.public-portal-page:not(.portal-light) { color: #f9fafb; background: #111827; }
.public-portal-page:not(.portal-light) .public-site-footer { color: #9ca3af; background: #111827; border-color: #1f2937; }
.public-portal-page:not(.portal-light) .public-site-footer a { color: #d1d5db; }
.public-portal-page:not(.portal-light) .portal-shell { background: radial-gradient(circle at 50% -15%,#1b2638 0,#111827 62%); }
.public-portal-page:not(.portal-light) .portal-brand small { color: #9ca3af; }
.public-portal-page:not(.portal-light) .portal-header__link,.public-portal-page:not(.portal-light) .portal-icon-button { color: #d1d5db; }
.public-portal-page:not(.portal-light) .portal-header__link:hover,.public-portal-page:not(.portal-light) .portal-icon-button:hover { color: #fff; background: #1f2937; }
.public-portal-page:not(.portal-light) .portal-theme-toggle { color: #d1d5db; background: #1f2937; border-color: #374151; }
.public-portal-page:not(.portal-light) .portal-theme-toggle:hover { background: #273449; }
.public-portal-page:not(.portal-light) .portal-theme-toggle__thumb { color: #d1d5db; background: #374151; }
.public-portal-page:not(.portal-light) .portal-theme-toggle[aria-checked="true"] { background: #1f2937; }
.public-portal-page:not(.portal-light) .portal-theme-toggle[aria-checked="true"] .portal-theme-toggle__thumb { color: #fbbf24; background: #374151; }
.public-portal-page:not(.portal-light) .portal-eyebrow,.public-portal-page:not(.portal-light) .portal-card__footer { color: #d1d5db; }
.public-portal-page:not(.portal-light) .portal-hero > p:not(.portal-eyebrow) { color: #9ca3af; }
.public-portal-page:not(.portal-light) .portal-search { color: #9ca3af; background: #1f2937; border-color: #374151; box-shadow: 0 18px 45px rgba(0,0,0,.24); }
.public-portal-page:not(.portal-light) .portal-search input { color: #f9fafb; }
.public-portal-page:not(.portal-light) .portal-search input::placeholder { color: #9ca3af; }
.public-portal-page:not(.portal-light) .portal-search kbd { color: #9ca3af; background: #374151; }
.public-portal-page:not(.portal-light) .portal-tab { color: #9ca3af; background: #1f2937; border-color: #1f2937; }
.public-portal-page:not(.portal-light) .portal-tab:hover,.public-portal-page:not(.portal-light) .portal-tab.is-active { color: #fff; background: #6a4b2e; border-color: #7d5c3b; }
.public-portal-page:not(.portal-light) .portal-directory__meta { color: #9ca3af; }
.public-portal-page:not(.portal-light) .portal-directory__meta span:first-child { color: #fff; }
.public-portal-page:not(.portal-light) .portal-card { color: #f9fafb; background: #1f2937; border-color: #374151; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.public-portal-page:not(.portal-light) .portal-card:hover,.public-portal-page:not(.portal-light) .portal-card:focus { border-color: #4b5563; box-shadow: 0 18px 34px rgba(0,0,0,.3); }
.public-portal-page:not(.portal-light) .portal-card__badge--new { background: #a07132; }
.public-portal-page:not(.portal-light) .portal-card__badge--recommend { background: #4b5563; }
.public-portal-page:not(.portal-light) .portal-favourite { color: #9ca3af; background: #374151; border-color: #4b5563; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.public-portal-page:not(.portal-light) .portal-favourite:hover,.public-portal-page:not(.portal-light) .portal-favourite[aria-pressed="true"] { color: #f87171; background: #3b2830; border-color: #7f3b4b; }
.public-portal-page:not(.portal-light) .portal-card__icon { color: #fbbf24; background: #273449; border-color: #374151; }
.public-portal-page:not(.portal-light) .portal-card p { color: #9ca3af; }
.public-portal-page:not(.portal-light) .portal-card__audiences span { color: #d1d5db; background: #374151; }

.public-portal-page.portal-light { color: #3f342a; background: #f8f5f1; }
.portal-light .portal-shell { background: radial-gradient(circle at 50% -20%,#ebe6df 0,#fff 43%,#f8f5f1 100%); }
.portal-light .portal-brand { color: #6a4b2e; }.portal-light .portal-brand small,.portal-light .portal-hero > p:not(.portal-eyebrow),.portal-light .portal-directory__meta { color: #6a5e52; }
.portal-light .portal-hero h1,.portal-light .portal-directory__meta span:first-child { color: #6a4b2e; }.portal-light .portal-eyebrow { color: #a07132; }
.portal-light .portal-header__link,.portal-light .portal-icon-button { color: #6a4b2e; }.portal-light .portal-header__link:hover,.portal-light .portal-icon-button:hover { color: #543a24; background: #ebe6df; }
.portal-light .portal-theme-toggle { background: #d6cbb9; border-color: #c7b18e; }.portal-light .portal-theme-toggle:hover { background: #c7b18e; }.portal-light .portal-theme-toggle__thumb { color: #6a4b2e; }
.portal-light .portal-tab { color: #6a5e52; background: #fff; border-color: #e5ddd3; }.portal-light .portal-tab.is-active { color: #6a4b2e; background: #fff; border-color: #c7b18e; }.portal-light .portal-tab:hover { color: #543a24; background: #f1e9de; border-color: #c7b18e; }
.portal-light .portal-card { color: #3f342a; background: #fff; border-color: #e5ddd3; box-shadow: 0 10px 25px rgba(63,52,42,.08); }.portal-light .portal-card h2 { color: #3f342a; }.portal-light .portal-card p { color: #6a5e52; }.portal-light .portal-card__icon { color: #6a4b2e; background: #f1e9de; border-color: #e5ddd3; }.portal-light .portal-card__audiences span { color: #6a5e52; background: #ebe6df; }.portal-light .portal-card__footer { color: #a07132; }
.portal-light .public-site-footer { color: #6a5e52; background: #f8f5f1; border-color: #e5ddd3; }.portal-light .public-site-footer a { color: #6a4b2e; }
.portal-light .portal-preference__dialog { color: #3f342a; }.portal-light .portal-preference__icon { color: #6a4b2e; background: #f1e9de; }.portal-light .portal-preference p { color: #6a5e52; }.portal-light .portal-preference__choices button { color: #6a5e52; background: #f8f5f1; border-color: #e5ddd3; }.portal-light .portal-preference__choices button:hover { color: #fff; background: #6a4b2e; border-color: #6a4b2e; }
@media (max-width: 1100px) { .portal-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } } @media (max-width: 760px) { .portal-header,.portal-directory,.portal-hero { width: min(100% - 28px,1240px); }.portal-header { min-height: 68px; }.portal-brand small,.portal-header__link span,.portal-search kbd { display: none; }.portal-hero { padding-top: 40px; }.portal-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }.portal-card { min-height: 245px; padding: 1rem; }.portal-directory__meta { padding-top: 1rem; }.portal-preference__dialog { padding: 1.5rem; } } @media (max-width: 450px) { .portal-grid { grid-template-columns: 1fr; }.portal-card { min-height: 215px; }.portal-preference__choices { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .portal-card { min-height: 215px; } } @media (max-width: 450px) { .portal-card { min-height: 195px; } }

/* Compact application-card design: badge and favourite controls sit above a
   low-contrast icon watermark so the service name remains the focal point. */
.portal-grid { gap: 1.35rem; }
.portal-card { min-height: 188px; padding: 1.55rem 1.25rem 1rem; border-radius: 1rem; box-shadow: 0 8px 18px rgba(63,52,42,.07); }
.portal-card:hover,.portal-card:focus { transform: translateY(-3px); box-shadow: 0 15px 28px rgba(63,52,42,.13); }
.portal-card__badge { top: 0; left: 0; z-index: 2; padding: .3rem .7rem; border: 1px solid transparent; border-radius: 0.9rem 0 .65rem 0; font-size: .56rem; letter-spacing: .06em; line-height: 1.1; }
.portal-card__badge--hot { color: #c53f4d; background: #fff0f1; border-color: #ffd4d8; }
.portal-card__badge--new { color: #177b61; background: #e4fff5; border-color: #b8f1df; }
.portal-card__badge--recommend { color: #9a6819; background: #fff6d9; border-color: #f5df9f; }
.portal-favourite { top: .8rem; right: .8rem; width: 1.75rem; height: 1.75rem; color: #9aa6b5; background: transparent; border: 0; box-shadow: none; font-size: 1.32rem; }
.portal-favourite:hover,.portal-favourite[aria-pressed="true"] { color: #d54e64; background: transparent; border-color: transparent; transform: scale(1.1); }
.portal-card__icon { position: absolute; right: -.15rem; bottom: -.4rem; z-index: 0; display: flex; width: 7rem; height: 7rem; margin: 0; color: #6a4b2e; background: transparent; border: 0; border-radius: 0; font-size: 6.7rem; line-height: 1; opacity: .06; transform: rotate(-10deg); pointer-events: none; }
.portal-card:not(:has(.portal-card__badge)) .portal-card__icon { margin: 0; }
.portal-card h2 { position: relative; z-index: 1; margin: .95rem 2.05rem 0 0; font-size: 1.08rem; line-height: 1.45; }
.portal-card:not(:has(.portal-card__badge)) h2 { margin-top: 0; }
.portal-card p { position: relative; z-index: 1; margin: .48rem 0 .65rem; font-size: .86rem; line-height: 1.55; -webkit-line-clamp: 2; }
.portal-card__footer { position: relative; z-index: 1; align-items: center; gap: .5rem; margin-top: auto; }
.portal-card__audiences { gap: .3rem; }
.portal-card__audiences span { padding: .22rem .48rem; border: 1px solid #e5ddd3; border-radius: .3rem; font-size: .62rem; line-height: 1; }
.portal-card__audiences .portal-card__audience--student { color: #946c13; background: #fff7d8; border-color: #f3dc8f; }
.portal-card__audiences .portal-card__audience--staff { color: #2d6487; background: #e7f4ff; border-color: #b9ddf4; }
.portal-card__audiences .portal-card__audience--general { color: #6a5e52; background: #f8f5f1; border-color: #e5ddd3; }
.portal-card__clicks { color: #907954; font-size: .67rem; }
.portal-card__clicks i { font-size: .85rem; }
.portal-light .portal-card { border-color: #e5ddd3; box-shadow: 0 8px 18px rgba(63,52,42,.07); }
.portal-light .portal-card:hover,.portal-light .portal-card:focus { border-color: #c7b18e; box-shadow: 0 15px 28px rgba(63,52,42,.13); }
.portal-light .portal-card__icon { color: #6a4b2e; }
.portal-light .portal-card__audiences span { color: #6a5e52; background: #f8f5f1; }
.public-portal-page:not(.portal-light) .portal-card { border-color: #374151; box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.public-portal-page:not(.portal-light) .portal-card:hover,.public-portal-page:not(.portal-light) .portal-card:focus { border-color: #6b7280; box-shadow: 0 15px 28px rgba(0,0,0,.3); }
.public-portal-page:not(.portal-light) .portal-card__icon { color: #d1d5db; opacity: .055; }
.public-portal-page:not(.portal-light) .portal-card__audiences span { border-color: #4b5563; }
.public-portal-page:not(.portal-light) .portal-card__audiences .portal-card__audience--student { color: #f8d87e; background: #51431d; border-color: #806728; }
.public-portal-page:not(.portal-light) .portal-card__audiences .portal-card__audience--staff { color: #9ed6f6; background: #183e5b; border-color: #286087; }
.public-portal-page:not(.portal-light) .portal-card__clicks { color: #d1d5db; }
@media (max-width: 760px) { .portal-grid { gap: .85rem; }.portal-card { min-height: 188px; padding: 1.45rem 1rem .9rem; }.portal-card h2 { font-size: 1rem; }.portal-card p { font-size: .81rem; } }
@media (max-width: 450px) { .portal-card { min-height: 178px; }.portal-card__icon { width: 6.2rem; height: 6.2rem; font-size: 5.8rem; } }

/* Let each card follow its own content height instead of stretching to the
   tallest item in the grid row. */
.portal-grid { align-items: start; }
.portal-card { min-height: 140px; padding: 1.75rem 1.45rem 1rem; }
.portal-card[draggable="true"] { cursor: grab; }
.portal-card.is-dragging { cursor: grabbing; opacity: .45; }
.portal-card.is-drag-over { border-color: #c7b18e; box-shadow: 0 0 0 3px rgba(199,177,142,.35); }
.portal-directory__actions { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .55rem; }
.portal-directory__sort-button,.portal-directory__reset-order { padding: .32rem .58rem; color: #6a5e52; background: transparent; border: 1px solid #d7c9b7; border-radius: .4rem; font: inherit; font-size: .75rem; cursor: pointer; }
.portal-directory__sort-button:hover,.portal-directory__reset-order:hover { color: #fff; background: #6a4b2e; border-color: #6a4b2e; }
.public-portal-page:not(.portal-light) .portal-directory__sort-button,.public-portal-page:not(.portal-light) .portal-directory__reset-order { color: #d1d5db; border-color: #4b5563; }
.public-portal-page:not(.portal-light) .portal-directory__sort-button:hover,.public-portal-page:not(.portal-light) .portal-directory__reset-order:hover { color: #fff; background: #6a4b2e; border-color: #7d5c3b; }
@media (max-width: 760px) { .portal-card { padding: 1.6rem 1.2rem 1.1rem; } }
