/* Legal Notes (/blog/): cards, covers and the article page. Loaded after site.css on blog pages only.
   English articles read in Manrope at 18-19px; Urdu articles in Noto Nastaliq at 21px with tall leading,
   right to left, with the page mirrored by dir="rtl". */

/* ---------------------------------------------------------------- index */
.blog-hero .phero-in { padding-bottom: clamp(40px, 6vw, 72px); }
.blog-hero .seo { text-transform: none; letter-spacing: .02em; }
/* the Urdu word inside the small hero label (/blog/ and /fees/) in Nastaliq at a readable size */
.phero .seo [lang="ur"] { font: 400 1.25rem/1.6 var(--urdu); letter-spacing: 0; text-transform: none; color: var(--gold); }
.blog-list { padding-top: clamp(32px, 5vw, 56px); }
.blog-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(28px, 4vw, 44px); }
.blog-chips a { display: inline-flex; align-items: baseline; gap: 8px; min-height: 44px; align-items: center; padding: 0 18px; border: 1px solid var(--line-2);
  border-radius: 999px; font: 600 .9375rem/1 var(--sans); text-decoration: none; color: var(--text); background: var(--white); transition: border-color .2s, background-color .2s; }
.blog-chips a [lang="ur"] { font-size: 1rem; line-height: 1; color: var(--muted); }
.blog-chips a:hover { border-color: var(--text); }
.blog-chips a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.blog-chips a[aria-current] [lang="ur"] { color: var(--gold); }
.blog-empty { font-size: 1.125rem; color: var(--muted); }
.blog-grid { display: grid; gap: clamp(20px, 3vw, 32px); }
@media (min-width: 700px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.blog-feature { margin-bottom: clamp(28px, 4vw, 48px); }

/* ---------------------------------------------------------------- cards */
.bcard { position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: var(--r); background: var(--white);
  border: 1px solid var(--line); box-shadow: 0 30px 60px -48px rgba(13, 18, 16, .6); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.bcard:hover { transform: translateY(-3px); box-shadow: 0 40px 70px -46px rgba(13, 18, 16, .7); }
.bcard-media { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.bcard-media .cover-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.bcard:hover .bcard-media .cover-img img { transform: scale(1.03); }
.bcard-body { display: grid; align-content: start; gap: 10px; padding: 22px 24px 24px; }
.bcard-cat { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: 0;
  font: var(--label); letter-spacing: var(--label-ls); text-transform: uppercase; color: var(--em-tx); }
.bcard-flags { display: inline-flex; gap: 6px; }
.lang-flag { padding: 4px 9px; border-radius: 999px; background: var(--stone); font: 700 .8125rem/1 var(--sans); letter-spacing: .04em; text-transform: none; color: var(--muted); }
.lang-flag.is-ur { font: 400 .95rem/1 var(--urdu); padding: 2px 9px 4px; }
.bcard-title { font: 500 clamp(1.75rem, 2.2vw, 1.85rem)/1.15 var(--serif); letter-spacing: -.012em; }
.bcard-title a { text-decoration: none; }
.bcard-title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.bcard-title a:focus-visible { outline: none; }
.bcard:has(.bcard-title a:focus-visible) { outline: 2px solid var(--em); outline-offset: 3px; }
.bcard-dek { margin: 0; color: var(--muted); font-size: 1.0625rem; line-height: 1.55; }
.bcard-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 4px 0 0; font: 600 .9375rem/1.4 var(--sans); color: var(--muted); }
/* English cards inside the Urdu related-notes section (lang="ur") must not inherit the Nastaliq face */
.bcard[lang="en"] { font-family: var(--sans); }
.bcard[dir="rtl"] .bcard-title { font: 700 1.6rem/1.9 var(--urdu); letter-spacing: 0; }
.bcard[dir="rtl"] .bcard-dek { font: 400 1.2rem/2.1 var(--urdu); }
.bcard[dir="rtl"] .bcard-cat { font: 700 1rem/1.6 var(--urdu); letter-spacing: 0; }
.bcard[dir="rtl"] .bcard-meta { font: 400 1.05rem/1.9 var(--urdu); }
@media (min-width: 960px) {
  .bcard--feature { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: none; }
  .bcard--feature .bcard-media { aspect-ratio: auto; min-height: 420px; }
  .bcard--feature .bcard-body { align-content: center; gap: 16px; padding: clamp(32px, 4vw, 56px); }
  .bcard--feature .bcard-title { font-size: clamp(2.2rem, 3.2vw, 3rem); line-height: 1.08; font-weight: 450; }
  .bcard--feature .bcard-dek { font-size: 1.1875rem; }
  .bcard--feature[dir="rtl"] .bcard-title { font-size: 2.2rem; line-height: 1.8; }
}

/* ---------------------------------------------------------------- covers: a photograph, or a designed cover in the area's colours */
.cover-img { position: relative; display: block; height: 100%; }
.cover-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover-credit { position: absolute; right: 10px; bottom: 10px; padding: 3px 10px; border-radius: 999px; font-size: .8125rem; color: #fff; background: rgba(0, 0, 0, .55); }
.cover-credit a { color: inherit; }
.cover-auto { --c1: rgba(17, 101, 78, .55); --c2: rgba(205, 179, 132, .14);
  position: relative; display: grid; align-content: end; justify-items: start; gap: 6px; height: 100%; min-height: 100%; padding: clamp(18px, 3vw, 36px);
  overflow: hidden; isolation: isolate; color: var(--on-dark);
  background: radial-gradient(60% 80% at 82% 30%, var(--c1), transparent 70%), radial-gradient(50% 60% at 10% 100%, var(--c2), transparent 70%),
    linear-gradient(160deg, #101815, var(--ink-deep)); }
.cover-auto::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(/img/grain.png) 0 0 / 160px 160px repeat; opacity: .7; }
.cover-civil-law { --c1: rgba(150, 112, 52, .5); --c2: rgba(17, 101, 78, .25); }
.cover-criminal-law { --c1: rgba(120, 38, 34, .55); --c2: rgba(205, 179, 132, .12); }
.cover-family-law { --c1: rgba(17, 101, 78, .6); --c2: rgba(205, 179, 132, .16); }
.cover-revenue-law { --c1: rgba(122, 96, 50, .55); --c2: rgba(70, 110, 60, .25); }
.cover-overseas { --c1: rgba(28, 92, 110, .55); --c2: rgba(17, 101, 78, .2); }
.cover-case-law { --c1: rgba(205, 179, 132, .32); --c2: rgba(17, 101, 78, .3); }
.ca-ur { margin-bottom: .2em; font: 400 clamp(2.6rem, 6vw, 4.6rem)/1.75 var(--urdu); color: var(--gold); direction: rtl; }
.ca-en { font: var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-1); }
.ca-case { font: 600 .9375rem/1.3 var(--sans); color: var(--on-dark-2); }
.ca-mark { position: absolute; top: clamp(14px, 2.4vw, 26px); right: clamp(14px, 2.4vw, 26px); width: clamp(34px, 4vw, 48px); opacity: .9; }
.ca-mark svg { width: 100%; height: auto; color: var(--on-dark); }
.ca-mark .mark-ring { stroke: var(--gold); }
.bcard-media .cover-auto { position: absolute; inset: 0; }
/* card covers size their type to the card, not the viewport, so the Urdu fits the 16:9 box at every grid width
   (the rules above stay as the fallback where container units are not supported) */
.bcard-media { container-type: inline-size; }
.bcard-media .cover-auto { align-content: safe end; padding: clamp(14px, 6cqi, 32px); }
.bcard-media .ca-ur { font-size: clamp(1.75rem, 10cqi, 3.6rem); line-height: 1.6; text-wrap: balance; }
.bcard-media .ca-mark { width: clamp(30px, 10cqi, 44px); }
/* a wrapped Urdu title would run under the mark: keep the mark's width plus 10px clear on its side.
   On Urdu cards the cover is mirrored, so the mark sits top left. */
.bcard-media .ca-ur { padding-right: calc(clamp(30px, 10cqi, 44px) + clamp(14px, 2.4vw, 26px) - clamp(14px, 6cqi, 32px) + 10px); }
.bcard[dir="rtl"] .bcard-media .ca-ur { padding-right: 0; padding-left: calc(clamp(30px, 10cqi, 44px) + clamp(14px, 2.4vw, 26px) - clamp(14px, 6cqi, 32px) + 10px); }
.bcard[dir="rtl"] .bcard-media .ca-mark { right: auto; left: clamp(14px, 2.4vw, 26px); }

/* ---------------------------------------------------------------- article */
.preview-flag { position: sticky; top: var(--head); z-index: 40; margin: 0; padding: 10px var(--gut); text-align: center; background: #8A5A14; color: #fff; font: 700 .9375rem/1.3 var(--sans); }
.post-hero { position: relative; overflow: hidden; isolation: isolate; padding-top: var(--head); }
.post-hero::after { content: ""; position: absolute; z-index: -1; right: -10%; top: -30%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(closest-side, rgba(17, 101, 78, .26), rgba(17, 101, 78, 0)); pointer-events: none; }
.post-hero-in { padding-block: clamp(32px, 6vw, 72px) clamp(36px, 5vw, 64px); max-width: calc(var(--max) + 2 * var(--gut)); }
/* hero text starts on the article column's edge (260px side column + 72px gap); inline-start is the right side on Urdu notes */
@media (min-width: 1100px) { .post-hero-in { padding-inline-start: calc(var(--gut) + 332px); } }
.post-cat { margin: 0 0 18px; font: var(--label); letter-spacing: var(--label-ls); text-transform: uppercase; }
.post-cat a { display: inline-block; padding-block: 13px; margin-block: -13px; color: var(--gold); text-decoration: none; }
.post-title { font: 400 clamp(2.4rem, 6vw, 4.4rem)/1.04 var(--serif); letter-spacing: -.03em; color: #fff; max-width: 20ch; }
.post-dek { margin: 22px 0 0; max-width: 46ch; font: 500 clamp(1.15rem, 1.8vw, 1.375rem)/1.55 var(--sans); color: var(--on-dark-1); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.post-author { display: inline-flex; align-items: center; gap: 12px; }
.post-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; }
.post-author b { display: block; font: 700 1rem/1.25 var(--sans); color: var(--on-dark); }
.post-author small { display: block; font: 600 .875rem/1.3 var(--sans); color: var(--on-dark-2); }
.post-when { display: inline-flex; gap: 16px; font: 600 .9375rem/1.3 var(--sans); color: var(--on-dark-2); }
.lang-switch { display: inline-flex; margin-inline-start: auto; padding: 4px; border: 1px solid var(--line-dark-2); border-radius: 999px; }
.lang-switch a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; font: 700 .9375rem/1 var(--sans); color: var(--on-dark-1); text-decoration: none; }
.lang-switch a[lang="ur"] { font: 400 1.15rem/1 var(--urdu); padding-bottom: 4px; }
.lang-switch a[aria-current] { background: var(--on-dark); color: var(--ink); }
.post-cover { margin-top: calc(-1 * clamp(0px, 3vw, 36px)); position: relative; z-index: 2; }
.post-cover > .cover-img, .post-cover > .cover-auto { aspect-ratio: 21 / 9; border-radius: var(--r); overflow: hidden; box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .7); }
@media (max-width: 699.98px) { .post-cover { padding-inline: 0; } .post-cover > .cover-img, .post-cover > .cover-auto { aspect-ratio: 16 / 10; border-radius: 0; } }
.post-grid { display: grid; gap: 32px; padding-block: clamp(36px, 5vw, 64px) clamp(56px, 8vw, 96px); }
@media (min-width: 1100px) { .post-grid { grid-template-columns: 260px minmax(0, 1fr); gap: 72px; } .post-side { position: sticky; top: calc(var(--head) + 28px); align-self: start; } }
.post-side { display: grid; gap: 28px; }
@media (max-width: 1099.98px) { .post-side { order: 2; } .post-toc { display: none; } }
.post-toc p, .post-share p, .post-guides p { margin: 0 0 12px; font: var(--label); letter-spacing: var(--label-ls); text-transform: uppercase; color: var(--muted); }
.post-toc ol { display: grid; gap: 2px; border-inline-start: 1px solid var(--line-2); counter-reset: t; }
.post-toc a { display: block; padding: 7px 0 7px 16px; margin-inline-start: -1px; border-inline-start: 2px solid transparent; font: 600 .9375rem/1.4 var(--sans);
  color: var(--muted); text-decoration: none; transition: color .2s, border-color .2s; }
[dir="rtl"] .post-toc a { padding: 7px 16px 7px 0; }
.post-toc a:hover, .post-toc a.is-on { color: var(--text); border-inline-start-color: var(--em); }
.post-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.post-share p { flex-basis: 100%; }
.post-share a, .post-share button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--white);
  color: var(--text); cursor: pointer; transition: border-color .2s, color .2s, background-color .2s; }
.post-share svg { width: 19px; height: 19px; }
.post-share a:hover, .post-share button:hover { border-color: var(--em); color: var(--em); }
.post-share button.is-done { background: var(--em); border-color: var(--em); color: #fff; }

/* the article text */
.post-body { min-width: 0; max-width: 56ch; font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem); line-height: 1.8; }
.post-body > p:first-child, .post-body > :first-child { margin-top: 0; }
.post-body p { margin: 0 0 1.15em; }
/* no scroll-margin on headings: html's scroll-padding-top already clears the fixed header, and the two add up */
.post-body h2 { margin: 2em 0 .6em; font: 450 clamp(1.9rem, 3vw, 2.4rem)/1.12 var(--serif); letter-spacing: -.015em; scroll-margin-top: 0; }
.post-body h3 { margin: 1.6em 0 .5em; font: 700 1.25rem/1.35 var(--sans); }
.post-body a { color: var(--em-tx); text-decoration-thickness: 1px; }
.post-body a.btn { color: #fff; text-decoration: none; }
.post-body ul, .post-body ol { margin: 0 0 1.2em; padding-inline-start: 1.4em; }
.post-body ul { list-style: none; padding-inline-start: 0; }
.post-body ul > li { position: relative; padding-inline-start: 1.4em; margin-bottom: .45em; }
.post-body ul > li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .78em; width: 7px; height: 7px; border-radius: 50%; background: var(--em); }
.post-body ol { list-style: decimal-leading-zero; }
.post-body ol > li { padding-inline-start: .4em; margin-bottom: .45em; }
.post-body ol > li::marker { font: 700 .9em var(--sans); color: var(--em-tx); }
.post-body hr { height: 1px; margin: 2.4em 0; border: 0; background: var(--line-2); }
.post-body strong { font-weight: 700; }
.pull { margin: 2em 0; padding: 4px 0; padding-inline-start: 28px; border-inline-start: 3px solid var(--em); }
.pull p { margin: 0; font: italic 400 clamp(1.75rem, 2.6vw, 2rem)/1.35 var(--serif); letter-spacing: -.01em; color: var(--text); }
.post-fig { margin: 2.2em 0; }
.post-fig img { width: 100%; height: auto; border-radius: var(--r-sm); }
.post-fig figcaption { margin-top: 10px; font: 500 .9375rem/1.5 var(--sans); color: var(--muted); }
.case-card { margin: 0 0 2.2em; padding: 24px 26px 20px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--em);
  box-shadow: 0 30px 60px -50px rgba(13, 18, 16, .55); }
