/* NSWF student portal - redesign of November 2026 (Figma: NSWF - Student Portal Redesign). */

.nswf-portal-page {
	--p-green-900: #0e3b2c;
	--p-green-700: #0b7a45;
	--p-green-100: #cfe9dc;
	--p-green-50: #e6f4ec;
	--p-ink-900: #16201b;
	--p-ink-600: #55625b;
	--p-ink-400: #87938c;
	--p-line-200: #dde3dc;
	--p-line-100: #ecf0ec;
	--p-surface: #f5f7f4;
	--p-amber-50: #fcf1da;
	--p-amber-700: #7a5300;
	--p-red-700: #b42318;
	--p-red-50: #fdecea;
}

/* ---------------------------------------------------------------- band */

.nswf-page-head--portal {
	padding-top: 36px !important;
	padding-bottom: 36px !important;
}

.nswf-page-head--portal > .alignwide {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	column-gap: 24px;
}

.nswf-page-head--portal > .alignwide > * {
	grid-column: 1;
	margin-block: 0;
}

.nswf-page-head--portal .nswf-crumbs {
	font-size: 13px;
	line-height: 20px;
	margin-bottom: 8px;
	color: var(--p-green-100);
}

.nswf-page-head--portal .wp-block-post-title {
	font-size: 30px;
	line-height: 40px;
	font-weight: 600;
}

.nswf-page-head--portal .nswf-band-year {
	grid-column: 2;
	grid-row: 1 / span 2;
	align-self: end;
	margin: 0;
	padding: 6px 14px;
	border: 1px solid #fff;
	border-radius: 999px;
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	line-height: 20px;
	white-space: nowrap;
}

/* ---------------------------------------------------------------- page */

.nswf-portal-page .nswf-section:has(.nswf-portal) {
	background: var(--p-surface);
	padding-top: 40px;
	padding-bottom: 80px;
}

.nswf-portal {
	display: grid;
	grid-template-columns: 296px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
	color: var(--p-ink-900);
	font-size: 15px;
	line-height: 1.6;
}

.nswf-portal__side {
	grid-column: 1;
	grid-row: 1;
	position: sticky;
	top: 96px;
}

.nswf-portal__main {
	grid-column: 2;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.nswf-portal__main > * {
	margin: 0 !important;
}

.nswf-portal--apply {
	grid-template-columns: minmax(0, 1fr) 328px;
}

.nswf-portal--apply .nswf-portal__main {
	grid-column: 1;
}

.nswf-portal--apply .nswf-portal__side {
	grid-column: 2;
}

.nswf-portal h2,
.nswf-portal h3 {
	margin: 0;
	color: var(--p-ink-900);
	letter-spacing: 0;
}

.nswf-portal p {
	margin: 0;
}

/* ---------------------------------------------------------------- nav */

.nswf-pnav {
	background: #fff;
	border: 1px solid var(--p-line-200);
	border-radius: 16px;
	padding: 8px;
}

.nswf-pnav__who {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 12px 16px;
	border-bottom: 1px solid var(--p-line-100);
	margin-bottom: 2px;
}

.nswf-pnav__avatar {
	flex: none;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	background: var(--p-green-50);
	color: var(--p-green-700);
	font-weight: 600;
	font-size: 16px;
}

.nswf-pnav__id {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.nswf-pnav__id b {
	font-size: 15px;
	line-height: 22px;
	font-weight: 600;
}

.nswf-pnav__id span {
	font-size: 13px;
	line-height: 20px;
	color: var(--p-ink-600);
	text-align: start;
	unicode-bidi: plaintext;
}

.nswf-pnav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.nswf-pnav__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 14px;
	border-radius: 12px;
	color: var(--p-ink-900);
	font-size: 15px;
	line-height: 22px;
	text-decoration: none;
}

.nswf-pnav__item:hover {
	background: var(--p-surface);
	color: var(--p-ink-900);
}

.nswf-pnav__item.is-on {
	background: var(--p-green-50);
	color: var(--p-green-700);
	font-weight: 600;
}

.nswf-pnav__mark {
	flex: none;
	width: 9px;
	height: 9px;
	background: var(--p-line-200);
	-webkit-mask: url(portal/nav-marker.svg) center / contain no-repeat;
	mask: url(portal/nav-marker.svg) center / contain no-repeat;
}

.nswf-pnav__item.is-on .nswf-pnav__mark {
	background: var(--p-green-700);
}

.nswf-pnav__label {
	flex: 1;
}

.nswf-pnav__count {
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--p-amber-50);
	color: var(--p-amber-700);
	font-size: 12px;
	line-height: 18px;
	font-weight: 600;
}

