/*
 * Islamic Finance & Zakat Center (/finance). A deep emerald and gold "ledger" look built on the layout.css tokens:
 * a geometric hero with a live nisab gauge, dense module tiles grouped by theme, an always-visible assumptions panel
 * beside the guided calculator, step diagrams for contracts and a print layout for saved and exported calculations.
 * Logical properties throughout so Arabic and Urdu mirror; motion respects reduced-motion. Every class starts fc-.
 */
.fc {
  --fc-ink: var(--ip-ink, #1c1c1c);
  --fc-muted: var(--ip-muted, #5f6673);
  --fc-line: var(--ip-line, #ebe8df);
  --fc-surface: var(--ip-surface, #fff);
  --fc-surface-2: var(--ip-surface-2, #f6f4ee);
  --fc-green: #1f7a63;
  --fc-green-deep: #0d3b29;
  --fc-gold: #c9a050;
  --fc-gold-ink: #8a6414;
  --fc-gold-soft: #fff8e6;
  --fc-tone: #1f7a63;
  --fc-tone-soft: rgba(31, 122, 99, .1);
  --fc-radius: 18px;
  --fc-shadow: 0 1px 2px rgba(16, 24, 20, .05), 0 14px 34px -20px rgba(16, 24, 20, .32);
  color: var(--fc-ink);
  padding-block-end: 3.5rem;
}
.fc-tone--emerald { --fc-tone: #1f7a63; --fc-tone-soft: rgba(31, 122, 99, .1); }
.fc-tone--gold { --fc-tone: #a77a1f; --fc-tone-soft: rgba(201, 160, 80, .16); }
.fc-tone--sky { --fc-tone: #1d5fae; --fc-tone-soft: rgba(33, 150, 243, .1); }
.fc-tone--violet { --fc-tone: #5b33a8; --fc-tone-soft: rgba(139, 92, 246, .11); }
.fc-tone--rose { --fc-tone: #9a4a35; --fc-tone-soft: rgba(217, 138, 112, .15); }
[data-theme="dark"] .fc {
  --fc-gold: #e6b85c;
  --fc-gold-ink: #f1d59a;
  --fc-gold-soft: rgba(230, 184, 92, .1);
  --fc-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 34px -18px rgba(0, 0, 0, .7);
}
[data-theme="dark"] .fc-tone--emerald { --fc-tone: #5fd3a0; --fc-tone-soft: rgba(95, 211, 160, .12); }
[data-theme="dark"] .fc-tone--gold { --fc-tone: #e6b85c; --fc-tone-soft: rgba(230, 184, 92, .13); }
[data-theme="dark"] .fc-tone--sky { --fc-tone: #84b9ff; --fc-tone-soft: rgba(132, 185, 255, .12); }
[data-theme="dark"] .fc-tone--violet { --fc-tone: #bba2ff; --fc-tone-soft: rgba(187, 162, 255, .12); }
[data-theme="dark"] .fc-tone--rose { --fc-tone: #f0a58c; --fc-tone-soft: rgba(240, 165, 140, .12); }

.fc a { color: inherit; }
.fc-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--ip-link, #1a6e58) !important; text-decoration: none; }
.fc-link:hover { text-decoration: underline; }
.fc-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 0 0 .75rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fc-gold); }
.fc-eyebrow a { color: inherit; text-decoration: none; }
.fc-eyebrow a:hover { text-decoration: underline; }
.fc-title { font-family: var(--ip-font-display); font-weight: 800; font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .75rem; }
.fc-title__icon { color: var(--fc-gold); margin-inline-end: .2rem; }
.fc-lead { font-size: 1.08rem; line-height: 1.6; max-width: 62ch; margin: 0; opacity: .92; }
.fc-kicker { margin: 0 0 .3rem; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fc-gold-ink); }
.fc-h2 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); font-weight: 800; letter-spacing: -.01em; margin: 0 0 .3rem; }
.fc-h3 { font-size: 1.15rem; font-weight: 750; margin: 0; display: flex; align-items: center; gap: .5rem; }
.fc-h3 .bi { color: var(--fc-gold); }
.fc-h4 { font-size: .95rem; font-weight: 750; margin: 1rem 0 .55rem; text-transform: uppercase; letter-spacing: .05em; color: var(--fc-muted); }

/* Buttons */
.fc-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 2.75rem; padding: .6rem 1.15rem; border-radius: 12px; border: 1px solid transparent; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.fc-btn--sm { min-height: 2.35rem; padding: .4rem .85rem; font-size: .87rem; }
.fc-btn--primary { background: var(--fc-green); color: #fff !important; box-shadow: 0 10px 22px -12px rgba(31, 122, 99, .8); }
.fc-btn--primary:hover { background: #16624f; transform: translateY(-1px); }
.fc-btn--gold { background: linear-gradient(135deg, #e6b85c, #c9962f); color: #241a05 !important; box-shadow: 0 10px 22px -12px rgba(201, 150, 47, .9); }
.fc-btn--gold:hover { transform: translateY(-1px); }
.fc-btn--ghost { background: var(--fc-surface); border-color: var(--fc-line); color: var(--fc-ink) !important; }
.fc-btn--ghost:hover { border-color: var(--fc-green); }
.fc-btn--link { background: transparent; color: var(--ip-link, #1a6e58) !important; padding-inline: .4rem; }
.fc-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.fc-btn:focus-visible, .fc-step:focus-visible, .fc-ctab:focus-visible, .fc-flow__btn:focus-visible, .fc-chip:focus-visible { outline: 3px solid var(--fc-gold); outline-offset: 2px; }

/* ---------- Hub hero ---------- */
.fc-hero { position: relative; overflow: hidden; color: #f4efe2; padding-block: clamp(2rem, 4vw, 3.5rem) clamp(2.25rem, 4vw, 3.25rem);
  background: radial-gradient(1200px 500px at 85% -10%, rgba(230, 184, 92, .28), transparent 60%), radial-gradient(800px 420px at 0% 110%, rgba(46, 184, 114, .25), transparent 60%), linear-gradient(135deg, #072a1d 0%, #0d3b29 45%, #10503a 100%); }
.fc-hero__art { position: absolute; inset-inline-end: -80px; inset-block-start: -60px; inline-size: 520px; block-size: 520px; color: rgba(230, 184, 92, .22); pointer-events: none; }
.fc-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; }
.fc-hero .fc-lead { color: #dfe9e3; }
.fc-launch { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin-block-start: 1.6rem; }
.fc-launch__tile { display: flex; flex-direction: column; gap: .55rem; padding: .85rem .85rem .9rem; border-radius: 14px; text-decoration: none; color: #fff !important; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(6px); transition: transform .18s ease, background-color .18s ease, border-color .18s ease; min-block-size: 7.2rem; }
.fc-launch__tile:hover, .fc-launch__tile:focus-visible { transform: translateY(-3px); background: rgba(255, 255, 255, .13); border-color: rgba(230, 184, 92, .6); }
.fc-launch__icon { inline-size: 2.1rem; block-size: 2.1rem; display: grid; place-items: center; border-radius: 10px; background: rgba(230, 184, 92, .18); color: #f1d59a; font-size: 1.05rem; }
.fc-launch__text strong { display: block; font-size: .9rem; line-height: 1.2; }
.fc-launch__text small { display: block; margin-block-start: .2rem; font-size: .76rem; color: #c9d8d0; line-height: 1.3; }

/* Nisab gauge */
.fc-nisab { position: relative; padding: 1.15rem 1.2rem 1rem; border-radius: 20px; background: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04)); border: 1px solid rgba(230, 184, 92, .35); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.fc-nisab__head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-block-end: .75rem; }
.fc-nisab__title { margin: 0; font-size: 1rem; font-weight: 800; display: flex; align-items: center; gap: .5rem; color: #fff; }
.fc-live-dot { inline-size: .55rem; block-size: .55rem; border-radius: 50%; background: #2eb872; box-shadow: 0 0 0 0 rgba(46, 184, 114, .7); animation: fc-pulse 2s infinite; }
@keyframes fc-pulse { 70% { box-shadow: 0 0 0 9px rgba(46, 184, 114, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 184, 114, 0); } }
.fc-nisab__currency { inline-size: auto; min-inline-size: 6rem; background-color: rgba(0, 0, 0, .25); color: #fff; border-color: rgba(255, 255, 255, .25); }
.fc-nisab__currency option { color: #111; }
.fc-meter { padding: .7rem .8rem; border-radius: 14px; background: rgba(0, 0, 0, .18); margin-block-end: .55rem; }
.fc-meter__label { display: flex; justify-content: space-between; gap: .5rem; font-size: .8rem; color: #c9d8d0; }
.fc-meter__metal { font-weight: 700; color: #fff; }
.fc-meter--gold .fc-meter__metal .bi { color: #e6b85c; }
.fc-meter--silver .fc-meter__metal .bi { color: #d6dde3; }
.fc-meter__value { margin: .25rem 0 0; font-size: 1.55rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.fc-meter__price { margin: 0 0 .45rem; font-size: .78rem; color: #c9d8d0; }
.fc-meter__bar { display: block; block-size: 6px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.fc-meter__bar span { display: block; block-size: 100%; inline-size: 50%; border-radius: inherit; background: linear-gradient(90deg, #d6dde3, #9fb3c0); transition: inline-size .6s ease; }
.fc-meter--gold .fc-meter__bar span { background: linear-gradient(90deg, #f1d59a, #c9962f); }
.fc-nisab__when, .fc-nisab__note, .fc-nisab__stale, .fc-nisab__empty { margin: .4rem 0 0; font-size: .78rem; color: #c9d8d0; }
.fc-nisab__note a { color: #f1d59a; }
.fc-nisab__stale { color: #f1d59a; }

/* Principles band */
.fc-principles { list-style: none; margin: -1.4rem 0 2rem; padding: .9rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem 1rem; position: relative; z-index: 2; background: var(--fc-surface); border: 1px solid var(--fc-line); border-radius: var(--fc-radius); box-shadow: var(--fc-shadow); }
.fc-principle { display: flex; gap: .65rem; align-items: flex-start; font-size: .86rem; line-height: 1.45; color: var(--fc-muted); }
.fc-principle strong { color: var(--fc-ink); }
.fc-principle__icon { flex: 0 0 auto; inline-size: 2rem; block-size: 2rem; display: grid; place-items: center; border-radius: 10px; background: var(--fc-gold-soft); color: var(--fc-gold-ink); }

/* Modules */
.fc-block-head { margin-block-end: 1rem; }
.fc-block-lead { color: var(--fc-muted); margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.fc-group { display: grid; grid-template-columns: minmax(10rem, 15rem) minmax(0, 1fr); gap: 1rem 1.5rem; padding-block: 1.1rem; border-block-start: 1px solid var(--fc-line); }
.fc-group__title { font-size: 1.05rem; font-weight: 800; margin: 0 0 .25rem; }
.fc-group__text { margin: 0; font-size: .87rem; color: var(--fc-muted); }
.fc-group--zakat .fc-group__title::before, .fc-group--giving .fc-group__title::before, .fc-group--earning .fc-group__title::before, .fc-group--finance .fc-group__title::before { content: ""; display: block; inline-size: 2.25rem; block-size: 4px; border-radius: 4px; margin-block-end: .55rem; background: linear-gradient(90deg, var(--fc-green), var(--fc-gold)); }
.fc-mods { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: .65rem; }
.fc-mod__link { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "icon name" "icon tagline" "meta meta"; gap: .15rem .75rem; padding-block: .9rem .85rem; padding-inline: .95rem 2.4rem; block-size: 100%; border-radius: 16px; text-decoration: none; background: var(--fc-surface); border: 1px solid var(--fc-line); box-shadow: 0 1px 2px rgba(16, 24, 20, .04); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; overflow: hidden; }
[dir="rtl"] .fc-mod__link { padding: .9rem .95rem .85rem 2.4rem; }
.fc-mod__link::after { content: ""; position: absolute; inset-inline-start: 0; inset-block: 0; inline-size: 4px; background: var(--fc-tone); opacity: .85; }
.fc-mod__link:hover, .fc-mod__link:focus-visible { transform: translateY(-2px); box-shadow: var(--fc-shadow); border-color: var(--fc-tone); }
.fc-mod__num { position: absolute; inset-inline-end: .7rem; inset-block-start: .55rem; font-size: .72rem; font-weight: 800; color: var(--fc-muted); opacity: .6; font-variant-numeric: tabular-nums; }
.fc-mod__icon { grid-area: icon; inline-size: 2.5rem; block-size: 2.5rem; display: grid; place-items: center; border-radius: 12px; background: var(--fc-tone-soft); color: var(--fc-tone); font-size: 1.15rem; }
.fc-mod__name { grid-area: name; font-weight: 800; line-height: 1.25; }
.fc-mod__tagline { grid-area: tagline; font-size: .84rem; color: var(--fc-muted); line-height: 1.35; }
.fc-mod__meta { grid-area: meta; display: flex; flex-wrap: wrap; gap: .3rem .75rem; margin-block-start: .55rem; font-size: .75rem; color: var(--fc-muted); }
.fc-mod__meta .bi { color: var(--fc-tone); }
.fc-mod__go { position: absolute; inset-inline-end: .75rem; inset-block-end: .7rem; color: var(--fc-tone); }

/* Split panels */
.fc-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-block: 2rem 1.5rem; }
.fc-panel, .fc-card { background: var(--fc-surface); border: 1px solid var(--fc-line); border-radius: var(--fc-radius); padding: 1.1rem 1.2rem; box-shadow: 0 1px 2px rgba(16, 24, 20, .04); }
.fc-panel__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; margin-block-end: .75rem; }
.fc-answers { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.fc-answers li { display: grid; gap: .35rem; justify-items: start; padding: .7rem .8rem; border-radius: 12px; background: var(--fc-surface-2); }
.fc-answers--wide { grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
.fc-answer { text-decoration: none; display: grid; gap: .25rem; }
.fc-answer__q { font-weight: 750; line-height: 1.3; }
.fc-answer:hover .fc-answer__q { color: var(--ip-link, #1a6e58); text-decoration: underline; }
.fc-answer__a { font-size: .85rem; color: var(--fc-muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fc-scn-teasers { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.fc-scn-teaser { display: grid; gap: .3rem; padding: .85rem .95rem; border-radius: 14px; text-decoration: none; background: linear-gradient(135deg, var(--fc-gold-soft), transparent 70%); border: 1px solid var(--fc-line); transition: border-color .15s ease; }
.fc-scn-teaser:hover { border-color: var(--fc-gold); }
.fc-scn-teaser__title { font-weight: 800; }
.fc-scn-teaser__text { font-size: .87rem; color: var(--fc-muted); }
.fc-scn-teaser__ask { font-size: .85rem; font-weight: 700; color: var(--fc-gold-ink); }

.fc-fatwa { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: 1rem 1.2rem; border-radius: var(--fc-radius); background: var(--fc-gold-soft); border: 1px solid rgba(201, 160, 80, .45); }
.fc-fatwa p { margin: .2rem 0 0; font-size: .9rem; color: var(--fc-muted); }
.fc-fatwa__icon { font-size: 1.6rem; color: var(--fc-gold-ink); }

/* ---------- Module page ---------- */
.fc-mhero { padding-block: clamp(1.5rem, 3vw, 2.5rem); background: radial-gradient(900px 380px at 100% 0%, var(--fc-tone-soft), transparent 65%), linear-gradient(180deg, var(--fc-surface-2), transparent); border-block-end: 1px solid var(--fc-line); }
.fc-mhero__grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(15rem, 1fr); gap: 1.5rem 2.5rem; align-items: start; }
.fc-mhero .fc-eyebrow { color: var(--fc-tone); }
.fc-mhero__title { display: flex; align-items: center; gap: .9rem; }
.fc-mhero__icon { position: relative; flex: 0 0 auto; inline-size: 3.6rem; block-size: 3.6rem; display: grid; place-items: center; border-radius: 18px; background: var(--fc-tone); color: #fff; font-size: 1.6rem; box-shadow: 0 14px 28px -14px var(--fc-tone); }
.fc-mhero__num { position: absolute; inset-block-end: -.45rem; inset-inline-end: -.45rem; padding: .05rem .4rem; border-radius: 99px; font-size: .68rem; font-weight: 800; background: var(--fc-gold); color: #241a05; }
.fc-mhero .fc-title { margin: 0; }
.fc-mhero .fc-lead { margin-block-start: .6rem; color: var(--fc-muted); }
.fc-intro { margin-block-start: 1rem; padding: .9rem 1.05rem; border-radius: 14px; background: var(--fc-surface); border: 1px solid var(--fc-line); border-inline-start: 4px solid var(--fc-gold); }
.fc-intro__label { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 .35rem; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--fc-gold-ink); }
.fc-intro__text { margin: 0; line-height: 1.6; }
.fc-index { padding: 1rem 1.1rem; border-radius: var(--fc-radius); background: var(--fc-surface); border: 1px solid var(--fc-line); box-shadow: var(--fc-shadow); }
.fc-index__title { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--fc-muted); margin: 0 0 .5rem; }
.fc-index__list { list-style: none; margin: 0; padding: 0; display: grid; }
.fc-index__list a { display: flex; justify-content: space-between; gap: .5rem; padding: .45rem .1rem; border-block-end: 1px dashed var(--fc-line); text-decoration: none; font-weight: 600; }
.fc-index__list a:hover { color: var(--fc-tone); }
.fc-index__count { min-inline-size: 1.7rem; text-align: center; padding: 0 .4rem; border-radius: 99px; font-size: .78rem; background: var(--fc-tone-soft); color: var(--fc-tone); }
.fc-index__tools-title { margin: .9rem 0 .4rem; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--fc-muted); }
.fc-index__tools { display: flex; flex-wrap: wrap; gap: .4rem; }
.fc-chip-tool { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .7rem; border-radius: 99px; font-size: .82rem; font-weight: 700; text-decoration: none; background: var(--fc-gold-soft); color: var(--fc-gold-ink) !important; border: 1px solid rgba(201, 160, 80, .4); }
.fc-chip-tool:hover { border-color: var(--fc-gold); }

.fc-mbody { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 2rem; margin-block-start: 1.75rem; }
.fc-sec { margin-block-end: 2rem; scroll-margin-block-start: 5rem; }
.fc-sec__head { margin-block-end: .9rem; }
.fc-sec__lead { margin: 0; color: var(--fc-muted); font-size: .92rem; }
.fc-gsec { padding: 1rem 1.15rem; margin-block-end: .8rem; border-radius: var(--fc-radius); background: var(--fc-surface); border: 1px solid var(--fc-line); }
.fc-gsec__head { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: start; }
.fc-gsec__icon { inline-size: 2.4rem; block-size: 2.4rem; display: grid; place-items: center; border-radius: 12px; background: var(--fc-tone-soft); color: var(--fc-tone); font-size: 1.1rem; }
.fc-gsec__guide { margin: 0; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--fc-muted); }
.fc-gsec__title { margin: .1rem 0; font-size: 1.12rem; font-weight: 800; }
.fc-gsec__title a { text-decoration: none; }
.fc-gsec__title a:hover { color: var(--fc-tone); text-decoration: underline; }
.fc-gsec__sub { margin: 0; font-size: .87rem; color: var(--fc-muted); }
.fc-topics { list-style: none; margin: .8rem 0 .7rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; counter-reset: fc-topic; }
.fc-topic { position: relative; padding-block: .6rem .6rem; padding-inline: 2.2rem .7rem; border-radius: 12px; background: var(--fc-surface-2); counter-increment: fc-topic; }
[dir="rtl"] .fc-topic { padding: .6rem 2.2rem .6rem .7rem; }
.fc-topic::before { content: counter(fc-topic); position: absolute; inset-inline-start: .65rem; inset-block-start: .62rem; inline-size: 1.15rem; block-size: 1.15rem; display: grid; place-items: center; border-radius: 50%; font-size: .68rem; font-weight: 800; background: var(--fc-tone); color: #fff; }
.fc-topic.is-ruling { background: linear-gradient(135deg, var(--fc-gold-soft), var(--fc-surface-2)); }
.fc-topic__row { display: flex; flex-wrap: wrap; gap: .35rem .5rem; align-items: center; }
.fc-topic__title { font-weight: 750; text-decoration: none; line-height: 1.3; }
.fc-topic__title:hover { color: var(--fc-tone); text-decoration: underline; }
.fc-topic__sub { margin: .2rem 0 0; font-size: .82rem; color: var(--fc-muted); line-height: 1.4; }
.fc-tag { display: inline-block; padding: .05rem .5rem; border-radius: 99px; font-size: .7rem; font-weight: 800; letter-spacing: .03em; }
.fc-tag--ruling { background: rgba(201, 160, 80, .2); color: var(--fc-gold-ink); }
.fc-topic .ip-review-badge { font-size: .7rem; padding: .05rem .45rem; }
.fc-held { margin: 0 0 .5rem; font-size: .84rem; color: var(--fc-gold-ink); }
.fc-schools { margin-block-start: .5rem; border-radius: 12px; background: var(--fc-surface); border: 1px dashed rgba(201, 160, 80, .6); }
.fc-schools > summary { cursor: pointer; padding: .45rem .7rem; font-size: .82rem; font-weight: 750; color: var(--fc-gold-ink); list-style: none; }
.fc-schools > summary::-webkit-details-marker { display: none; }
.fc-schools > summary::after { content: "+"; float: inline-end; font-weight: 800; }
.fc-schools[open] > summary::after { content: "−"; }
.fc-schools__body { padding: 0 .8rem .6rem; font-size: .86rem; line-height: 1.55; }
.fc-schools__body p { margin: 0 0 .4rem; }
.fc-schools__src { margin: 0; padding: 0 .8rem .6rem; font-size: .78rem; color: var(--fc-muted); }

.fc-scenarios.lf { padding-block-end: 0; display: grid; gap: .9rem; }
.fc-scenarios .lf-scn { margin: 0; }
.fc-links { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .5rem; }
.fc-links--grid { grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.fc-linkcard { display: grid; grid-template-columns: auto 1fr; gap: .2rem .7rem; align-items: start; padding: .75rem .85rem; block-size: 100%; border-radius: 14px; text-decoration: none; background: var(--fc-surface); border: 1px solid var(--fc-line); transition: border-color .15s ease, transform .15s ease; }
.fc-linkcard:hover { border-color: var(--fc-tone); transform: translateY(-1px); }
.fc-linkcard > .ip-review-badge { grid-column: 2; justify-self: start; font-size: .7rem; padding: .05rem .45rem; }
.fc-linkcard__icon { grid-row: span 2; inline-size: 2.2rem; block-size: 2.2rem; display: grid; place-items: center; border-radius: 10px; background: var(--fc-tone-soft); color: var(--fc-tone); }
.fc-linkcard__body { display: grid; gap: .1rem; }
.fc-linkcard__kind { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--fc-muted); }
.fc-linkcard__title { font-weight: 750; line-height: 1.3; }
.fc-linkcard__meta { font-size: .8rem; color: var(--fc-muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fc-evidence .ip-verse, .fc-evidence .ip-stored-hadith { margin-block: .75rem; }

.fc-mside { display: grid; gap: 1rem; align-content: start; position: sticky; inset-block-start: 5.5rem; align-self: start; }
.fc-side-card { padding: .95rem 1rem; border-radius: var(--fc-radius); background: var(--fc-surface); border: 1px solid var(--fc-line); }
.fc-side-card__title { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--fc-muted); margin: 0 0 .6rem; }
.fc-terms { margin: 0; display: grid; gap: .55rem; }
.fc-terms dt a { font-weight: 800; color: var(--fc-tone); text-decoration: none; }
.fc-terms dd { margin: .1rem 0 0; font-size: .82rem; color: var(--fc-muted); line-height: 1.4; }
.fc-rail__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.fc-rail__list a { display: flex; gap: .55rem; padding: .35rem .45rem; border-radius: 9px; font-size: .86rem; text-decoration: none; line-height: 1.3; }
.fc-rail__list a:hover { background: var(--fc-surface-2); }
.fc-rail__list li.is-current a { background: var(--fc-tone-soft); color: var(--fc-tone); font-weight: 800; }
.fc-rail__num { font-size: .72rem; font-weight: 800; color: var(--fc-muted); font-variant-numeric: tabular-nums; padding-block-start: .1rem; }
.fc-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-block-start: 1rem; }
.fc-pager__link { display: grid; gap: .15rem; padding: .9rem 1rem; border-radius: 14px; border: 1px solid var(--fc-line); text-decoration: none; background: var(--fc-surface); }
.fc-pager__link small { color: var(--fc-muted); font-weight: 700; }
.fc-pager__link--next { text-align: end; }
.fc-pager__link:hover { border-color: var(--fc-tone); }

/* Gate */
.fc .pk-gate { display: flex; gap: .85rem; align-items: flex-start; padding: .9rem 1rem; margin-block-end: 1.1rem; border-radius: 14px; background: var(--fc-gold-soft); border: 1px solid rgba(201, 160, 80, .45); }
.fc .pk-gate p { margin: .2rem 0 0; font-size: .9rem; color: var(--fc-muted); }
.fc .pk-gate.is-partial { align-items: center; font-size: .9rem; }
.fc .pk-gate-icon { font-size: 1.3rem; color: var(--fc-gold-ink); }

/* ---------- Tool pages ---------- */
.fc-thero { padding-block: clamp(1.5rem, 3vw, 2.4rem) clamp(1.6rem, 3vw, 2.4rem); color: #f4efe2; background: radial-gradient(900px 400px at 100% 0%, rgba(230, 184, 92, .25), transparent 60%), linear-gradient(135deg, #072a1d, #10503a); }
.fc-thero .fc-lead { color: #dfe9e3; }
.fc-thero__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; align-items: end; }
.fc-promises { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; padding: 0; }
.fc-promises li { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .75rem; border-radius: 99px; font-size: .84rem; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); }
.fc-promises .bi { color: #f1d59a; }
.fc-notice { padding: .8rem 1rem; border-radius: 12px; background: var(--fc-gold-soft); }

/* Guided zakat */
.fc-zk__layout { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: 1.5rem; margin-block-start: -1.2rem; position: relative; }
.fc-zk__main { min-inline-size: 0; background: var(--fc-surface); border: 1px solid var(--fc-line); border-radius: 22px; padding: clamp(1rem, 2.5vw, 1.6rem); box-shadow: var(--fc-shadow); scroll-margin-block-start: 5rem; }
.fc-steps { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .35rem; counter-reset: fc-step; }
.fc-step { inline-size: 100%; display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .5rem .25rem; border: 0; border-radius: 12px; background: transparent; color: var(--fc-muted); font-size: .78rem; font-weight: 700; cursor: pointer; position: relative; }
.fc-step::after { content: ""; position: absolute; inset-block-end: 0; inset-inline: 12%; block-size: 3px; border-radius: 3px; background: var(--fc-line); }
.fc-step.is-done::after { background: var(--fc-green); }
.fc-step.is-current { color: var(--fc-ink); background: var(--fc-surface-2); }
.fc-step.is-current::after { background: linear-gradient(90deg, var(--fc-green), var(--fc-gold)); }
.fc-step__num { inline-size: 2.1rem; block-size: 2.1rem; display: grid; place-items: center; border-radius: 50%; background: var(--fc-surface-2); border: 1px solid var(--fc-line); font-size: .95rem; }
.fc-step.is-current .fc-step__num { background: var(--fc-green); color: #fff; border-color: transparent; }
.fc-step.is-done .fc-step__num { color: var(--fc-green); border-color: var(--fc-green); }
.fc-pane__title { display: flex; align-items: center; gap: .6rem; font-size: 1.4rem; font-weight: 800; margin: 0 0 .3rem; outline: none; }
.fc-pane__title span { inline-size: 2rem; block-size: 2rem; display: grid; place-items: center; border-radius: 50%; font-size: .95rem; background: var(--fc-gold-soft); color: var(--fc-gold-ink); border: 1px solid rgba(201, 160, 80, .5); }
.fc-pane__lead { margin: 0 0 1rem; color: var(--fc-muted); }
.fc-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1rem; }
.fc-field label { display: block; font-weight: 700; font-size: .9rem; margin-block-end: .3rem; }
.fc-help { margin: .3rem 0 0; font-size: .8rem; color: var(--fc-muted); line-height: 1.45; }
.fc-money { display: flex; align-items: stretch; border: 1px solid var(--ip-line-strong, #d9d5c9); border-radius: 10px; overflow: hidden; background: var(--fc-surface); }
.fc-money:focus-within { border-color: var(--fc-green); box-shadow: 0 0 0 3px rgba(31, 122, 99, .18); }
.fc-money span { display: grid; place-items: center; padding-inline: .65rem; font-size: .8rem; font-weight: 800; color: var(--fc-muted); background: var(--fc-surface-2); }
.fc-money span:empty { display: none; }
.fc-money .form-control { border: 0; box-shadow: none; border-radius: 0; font-variant-numeric: tabular-nums; }
.fc-money .form-control.is-invalid, .fc .form-control.is-invalid { background-color: rgba(194, 47, 47, .08); }
.fc-choice-group { border: 0; margin: 1.15rem 0 0; padding: 0; scroll-margin-block-start: 6rem; border-radius: 14px; transition: box-shadow .3s ease; }
.fc-choice-group.is-flash { box-shadow: 0 0 0 4px rgba(230, 184, 92, .55); }
.fc-choice-group legend { font-weight: 800; font-size: 1rem; margin-block-end: .5rem; float: none; }
.fc-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.fc-choices--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fc-choice { position: relative; display: block; cursor: pointer; margin: 0; }
.fc-choice input { position: absolute; opacity: 0; inset-inline-start: .8rem; inset-block-start: .9rem; }
.fc-choice > span { display: grid; gap: .25rem; block-size: 100%; padding: .7rem .85rem; border-radius: 12px; border: 1.5px solid var(--fc-line); background: var(--fc-surface); transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
.fc-choice:hover > span { border-color: var(--fc-green); }
.fc-choice input:checked + span { border-color: var(--fc-green); background: rgba(31, 122, 99, .06); box-shadow: inset 0 0 0 1px var(--fc-green); }
.fc-choice input:focus-visible + span { outline: 3px solid var(--fc-gold); outline-offset: 2px; }
.fc-choice strong { font-size: .92rem; line-height: 1.3; }
.fc-choice small { font-size: .8rem; color: var(--fc-muted); line-height: 1.4; }
.fc-choice__nisab { font-size: .8rem; font-weight: 800; color: var(--fc-gold-ink); }
.fc-default { font-style: normal; margin-inline-start: .35rem; padding: .02rem .45rem; border-radius: 99px; font-size: .68rem; font-weight: 800; background: rgba(31, 122, 99, .12); color: #175f4d; vertical-align: middle; }
[data-theme="dark"] .fc-default { color: #5fd3a0; }
.fc-own-prices { margin-block-start: .6rem; padding: .5rem .8rem; border-radius: 12px; background: var(--fc-surface-2); }
.fc-own-prices summary { cursor: pointer; font-size: .85rem; font-weight: 700; }
.fc-own-prices .fc-grid2 { margin-block-start: .6rem; }
.fc-metals { display: grid; gap: .6rem; }
.fc-metal { display: grid; grid-template-columns: minmax(0, 1fr) 8rem; gap: .75rem; padding: .7rem .8rem; border-radius: 12px; background: var(--fc-surface-2); }
.fc-money--unit span { order: 2; }
.fc-switch { display: inline-flex; align-items: center; gap: .7rem; font-weight: 750; cursor: pointer; margin-block-end: .9rem; }
.fc-switch input { position: absolute; opacity: 0; }
.fc-switch__track { inline-size: 2.8rem; block-size: 1.6rem; border-radius: 99px; background: var(--ip-line-strong, #d9d5c9); position: relative; transition: background-color .2s ease; }
.fc-switch__track::after { content: ""; position: absolute; inset-block-start: .2rem; inset-inline-start: .2rem; inline-size: 1.2rem; block-size: 1.2rem; border-radius: 50%; background: #fff; transition: inset-inline-start .2s ease; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.fc-switch input:checked + .fc-switch__track { background: var(--fc-green); }
.fc-switch input:checked + .fc-switch__track::after { inset-inline-start: 1.4rem; }
.fc-switch input:focus-visible + .fc-switch__track { outline: 3px solid var(--fc-gold); outline-offset: 2px; }
.fc-sheet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-block-start: 1rem; }
.fc-sheet__col { display: grid; gap: .75rem; align-content: start; padding: .85rem; border-radius: 14px; background: rgba(31, 122, 99, .05); border: 1px solid rgba(31, 122, 99, .18); }
.fc-sheet__col:nth-child(2) { background: rgba(201, 160, 80, .07); border-color: rgba(201, 160, 80, .3); }
.fc-sheet__col--out { background: var(--fc-surface-2); border-color: var(--fc-line); border-style: dashed; }
.fc-sheet__title { margin: 0; font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; display: flex; gap: .4rem; align-items: center; }
.fc-example { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; margin-block-start: .9rem; padding: .7rem .85rem; border-radius: 12px; background: var(--fc-gold-soft); font-size: .87rem; }
.fc-example p { margin: 0; }
.fc-nav { display: flex; align-items: center; gap: .6rem; margin-block-start: 1.4rem; padding-block-start: 1rem; border-block-start: 1px solid var(--fc-line); }
.fc-nav__space { flex: 1; }

/* Assumptions panel */
.fc-panel-a { position: sticky; inset-block-start: 5.25rem; align-self: start; }
.fc-panel-a__inner { padding: 1.05rem 1.1rem; border-radius: 22px; color: #eef3ef; background: linear-gradient(165deg, #0d3b29, #072a1d); border: 1px solid rgba(230, 184, 92, .35); box-shadow: 0 30px 60px -30px rgba(7, 42, 29, .8); }
.fc-panel-a__title { margin: 0; font-size: 1.05rem; font-weight: 800; display: flex; align-items: center; gap: .5rem; color: #fff; }
.fc-panel-a__title .bi { color: #e6b85c; }
.fc-panel-a__lead { margin: .25rem 0 .7rem; font-size: .8rem; color: #b9cbc1; }
.fc-assume { margin: 0; display: grid; gap: .45rem; }
.fc-assume__row { padding: .55rem .65rem; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.fc-assume__row dt { font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #9fb7aa; }
.fc-assume__row dd { margin: .15rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .45rem; }
.fc-assume__value { font-weight: 800; color: #fff; font-size: .92rem; }
.fc-assume__default { padding: 0 .4rem; border-radius: 99px; font-size: .66rem; font-weight: 800; background: rgba(95, 211, 160, .2); color: #a6efcb; }
.fc-assume__default[hidden] { display: none; }
.fc-assume__line { flex-basis: 100%; font-size: .76rem; color: #c9d8d0; line-height: 1.4; }
.fc-assume__change { margin-inline-start: auto; border: 0; background: transparent; color: #f1d59a; font-size: .75rem; font-weight: 800; text-decoration: underline; cursor: pointer; padding: 0; }
.fc-assume__row--nisab { background: linear-gradient(135deg, rgba(230, 184, 92, .2), rgba(255, 255, 255, .05)); }
.fc-panel-a__foot { margin: .6rem 0 0; font-size: .76rem; color: #b9cbc1; line-height: 1.4; }
.fc-panel-a__foot a { color: #f1d59a; }

/* Result */
.fc-loading { display: flex; gap: .6rem; align-items: center; padding: 1rem; color: var(--fc-muted); }
.fc-spinner { inline-size: 1.2rem; block-size: 1.2rem; border-radius: 50%; border: 2px solid var(--fc-line); border-block-start-color: var(--fc-green); animation: fc-spin .8s linear infinite; }
@keyframes fc-spin { to { transform: rotate(360deg); } }
.fc-error { padding: .8rem 1rem; border-radius: 12px; background: rgba(194, 47, 47, .08); color: #a32525; border: 1px solid rgba(194, 47, 47, .25); }
[data-theme="dark"] .fc-error { color: #ffb4a8; }
.fc-error ul { margin: .3rem 0 0; padding-inline-start: 1.2rem; }
.fc-empty { display: grid; justify-items: center; gap: .4rem; padding: 1.6rem 1rem; text-align: center; color: var(--fc-muted); border: 1px dashed var(--fc-line); border-radius: 14px; }
.fc-empty .bi { font-size: 1.6rem; color: var(--fc-gold); }
.fc-empty p { margin: 0; }
.fc-rhero { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.1rem 1.25rem; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #0d3b29, #1f7a63); margin-block-end: 1rem; }
.fc-rhero.is-below-nisab { background: linear-gradient(135deg, #24324a, #3b5277); }
.fc-rhero.is-not-yet-due { background: linear-gradient(135deg, #5a3d0c, #a77a1f); }
.fc-rhero.is-price-missing { background: linear-gradient(135deg, #5c2a1f, #9a4a35); }
.fc-rhero__status { margin: 0; font-size: 1.2rem; font-weight: 800; }
.fc-rhero__text { margin: .25rem 0 0; font-size: .9rem; opacity: .9; max-width: 50ch; }
.fc-rhero__amount { display: grid; text-align: end; }
.fc-rhero__label { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; opacity: .85; }
.fc-rhero__value { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); font-weight: 800; font-variant-numeric: tabular-nums; color: #f1d59a; }
.fc-rgrid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1rem; }
.fc-rside { display: grid; gap: 1rem; align-content: start; }
.fc-rgrid .fc-h4, .fc-rnotes .fc-h4 { margin-block-start: 0; }
.fc-table-wrap { overflow-x: auto; }
.fc-rtable { inline-size: 100%; border-collapse: collapse; font-size: .87rem; }
.fc-rtable th, .fc-rtable td { padding: .45rem .4rem; border-block-end: 1px solid var(--fc-line); text-align: start; vertical-align: top; }
.fc-rtable thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--fc-muted); }
.fc-rtable__group th { padding-block-start: .8rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; color: var(--fc-gold-ink); border-block-end: 0; }
.fc-rtable__num { text-align: end !important; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 700; }
.fc-rtable td small { display: block; margin-block-start: .2rem; color: var(--fc-muted); font-size: .78rem; line-height: 1.35; }
.fc-rtable tr.is-not-counted td, .fc-rtable tr.is-not-deducted td { opacity: .78; }
.fc-rtable tr.is-not-counted .fc-rtable__num, .fc-rtable tr.is-not-deducted .fc-rtable__num { text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .35); }
.fc-rtable tfoot th, .fc-rtable tfoot td { font-weight: 800; }
.fc-rtable tfoot tr.is-key th, .fc-rtable tfoot tr.is-key td { color: var(--fc-green); font-size: 1rem; border-block-end: 0; }
[data-theme="dark"] .fc-rtable tfoot tr.is-key th, [data-theme="dark"] .fc-rtable tfoot tr.is-key td { color: #5fd3a0; }
.fc-chip-t { display: inline-block; padding: .05rem .5rem; border-radius: 99px; font-size: .7rem; font-weight: 800; }
.fc-chip-t--counted { background: rgba(31, 122, 99, .13); color: #16624f; }
.fc-chip-t--deducted { background: rgba(201, 160, 80, .2); color: #8a6414; }
.fc-chip-t--not-counted, .fc-chip-t--not-deducted { background: var(--fc-surface-2); color: var(--fc-muted); border: 1px solid var(--fc-line); }
[data-theme="dark"] .fc-chip-t--counted { color: #5fd3a0; }
[data-theme="dark"] .fc-chip-t--deducted { color: #f1d59a; }
.fc-facts { margin: 0; display: grid; gap: .1rem; }
.fc-facts > div { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-block-end: 1px dashed var(--fc-line); font-size: .87rem; }
.fc-facts dt { font-weight: 600; color: var(--fc-muted); }
.fc-facts dd { margin: 0; font-weight: 800; text-align: end; font-variant-numeric: tabular-nums; }
.fc-rassume { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: .85rem; }
.fc-rassume li { display: flex; flex-wrap: wrap; gap: .25rem .5rem; align-items: baseline; }
.fc-rassume__label { color: var(--fc-muted); flex-basis: 100%; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; }
.fc-rassume em { font-style: normal; font-size: .7rem; font-weight: 800; padding: 0 .4rem; border-radius: 99px; }
.fc-rassume em.is-default { background: rgba(31, 122, 99, .12); color: var(--fc-green); }
.fc-rassume em.is-choice { background: rgba(201, 160, 80, .2); color: var(--fc-gold-ink); }
.fc-rnotes { margin-block-start: 1rem; }
.fc-rnotes ul { margin: 0 0 .6rem; padding-inline-start: 1.15rem; font-size: .85rem; color: var(--fc-muted); display: grid; gap: .25rem; }
.fc-savebar { display: flex; flex-wrap: wrap; gap: .45rem; margin-block-start: 1rem; }
.fc-savebar[hidden] { display: none; }
.fc-savebar__msg { margin: .5rem 0 0; font-size: .85rem; font-weight: 700; color: var(--fc-green); }
.fc-savebar__msg:empty { display: none; }
.fc-savebar__privacy { margin: .4rem 0 0; font-size: .78rem; color: var(--fc-muted); }

/* Giving calculators */
.fc-thero .fc-give__switch { display: grid; gap: .4rem; }
.fc-give__switch a { display: inline-flex; justify-content: space-between; gap: 1rem; padding: .5rem .85rem; border-radius: 12px; text-decoration: none; color: #fff !important; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); font-weight: 700; font-size: .88rem; }
.fc-give__switch a:hover { border-color: rgba(230, 184, 92, .7); }
.fc-give__layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 1.25rem; margin-block-start: -1rem; position: relative; }
.fc-give__calc, .fc-give__learn { display: grid; gap: 1rem; align-content: start; }
.fc-give__form { display: grid; gap: 1rem; box-shadow: var(--fc-shadow); }
.fc-stepper { display: flex; align-items: stretch; max-inline-size: 15rem; border: 1px solid var(--ip-line-strong, #d9d5c9); border-radius: 12px; overflow: hidden; }
.fc-stepper .form-control { border: 0; border-radius: 0; text-align: center; font-size: 1.3rem; font-weight: 800; box-shadow: none; }
.fc-stepper__btn { inline-size: 3rem; border: 0; background: var(--fc-surface-2); color: var(--fc-ink); font-size: 1.1rem; cursor: pointer; }
.fc-stepper__btn:hover { background: rgba(31, 122, 99, .12); }
.fc-represents { padding: .8rem .95rem; border-radius: 14px; background: var(--fc-gold-soft); border: 1px solid rgba(201, 160, 80, .4); font-size: .87rem; line-height: 1.5; }
.fc-represents p { margin: 0 0 .35rem; }
.fc-represents__title { font-weight: 800; color: var(--fc-gold-ink); }
.fc-represents__never { font-weight: 700; margin: 0 !important; }
.fc-give__actions { display: flex; justify-content: flex-end; }
.fc-give__result[aria-busy="true"] { opacity: .65; }
.fc-total { display: grid; gap: .2rem; padding: 1rem 1.1rem; margin-block: .8rem; border-radius: 16px; background: linear-gradient(135deg, #0d3b29, #1f7a63); color: #fff; }
.fc-total__portions { margin: 0; font-size: .95rem; }
.fc-total__portions strong { font-size: 1.4rem; }
.fc-total__money { margin: 0; font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); font-weight: 800; color: #f1d59a; font-variant-numeric: tabular-nums; }
.fc-total__sum, .fc-total__need { margin: 0; font-size: .85rem; opacity: .9; }
.fc-routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-block: .8rem; }
.fc-route { position: relative; padding: .85rem .8rem .8rem; border-radius: 14px; background: var(--fc-surface-2); border: 1px solid var(--fc-line); }
.fc-route--fast { background: linear-gradient(160deg, rgba(31, 122, 99, .1), var(--fc-surface-2)); }
.fc-route--feed { background: linear-gradient(160deg, rgba(201, 160, 80, .15), var(--fc-surface-2)); }
.fc-route__step { position: absolute; inset-block-start: -.6rem; inset-inline-start: .7rem; inline-size: 1.4rem; block-size: 1.4rem; display: grid; place-items: center; border-radius: 50%; font-size: .75rem; font-weight: 800; background: var(--fc-green); color: #fff; }
.fc-route__label { margin: .2rem 0 .3rem; font-size: .8rem; font-weight: 700; color: var(--fc-muted); line-height: 1.3; }
.fc-route__big { margin: 0; font-size: 1.7rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.fc-route__big small { font-size: .8rem; font-weight: 700; color: var(--fc-muted); }
.fc-route__money { margin: .3rem 0 0; font-weight: 800; color: var(--fc-gold-ink); }
.fc-route__note { margin: .3rem 0 0; font-size: .76rem; color: var(--fc-muted); }
.fc-guide-topic__head { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-block-end: .5rem; }
.fc-rich { font-size: .92rem; line-height: 1.6; }
.fc-rich ul, .fc-rich ol { padding-inline-start: 1.2rem; }
.fc-source { font-size: .8rem; color: var(--fc-muted); }

/* Contracts */
.fc-notruling { display: flex; gap: .7rem; align-items: flex-start; margin-block-start: 1.1rem; padding: .8rem 1rem; border-radius: 14px; background: rgba(230, 184, 92, .14); border: 1px solid rgba(230, 184, 92, .45); max-width: 70rem; }
.fc-notruling .bi { font-size: 1.2rem; color: #f1d59a; }
.fc-notruling p { margin: 0; font-size: .9rem; }
.fc-scn-layout .fc-notruling, .fc-contracts .container-xxl > .fc-notruling { color: var(--fc-ink); }
.fc-scn-layout .fc-notruling .bi { color: var(--fc-gold-ink); }
.fc-ctabs { display: flex; gap: .4rem; overflow-x: auto; padding: .4rem; margin-block: -1.3rem 1.2rem; position: relative; border-radius: 16px; background: var(--fc-surface); border: 1px solid var(--fc-line); box-shadow: var(--fc-shadow); scrollbar-width: thin; }
.fc-ctab { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .6rem .9rem; border: 0; border-radius: 12px; background: transparent; color: var(--fc-muted); font-weight: 750; cursor: pointer; white-space: nowrap; }
.fc-ctab[aria-selected="true"] { background: var(--fc-green); color: #fff; }
.fc-ctab--riba[aria-selected="true"] { background: #9a4a35; }
.fc-contract { padding: 1.2rem 1.25rem; border-radius: 22px; background: var(--fc-surface); border: 1px solid var(--fc-line); box-shadow: var(--fc-shadow); margin-block-end: 2rem; }
.fc-contract__head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.fc-contract__ar { font-family: var(--ip-font-arabic); font-weight: 700; color: var(--fc-gold-ink); margin-inline-start: .5rem; font-size: 1.15em; }
.fc-contract__tagline { margin: 0; color: var(--fc-muted); }
.fc-term { margin: .9rem 0 1.1rem; padding: .75rem 1rem; border-inline-start: 4px solid var(--fc-gold); border-radius: 12px; background: var(--fc-gold-soft); font-size: .9rem; }
.fc-term p { margin: 0 0 .25rem; }
.fc-term__note { color: var(--fc-muted); font-size: .84rem; }
.fc-term footer { font-size: .76rem; }
.fc-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--fc-steps, 4), minmax(0, 1fr)); gap: .65rem; counter-reset: none; }
.fc-contract .fc-flow { --fc-steps: 4; }
#fc-c-salam .fc-flow, #fc-c-qard .fc-flow, #fc-c-riba .fc-flow { --fc-steps: 3; }
.fc-flow__step { position: relative; display: grid; align-content: start; gap: .5rem; padding: .8rem; border-radius: 16px; background: var(--fc-surface-2); border: 1.5px solid var(--fc-line); transition: border-color .2s ease, background-color .2s ease, transform .2s ease; }
.fc-flow__step:not(:last-child)::after { content: ""; position: absolute; inset-block-start: 1.55rem; inset-inline-end: -.6rem; inline-size: .55rem; block-size: 2px; background: var(--fc-gold); }
.fc-contract.is-enhanced .fc-flow__step { opacity: .62; }
.fc-contract.is-enhanced .fc-flow__step.is-past { opacity: .85; }
.fc-contract.is-enhanced .fc-flow__step.is-active { opacity: 1; border-color: var(--fc-green); background: var(--fc-surface); transform: translateY(-3px); box-shadow: var(--fc-shadow); }
.fc-contract--riba.is-enhanced .fc-flow__step.is-active { border-color: #9a4a35; }
.fc-flow__btn { display: flex; align-items: center; gap: .55rem; padding: 0; border: 0; background: transparent; text-align: start; color: inherit; cursor: pointer; font-weight: 800; line-height: 1.25; }
.fc-flow__num { flex: 0 0 auto; inline-size: 1.75rem; block-size: 1.75rem; display: grid; place-items: center; border-radius: 50%; background: var(--fc-green); color: #fff; font-size: .85rem; }
.fc-contract--riba .fc-flow__num { background: #9a4a35; }
.fc-flow__body p { margin: 0 0 .55rem; font-size: .86rem; line-height: 1.5; color: var(--fc-muted); }
.fc-own { margin: 0; display: grid; gap: .3rem; }
.fc-own__item { display: grid; gap: .05rem; padding: .35rem .5rem; border-radius: 9px; background: var(--fc-surface); border: 1px solid var(--fc-line); }
.fc-own__item dt { font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--fc-muted); }
.fc-own__item dd { margin: 0; font-size: .82rem; font-weight: 750; line-height: 1.3; }
.fc-own__item--asset dt .bi { color: var(--fc-green); }
.fc-own__item--risk dt .bi { color: #1d5fae; }
.fc-own__item--owed dt .bi { color: var(--fc-gold-ink); }
.fc-flow__nav { display: none; justify-content: flex-end; gap: .5rem; margin-block-start: .8rem; }
.fc-contract.is-enhanced .fc-flow__nav { display: flex; }
.fc-contract__key { margin: .9rem 0 0; padding: .65rem .85rem; border-radius: 12px; background: rgba(31, 122, 99, .07); font-weight: 650; font-size: .9rem; }
.fc-contract__key .bi { color: var(--fc-gold-ink); }
.fc-matrix { inline-size: 100%; min-inline-size: 44rem; border-collapse: separate; border-spacing: 0; font-size: .86rem; background: var(--fc-surface); border: 1px solid var(--fc-line); border-radius: 16px; overflow: hidden; }
.fc-matrix th, .fc-matrix td { padding: .6rem .75rem; text-align: start; vertical-align: top; border-block-end: 1px solid var(--fc-line); }
.fc-matrix thead th { background: #0d3b29; color: #fff; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.fc-matrix tbody th { white-space: nowrap; font-weight: 800; }
.fc-matrix tbody th .bi { color: var(--fc-green); }
.fc-matrix tr.is-riba { background: rgba(154, 74, 53, .07); }
.fc-matrix tr.is-riba th .bi { color: #9a4a35; }
.fc-compare__form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: .7rem; align-items: end; padding: .9rem; border-radius: 16px; background: var(--fc-surface-2); }
.fc-compare__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin-block-start: 1rem; }
.fc-cmp { padding: 1rem 1.1rem; border-radius: 16px; background: var(--fc-surface); border: 1px solid var(--fc-line); border-block-start: 4px solid #3b5277; }
.fc-cmp--murabaha { border-block-start-color: var(--fc-gold); }
.fc-cmp__title { margin: 0 0 .5rem; font-size: 1rem; font-weight: 800; display: flex; gap: .45rem; align-items: center; }
.fc-cmp .is-late dd { color: #a32525; }
.fc-cmp--murabaha .is-late dd { color: var(--fc-green); }
.fc-cmp__how { margin: .6rem 0 0; font-size: .84rem; color: var(--fc-muted); }
.fc-chart { margin: 1rem 0 0; padding: 1rem; border-radius: 16px; background: var(--fc-surface); border: 1px solid var(--fc-line); }
.fc-chart svg { inline-size: 100%; block-size: 13rem; display: block; }
[dir="rtl"] .fc-chart svg { transform: scaleX(-1); }
.fc-chart__axis { stroke: var(--fc-line); stroke-width: 2; }
.fc-chart__loan, .fc-chart__murabaha { fill: none; stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.fc-chart__loan { stroke: #3b5277; }
.fc-chart__murabaha { stroke: #c9962f; stroke-dasharray: 7 5; }
[data-theme="dark"] .fc-chart__loan { stroke: #84b9ff; }
.fc-chart figcaption { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-block-start: .6rem; font-size: .82rem; color: var(--fc-muted); }
.fc-key::before { content: ""; display: inline-block; inline-size: 1.4rem; block-size: 3px; margin-inline-end: .4rem; vertical-align: middle; border-radius: 3px; }
.fc-key--loan::before { background: #3b5277; }
.fc-key--murabaha::before { background: #c9962f; }
.fc-differences { margin-block-start: 1.2rem; padding: 1rem 1.15rem; border-radius: 16px; background: var(--fc-gold-soft); border: 1px solid rgba(201, 160, 80, .35); }
.fc-differences ul { margin: .5rem 0; padding-inline-start: 1.2rem; display: grid; gap: .35rem; font-size: .9rem; }
.fc-critics { margin: .6rem 0 0; font-size: .86rem; color: var(--fc-muted); }

/* Scenarios and saved */
.fc-scn-layout { margin-block-start: 1.5rem; display: grid; gap: 1.2rem; }
.fc-filter { display: flex; flex-wrap: wrap; gap: .45rem; }
.fc-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border-radius: 99px; border: 1px solid var(--fc-line); background: var(--fc-surface); font-weight: 700; font-size: .86rem; cursor: pointer; color: var(--fc-ink); }
.fc-chip[aria-pressed="true"] { background: var(--fc-green); color: #fff; border-color: transparent; }
.fc-chip__count { font-size: .72rem; padding: 0 .4rem; border-radius: 99px; background: rgba(0, 0, 0, .08); }
.fc-chip[aria-pressed="true"] .fc-chip__count { background: rgba(255, 255, 255, .2); }
.fc-scn-wrap[hidden] { display: none; }
.fc-saved__body { margin-block-start: 1.5rem; display: grid; gap: 1rem; }
.fc-privacy-card { display: flex; gap: .9rem; padding: 1rem 1.1rem; border-radius: 16px; background: rgba(31, 122, 99, .07); border: 1px solid rgba(31, 122, 99, .2); }
.fc-privacy-card > .bi { font-size: 1.5rem; color: var(--fc-green); }
.fc-privacy-card p { margin: .2rem 0 0; font-size: .9rem; color: var(--fc-muted); }
.fc-privacy-card__account { font-weight: 700; }
.fc-saved__toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.fc-saved__toolbar[hidden] { display: none; }
.fc-saved__toolbar > span { font-weight: 800; margin-inline-end: auto; }
.fc-saved-items { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.fc-saved-item { padding: .95rem 1.05rem; border-radius: 16px; background: var(--fc-surface); border: 1px solid var(--fc-line); }
.fc-saved-item__head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.fc-saved-item__kind { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--fc-gold-ink); }
.fc-saved-item__title { font-size: 1.05rem; font-weight: 800; margin: .1rem 0; }
.fc-saved-item__when { margin: 0; font-size: .8rem; color: var(--fc-muted); }
.fc-saved-item__total { margin: 0; font-size: 1.25rem; font-weight: 800; color: var(--fc-green); font-variant-numeric: tabular-nums; }
.fc-saved-item__details { margin-block-start: .6rem; }
.fc-saved-item__details summary { cursor: pointer; font-size: .85rem; font-weight: 700; }
.fc-saved-item__actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-block-start: .7rem; }
.fc-saved__tools { display: flex; flex-wrap: wrap; gap: .45rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .fc-launch { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fc-zk__layout { grid-template-columns: minmax(0, 1fr) 18rem; }
}
@media (max-width: 991.98px) {
  .fc-hero__grid, .fc-mhero__grid, .fc-thero__grid { grid-template-columns: minmax(0, 1fr); }
  .fc-principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fc-group { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
  .fc-mbody, .fc-give__layout, .fc-split, .fc-rgrid { grid-template-columns: minmax(0, 1fr); }
  .fc-mside { position: static; }
  .fc-zk__layout { grid-template-columns: minmax(0, 1fr); }
  .fc-panel-a { position: static; order: -1; }
  .fc-flow { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .fc-flow__step::after { display: none; }
  .fc-compare__form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fc-sheet { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575.98px) {
  .fc-launch { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .45rem; }
  .fc-launch__tile { min-block-size: 0; }
  .fc-principles { grid-template-columns: minmax(0, 1fr); margin-block-start: -1rem; }
  .fc-mods { grid-template-columns: minmax(0, 1fr); }
  .fc-topics, .fc-grid2, .fc-choices, .fc-choices--3, .fc-routes, .fc-compare__cards, .fc-compare__form, .fc-flow { grid-template-columns: minmax(0, 1fr) !important; }
  .fc-steps { gap: .15rem; }
  /* Part 48: hidden from sight only, so each step button keeps its name for screen readers. */
  .fc-step__label { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .fc-step.is-current .fc-step__label { position: static; inline-size: auto; block-size: auto; overflow: visible; clip-path: none; white-space: normal; display: block; font-size: .7rem; }
  .fc-metal { grid-template-columns: minmax(0, 1fr) 6.5rem; }
  .fc-fatwa { grid-template-columns: auto 1fr; }
  .fc-fatwa .fc-btn { grid-column: 1 / -1; }
  .fc-pager { grid-template-columns: minmax(0, 1fr); }
  .fc-rhero__amount { text-align: start; }
  /* The assumptions panel sits above the steps on a phone: two columns, so the first question is in reach. */
  .fc-panel-a__inner { padding: .8rem .8rem .7rem; border-radius: 18px; }
  .fc-panel-a__lead { display: none; }
  .fc-assume { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem; }
  .fc-assume__row { padding: .45rem .55rem; }
  .fc-assume__row--nisab, .fc-assume__row--hawl { grid-column: 1 / -1; }
  .fc-assume__row dt { font-size: .64rem; }
  .fc-assume__value { font-size: .82rem; }
  .fc-assume__row--hawl .fc-assume__line { display: none; }
  .fc-panel-a__foot { font-size: .72rem; margin-block-start: .45rem; }
}
@media (prefers-reduced-motion: reduce) {
  .fc *, .fc *::before, .fc *::after { animation: none !important; transition: none !important; }
}

/* ---------- Print: the calculation, its assumptions and limits, nothing else ---------- */
@media print {
  .ip-header, .ip-footer, header.ip-header, footer, nav, .fc-thero, .fc-steps, .fc-nav, .fc-savebar, .fc-savebar__privacy, .fc-panel-a__foot,
  .fc-give__form, .fc-give__learn, .fc-saved__toolbar, .fc-saved__tools, .fc-saved-item__actions, .fc-pane:not(.fc-result), .fc-zk__main > noscript, .ip-breadcrumbs, .breadcrumb { display: none !important; }
  .fc-zk__layout, .fc-give__layout { display: block; margin: 0; }
  .fc-zk__main, .fc-card, .fc-panel-a__inner { box-shadow: none !important; border-color: #bbb !important; }
  .fc-pane.fc-result { display: block !important; }
  .fc-panel-a { position: static; margin-block-start: 1rem; }
  .fc-panel-a__inner, .fc-rhero, .fc-total { background: #fff !important; color: #111 !important; border: 2px solid #146653 !important; }
  .fc-panel-a__inner *, .fc-rhero *, .fc-total * { color: #111 !important; }
  .fc-rgrid { grid-template-columns: minmax(0, 1fr); }
  .fc-saved-item__details > *:not(summary) { display: block !important; }
}

/* The three smaller groups sit side by side under the zakat group, so the hub stays dense. */
@media (min-width: 992px) {
  .fc-modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1.25rem; }
  .fc-modules > .fc-block-head, .fc-modules > .fc-group--zakat { grid-column: 1 / -1; }
  .fc-modules > .fc-group:not(.fc-group--zakat) { grid-template-columns: minmax(0, 1fr); gap: .6rem; align-content: start; }
  .fc-modules > .fc-group:not(.fc-group--zakat) .fc-mods { grid-template-columns: minmax(0, 1fr); }
}
.fc-thero .fc-notruling, .fc-thero .container-xxl > .fc-notruling { color: #f4efe2; }