.cc-h { margin: 0 0 12px; font: var(--label); letter-spacing: var(--label-ls); text-transform: uppercase; color: var(--em-tx); }
.case-card dl { display: grid; gap: 0 28px; margin: 0; }
@media (min-width: 640px) { .case-card dl { grid-template-columns: 1fr 1fr; } .case-card .cc-wide { grid-column: 1 / -1; } }
.case-card dl > div { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.case-card dt { font: 700 .8125rem/1.3 var(--sans); letter-spacing: .06em; color: var(--muted); }
.case-card dd { margin: 0; font: 600 1.0625rem/1.45 var(--sans); }
.case-card .cc-wide dd { font: 500 1.75rem/1.2 var(--serif); letter-spacing: -.01em; }
.law-box, .key-box, .note-box { margin: 2em 0; padding: 24px 26px; border-radius: var(--r); }
.law-box { background: var(--stone); border-inline-start: 4px solid var(--em); border-radius: 4px var(--r) var(--r) 4px; }
[dir="rtl"] .law-box { border-radius: var(--r) 4px 4px var(--r); }
.key-box { background: var(--ink); color: var(--on-dark); }
.key-box li::before { background: var(--gold) !important; }
.key-box a { color: var(--em-hi); }
.note-box { border: 1px solid var(--line-2); background: var(--white); }
.box-h { margin: 0 0 10px; font: var(--label); letter-spacing: var(--label-ls); text-transform: uppercase; color: var(--em-tx); }
.key-box .box-h { color: var(--gold); }
.law-box > :last-child, .key-box > :last-child, .note-box > :last-child, .key-box ul:last-child, .law-box p:last-child { margin-bottom: 0; }
.faq { margin: 2.6em 0 0; }
.faq-h { margin-top: 0 !important; }
.faq-item { border-top: 1px solid var(--line-2); }
.faq-item:last-child { border-bottom: 1px solid var(--line-2); }
.faq-item summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; font: 700 1.125rem/1.45 var(--sans); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; font: 400 1.6rem/1 var(--sans); color: var(--em); transition: transform .25s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 20px; color: var(--muted); }