.nswf-pnav__out {
	margin: 2px 0 0;
	padding-top: 2px;
	border-top: 1px solid var(--p-line-100);
}

.nswf-pnav__out .wp-element-button {
	all: unset;
	box-sizing: border-box;
	display: block;
	width: 100%;
	padding: 11px 14px 11px 33px;
	border-radius: 12px;
	color: var(--p-ink-600);
	font-size: 15px;
	line-height: 22px;
	text-align: start;
	cursor: pointer;
}

[dir="rtl"] .nswf-pnav__out .wp-element-button,
.rtl .nswf-pnav__out .wp-element-button {
	padding: 11px 33px 11px 14px;
}

.nswf-pnav__out .wp-element-button:hover {
	background: var(--p-surface);
}

.nswf-pnav__out .wp-element-button:focus-visible,
.nswf-pnav__item:focus-visible {
	outline: 2px solid var(--p-green-700);
	outline-offset: 2px;
}

/* ---------------------------------------------------------------- shared bits */

.nswf-pbox {
	background: #fff;
	border: 1px solid var(--p-line-200);
	border-radius: 16px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

fieldset.nswf-pbox {
	margin: 0;
}

.nswf-pbox__t {
	font-size: 18px !important;
	line-height: 26px;
	font-weight: 600;
}

.nswf-pbox--row {
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 24px;
}

.nswf-pbox--row h3 {
	font-size: 15px;
	line-height: 24px;
	font-weight: 600;
}

.nswf-pbox--row p {
	font-size: 13px;
	line-height: 20px;
	color: var(--p-ink-600);
}

.nswf-pfine {
	font-size: 13px;
	line-height: 20px;
	color: var(--p-ink-600);
}

.nswf-pgrey {
	background: var(--p-surface);
	border-radius: 12px;
	padding: 12px 16px;
	font-size: 13px;
	line-height: 20px;
	color: var(--p-ink-600);
}

.nswf-pback a {
	display: inline-flex;
	gap: 6px;
	color: var(--p-green-700);
	font-size: 14px;
	line-height: 22px;
	font-weight: 500;
	text-decoration: none;
}

.nswf-pback a:hover {
	text-decoration: underline;
}

.nswf-pquiet {
	color: var(--p-green-700);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

.nswf-pquiet:hover {
	text-decoration: underline;
}

/* Buttons */

.nswf-pbtn,
.nswf-portal .nswf-pbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	border: 1px solid var(--p-green-700);
	border-radius: 999px;
	background: var(--p-green-700);
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 24px;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}

.nswf-pbtn:hover {
	background: var(--p-green-900);
	border-color: var(--p-green-900);
	color: #fff;
}

.nswf-pbtn:focus-visible {
	outline: 2px solid var(--p-green-700);
	outline-offset: 2px;
}

.nswf-pbtn--ghost,
.nswf-portal .nswf-pbtn--ghost {
	background: #fff;
	border-color: var(--p-line-200);
	color: var(--p-ink-900);
}

.nswf-pbtn--ghost:hover {
	background: var(--p-surface);
	border-color: var(--p-line-200);
	color: var(--p-ink-900);
}

.nswf-pbtn--danger,
.nswf-portal .nswf-pbtn--danger {
	background: var(--p-red-700);
	border-color: var(--p-red-700);
	color: #fff;
}

.nswf-pbtn--danger:hover {
	background: #8f1c13;
	border-color: #8f1c13;
}

.nswf-pbtn--danger-ghost,
.nswf-portal .nswf-pbtn--danger-ghost {
	background: #fff;
	border-color: var(--p-red-700);
	color: var(--p-red-700);
}

.nswf-pbtn--danger-ghost:hover {
	background: var(--p-red-50);
	color: var(--p-red-700);
	border-color: var(--p-red-700);
}

.nswf-pbtn--block {
	width: 100%;
}

.nswf-pbtn[disabled],
.nswf-pbtn[disabled]:hover {
	background: var(--p-line-100);
	border-color: var(--p-line-100);
	color: var(--p-ink-400);
	cursor: not-allowed;
}

/* Notices */

.nswf-pnote {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 16px 20px;
	border-radius: 14px;
	background: var(--p-green-50);
	color: var(--p-green-900);
}

.nswf-pnote__icon {
	flex: none;
	width: 14px;
	height: 14px;
	margin-top: 5px;
	background: url(portal/notice-info.svg) center / contain no-repeat;
}

.nswf-pnote--warn {
	background: var(--p-amber-50);
	color: var(--p-amber-700);
}

.nswf-pnote--warn .nswf-pnote__icon {
	background-image: url(portal/notice-warn.svg);
}

.nswf-pnote__t {
	font-size: 15px;
	line-height: 24px;
	font-weight: 600;
}

.nswf-pnote__b {
	font-size: 14px;
	line-height: 22px;
}

/* Chips */

.nswf-pchip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--p-line-100);
	color: var(--p-ink-600);
	font-size: 13px;
	font-weight: 500;
	line-height: 20px;
	white-space: nowrap;
	flex: none;
}

