/* Tax Appeal Tribunal – website prototype (PICAD Pvt Ltd). RTL-first; logical properties throughout. */
/* Thaana: MV Waheed for headings and titles, Faruma for body and small text. */
@font-face { font-family: "MV Waheed"; src: url("fonts/mv-waheed.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Faruma"; src: url("fonts/faruma.ttf") format("truetype"); font-display: swap; }

:root {
  --brand: #7b3f00;
  --brand-deep: #4a2408;
  --brand-ink: #2a1607;
  --copper: #c0742e;
  --gold: #d9a35b;
  --sand: #f8f3ec;
  --sand-2: #f0e6d7;
  --line: #e7dccb;
  --ink: #1f1a16;
  --muted: #6c6157;
  --white: #fff;
  --blue: #2f6db5; --amber: #b7791f; --violet: #6b4fbb; --teal: #1f8a7a; --green: #2f855a; --grey: #718096; --red: #b42318;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(42, 22, 7, .06), 0 8px 24px rgba(42, 22, 7, .07);
  --shadow-lg: 0 20px 60px rgba(42, 22, 7, .18);
  --font: "Faruma", "Plus Jakarta Sans", "Faruma", system-ui, sans-serif;
  --display: "MV Waheed", "Faruma", sans-serif;
  --fs: 16px;
  --lh: 1.95;
}
html[lang="en"] { --font: "Plus Jakarta Sans", "Faruma", system-ui, sans-serif; --display: "Plus Jakarta Sans", "Faruma", system-ui, sans-serif; --lh: 1.6; }
html.big { --fs: 18px; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 var(--fs)/var(--lh) var(--font); color: var(--ink); background: var(--sand); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--copper); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.5; font-weight: 700; }
html[lang="dv"] :is(h1, h2, h3, h4, .brand .t1, details.acc summary) { font-family: var(--display); font-weight: 400; line-height: 1.7; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { line-height: 1.2; letter-spacing: -.02em; }
.display { font-family: var(--display); font-weight: 400; }
html[lang="en"] .display { font-weight: 800; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.num, .ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- prototype ribbon ---------- */
.ribbon { background: var(--brand-ink); color: #f3dcc0; font-size: 13px; }
.ribbon .wrap { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding-block: 6px; }
.ribbon b { color: #fff; }
.ribbon a { color: var(--gold); }

/* ---------- top bar ---------- */
.topbar { background: var(--white); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar .tools { display: flex; align-items: center; gap: 6px; }
.chip-btn { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 3px 12px; cursor: pointer; font-size: 13px; line-height: 1.8; }
.chip-btn:hover { border-color: var(--copper); color: var(--brand); }
.chip-btn.on { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- header ---------- */
header.site { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.hdr { display: flex; align-items: center; gap: 22px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.brand img { width: 46px; height: 46px; }
.brand .t1 { font-family: var(--display); font-size: 25px; line-height: 1.2; color: var(--brand-ink); }
html[lang="en"] .brand .t1 { font-size: 19px; font-weight: 800; }
.brand .t2 { font-size: 12px; color: var(--muted); line-height: 1.4; }
.hdr .spacer { flex: 1; }
.search-mini { display: flex; align-items: center; gap: 8px; background: var(--sand); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; min-width: 240px; }
.search-mini input { border: 0; background: transparent; outline: none; width: 100%; font-size: 14px; }
.menu-btn { display: none; border: 0; background: var(--sand); border-radius: 12px; width: 44px; height: 44px; cursor: pointer; }

nav.main { background: var(--brand-deep); }
nav.main ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
nav.main > .wrap > ul > li { position: relative; }
nav.main > .wrap > ul > li > a { display: block; padding: 11px 15px; color: #f6e7d4; font-size: 15px; font-weight: 500; border-bottom: 3px solid transparent; }
html[lang="en"] nav.main > .wrap > ul > li > a { font-size: 14px; }
nav.main > .wrap > ul > li > a:hover, nav.main > .wrap > ul > li.on > a { color: #fff; border-bottom-color: var(--gold); background: rgba(255, 255, 255, .05); }
nav.main .sub { position: absolute; inset-inline-start: 0; top: 100%; min-width: 280px; background: #fff; border-radius: 0 0 14px 14px; box-shadow: var(--shadow-lg); padding: 8px; display: none; flex-direction: column; z-index: 50; }
nav.main li:hover > .sub, nav.main li:focus-within > .sub { display: flex; }
nav.main .sub a { display: block; padding: 7px 12px; border-radius: 8px; color: var(--ink); font-size: 14px; }
nav.main .sub a:hover { background: var(--sand); color: var(--brand); }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--brand-ink); }
.hero .bg { position: absolute; inset: 0; background: url("img/hero.jpg") center 40%/cover no-repeat; transform: scale(1.04); filter: saturate(.9); }
.hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42, 22, 7, .55) 0%, rgba(42, 22, 7, .78) 55%, rgba(42, 22, 7, .96) 100%); }
.hero .inner { position: relative; padding: 76px 0 150px; }
.hero .eyebrow { display: inline-flex; gap: 8px; align-items: center; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); padding: 4px 14px; border-radius: 999px; font-size: 13px; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 5vw, 60px); line-height: 1.5; margin: 18px 0 8px; max-width: 900px; }
html[lang="en"] .hero h1 { font-weight: 800; line-height: 1.08; }
.hero p.lead { font-size: 18px; color: #f1dfca; max-width: 720px; margin: 0 0 28px; }
.hero-search { display: flex; background: #fff; border-radius: 999px; padding: 6px; max-width: 720px; box-shadow: var(--shadow-lg); }
.hero-search input { flex: 1; border: 0; outline: none; padding: 10px 20px; color: var(--ink); font-size: 16px; background: transparent; }
.hero-search button { border: 0; background: var(--brand); color: #fff; border-radius: 999px; padding: 10px 26px; cursor: pointer; font-weight: 600; }
.hero-search button:hover { background: var(--copper); }
.hero .hints { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: #e9d3b8; }
.hero .hints a { color: #fff; background: rgba(255, 255, 255, .1); border-radius: 999px; padding: 2px 12px; }

.quick { position: relative; margin-top: -96px; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.qcard { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.qcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
.qcard .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--sand-2); color: var(--brand); }
.qcard h3 { font-size: 18px; }
.qcard p { margin: 0; color: var(--muted); font-size: 14px; }
.qcard .go { margin-top: auto; color: var(--copper); font-weight: 600; font-size: 14px; }

/* ---------- sections ---------- */
section.block { padding: 64px 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.sec-head h2 { font-family: var(--display); font-weight: 400; font-size: 32px; color: var(--brand-ink); }
html[lang="en"] .sec-head h2 { font-weight: 800; font-size: 30px; }
.sec-head .kicker { color: var(--copper); font-weight: 600; font-size: 13px; letter-spacing: .04em; }
.link-more { font-weight: 600; font-size: 14px; white-space: nowrap; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 24px; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.stat .v { font-size: 38px; font-weight: 800; color: var(--brand-ink); font-family: "Plus Jakarta Sans", "Faruma", sans-serif; line-height: 1.1; direction: ltr; unicode-bidi: isolate; display: inline-block; }
.stat .l { color: var(--muted); font-size: 14px; }
.stat .d { font-size: 12px; color: var(--green); font-weight: 600; }

/* chart */
.chart { width: 100%; height: auto; overflow: visible; }
.chart text { font: 12px "Plus Jakarta Sans", "Faruma", sans-serif; fill: var(--muted); }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-inline-end: 6px; vertical-align: -1px; }

/* calendar */
.cal { width: 100%; }
.cal .cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cal .cal-head h3 { font-size: 18px; }
.cal .nav-btn { border: 1px solid var(--line); background: #fff; border-radius: 10px; width: 34px; height: 34px; cursor: pointer; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-grid .dow { font-size: 11px; color: var(--muted); padding: 4px 0; }
.cal-grid .day { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; font-size: 14px; position: relative; cursor: default; font-family: "Plus Jakarta Sans", "Faruma", sans-serif; }
.cal-grid .day.has { background: var(--sand-2); color: var(--brand); font-weight: 700; cursor: pointer; }
.cal-grid .day.has::after { content: ""; position: absolute; bottom: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--copper); }
.cal-grid .day.today { outline: 2px solid var(--brand); }
.cal-grid .day.sel { background: var(--brand); color: #fff; }
.cal-grid .day.sel::after { background: #fff; }
.cal-grid .day.off { color: #c9bcab; }

.hearing { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.hearing:last-child { border-bottom: 0; }
.hearing .when { min-width: 64px; text-align: center; background: var(--sand); border-radius: 12px; padding: 6px 8px; line-height: 1.3; }
.hearing .when b { display: block; font-size: 20px; font-family: "Plus Jakarta Sans", "Faruma", sans-serif; color: var(--brand-ink); }
.hearing .when span { font-size: 11px; color: var(--muted); }
.hearing .what { flex: 1; min-width: 0; }
.hearing .what .c { font-weight: 700; font-size: 14px; }
.hearing .what .p { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hearing.cancelled .what .c { text-decoration: line-through; color: var(--muted); }

/* news */
.news-card { overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: transform .2s; }
.news-card:hover { transform: translateY(-3px); }
.news-card .img { aspect-ratio: 16/9; position: relative; overflow: hidden; }
.news-card .img svg { width: 100%; height: 100%; }
.news-card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.news-card .date { font-size: 12px; color: var(--copper); font-weight: 600; }
.news-card h3 { font-size: 17px; }
.news-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* journey */
.journey { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; }
.step { position: relative; padding: 0 10px; text-align: center; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 50%; background: #fff; border: 2px solid var(--copper); color: var(--brand); font-weight: 800; font-family: "Plus Jakarta Sans", "Faruma", sans-serif; position: relative; z-index: 1; }
.step::after { content: ""; position: absolute; top: 24px; inset-inline-start: 50%; width: 100%; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 14px); }
.step:last-child::after { display: none; }
.step h4 { font-size: 15px; }
.step p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

.guidance .card { padding: 24px; position: relative; overflow: hidden; }
.guidance .card .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--brand); color: #fff; display: grid; place-items: center; margin-bottom: 12px; }
.guidance .card h3 { font-size: 19px; }
.guidance .card p { margin: 6px 0 0; color: var(--muted); }

.band { background: linear-gradient(135deg, var(--brand-deep), var(--brand) 60%, var(--copper)); color: #fff; border-radius: 24px; padding: 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; overflow: hidden; }
.band h3 { font-family: var(--display); font-weight: 400; font-size: 28px; }
html[lang="en"] .band h3 { font-weight: 800; font-size: 26px; }
.band p { margin: 4px 0 0; color: #f6e2c8; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 12px; padding: 11px 20px; font-weight: 600; cursor: pointer; background: var(--brand); color: #fff; font-size: 15px; }
.btn:hover { background: var(--copper); color: #fff; }
.btn.light { background: #fff; color: var(--brand); }
.btn.light:hover { background: var(--sand-2); color: var(--brand); }
.btn.ghost { background: transparent; color: var(--brand); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--copper); background: #fff; }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 10px; }
.btn.danger { background: var(--red); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- inner pages ---------- */
.page-hero { background: linear-gradient(180deg, var(--brand-deep), var(--brand)); color: #fff; padding: 40px 0 34px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset-inline-end: -40px; top: -40px; width: 300px; height: 300px; background: url("img/logo.svg") center/contain no-repeat; opacity: .08; filter: brightness(10); }
.crumbs { font-size: 13px; color: #f0d6b8; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: #fff; }
.page-hero h1 { font-family: var(--display); font-weight: 400; font-size: 40px; margin-top: 6px; }
html[lang="en"] .page-hero h1 { font-weight: 800; font-size: 36px; }
.page-hero p { margin: 4px 0 0; color: #f3dfc6; max-width: 760px; }
.layout { display: grid; grid-template-columns: 270px 1fr; gap: 28px; padding-block: 36px 64px; align-items: start; }
.side { position: sticky; top: 140px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.side a { display: block; padding: 9px 14px; border-radius: 10px; color: var(--ink); font-size: 15px; }
.side a:hover { background: var(--sand); }
.side a.on { background: var(--brand); color: #fff; }
.content { min-width: 0; }
.content > .card + .card, .content > * + .card { margin-top: 18px; }
.prose p { margin: 0 0 12px; }
.prose h3 { font-size: 20px; margin: 18px 0 8px; color: var(--brand-ink); }

/* tables */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .field { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px; }
.toolbar input, .toolbar select { border: 0; outline: none; background: transparent; min-width: 120px; }
.toolbar .count { margin-inline-start: auto; font-size: 13px; color: var(--muted); }
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.tbl th { text-align: start; font-weight: 600; color: var(--muted); font-size: 13px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--sand); white-space: nowrap; cursor: pointer; user-select: none; }
.tbl th:first-child { border-start-start-radius: 12px; }
.tbl th:last-child { border-start-end-radius: 12px; }
.tbl th .arrow { opacity: .35; margin-inline-start: 4px; font-size: 11px; }
.tbl th.sorted .arrow { opacity: 1; color: var(--brand); }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:hover { background: #fffaf3; }
.tbl .caseno { font-family: "Plus Jakarta Sans", "Faruma", sans-serif; font-weight: 700; color: var(--brand-ink); direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.t-blue { background: #e8f0fa; color: var(--blue); } .t-amber { background: #fdf3e1; color: var(--amber); } .t-violet { background: #efeafb; color: var(--violet); }
.t-teal { background: #e3f4f1; color: var(--teal); } .t-green { background: #e6f4ec; color: var(--green); } .t-grey { background: #eef0f3; color: var(--grey); } .t-red { background: #fde8e7; color: var(--red); }
.file-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--brand); cursor: pointer; }
.file-btn:hover { border-color: var(--copper); }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 16px; }
.pager button { min-width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-family: "Plus Jakarta Sans", "Faruma", sans-serif; }
.pager button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 16px; cursor: pointer; font-size: 14px; }
.tabs button.on { background: var(--brand-ink); color: #fff; border-color: var(--brand-ink); }

/* people */
.person { text-align: center; padding: 22px 16px; }
.avatar { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; font-weight: 800; font-size: 30px; color: #fff; font-family: "Plus Jakarta Sans", "Faruma", sans-serif; background: linear-gradient(135deg, var(--brand), var(--copper)); box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .35); }
.person.lead .avatar { width: 128px; height: 128px; font-size: 40px; }
.person h4 { font-size: 16px; }
.person .r { color: var(--copper); font-size: 13px; font-weight: 600; }
.person .n { color: var(--muted); font-size: 12px; }
.featured-member { display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: center; padding: 26px; }
.featured-member .avatar { width: 160px; height: 160px; font-size: 52px; }

/* org chart */
.org { display: flex; flex-direction: column; align-items: center; gap: 26px; padding: 10px 0; }
.org .lvl { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }
.org .node { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 18px; text-align: center; min-width: 170px; box-shadow: var(--shadow); position: relative; }
.org .node.top { background: var(--brand); color: #fff; border-color: var(--brand); }
.org .node small { display: block; color: var(--muted); font-size: 12px; }
.org .node.top small { color: #f5dfc4; }
.org .lvl + .lvl::before { content: ""; position: absolute; top: -26px; left: 50%; width: 2px; height: 26px; background: var(--gold); }

/* accordion */
details.acc { border: 1px solid var(--line); border-radius: 14px; background: #fff; margin-bottom: 10px; }
details.acc summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.acc summary::after { content: "+"; font-size: 20px; color: var(--copper); line-height: 1; }
details.acc[open] summary::after { content: "–"; }
details.acc .a { padding: 0 18px 16px; color: var(--muted); }

/* forms */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form label .req { color: var(--red); }
.form input[type=text], .form input[type=email], .form input[type=tel], .form input[type=password], .form input[type=url], .form textarea, .form select {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: #fff; outline: none; }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--copper); box-shadow: 0 0 0 4px rgba(192, 116, 46, .15); }
.form .err { color: var(--red); font-size: 12px; margin-top: 4px; }
.form .hint { color: var(--muted); font-size: 12px; margin-top: 4px; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.choice { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; background: #fff; font-weight: 500 !important; margin: 0 !important; }
.choice:has(input:checked) { border-color: var(--brand); background: #fff7ee; }
.success { text-align: center; padding: 40px 24px; }
.success .tick { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: #e6f4ec; color: var(--green); margin: 0 auto 14px; }
.ref { font-family: "Plus Jakarta Sans", "Faruma", sans-serif; font-weight: 800; font-size: 22px; color: var(--brand); direction: ltr; display: inline-block; }

.doc-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.doc-row:last-child { border-bottom: 0; }
.doc-row .badge { width: 46px; height: 54px; border-radius: 8px; display: grid; place-items: center; font: 800 11px "Plus Jakarta Sans", "Faruma", sans-serif; color: #fff; background: var(--red); flex: none; }
.doc-row .badge.docx { background: var(--blue); }
.doc-row .badge.png { background: var(--teal); }
.doc-row .t { flex: 1; min-width: 0; }
.doc-row .t b { display: block; font-weight: 600; }
.doc-row .t span { font-size: 12px; color: var(--muted); }

/* social */
.post { padding: 18px; }
.post .who { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.post .who img { width: 38px; height: 38px; border-radius: 50%; background: var(--sand); padding: 6px; }
.post .who b { display: block; font-size: 14px; }
.post .who span { font-size: 12px; color: var(--muted); }
.post .net { margin-inline-start: auto; font-size: 12px; font-weight: 700; color: var(--muted); }

/* contact */
.map { border: 0; width: 100%; height: 360px; border-radius: var(--radius); }
.info-row { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.info-row:last-child { border: 0; }
.info-row .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--sand-2); color: var(--brand); display: grid; place-items: center; flex: none; }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(31, 26, 22, .55); display: grid; place-items: center; z-index: 90; padding: 20px; animation: fade .2s; }
.modal { background: #fff; border-radius: 22px; max-width: 760px; width: 100%; max-height: 88vh; overflow: auto; box-shadow: var(--shadow-lg); }
.modal .mh { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; }
.modal .mb { padding: 22px; }
.x { border: 0; background: var(--sand); width: 36px; height: 36px; border-radius: 10px; cursor: pointer; font-size: 18px; }
@keyframes fade { from { opacity: 0 } }
.toast { position: fixed; bottom: 24px; inset-inline-start: 50%; transform: translateX(-50%); background: var(--brand-ink); color: #fff; padding: 10px 18px; border-radius: 12px; z-index: 99; box-shadow: var(--shadow-lg); font-size: 14px; animation: fade .2s; }
html[dir=rtl] .toast { transform: translateX(50%); }

/* search results */
.result { display: block; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--ink); }
.result:hover { background: var(--sand); color: var(--ink); }
.result small { color: var(--copper); font-weight: 600; }


/* ---------- eFaas sign-in (eFaas brand guide: supplied mark, eFaas blue, pill) ---------- */
.efaas { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; border: 1px solid #164998; background: #164998; color: #fff; padding-block: 4px; padding-inline: 8px 14px; cursor: pointer; font: 500 13px/1.6 "Plus Jakarta Sans", "Faruma", sans-serif; white-space: nowrap; transition: opacity .2s; }
.efaas:hover { opacity: .9; color: #fff; }
html[lang="dv"] .efaas span { font-family: "MV Waheed", "Faruma", sans-serif; font-size: 14px; line-height: 1.9; }
.efaas.big { padding-block: 10px; padding-inline: 14px 20px; font-size: 15px; }
html[lang="dv"] .efaas.big span { font-size: 17px; }
.efaas-tile { width: 88px; height: 88px; border-radius: 26px; background: #164998; display: grid; place-items: center; margin: 0 auto; }
.topbar .sep { width: 1px; height: 22px; background: var(--line); margin-inline: 4px; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px 2px 3px; color: var(--ink); font-size: 13px; background: #fff; }
html[dir="rtl"] .user-chip { padding: 2px 3px 2px 12px; }
.user-chip .avatar { width: 28px; height: 28px; font-size: 11px; margin: 0; box-shadow: none; }
.verified { background: #eef3fb; border: 1px solid #cfdcf1; border-radius: 14px; padding: 14px 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 16px; }
.verified .vhead { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; color: #164998; font-weight: 600; font-size: 13px; }
.verified .vhead svg rect, .verified .vhead svg path:first-child { fill: #fff; }
.verified small { display: block; color: var(--muted); font-size: 12px; }
.verified b { font-weight: 600; }

/* ---------- gate + online appeal ---------- */
.gate { text-align: center; padding: 44px 28px; }
.gate .lock { width: 72px; height: 72px; border-radius: 22px; background: var(--sand-2); color: var(--brand); display: grid; place-items: center; margin: 0 auto 14px; }
.appeal-layout { display: grid; grid-template-columns: 1fr 320px; gap: 22px; padding-block: 22px 64px; align-items: start; }
.ap-aside { position: sticky; top: 140px; }
.big-num { font: 800 22px/1.3 "Plus Jakarta Sans", "Faruma", sans-serif; color: var(--brand-ink); }
.big-num.bad { color: var(--red); font-size: 16px; }
.stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.stepper .s { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.stepper .n { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--sand-2); color: var(--brand); font: 700 13px "Plus Jakarta Sans", "Faruma", sans-serif; }
.stepper .s.on { border-color: var(--brand); color: var(--ink); box-shadow: 0 0 0 4px rgba(123, 63, 0, .08); }
.stepper .s.on .n { background: var(--brand); color: #fff; }
.stepper .s.done { color: var(--ink); }
.stepper .s.done .n { background: var(--green); color: #fff; }
.form-actions { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 4px; }
.warn { background: #fff7e6; border: 1px solid #f3d9a4; color: #7a4b00; border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.file-slot { display: flex; gap: 12px; align-items: center; border: 1px dashed #d8c8b2; border-radius: 14px; padding: 12px 14px; background: #fffdf9; }
.file-slot.ok { border-style: solid; border-color: #bfe3cf; background: #f3fbf6; }
.file-slot .badge-f { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--sand-2); color: var(--brand); flex: none; }
.file-slot.ok .badge-f { background: #dff3e7; color: var(--green); }
.file-slot .t { flex: 1; min-width: 0; }
.file-slot .t b { display: block; font-weight: 600; font-size: 15px; }
.file-slot .t span { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.review { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.review > div { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.review dt { font-size: 12px; color: var(--muted); }
.review dd { margin: 0; font-weight: 600; }
.quote { background: var(--sand); border-radius: 12px; padding: 12px 14px; white-space: pre-wrap; font-size: 14px; }
.app-card + .app-card { margin-top: 14px; }
.app-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.track { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.track li { position: relative; font-size: 13px; color: var(--muted); padding-top: 22px; }
.track li span { position: absolute; top: 0; inset-inline-start: 0; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--line); z-index: 1; }
.track li::before { content: ""; position: absolute; top: 6px; inset-inline: 0; height: 2px; background: var(--line); }
.track li.done { color: var(--ink); font-weight: 600; }
.track li.done span { background: var(--green); border-color: var(--green); }
.track li.done::before { background: var(--green); }

/* ---------- news article ---------- */
.article-hero h1 { max-width: 900px; }
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; padding-block: 30px 64px; align-items: start; }
.article { overflow: hidden; }
.article .cover { aspect-ratio: 16/8; }
.article .cover svg { width: 100%; height: 100%; display: block; }
.article .lead-p { font-size: 19px; color: var(--brand-ink); }
.share { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.related { display: flex; gap: 12px; padding: 10px; margin-bottom: 12px; color: var(--ink); align-items: center; }
.related:hover { color: var(--brand); }
.related .thumb { width: 96px; flex: none; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; }
.related .thumb svg { width: 100%; height: 100%; }
.related b { display: block; font-size: 14px; line-height: 1.6; }
a.news-card { color: var(--ink); }
a.news-card:hover { color: var(--ink); }

/* ---------- footer ---------- */
footer.site { background: var(--brand-ink); color: #e9d6bf; margin-top: 30px; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 54px 0 34px; }
footer.site h4 { color: #fff; font-size: 15px; margin-bottom: 10px; }
footer.site a { color: #e9d6bf; display: block; padding: 3px 0; font-size: 14px; }
footer.site a:hover { color: var(--gold); }
footer.site .social { display: flex; gap: 10px; margin-top: 14px; }
footer.site .social a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; padding: 0; }
footer.site .bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 16px 0; font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- admin ---------- */
.admin { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; background: #f6f3ef; }
.admin aside { background: var(--brand-ink); color: #ead8c1; padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.admin aside .brand { color: #fff; padding: 6px 10px 18px; }
.admin aside .brand img { filter: brightness(0) invert(1); width: 36px; height: 36px; }
.admin aside .brand .t1 { color: #fff; font-size: 18px; }
.admin aside a { color: #ead8c1; padding: 9px 12px; border-radius: 10px; display: flex; gap: 10px; align-items: center; font-size: 14px; }
.admin aside a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.admin aside a.on { background: rgba(255, 255, 255, .12); color: #fff; }
.admin aside .badge-n { margin-inline-start: auto; background: var(--copper); color: #fff; border-radius: 999px; font-size: 11px; padding: 0 8px; font-family: "Plus Jakarta Sans", "Faruma", sans-serif; }
.admin aside .chip-btn { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .25); }
.admin aside .chip-btn:hover { border-color: var(--gold); color: var(--gold); }
.admin aside .me { margin-top: auto; padding: 12px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; }
.admin main { padding: 28px 32px; min-width: 0; }
.admin .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; gap: 12px; flex-wrap: wrap; }
.admin .top h1 { font-size: 26px; }
.role-tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--sand-2); color: var(--brand); }
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login .art { background: linear-gradient(160deg, var(--brand-ink), var(--brand) 70%, var(--copper)); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login .art::after { content: ""; position: absolute; inset-inline-end: -80px; bottom: -80px; width: 460px; height: 460px; background: url("img/logo.svg") center/contain no-repeat; filter: brightness(10); opacity: .08; }
.login .panel { display: grid; place-items: center; padding: 40px; background: #fff; }
.login .panel > div { width: 100%; max-width: 420px; }
.demo-users { display: grid; gap: 8px; margin-top: 14px; }
.demo-user { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; cursor: pointer; background: #fff; text-align: start; }
.demo-user:hover { border-color: var(--copper); background: #fffaf3; }
.demo-user .avatar { width: 40px; height: 40px; font-size: 15px; margin: 0; }
.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kcol { background: #efe8de; border-radius: 16px; padding: 12px; min-height: 200px; }
.kcol h3 { font-size: 14px; padding: 4px 6px 10px; display: flex; justify-content: space-between; }
.kitem { background: #fff; border-radius: 12px; padding: 12px; margin-bottom: 10px; box-shadow: var(--shadow); font-size: 14px; }
.kitem .meta { font-size: 12px; color: var(--muted); margin: 4px 0 8px; }
.kitem .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.log { font-size: 13px; }
.log .row { display: grid; grid-template-columns: 150px 140px 1fr; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.log .row .ts { font-family: "Plus Jakarta Sans", "Faruma", sans-serif; color: var(--muted); direction: ltr; text-align: start; }
.switch { position: relative; width: 44px; height: 24px; border-radius: 999px; background: #d6ccc0; border: 0; cursor: pointer; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: inset-inline-start .2s; }
.switch.on { background: var(--green); }
.switch.on::after { inset-inline-start: 23px; }
.drop { border: 2px dashed var(--line); border-radius: 14px; padding: 22px; text-align: center; color: var(--muted); background: #fffdf9; cursor: pointer; }
.drop.over { border-color: var(--copper); background: #fff7ee; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .quick, .stats, .g4 { grid-template-columns: repeat(2, 1fr); }
  .split, .g3 { grid-template-columns: 1fr 1fr; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  .search-mini { display: none; }
}
@media (max-width: 860px) {
  .appeal-layout, .article-layout { grid-template-columns: 1fr; }
  .ap-aside { position: static; }
  .stepper { grid-template-columns: repeat(5, auto); overflow-x: auto; }
  .stepper .s .l { display: none; }
  .stepper .s.on .l { display: inline; }
  .verified, .review { grid-template-columns: 1fr; }
  .menu-btn { display: grid; place-items: center; }
  nav.main { display: none; }
  nav.main.open { display: block; }
  nav.main ul { flex-direction: column; }
  nav.main .sub { position: static; display: flex; box-shadow: none; background: rgba(255, 255, 255, .06); border-radius: 10px; margin: 0 12px 8px; }
  nav.main .sub a { color: #f6e7d4; }
  .layout { grid-template-columns: 1fr; }
  .side { position: static; display: flex; overflow-x: auto; gap: 4px; }
  .side a { white-space: nowrap; }
  .split, .g2, .g3, .journey, .kanban { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .step { display: grid; grid-template-columns: 48px 1fr; gap: 12px; text-align: start; margin-bottom: 12px; }
  .step::before { margin: 0; }
  .band { flex-direction: column; align-items: flex-start; }
  .admin, .login { grid-template-columns: 1fr; }
  .admin aside { position: static; height: auto; }
  .login .art { min-height: 260px; }
  .featured-member { grid-template-columns: 1fr; text-align: center; }
  .form .row { grid-template-columns: 1fr; }
  .log .row { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .quick, .stats, .g4 { grid-template-columns: 1fr; }
  .hero .inner { padding: 48px 0 130px; }
  .brand .t2 { display: none; }
  .ribbon .wrap { flex-direction: column; align-items: flex-start; gap: 2px; }
  .topbar .wrap > span { display: none; }
  .topbar .tools { flex-wrap: wrap; justify-content: flex-end; }
  .user-chip > span:last-child { display: none; }
  .topbar .wrap { justify-content: flex-end; }
}
@media print {
  .ribbon, .topbar, header.site, footer.site, .side, .toolbar, .pager { display: none !important; }
  .layout { grid-template-columns: 1fr; }
}

/* Dhivehi: top header menu items in MV Waheed (both designs) */
html[lang="dv"] nav.main > .wrap > ul > li > a,
html[lang="dv"] .b-nav a { font-family: "MV Waheed", "Faruma", sans-serif; font-weight: 400; font-size: 16px; line-height: 1.8; }
html[lang="dv"] a[href^="mailto"], html[lang="dv"] .ab-scard .meta a { font-family: "Inter", "Plus Jakarta Sans", sans-serif; letter-spacing: 0; }
/* Dhivehi: section side menu items in MV Waheed (both designs) */
html[lang="dv"] .side a { font-family: "MV Waheed", "Faruma", sans-serif; font-weight: 400; font-size: 16px; line-height: 1.8; }