/* the end of an article */
.post-end { margin-top: 3em; display: grid; gap: 24px; }
.author-card { display: grid; grid-template-columns: 88px 1fr; gap: 20px; padding: 26px; border-radius: var(--r); background: var(--ink); color: var(--on-dark); }
.author-card img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; }
.ac-name { margin: 0; font: 500 1.75rem/1.1 var(--serif); }
.ac-role { margin: 4px 0 10px; font: var(--label); letter-spacing: var(--label-ls); text-transform: uppercase; color: var(--gold); }
.ac-bio { margin: 0 0 16px; font-size: 1rem; line-height: 1.6; color: var(--on-dark-2); }
@media (max-width: 559.98px) { .author-card { grid-template-columns: 1fr; } }
.post-disclaimer { margin: 0; padding: 16px 18px; border-radius: var(--r-sm); background: var(--stone); font-size: .9375rem; line-height: 1.6; color: var(--muted); }
.post-guides { display: grid; gap: 0; }
.post-guides a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line-2); font: 700 1.0625rem/1.35 var(--sans); text-decoration: none; color: var(--text); }
.post-guides a:last-child { border-bottom: 1px solid var(--line-2); }
.post-guides a svg { width: 18px; height: 18px; color: var(--em); flex: none; transition: transform .3s var(--ease); }
.post-guides a:hover { color: var(--em-tx); }
.post-guides a:hover svg { transform: translateX(4px); }
.post-related { padding-block: clamp(56px, 8vw, 96px); background: var(--stone); }
.post-related .h2 { margin-bottom: clamp(24px, 4vw, 40px); }
.post-related[lang="ur"] .h2 { font: 700 clamp(1.8rem, 3vw, 2.4rem)/1.8 var(--urdu); letter-spacing: 0; max-width: none; }