.nswf-pchip::before {
	content: "";
	width: 8px;
	height: 8px;
	background: currentColor;
	-webkit-mask: url(portal/chip-diamond-neutral.svg) center / contain no-repeat;
	mask: url(portal/chip-diamond-neutral.svg) center / contain no-repeat;
}

.nswf-pchip--pending {
	background: var(--p-amber-50);
	color: var(--p-amber-700);
}

.nswf-pchip--ok {
	background: var(--p-green-50);
	color: var(--p-green-700);
}

.nswf-pchip--bad {
	background: var(--p-red-50);
	color: var(--p-red-700);
}

/* Label / value fields, two columns */

.nswf-pfields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 32px;
	margin: 0;
}

.nswf-pfield {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 0;
	border-bottom: 1px solid var(--p-line-100);
	min-width: 0;
}

.nswf-pfields > .nswf-pfield:nth-last-child(1),
.nswf-pfields > .nswf-pfield:nth-last-child(2):nth-child(odd) {
	border-bottom: 0;
}

.nswf-pfield dt {
	font-size: 13px;
	line-height: 20px;
	color: var(--p-ink-600);
	font-weight: 400;
}

.nswf-pfield dd {
	margin: 0;
	font-size: 15px;
	line-height: 24px;
	font-weight: 500;
	overflow-wrap: anywhere;
}

.nswf-pfield dd[dir="ltr"] {
	text-align: start;
	unicode-bidi: plaintext;
}

/* Section heads */

