/* Employment Tribunal – public Portal. "Lagoon" service look: teal gradient hero with search and a role switch,
   rounded white cards, hearing cards with day tabs, step cards with durations (docs/ui-research.md). */

/* utility bar (in the ribbon) */
.u-links { display: flex; gap: 14px; align-items: center; flex: none; }
.u-links button, .u-links a { background: none; border: 0; color: #e6f5f2 !important; cursor: pointer; font-size: 12.5px; padding: 0; }
.u-links button:hover, .u-links a:hover { text-decoration: underline; }
.u-links [lang="dv"] { font-family: "MV Waheed", sans-serif; font-size: 14px; }

/* header */
.p-head { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--border), var(--sh-sm); }
.p-bar { display: flex; align-items: center; gap: 22px; min-height: 72px; }
.p-brand { display: flex; align-items: center; gap: 12px; color: var(--text) !important; flex: 0 1 auto; min-width: 0; }
.p-brand > span { min-width: 0; }
.p-brand img { width: 44px; height: 44px; flex: none; }
.p-brand b { display: block; font-weight: 800; font-size: 18px; line-height: 1.3; }
.p-brand small { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; }
.p-brand.light, .p-brand.light b { color: #fff !important; }
.p-brand.light small { color: #a9c7c4; }
.p-nav { display: flex; gap: 4px; flex: 1; justify-content: center; white-space: nowrap; }
.p-nav a { position: relative; padding: 24px 12px; font-size: 15px; font-weight: 600; color: var(--text-2) !important; }
.p-nav a:hover { color: var(--primary) !important; }
.p-nav a.on { color: var(--primary-dark) !important; }
.p-nav a.on::after { content: ""; position: absolute; inset-inline: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--primary); }
/* margin pushes the tools to the end even when the nav is hidden (tablet and phone widths) */
.p-tools { display: flex; align-items: center; gap: 8px; flex: none; margin-inline-start: auto; }
.p-icon { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--text) !important; }
.p-icon:hover { background: var(--tint); border-color: var(--border-strong); }
.p-signin { border-radius: var(--pill) !important; }
.p-user { display: flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border: 1px solid var(--border); border-radius: var(--pill); color: var(--text) !important; font-weight: 700; font-size: 14px; }
html[dir="rtl"] .p-user { padding: 4px 4px 4px 14px; }
.p-user:hover { background: var(--tint); }
.p-user .av { width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 12px; }
.p-menu { display: none; }