/* ---------------------------------------------------------------- Urdu articles */
.post--ur .post-title { font: 700 clamp(2rem, 5vw, 3.2rem)/1.75 var(--urdu); letter-spacing: 0; max-width: 24ch; }
.post--ur .post-dek { font: 400 clamp(1.3rem, 2vw, 1.55rem)/2.1 var(--urdu); }
.post--ur .post-cat, .post--ur .post-author b, .post--ur .post-author small, .post--ur .post-when, .post--ur .crumbs { font-family: var(--urdu); letter-spacing: 0; text-transform: none; font-size: 1.05rem; line-height: 1.9; }
.post--ur .post-body { font: 400 clamp(1.25rem, 1.15rem + .4vw, 1.4rem)/2.25 var(--urdu); max-width: 46em; }
.post--ur .post-body h2 { font: 700 clamp(1.6rem, 2.6vw, 2rem)/1.9 var(--urdu); letter-spacing: 0; }
.post--ur .post-body h3 { font: 700 1.35rem/1.9 var(--urdu); }
.post--ur .pull p { font: 400 clamp(1.5rem, 2.4vw, 1.85rem)/2 var(--urdu); }
.post--ur .case-card dt, .post--ur .box-h, .post--ur .cc-h, .post--ur .post-toc p, .post--ur .post-share p, .post--ur .post-guides p { font-family: var(--urdu); letter-spacing: 0; text-transform: none; font-size: 1.05rem; line-height: 1.8; }
/* plaintext: each value takes its own direction, so English case names and numbers stay in order inside Urdu */
.post--ur .case-card dd { font: 400 1.2rem/2 var(--urdu); unicode-bidi: plaintext; text-align: right; }
.post--ur .case-card .cc-wide dd { font: 400 1.5rem/1.9 var(--urdu); direction: rtl; unicode-bidi: plaintext; text-align: right; }
.post--ur .post-toc a { font: 400 1.1rem/1.9 var(--urdu); }
.post--ur .faq-item summary { font: 700 1.25rem/2 var(--urdu); }
.post--ur .post-disclaimer { font: 400 1.1rem/2 var(--urdu); }
.post--ur .ac-name { font: 700 1.6rem/1.8 var(--urdu); }
.post--ur .ac-role { font: 400 1.05rem/1.8 var(--urdu); letter-spacing: 0; text-transform: none; }
.post--ur .post-body ul > li::before { top: 1.05em; }
.post--ur .post-body ol { list-style: arabic-indic; }
@media (min-width: 1100px) { .post--ur .post-grid { grid-template-columns: 260px minmax(0, 1fr); } }