.nswf-psec {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.nswf-psec__h {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.nswf-psec__h h2 {
	font-size: 20px !important;
	line-height: 28px;
	font-weight: 600;
}

.nswf-psec__h p {
	font-size: 14px;
	line-height: 22px;
	color: var(--p-ink-600);
}

/* ---------------------------------------------------------------- services */

.nswf-plist-cards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.nswf-pcard {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 24px;
	background: #fff;
	border: 1px solid var(--p-line-200);
	border-radius: 16px;
}

.nswf-pcard__info {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.nswf-pcard__cat {
	font-size: 13px;
	line-height: 20px;
	font-weight: 500;
	color: var(--p-green-700);
}

.nswf-pcard__name {
	font-size: 22px !important;
	line-height: 30px;
	font-weight: 600;
}

.nswf-pcard__desc {
	font-size: 14px;
	line-height: 22px;
	color: var(--p-ink-600);
}

.nswf-pcard__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	font-size: 14px;
	line-height: 22px;
	color: var(--p-ink-600);
}

.nswf-pcard__meta b {
	color: var(--p-ink-900);
	font-weight: 600;
}

.nswf-pcard__sep {
	width: 1px;
	height: 16px;
	background: var(--p-line-200);
}

.nswf-prows {
	list-style: none;
	margin: 0;
	padding: 4px 24px;
	background: #fff;
	border: 1px solid var(--p-line-200);
	border-radius: 16px;
}

.nswf-prow {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 0;
	border-bottom: 1px solid var(--p-line-100);
}

.nswf-prow:last-child {
	border-bottom: 0;
}

.nswf-prow__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.nswf-prow__text h3 {
	font-size: 16px !important;
	line-height: 24px;
	font-weight: 600;
}

.nswf-prow__text p {
	font-size: 14px;
	line-height: 22px;
	color: var(--p-ink-600);
}

/* Requests list rows are links. */

.nswf-prows--links .nswf-prow {
	padding: 0;
}

.nswf-prow__link {
	display: flex;
	align-items: center;
	gap: 24px;
	width: 100%;
	padding: 20px 0;
	color: inherit;
	text-decoration: none;
}

.nswf-prow__link:hover .nswf-prow__name {
	color: var(--p-green-700);
}

.nswf-prow__link .nswf-prow__text {
	flex: 1;
}

.nswf-prow__name {
	font-size: 17px;
	line-height: 26px;
	font-weight: 600;
}

.nswf-prow__meta {
	font-size: 13px;
	line-height: 20px;
	color: var(--p-ink-600);
}

.nswf-prow__next {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 12px;
	line-height: 18px;
	color: var(--p-ink-600);
}

.nswf-prow__next b {
	font-size: 14px;
	line-height: 22px;
	font-weight: 500;
	color: var(--p-amber-700);
}

.nswf-prow__end {
	display: flex;
	align-items: center;
	gap: 16px;
}

.nswf-prow__arrow {
	font-size: 18px;
	color: var(--p-ink-400);
}

/* Empty state */

.nswf-pempty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 56px 40px;
	background: #fff;
	border: 1px solid var(--p-line-200);
	border-radius: 16px;
	text-align: center;
}

.nswf-pempty__mark {
	display: grid;
	place-items: center;
	width: 96px;
	height: 96px;
	border-radius: 999px;
	background: var(--p-green-50);
}

.nswf-pempty__mark img {
	width: 64px;
	height: 64px;
}

.nswf-pempty h2 {
	font-size: 18px !important;
	line-height: 26px;
	font-weight: 600;
}

.nswf-pempty p {
	font-size: 15px;
	line-height: 24px;
	color: var(--p-ink-600);
	max-width: 46ch;
}

/* ---------------------------------------------------------------- request */

.nswf-pstatus {
	gap: 24px;
}

.nswf-pstatus__h {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.nswf-pstatus__h > div {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.nswf-pstatus__h h2 {
	font-size: 22px !important;
	line-height: 30px;
	font-weight: 600;
}

.nswf-pstatus__h p {
	font-size: 14px;
	line-height: 22px;
	color: var(--p-ink-600);
}

.nswf-ptime {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.nswf-ptime__step {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	text-align: center;
}

.nswf-ptime__step b {
	font-size: 14px;
	line-height: 22px;
	font-weight: 600;
}

.nswf-ptime__step span {
	font-size: 13px;
	line-height: 20px;
	color: var(--p-ink-600);
}

.nswf-ptime__step.is-next b {
	font-weight: 400;
	color: var(--p-ink-600);
}

.nswf-ptime__step.is-current span {
	color: var(--p-amber-700);
}

.nswf-ptime__mark {
	position: relative;
	z-index: 1;
	width: 28px;
	height: 28px;
	background: url(portal/step-upcoming.svg) center / 26px no-repeat;
}

.nswf-ptime__step.is-done .nswf-ptime__mark {
	background: url(portal/step-check.svg) center / 12px no-repeat, url(portal/step-done.svg) center / 26px no-repeat;
}

.nswf-ptime__step.is-current .nswf-ptime__mark {
	background: url(portal/step-core.svg) center / 10px no-repeat, url(portal/step-current.svg) center / 26px no-repeat;
}

/* Connector from this step's marker to the next one. */
.nswf-ptime__step:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 13px;
	inset-inline-start: calc(50% + 20px);
	width: calc(100% - 40px + 12px);
	height: 2px;
	background: var(--p-line-200);
}

.nswf-ptime__step.is-done:not(:last-child)::after {
	background: var(--p-green-700);
}

/* Assigned bed */

.nswf-pbed {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 20px 24px;
	border: 1px solid var(--p-green-700);
	border-radius: 16px;
	background: var(--p-green-50);
}

.nswf-pbed h3 {
	font-size: 18px !important;
	line-height: 26px;
	font-weight: 600;
}

.nswf-pbed__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 16px;
}

.nswf-pbed__grid li {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 16px;
	border-radius: 12px;
	background: #fff;
}

.nswf-pbed__grid span {
	font-size: 13px;
	line-height: 20px;
	color: var(--p-ink-600);
}

.nswf-pbed__grid b {
	font-size: 18px;
	line-height: 26px;
	font-weight: 600;
}

/* Payment */

.nswf-ppay {
	gap: 20px;
}

.nswf-pfigs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
}

.nswf-pfig {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 18px;
	border-radius: 14px;
	background: var(--p-surface);
}

.nswf-pfig span {
	font-size: 13px;
	line-height: 20px;
	color: var(--p-ink-600);
}

.nswf-pfig b {
	font-size: 20px;
	line-height: 28px;
	font-weight: 700;
}

.nswf-pfig em {
	font-style: normal;
	font-size: 13px;
	line-height: 20px;
	font-weight: 500;
	color: var(--p-amber-700);
}

.nswf-ppay__h {
	font-size: 14px;
	line-height: 22px;
	font-weight: 600;
}

.nswf-pbanks {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.nswf-pbank {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 16px;
	border: 1px solid var(--p-line-200);
	border-radius: 14px;
}

.nswf-pbank__t {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.nswf-pbank__t span {
	font-size: 13px;
	line-height: 20px;
	color: var(--p-ink-600);
}

.nswf-pbank__t b {
	font-size: 20px;
	line-height: 28px;
	font-weight: 600;
	text-align: start;
	unicode-bidi: plaintext;
}

/* Cancel dialog */

.nswf-pdlg {
	width: min(480px, calc(100vw - 32px));
	padding: 28px;
	border: 0;
	border-radius: 20px;
	background: #fff;
	color: var(--p-ink-900);
	box-shadow: 0 24px 48px rgba(13, 26, 20, .25);
}

.nswf-pdlg::backdrop {
	background: rgba(14, 59, 44, .45);
}

/* Without script the cancel button is a link to the dialog. */
.nswf-pdlg:target {
	display: block;
	position: fixed;
	inset: 0;
	margin: auto;
	height: fit-content;
	z-index: 1000;
}

.nswf-pdlg form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.nswf-pdlg h2 {
	margin: 0;
	font-size: 20px;
	line-height: 28px;
	font-weight: 600;
}

.nswf-pdlg p {
	margin: 0;
	font-size: 15px;
	line-height: 24px;
	color: var(--p-ink-600);
}

.nswf-pdlg__actions {
	display: flex;
	gap: 12px;
	padding-top: 12px;
}

/* ---------------------------------------------------------------- apply */

.nswf-papply__h h2 {
	font-size: 22px !important;
	line-height: 30px;
	font-weight: 600;
}

.nswf-papply__h p {
	font-size: 14px;
	line-height: 22px;
	color: var(--p-ink-600);
}

.nswf-pstep {
	gap: 20px;
}

.nswf-pstep__h {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.nswf-pstep__n {
	flex: none;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 999px;
	background: var(--p-green-50);
	color: var(--p-green-700);
	font-size: 14px;
	font-weight: 600;
}

.nswf-pstep__h h3 {
	font-size: 18px !important;
	line-height: 26px;
	font-weight: 600;
}

.nswf-pstep__h p {
	font-size: 14px;
	line-height: 22px;
	color: var(--p-ink-600);
}

.nswf-pdorms {
	gap: 12px;
}

.nswf-pdorms .nswf-pstep__h {
	margin-bottom: 8px;
}

.nswf-pdorms__complex {
	font-size: 13px;
	font-weight: 600;
	color: var(--p-ink-600);
}

.nswf-pdorm {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 18px;
	border: 1.5px solid var(--p-line-200);
	border-radius: 14px;
	background: #fff;
	cursor: pointer;
	transition: border-color .15s, background-color .15s;
}

.nswf-pdorm:hover {
	border-color: var(--p-green-700);
}

.nswf-pdorm input {
	position: absolute;
	opacity: 0;
	inset-inline-start: 18px;
	width: 20px;
	height: 20px;
	margin: 0;
}

.nswf-pdorm__radio {
	flex: none;
	width: 20px;
	height: 20px;
	background: url(portal/radio-off.svg) center / contain no-repeat;
}

.nswf-pdorm:has(input:checked) {
	border-color: var(--p-green-700);
	background: var(--p-green-50);
}

.nswf-pdorm:has(input:checked) .nswf-pdorm__radio {
	background-image: url(portal/radio-on.svg);
}

.nswf-pdorm:has(input:focus-visible) {
	outline: 2px solid var(--p-green-700);
	outline-offset: 2px;
}

.nswf-pdorm.is-full {
	opacity: .55;
	cursor: not-allowed;
}

.nswf-pdorm__img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 10px;
	flex: none;
}

.nswf-pdorm__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.nswf-pdorm__body b {
	font-size: 16px;
	line-height: 24px;
	font-weight: 600;
}

.nswf-pdorm__body span,
.nswf-pdorm__body a {
	font-size: 13px;
	line-height: 20px;
	color: var(--p-ink-600);
}

.nswf-pdorm__body a {
	color: var(--p-green-700);
}

.nswf-pdorm__beds {
	flex: none;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--p-surface);
	color: var(--p-ink-600);
	font-size: 13px;
	font-weight: 500;
	line-height: 20px;
}

.nswf-pdorm:has(input:checked) .nswf-pdorm__beds {
	background: #fff;
}

.nswf-pinput,
.nswf-portal .nswf-settings input[type="email"],
.nswf-portal .nswf-settings input[type="password"],
.nswf-portal .nswf-settings input[type="text"] {
	box-sizing: border-box;
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid var(--p-line-200);
	border-radius: 12px;
	background: #fff;
	color: var(--p-ink-900);
	font: inherit;
	font-size: 15px;
	line-height: 24px;
}

.nswf-pinput:focus,
.nswf-portal .nswf-settings input:focus {
	outline: none;
	border-color: var(--p-green-700);
	box-shadow: 0 0 0 3px var(--p-green-50);
}

.nswf-pinput::placeholder {
	color: var(--p-ink-400);
}

textarea.nswf-pinput {
	min-height: 112px;
	resize: vertical;
}

/* Summary panel */

.nswf-psum {
	position: sticky;
	top: 96px;
	gap: 16px;
}

.nswf-psum__rows {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--p-line-100);
}

.nswf-psum__rows div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 14px;
	line-height: 22px;
}