/* hero */
.p-hero { background: radial-gradient(1200px 400px at 85% -10%, rgba(255, 122, 89, .22), transparent 60%), linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 70%, #11968a 100%); color: #fff; border-radius: 0 0 var(--r-lg) var(--r-lg); padding: 56px 0 104px; position: relative; overflow: hidden; }
html[dir="rtl"] .p-hero { background: radial-gradient(1200px 400px at 15% -10%, rgba(255, 122, 89, .22), transparent 60%), linear-gradient(225deg, var(--primary-dark) 0%, var(--primary) 70%, #11968a 100%); }
.p-hero::after { content: ""; position: absolute; inset-inline-end: -60px; bottom: -80px; width: 340px; height: 340px; border-radius: 50%; border: 48px solid rgba(255, 255, 255, .06); }
.p-hero h1 { color: #fff; font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; margin: 10px 0 24px; max-width: 760px; }
.p-hero-search { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: var(--pill); padding: 6px; padding-inline-start: 18px; max-width: 760px; box-shadow: var(--sh-lg); position: relative; z-index: 1; }
.p-hero-search > span { color: var(--muted); display: grid; }
.p-hero-search input { flex: 1; min-width: 0; border: 0; outline: none; font-size: 16px; padding: 10px 4px; color: var(--text); background: none; }
.p-hero-search .btn { border-radius: var(--pill); padding-inline: 26px; }
.p-roles { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 22px; position: relative; z-index: 1; }
.p-roles > span { font-size: 14px; color: #cdeee8; margin-inline-end: 6px; }
.p-roles button { border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); color: #fff; border-radius: var(--pill); padding: 7px 16px; font-weight: 600; font-size: 14px; cursor: pointer; min-height: 38px; }
.p-roles button:hover { background: rgba(255, 255, 255, .18); }
.p-roles button.on { background: #fff; color: var(--primary-dark); border-color: #fff; box-shadow: var(--sh-md); }

/* task cards overlapping the hero */
.p-tasks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: -64px; position: relative; z-index: 2; }
.p-task { position: relative; display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 22px; box-shadow: var(--sh-md); color: var(--text) !important; transition: transform .18s, box-shadow .18s, border-color .18s; }
.p-task:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); border-color: var(--primary); }
.p-task .ic-well { margin-bottom: 8px; }
.p-task b { font-size: 18px; line-height: 1.35; }
.p-task small { color: var(--muted); font-size: 14px; line-height: 1.5; }
.p-task .go { position: absolute; top: 22px; inset-inline-end: 20px; color: var(--primary); width: 30px; height: 30px; border-radius: 50%; background: var(--tint); display: grid; place-items: center; }

/* sections */
.p-sec { padding: 64px 0; }
.p-sec.tint { background: linear-gradient(180deg, #e9f3f2, var(--bg)); }
.p-sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.p-sec-head h2 { font-size: 30px; font-weight: 800; margin-top: 2px; }
.p-sec-head.sm h2 { font-size: 24px; }
.p-split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; align-items: start; }
.p-two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

/* track a case */
.p-track { padding: 26px; }
.p-track-form { display: flex; gap: 8px; }
.p-track-form .field { flex: 1; font-variant-numeric: tabular-nums; direction: ltr; text-align: start; }
html[dir="rtl"] .p-track-form .field { text-align: right; }
.p-track-out { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--border-strong); }
.p-track-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 4px; }
.p-track-meta .mono { color: var(--primary-dark); }

/* eligibility check */
.p-check { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 26px; box-shadow: var(--sh-md); position: relative; overflow: hidden; }
.p-check::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--accent), #ffb199); }
.p-check h3 { font-size: 24px; font-weight: 800; margin: 4px 0 14px; }
.p-dots { display: flex; gap: 6px; margin-bottom: 18px; }
.p-dots i { flex: 1; height: 6px; border-radius: 6px; background: var(--tint-2); }
.p-dots i.on { background: var(--primary); }
.p-q { font-size: 18px; font-weight: 600; margin: 0 0 14px; }
.p-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.p-opts button, .p-opts input { flex: 1 1 140px; border: 1px solid var(--border-strong); background: #fff; padding: 11px 14px; font-size: 15px; cursor: pointer; border-radius: var(--r-sm); text-align: start; min-height: 46px; }
.p-opts button:hover { border-color: var(--primary); background: var(--tint); }
.p-opts button.primary { background: var(--primary); color: #fff; border-color: var(--primary); text-align: center; }
.p-result { padding: 16px 18px; border-radius: var(--r-sm); background: #e6f5ec; margin-bottom: 14px; }
.p-result.warn { background: #fdf3df; } .p-result.bad { background: #fde9e7; }
.p-result b { font-size: 19px; display: block; }
.p-result p { margin: 6px 0 14px; color: var(--text-2); font-size: 14.5px; }
.p-again { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 0; }

/* hearing cards */
.p-hcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 16px; }
.p-hcard { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 18px 20px; box-shadow: var(--sh-sm); display: flex; flex-direction: column; gap: 4px; }
.p-hcard .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.p-hcard .time { font-size: 22px; font-weight: 800; color: var(--primary-dark); background: var(--tint); padding: 2px 12px; border-radius: var(--r-sm); }
.p-hcard .no { font-size: 13px; color: var(--muted); }
.p-hcard h3 { font-size: 17px; font-weight: 700; line-height: 1.4; }
.p-hcard .meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); margin-top: 6px; }
.p-hcard .meta span { display: inline-flex; gap: 5px; align-items: center; }

/* how it works */
.p-journey { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.p-journey li { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 18px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--sh-sm); }
.p-journey .n { width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: 6px; }
.p-journey li:nth-child(4) .n { background: var(--accent); color: #2b0e05; }
.p-journey b { font-size: 17px; }
.p-journey span { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.p-journey em { margin-top: auto; padding-top: 8px; font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--primary-dark); display: inline-flex; gap: 5px; align-items: center; }
.p-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.p-nums > div { background: var(--tint); border-radius: var(--r-md); padding: 18px 20px; }
.p-nums b { display: block; font-size: 38px; font-weight: 800; color: var(--primary-dark); line-height: 1.1; }
.p-nums span { color: var(--text-2); font-size: 14px; }

/* decisions + notices */
.chip { display: inline-block; font-size: 12px; font-weight: 700; background: var(--tint); color: var(--primary-dark); padding: 1px 9px; border-radius: var(--r-xs); margin-inline-end: 8px; }
.p-dec { display: block; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px 18px; color: var(--text) !important; box-shadow: var(--sh-sm); transition: box-shadow .15s, border-color .15s; }
.p-dec:hover { box-shadow: var(--sh-md); border-color: var(--border-strong); }
.p-dec-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.p-dec-top .mono { font-size: 13px; color: var(--muted); }
.p-dec b { display: block; font-size: 17px; margin: 6px 0 4px; }
.p-dec small { color: var(--muted); font-size: 13px; }
.p-news { display: grid; grid-template-columns: 58px 1fr; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 16px; }
.p-news time { text-align: center; background: var(--accent-soft); color: var(--accent-text); border-radius: var(--r-sm); padding: 6px 0; font-size: 22px; font-weight: 800; line-height: 1.1; }
.p-news time small { display: block; font-size: 11px; font-weight: 700; }
.p-news b { display: block; font-size: 15px; margin-top: 2px; }
.p-help { display: flex; gap: 14px; align-items: center; margin-top: 16px; background: var(--accent-soft); border: 1px solid #ffd6c9; border-radius: var(--r-md); padding: 16px 18px; }
.p-help > div:nth-child(2) { flex: 1; }
.p-help p { margin: 2px 0 0; font-size: 14px; color: var(--text-2); }

/* inner page header + layout */
.p-page { background: linear-gradient(180deg, #e3f0ef 0%, var(--bg) 100%); padding: 34px 0 26px; }
.p-page h1 { font-size: clamp(30px, 3.8vw, 44px); font-weight: 800; }
.p-page p { color: var(--text-2); max-width: 720px; margin: 8px 0 0; font-size: 17px; }
.crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumbs a { color: var(--primary); font-weight: 600; }
.p-body { padding-block: 26px 60px; }
.p-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.p-aside { position: sticky; top: 92px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.p-aside .card h3 { font-size: 18px; margin-bottom: 8px; }

/* calculator */
.calc-out { background: linear-gradient(160deg, var(--primary-dark), var(--primary)); color: #fff; padding: 24px; border-radius: var(--r-md); box-shadow: var(--sh-lg); }
.calc-out .tot { font-size: 40px; font-weight: 800; direction: ltr; unicode-bidi: isolate; display: inline-block; font-variant-numeric: tabular-nums; }
.calc-out table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 14px 0; }
.calc-out td { padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.calc-out td:last-child { text-align: end; font-variant-numeric: tabular-nums; font-weight: 700; }

/* wizard */
.wiz { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 28px; box-shadow: var(--sh-sm); }
.wiz h2 { font-size: 24px; margin-bottom: 2px; }
.wiz-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.slot { display: flex; gap: 12px; align-items: center; border: 1.5px dashed var(--border-strong); padding: 12px 14px; background: var(--tint-2); border-radius: var(--r-sm); }
.slot.ok { border-style: solid; border-color: var(--primary); background: #f2faf9; color: var(--primary-dark); }
.slot .meta { flex: 1; color: var(--text); }
.slot .meta b { display: block; font-size: 14.5px; }
.slot .meta small { color: var(--muted); font-size: 12.5px; }
.review dl { display: grid; grid-template-columns: 200px 1fr; gap: 0; margin: 0 0 18px; font-size: 14.5px; border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; }
.review dt, .review dd { padding: 10px 14px; border-bottom: 1px solid var(--border); margin: 0; }
.review dt { color: var(--muted); background: var(--tint-2); font-weight: 600; }
.receipt { border: 1px solid var(--border); background: #fff; padding: 32px; max-width: 720px; position: relative; border-radius: var(--r-lg); box-shadow: var(--sh-md); overflow: hidden; }
.receipt::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.receipt .stamp { position: absolute; top: 26px; inset-inline-end: 26px; background: #e2f4e9; color: #17703e; padding: 6px 14px; font-weight: 800; font-size: 12px; letter-spacing: .08em; border-radius: var(--pill); }
.pay { display: flex; align-items: center; gap: 14px; border: 1px solid var(--border); padding: 14px 16px; background: #fff; border-radius: var(--r-sm); }
.pay .bp { font-weight: 800; font-size: 14px; color: #fff; background: #d83a3a; padding: 6px 10px; border-radius: var(--r-xs); }

/* dashboard */
.dash-cases { display: grid; gap: 12px; }
.case-card { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 18px 20px; color: var(--text) !important; box-shadow: var(--sh-sm); transition: box-shadow .15s, border-color .15s; }
.case-card:hover { border-color: var(--primary); box-shadow: var(--sh-md); }
.case-card .no { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 13px; color: var(--primary); direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .case-card .no { text-align: right; }
.case-card h3 { font-size: 18px; grid-column: 1; }
.case-card .meta { grid-column: 1 / -1; display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.case-card .meta b { color: var(--text); font-weight: 600; }
.due { display: flex; gap: 14px; align-items: center; padding: 12px 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); color: var(--text) !important; box-shadow: var(--sh-sm); }
.due .d { width: 56px; height: 56px; border-radius: var(--r-sm); background: #fdf3df; color: #8a5a10; display: grid; place-content: center; text-align: center; font-size: 22px; font-weight: 800; line-height: 1; }
.due .d small { display: block; font-size: 10px; font-weight: 700; margin-top: 2px; }
.due.bad .d { background: #fde9e7; color: var(--danger); }
.due.ok .d { background: var(--tint); color: var(--primary-dark); }
.due .t { flex: 1; }
.due .t b { display: block; font-size: 15px; }
.due .t small { color: var(--muted); font-size: 13px; }
.hear { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.hear:last-child { border-bottom: 0; }
.hear time { text-align: center; background: var(--tint); color: var(--primary-dark); border-radius: var(--r-sm); padding: 6px 0; font-size: 20px; font-weight: 800; line-height: 1.1; }
.hear time small { display: block; font-size: 11px; font-weight: 700; }
.trackbar { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px 18px; flex-wrap: wrap; box-shadow: var(--sh-sm); }
.trackbar b { font-size: 16px; color: var(--primary-dark); }
.persona { display: grid; gap: 8px; }
.persona button { display: flex; gap: 12px; align-items: center; text-align: start; border: 1px solid var(--border); background: #fff; padding: 12px 14px; cursor: pointer; border-radius: var(--r-sm); }
.persona button:hover { border-color: var(--primary); background: var(--tint-2); }
.persona .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 800; font-size: 13px; flex: none; }
.persona b { display: block; font-size: 15px; }
.persona small { color: var(--muted); font-size: 12.5px; }
.gate { text-align: center; max-width: 520px; margin: 20px auto; background: #fff; border: 1px solid var(--border); padding: 40px 32px; border-radius: var(--r-lg); box-shadow: var(--sh-md); }
.gate .lock { width: 64px; height: 64px; margin: 0 auto 14px; display: grid; place-items: center; background: var(--tint); color: var(--primary-dark); border-radius: 50%; }
.gate h2 { font-size: 24px; margin-bottom: 8px; }

/* decisions list */
.dec-list { display: grid; gap: 12px; }
.dec-row { display: grid; grid-template-columns: 1fr 190px; gap: 18px; padding: 18px 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--sh-sm); align-items: start; }
.dec-row > .mono { display: none; }
.dec-row h3 { font-size: 19px; margin: 4px 0; }
.dec-row p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.dec-row .side { text-align: end; display: grid; gap: 6px; justify-items: end; font-size: 13px; color: var(--muted); }

/* command palette */
.cmd-bg { align-items: start; padding-top: 12vh; }
.cmd { background: #fff; width: 100%; max-width: 640px; border-radius: var(--r-lg); box-shadow: 0 30px 80px rgba(7, 32, 36, .35); overflow: hidden; }
.cmd-in { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.cmd-in input { flex: 1; border: 0; outline: none; font-size: 18px; background: transparent; }
kbd { font-size: 11px; font-weight: 700; background: var(--tint-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; color: var(--muted); direction: ltr; }
.cmd-res { max-height: 50vh; overflow: auto; padding: 6px; }
.cmd-res a { display: block; padding: 10px 14px; border-radius: var(--r-sm); color: var(--text) !important; }
.cmd-res a small { display: block; font-size: 11.5px; color: var(--primary); font-weight: 700; }
.cmd-res a.on, .cmd-res a:hover { background: var(--tint); }
.cmd-foot { padding: 8px 18px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--border); }

/* feedback + footer */
.p-useful { display: flex; gap: 10px; align-items: center; margin: 8px 0 40px; padding: 16px 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); font-size: 15px; flex-wrap: wrap; }
.p-useful > span:first-child { flex: 1; font-weight: 600; }
.p-useful button { border: 1px solid var(--border-strong); background: #fff; padding: 6px 18px; cursor: pointer; border-radius: var(--pill); font-weight: 600; min-height: 38px; }
.p-useful button:hover { border-color: var(--primary); background: var(--tint); }

@media (max-width: 1100px) {
  .p-nav { display: none; }
  .p-menu { display: grid; }
  .p-journey { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .p-tasks { grid-template-columns: repeat(2, 1fr); }
  .p-split, .p-two, .p-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .p-aside { position: static; }
  .p-nums { grid-template-columns: repeat(2, 1fr); }
  .dec-row { grid-template-columns: 1fr; }
  .dec-row .side { justify-items: start; text-align: start; }
  .review dl { grid-template-columns: 1fr; }
  .review dt { border-bottom: 0; padding-bottom: 2px; }
}
@media (max-width: 600px) {
  .ribbon .wrap > span:first-child { display: none; }
  .ribbon .wrap { justify-content: flex-end; }
  .p-brand small { display: none; }
  .p-brand b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .p-brand img { width: 38px; height: 38px; }
  .p-bar { gap: 10px; justify-content: space-between; min-height: 64px; }
  .p-user .nm { display: none; }
  .p-user { padding: 3px !important; }
  .p-hero { padding: 36px 0 88px; border-radius: 0 0 18px 18px; }
  .p-hero-search { padding-inline-start: 12px; }
  .p-hero-search .btn { padding-inline: 14px; }
  .p-tasks { grid-template-columns: 1fr; gap: 10px; margin-top: -56px; }
  .p-task { padding: 16px 18px; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .p-task .ic-well { margin: 0; width: 42px; height: 42px; }
  .p-task b { flex: 1; font-size: 16px; }
  .p-task small { flex-basis: 100%; order: 3; }
  .p-task .go { position: static; order: 2; }
  .p-journey { grid-template-columns: 1fr 1fr; }
  .p-nums b { font-size: 30px; }
  .p-sec { padding: 44px 0; }
  .p-sec-head h2 { font-size: 24px; }
  .wiz, .p-check, .p-track { padding: 20px; }
  .p-track-form { flex-direction: column; }
}
/* eFaas header button: full "Sign in with eFaas" on wide screens, the guide's icon-only version on phones */
@media (max-width: 600px) { .p-signin { padding: 9px; border-radius: 3px !important; } .p-signin span { display: none; } }

/* ---------- footer: contact tiles, brand + link columns, bottom bar ---------- */
.p-foot { position: relative; background: var(--text); color: #b9cfcc; margin-top: 8px; padding-top: 18px; }
.pf-wave { position: absolute; top: -12px; left: 0; width: 100%; height: 24px; display: block; }
.p-foot a { color: #e6f3f1; }
.p-foot a:hover { color: #ffb199; }
.pf-contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 36px 0 34px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.pf-tile { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r-md); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); color: inherit !important; transition: background .15s, border-color .15s; min-width: 0; }
a.pf-tile:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 177, 153, .45); }
.pf-ic { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(14, 130, 119, .35); color: #9fe3d8; }
.pf-t { min-width: 0; display: grid; gap: 1px; }
.pf-t small { font-size: 12.5px; color: #93b3af; }
.pf-t b { color: #fff; font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.pf-t b.num { font-size: 26px; line-height: 1.15; }
.pf-t em { font-style: normal; font-size: 13px; color: #b9cfcc; }
.pf-status { display: inline-flex; align-items: center; gap: 6px; }
.pf-status i { width: 8px; height: 8px; border-radius: 50%; background: #e5735f; flex: none; }
.pf-status.open { color: #8fe3c0 !important; }
.pf-status.open i { background: #3ddc97; box-shadow: 0 0 0 3px rgba(61, 220, 151, .2); }
.pf-main { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); gap: 48px; padding: 40px 0 36px; }
.pf-brand .p-brand { margin-bottom: 14px; }
.pf-brand p { font-size: 14.5px; line-height: 1.7; margin: 0 0 12px; max-width: 380px; }
.pf-langs { display: flex; gap: 8px; align-items: center; color: #93b3af; font-size: 13px !important; }
.pf-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.pf-col h4 { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 14px; }
html[lang="dv"] .pf-col h4 { text-transform: none; letter-spacing: 0; font-size: 15px; }
.pf-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pf-col a { display: inline-block; padding: 5px 0; font-size: 14.5px; }
.pf-bottom { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding: 18px 0 26px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; }
.pf-bottom > span:first-child { color: #e6f3f1; }
.pf-proto { color: #7f9e9a; flex: 1; }
.pf-top { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .06); color: #e6f3f1; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--pill); padding: 7px 14px; font-size: 13px; font-weight: 600; cursor: pointer; min-height: 38px; }
.pf-top:hover { background: rgba(255, 255, 255, .12); }
.pf-up { display: inline-flex; transform: rotate(-90deg); }
.p-foot :focus-visible { outline-color: #ffb199; }

/* ---------- mobile menu drawer (opens from the inline end) ---------- */
.pd-bg { position: fixed; inset: 0; z-index: 80; background: rgba(7, 32, 36, .45); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.pd-bg.open { opacity: 1; visibility: visible; }
.pd { position: fixed; inset-block: 0; inset-inline-end: 0; z-index: 81; width: min(400px, 92vw); background: var(--bg); display: flex; flex-direction: column; box-shadow: var(--sh-lg); visibility: hidden; transition: transform .25s cubic-bezier(.2, .8, .2, 1), visibility .25s; }
.pd:not(.open) { transform: translateX(105%); }
html[dir="rtl"] .pd:not(.open) { transform: translateX(-105%); }
/* visible at once when opening (so focus can move in); hidden only after the slide-out ends */
.pd.open { visibility: visible; transition: transform .25s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
@media (prefers-reduced-motion: reduce) { .pd, .pd-bg { transition: none; } }
.pd-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: #fff; border-bottom: 1px solid var(--border); }
.pd-head .p-brand img { width: 36px; height: 36px; }
.pd-head .p-brand b { font-size: 16px; }
.pd-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.pd-body > * { flex-shrink: 0; }
.pd-aa { font: 800 15px/20px "Figtree", sans-serif; color: var(--primary); }
.pd-signin { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px; }
.pd-signin p { margin: 0 0 10px; font-size: 14px; color: var(--text-2); }
.pd-user { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 14px; color: var(--text) !important; }
.pd-user .av { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.pd-user .tx, .pd-nav .tx, .pd-help .tx { flex: 1; min-width: 0; display: grid; }
.pd-user b { font-size: 15px; }
.pd-user small { color: var(--muted); font-size: 12.5px; }
.pd-nav { display: grid; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.pd-nav a { display: flex; gap: 12px; align-items: center; padding: 12px 14px; color: var(--text) !important; border-bottom: 1px solid var(--border); position: relative; min-height: 60px; }
.pd-nav a:last-child { border-bottom: 0; }
.pd-nav a:hover { background: var(--tint-2); }
.pd-nav a.on { background: var(--tint); }
.pd-nav a.on::before { content: ""; position: absolute; inset-inline-start: 0; inset-block: 10px; width: 4px; border-radius: 4px; background: var(--primary); }
.pd-nav b { font-size: 15.5px; }
.pd-nav small { color: var(--muted); font-size: 12.5px; }
.pd-nav > a > span:last-child, .pd-user > span:last-child { color: var(--muted); }
.pd-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--primary-dark); flex: none; }
.pd-h { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 4px 4px 0; }
html[lang="dv"] .pd-h { text-transform: none; letter-spacing: 0; font-size: 14px; }
.pd-more { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-more a { padding: 8px 14px; border-radius: var(--pill); background: #fff; border: 1px solid var(--border); color: var(--text) !important; font-size: 14px; font-weight: 600; }
.pd-more a:hover { border-color: var(--primary); }
.pd-utils { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pd-utils > * { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 64px; padding: 8px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-sm); font-size: 12.5px; font-weight: 600; color: var(--text-2) !important; cursor: pointer; text-align: center; }
.pd-utils > *:hover { border-color: var(--primary); color: var(--primary-dark) !important; }
.pd-utils svg { color: var(--primary); }
.pd-help { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--r-md); background: var(--text); color: #e6f3f1 !important; }
.pd-help .pd-ic { background: rgba(14, 130, 119, .4); color: #9fe3d8; }
.pd-help small { color: #93b3af; font-size: 12.5px; }
.pd-help b { color: #fff; font-size: 24px; line-height: 1.1; }
.pd-help em { font-style: normal; font-size: 12.5px; }

@media (max-width: 900px) {
  .pf-main { grid-template-columns: minmax(0, 1fr); gap: 30px; }
}
@media (max-width: 760px) {
  .pf-contact { grid-template-columns: minmax(0, 1fr); padding: 28px 0 24px; }
  .pf-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
  .pf-bottom { flex-direction: column; align-items: flex-start; }
  .pf-proto { flex: none; }
}