@media print {
  .post-side, .post-related, .post-end .btn, .lang-switch { display: none !important; }
  .post-hero { color: #000; background: none; padding-top: 0; }
  .post-title { color: #000; }
  /* dark blocks and light hero text would print white on white with backgrounds off */
  .post-cover, .post-guides { display: none !important; }
  .post-hero::after { display: none; }
  .post-hero *, .key-box, .key-box *, .author-card, .author-card * { color: #000 !important; }
  .key-box, .author-card { background: none !important; border: 1px solid #999; }
  .key-box li::before { background: #000 !important; }
}
/* reduced motion: cards do not lift or zoom (site.css loads first, so the hover rules are cancelled here) */
@media (prefers-reduced-motion: reduce) {
  .bcard, .bcard-media .cover-img img { transition: none; }
  .bcard:hover, .bcard:hover .bcard-media .cover-img img { transform: none; }
  .post-toc-m summary::after { transition: none; }
}

/* ================================================================ Fees page (/fees/) */
.fee-cards { display: grid; gap: 20px; }
@media (min-width: 860px) { .fee-cards { grid-template-columns: 1fr 1fr; } }
/* a flex column, so the credit note and the button can sit at the bottom of both cards when one card is taller */
.fee-card { display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r); background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -48px rgba(13, 18, 16, .6); }
.fee-card--intl { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.fee-where { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; font: var(--label); letter-spacing: var(--label-ls); text-transform: uppercase; color: var(--em-tx); }
.fee-where [lang="ur"] { font-size: 1.15rem; letter-spacing: 0; text-transform: none; color: var(--muted); }
.fee-card--intl .fee-where { color: var(--gold); }
.fee-card--intl .fee-where [lang="ur"] { color: var(--on-dark-2); }
.fee-amt { margin: 4px 0 0; font: 400 clamp(2.8rem, 6vw, 3.8rem)/1 var(--serif); letter-spacing: -.02em; }
.fee-mode { margin: 0; font-weight: 600; color: var(--muted); }
.fee-card--intl .fee-mode { color: var(--on-dark-2); }
.fee-card ul { margin: 6px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.fee-card--intl ul { border-color: var(--line-dark); }
.fee-card li { position: relative; padding-left: 26px; }
.fee-card li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--em); border-bottom: 2px solid var(--em); transform: rotate(-45deg); }
.fee-card--intl li::before { border-color: var(--em-hi); }
.fee-credit { margin: 0; padding: 12px 14px; border-radius: var(--r-sm); background: var(--stone); font-size: .9375rem; color: var(--muted); }
.fee-card--intl .fee-credit { background: rgba(242, 239, 232, .07); color: var(--on-dark-2); }
.fee-card > .fee-credit { margin-top: auto; }
.fee-card > .btn { align-self: flex-start; margin-top: auto; }
.fee-card > .fee-credit + .btn { margin-top: 6px; }
.fee-group { margin-top: clamp(28px, 4vw, 44px); }
.fee-group h3 { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; font: 450 1.9rem/1.2 var(--serif); }
.fee-group h3 [lang="ur"] { font-size: 1.3rem; color: var(--muted); }
.fee-scroll { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--white); }
.fee-table { width: 100%; min-width: 560px; border-collapse: collapse; }
.fee-table th, .fee-table td { padding: 14px 18px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.fee-table thead th { border-top: 0; background: var(--stone); font: 700 .875rem/1.3 var(--sans); letter-spacing: .04em; color: var(--muted); }
.fee-table tbody th { font-weight: 700; }
.fee-table tbody th small { display: block; margin-top: 2px; font-weight: 500; font-size: .9375rem; color: var(--muted); }
.fee-table td { font-weight: 600; white-space: nowrap; font-variant-numeric: lining-nums; }
/* phones: each row becomes a small card (work name, then the two fees side by side) instead of a table that scrolls sideways.
   The markup carries explicit table roles, so screen readers still hear a table. */
@media (max-width: 599.98px) {
  .fee-scroll { overflow: visible; }
  .fee-table, .fee-table tbody { display: block; min-width: 0; }
  .fee-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fee-table tr { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; padding: 14px 16px; border-top: 1px solid var(--line); }
  .fee-table tbody tr:first-child { border-top: 0; }
  .fee-table th, .fee-table td { padding: 0; border: 0; }
  .fee-table tbody th { grid-column: 1 / -1; margin-bottom: 8px; }
  .fee-table td { white-space: normal; }
  .fee-table td::before { content: attr(data-label); display: block; font: 700 .8125rem/1.3 var(--sans); color: var(--muted); }
  .fee-table td:empty { display: none; }
}
.fee-terms { display: grid; gap: 10px; margin: 24px 0 0; padding-left: 1.4em; list-style: decimal; }
.fee-terms li::marker { font-weight: 700; color: var(--em-tx); }
.fee-cta-in { display: grid; gap: 18px; justify-items: start; }
.fee-cta .lede { margin: 0; }

/* ================================================================ client documents (/client/<token>/) */
/* the stone band above the document only from 960px, where the document gets its rounded corners */
.doc-body { margin: 0; padding: 0 0 60px; background: var(--stone); }
@media (min-width: 960px) { .doc-body { padding-top: clamp(0px, 3vw, 40px); } }
.doc-body .preview-flag { top: 0; }
.doc { max-width: 920px; margin: 0 auto; background: var(--white); box-shadow: 0 40px 90px -50px rgba(13, 18, 16, .6); }
@media (min-width: 960px) { .doc { border-radius: 18px; overflow: hidden; } }
.doc-cover { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; isolation: isolate; min-height: 340px;
  background: radial-gradient(60% 80% at 85% 30%, rgba(17, 101, 78, .5), transparent 70%), linear-gradient(160deg, #101815, var(--ink-deep)); color: var(--on-dark);
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.doc-cover::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(/img/grain.png) 0 0 / 160px 160px repeat; opacity: .7; }
.doc-cover-in { position: relative; z-index: 2; display: grid; align-content: space-between; gap: 28px; padding: clamp(28px, 5vw, 56px); }
.doc-brand { display: flex; align-items: center; gap: 12px; }
.doc-brand svg { width: 44px; height: 44px; color: var(--on-dark); }
.doc-brand .mark-ring { stroke: var(--gold); }
.doc-brand b { display: block; font: 700 1.35rem/1.15 var(--sans); }
.doc-brand small { display: block; margin-top: 4px; font: var(--label); letter-spacing: var(--label-ls); text-transform: uppercase; color: var(--gold); }
.doc-kind { margin: 0; font: var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.doc-for { margin: -12px 0 0; font: 400 clamp(1.3rem, 2.6vw, 1.6rem)/1.25 var(--sans); color: var(--on-dark-2); }
.doc-for span { display: block; margin-top: 6px; font: 400 clamp(2.4rem, 6vw, 3.8rem)/1.02 var(--serif); letter-spacing: -.025em; color: #fff; }
.doc-date { margin: 0; font-weight: 600; color: var(--on-dark-2); }
.doc-portrait { position: absolute; right: -40px; bottom: -40px; width: min(52%, 430px); height: auto; z-index: 1;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent), linear-gradient(90deg, transparent, #000 30%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, #000 60%, transparent), linear-gradient(90deg, transparent, #000 30%); mask-composite: intersect; }
.doc--intro .doc-cover-in { padding-right: min(46%, 400px); }
@media (max-width: 599.98px) { .doc-portrait { opacity: .35; width: 80%; } .doc--intro .doc-cover-in { padding-right: clamp(28px, 5vw, 56px); } }
.doc-wrap { padding: clamp(24px, 5vw, 56px); }
.doc-sec { padding: clamp(24px, 4vw, 36px) 0; border-top: 1px solid var(--line); }
.doc-sec:first-child { border-top: 0; padding-top: 0; }
.doc-sec h2 { margin-bottom: 16px; font: 500 clamp(1.75rem, 3vw, 2.1rem)/1.15 var(--serif); letter-spacing: -.01em; }
.doc-sec p { margin: 0 0 1em; max-width: 64ch; }
.doc-sec ul, .doc-sec ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.doc-note p { font-size: 1.125rem; line-height: 1.75; }
.doc-sign { margin-top: 24px !important; font: 500 1.75rem/1.2 var(--serif); }
.doc-sign small { display: block; margin-top: 4px; font: var(--label); letter-spacing: var(--label-ls); text-transform: uppercase; color: var(--em-tx); }
.doc-muted { color: var(--muted); font-size: 1rem; }
.doc-feebox { display: grid; gap: 4px; margin-bottom: 18px; padding: 22px 26px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--em);
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.doc-feebig { margin: 0 !important; font: 400 clamp(2.6rem, 6vw, 3.6rem)/1 var(--serif); letter-spacing: -.02em; }
.doc-feebox p:last-child { margin: 0; font-weight: 600; color: var(--muted); }
.doc-steps { list-style: none; padding: 0 !important; counter-reset: s; gap: 14px !important; }
.doc-steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 2px 12px; }
.doc-steps li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; font: 700 .9375rem/1.6 var(--sans); color: var(--em-tx); }
.doc-steps b { font-weight: 700; }
.doc-steps span { color: var(--muted); }
.doc-table { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.doc-table th, .doc-table td { padding: 12px 0; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.doc-table thead th { border-top: 0; font: 700 .875rem/1.3 var(--sans); letter-spacing: .04em; color: var(--muted); }
.doc-table td small { display: block; color: var(--muted); font-size: .9375rem; }
.doc-table .doc-amt { text-align: right; white-space: nowrap; font-weight: 700; padding-left: 16px; }
.doc-table tfoot th, .doc-table tfoot td { border-top: 2px solid var(--text); font-size: 1.25rem; font-weight: 800; }
.doc-pay, .doc-meta { display: grid; gap: 0 28px; margin: 0 0 12px; }
@media (min-width: 640px) { .doc-pay, .doc-meta { grid-template-columns: 1fr 1fr; } }
.doc-pay > div, .doc-meta > div { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.doc-pay dt, .doc-meta dt { font: 700 .875rem/1.3 var(--sans); color: var(--muted); }
.doc-pay dd, .doc-meta dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
/* Copy buttons beside the bank details (shown by site.js; hidden without JS and in print) */
.doc-pay dd:has(.doc-copy) { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.doc-pay dd > span { min-width: 0; overflow-wrap: anywhere; }
/* once the pills show, every value gets the pill's height so values without one stay level with their neighbours */
.doc-pay:has(.doc-copy:not(.is-hidden)) dd { display: flex; align-items: center; min-height: 44px; }
.doc-copy { flex: none; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--white); font: 700 .9375rem/1 var(--sans); color: var(--em-tx); cursor: pointer; }
.doc-copy:hover { border-color: var(--em); }
.doc-copy.is-done { background: var(--em); border-color: var(--em); color: #fff; }
.doc-contact { display: flex; flex-wrap: wrap; gap: 10px; }
.doc-foot { padding-top: 24px; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--muted); }
.doc-foot p { margin: 0 0 4px; }
.doc-missing { width: calc(100% - 32px); max-width: 640px; margin: 15vh auto; padding: 32px; background: var(--white); border-radius: var(--r); }
@page { size: A4; margin: 12mm; }
@media print {
  .doc-body { padding: 0; background: #fff; }
  .doc { max-width: none; box-shadow: none; border-radius: 0; }
  .doc-contact .btn, .doc-print, .preview-flag, .doc-copy { display: none !important; }
  /* the Contact section holds only buttons; the footer already prints the name, phone and email */
  .doc-next { display: none; }
  /* long sections may break across pages; keep headings with their text and rows in one piece */
  .doc-sec { break-inside: auto; }
  .doc-sec h2 { break-after: avoid; }
  .doc-feebox, .doc-pay > div, .doc-meta > div, .doc-steps li, .doc-table tr, .doc-terms li, .doc-sign, .doc-foot { break-inside: avoid; }
  .doc-table thead { display: table-header-group; }
  .doc-cover { min-height: 0; }
  .doc-pay dd { min-height: 0 !important; }
}
.doc-sec ul { list-style: none; padding-left: 0; }
.doc-sec ul > li { position: relative; padding-left: 26px; }
.doc-sec ul > li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--em); border-bottom: 2px solid var(--em); transform: rotate(-45deg); }
.doc-sec ol { list-style: decimal; }
.fee-alt { margin: -4px 0 0; font-weight: 600; color: var(--muted); }
.fee-card--intl .fee-alt { color: var(--on-dark-2); }
.fee-kinds { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
@media (min-width: 860px) { .fee-kinds { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
.fee-kinds li { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.fee-kinds b { font: 500 1.75rem/1.2 var(--serif); }
.fee-kinds span { color: var(--muted); }
.doc-alt { margin: 0 !important; font-weight: 600; color: var(--muted); }
.doc-fraud { margin: 10px 0 0 !important; padding: 10px 14px; border-radius: var(--r-sm); background: #FFF5E6; color: #6B4510; font-size: .9375rem; }

/* ================================================================ "On this page" folded at the top of a note, below 1100px
   (the side list is hidden there). Native <details>, so it opens without JS. Kept last so it beats .post-body ol. */
.post-toc-m { margin: 0 0 2em; }
.post-body > .post-toc-m + * { margin-top: 0; }
.post-toc-m details { border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--white); }
.post-toc-m summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 18px; cursor: pointer; list-style: none;
  font: var(--label); letter-spacing: var(--label-ls); text-transform: uppercase; color: var(--muted); }
.post-toc-m summary::-webkit-details-marker { display: none; }
.post-toc-m summary::after { content: "+"; font: 400 1.5rem/1 var(--sans); color: var(--em); transition: transform .25s var(--ease); }
.post-toc-m details[open] summary::after { transform: rotate(45deg); }
.post-body .post-toc-m ol { list-style: none; margin: 0; padding: 0 18px 6px; border-top: 1px solid var(--line); }
.post-body .post-toc-m li { margin: 0; padding: 0; }
.post-body .post-toc-m a { display: block; padding: 11px 0; border-bottom: 1px solid var(--line); font: 600 1rem/1.4 var(--sans); color: var(--text); text-decoration: none; }
.post-body .post-toc-m li:last-child a { border-bottom: 0; }
.post-body .post-toc-m a:hover { color: var(--em-tx); }
.post--ur .post-toc-m summary { font: 400 1.05rem/1.8 var(--urdu); letter-spacing: 0; text-transform: none; }
.post--ur .post-body .post-toc-m a { font: 400 1.1rem/1.9 var(--urdu); }
@media (min-width: 1100px) { .post-toc-m { display: none; } }
@media print { .post-toc-m { display: none; } }