.nswf-psum__rows dt {
	color: var(--p-ink-600);
}

.nswf-psum__rows dd {
	margin: 0;
	font-weight: 500;
	text-align: end;
}

.nswf-psum__rows dd.is-empty {
	color: var(--p-ink-400);
	font-weight: 400;
}

.nswf-psum__fee {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	font-size: 14px;
	color: var(--p-ink-600);
}

.nswf-psum__fee b {
	font-size: 24px;
	line-height: 30px;
	font-weight: 700;
	color: var(--p-ink-900);
}

.nswf-psum__next {
	padding: 14px 16px;
	border-radius: 12px;
	background: var(--p-surface);
	font-size: 13px;
	line-height: 20px;
	color: var(--p-ink-600);
}

.nswf-psum__next b {
	color: var(--p-ink-900);
	font-weight: 600;
}

.nswf-psum__next ul {
	margin: 8px 0 0;
	padding-inline-start: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.nswf-psum__rules {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.nswf-psum__rules details {
	border: 1px solid var(--p-line-200);
	border-radius: 12px;
	padding: 10px 14px;
	font-size: 14px;
}

.nswf-psum__rules summary {
	cursor: pointer;
	font-weight: 600;
}

.nswf-psum__rules .nswf-policies__text {
	white-space: pre-line;
	margin: 8px 0 0;
	font-size: 13px;
	line-height: 20px;
	color: var(--p-ink-600);
	max-height: 240px;
	overflow: auto;
}

.nswf-pcheck {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 14px;
	line-height: 22px;
	cursor: pointer;
}

.nswf-pcheck input {
	margin-top: 4px;
	accent-color: var(--p-green-700);
}

.nswf-psum__hint {
	text-align: center;
}

/* ---------------------------------------------------------------- account */

.nswf-profile {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.nswf-pcardx {
	gap: 12px;
	padding: 22px 24px;
}

.nswf-pcardx__h {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.nswf-pcardx__h p {
	font-size: 13px;
	line-height: 20px;
	color: var(--p-ink-600);
}

.nswf-pchosen {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.nswf-pchosen li {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 0;
	border-bottom: 1px solid var(--p-line-100);
}

.nswf-pchosen li:last-child {
	border-bottom: 0;
}

.nswf-pchosen b {
	font-size: 15px;
	font-weight: 600;
}

.nswf-pchosen span {
	font-size: 13px;
	color: var(--p-ink-600);
}

/* Settings */

.nswf-puser {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 24px;
	border-radius: 16px;
	background: var(--p-green-50);
}

.nswf-puser__l {
	font-size: 13px;
	line-height: 20px;
	font-weight: 500;
	color: var(--p-green-700);
}

.nswf-puser__v {
	font-size: 22px;
	line-height: 30px;
	font-weight: 600;
	text-align: start;
	unicode-bidi: plaintext;
}

.nswf-portal .nswf-settings {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.nswf-portal .nswf-fcard {
	background: #fff;
	border: 1px solid var(--p-line-200);
	border-radius: 16px;
	padding: 22px 24px 24px;
	margin: 0;
	box-shadow: none;
}

.nswf-portal .nswf-fcard .nswf-apply__h {
	margin: 0;
	font-size: 18px;
	line-height: 26px;
	font-weight: 600;
}

.nswf-portal .nswf-fcard__sub {
	margin: 2px 0 18px;
	font-size: 13px;
	line-height: 20px;
	color: var(--p-ink-600);
	opacity: 1;
}

.nswf-portal .nswf-fcard .nswf-form {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
	margin: 0;
}

.nswf-portal .nswf-fcard .nswf-form > p {
	margin: 0;
}

.nswf-portal .nswf-fcard .nswf-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: min(400px, 100%);
	margin: 0;
}

.nswf-portal .nswf-fcard .nswf-field > label {
	font-size: 14px;
	line-height: 22px;
	font-weight: 600;
}

.nswf-portal .nswf-fcard .nswf-field .nswf-fine {
	font-size: 13px;
	line-height: 20px;
	color: var(--p-ink-600);
	opacity: 1;
}

.nswf-portal .nswf-pgrid2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 400px));
	gap: 24px;
	width: 100%;
}

.nswf-portal .nswf-pgrid2 .nswf-field {
	width: auto;
}

.nswf-portal .nswf-fcard button[type="submit"] {
	padding: 12px 24px;
	border-radius: 999px;
	background: var(--p-green-700);
	border: 1px solid var(--p-green-700);
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	line-height: 24px;
}

.nswf-ppw {
	position: relative;
	display: block;
}

.nswf-ppw input {
	padding-inline-end: 72px !important;
}

.nswf-ppw__toggle {
	all: unset;
	position: absolute;
	inset-inline-end: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--p-green-700);
	font-size: 13px;
	font-weight: 500;
	line-height: 20px;
	cursor: pointer;
}

.nswf-ppw__toggle:focus-visible {
	outline: 2px solid var(--p-green-700);
	outline-offset: 2px;
	border-radius: 4px;
}

.nswf-psession {
	padding: 4px;
}

/* The first-visit interests step, inside the shell. */
.nswf-portal .nswf-interests,
.nswf-portal .nswf-int {
	background: #fff;
	border: 1px solid var(--p-line-200);
	border-radius: 16px;
	padding: 24px;
}

/* Year picker inside the shell. */
.nswf-portal .nswf-year-pick {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px;
	padding: 16px 20px;
	background: #fff;
	border: 1px solid var(--p-line-200);
	border-radius: 16px;
}

/* ---------------------------------------------------------------- small screens */

@media (max-width: 960px) {
	.nswf-portal,
	.nswf-portal--apply {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.nswf-portal__side,
	.nswf-portal__main,
	.nswf-portal--apply .nswf-portal__main,
	.nswf-portal--apply .nswf-portal__side {
		grid-column: 1;
		grid-row: auto;
		position: static;
	}

	/* The menu becomes a row of tabs above the screen. */
	.nswf-portal:not(.nswf-portal--apply) .nswf-portal__side {
		order: -1;
	}

	.nswf-pnav {
		padding: 6px;
	}

	.nswf-pnav__who {
		display: none;
	}

	.nswf-pnav__list {
		flex-direction: row;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.nswf-pnav__item {
		white-space: nowrap;
		padding: 9px 12px;
	}

	.nswf-pnav__mark {
		display: none;
	}

	.nswf-pnav__out {
		display: none;
	}

	.nswf-psum {
		position: static;
	}

	.nswf-page-head--portal > .alignwide {
		grid-template-columns: minmax(0, 1fr);
	}

	.nswf-page-head--portal .nswf-band-year {
		grid-column: 1;
		grid-row: auto;
		justify-self: start;
		margin-top: 12px;
	}
}

@media (max-width: 640px) {
	.nswf-pfields {
		grid-template-columns: minmax(0, 1fr);
	}

	.nswf-pfields > .nswf-pfield:nth-last-child(2):nth-child(odd) {
		border-bottom: 1px solid var(--p-line-100);
	}

	.nswf-pcard,
	.nswf-pbox--row,
	.nswf-pbank,
	.nswf-puser {
		flex-direction: column;
		align-items: stretch;
	}

	.nswf-prow__link {
		flex-wrap: wrap;
		gap: 12px;
	}

	.nswf-prow__link .nswf-prow__text {
		flex-basis: 100%;
	}

	.nswf-portal .nswf-pgrid2 {
		grid-template-columns: minmax(0, 1fr);
	}

	.nswf-pbox {
		padding: 20px;
	}

	.nswf-ptime__step b {
		font-size: 13px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nswf-pbtn,
	.nswf-pdorm {
		transition: none;
	}
}

/* ---------------------------------------------------------------- theme overrides */

.nswf-portal .nswf-profile,
.nswf-portal .nswf-settings,
.nswf-portal .nswf-sheet {
	max-width: none;
	width: 100%;
	margin: 0;
}

.nswf-portal .nswf-pnav__out .wp-element-button,
.nswf-portal .nswf-pnav__out .wp-element-button.is-style-nswf-ghost {
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	min-height: 0;
}

.nswf-portal .nswf-pnav__out .wp-element-button:hover {
	background: var(--p-surface) !important;
}

.nswf-pdlg[open] {
	position: fixed;
	inset: 0;
	margin: auto !important;
	height: fit-content;
	max-height: calc(100vh - 32px);
}

/* The theme hides dialogs it does not own; this one must show when open. */
.nswf-pdlg[open],
.nswf-pdlg:target {
	display: block !important;
	position: fixed;
	inset: 0;
	margin: auto !important;
	height: fit-content;
	max-width: calc(100vw - 32px);
}

.nswf-pcard__done {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: none;
}

/* No white strip between the band and the portal's grey background. */
.nswf-portal-page .wp-block-post-content:has(.nswf-portal) {
	margin-block-start: 0 !important;
}

/* Numbers (username, IDs, account numbers) line up with the Arabic text above them. */
html[dir="rtl"] .nswf-portal [dir="ltr"] {
	text-align: right;
}

.nswf-portal .nswf-pconfirm {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	margin-top: 18px;
}

.nswf-portal .nswf-pconfirm .nswf-pnote {
	align-self: stretch;
}

.nswf-portal .nswf-pconfirmed {
	margin: 16px 0 0;
}