/* INCHUB 360 Library: hub page + article template. Every article opens with a motion hero (a gear turning around the Living Hub,
   plus a scene that shows the topic), then readable content, interactive blocks and official government sources. Brand tokens only. */

/* ---------- Hero machine: gear + hub + topic scene ---------- */
.lb-hero { padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 104px); }
.lb-hero .cx-hero-grid { grid-template-columns: 1.1fr .9fr; }
@media (max-width: 960px) { .lb-hero .cx-hero-grid { grid-template-columns: 1fr; } }
.lb-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lb-meta span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--ih-radius-pill); font-size: 12px; font-weight: 800; color: var(--cx-paper); background: color-mix(in srgb, var(--cx-paper) 8%, transparent); border: 1px solid var(--cx-line); }
.lb-meta .fl { font-size: 15px; }
.lb-hero h1 { font-size: clamp(34px, 5vw, 62px); }
.machine { position: relative; aspect-ratio: 1; inline-size: 100%; max-inline-size: 500px; justify-self: center; direction: ltr; }
.machine .gear { position: absolute; inset: 8%; animation: bg-fan-turn 26s linear infinite; }
.machine .gear svg { inline-size: 100%; block-size: 100%; }
.machine .gear path { fill: color-mix(in srgb, var(--cx-paper) 7%, transparent); stroke: color-mix(in srgb, var(--cx-or) 55%, transparent); stroke-width: 1.2; }
.machine .gear2 { inset: auto; inline-size: 34%; aspect-ratio: 1; right: -2%; top: 2%; animation-direction: reverse; animation-duration: 12s; }
.machine .gear2 path { fill: color-mix(in srgb, var(--cx-or) 22%, transparent); }
.machine .core { position: absolute; inset: 31%; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, var(--ih-color-neutral-800), var(--cx-ink)); box-shadow: 0 0 0 1px var(--cx-line), 0 30px 80px -20px color-mix(in srgb, var(--cx-or) 60%, transparent); z-index: 2; }
.machine .core ih-hub { --ih-hub-size: 62%; color: var(--cx-paper); }
.machine .chipm { position: absolute; z-index: 3; translate: -50% -50%; display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 14px; font-size: 12.5px; font-weight: 800; white-space: nowrap; color: var(--cx-paper); background: color-mix(in srgb, var(--cx-ink) 70%, var(--ih-color-neutral-800)); border: 1px solid var(--cx-line); box-shadow: 0 18px 40px -20px black; opacity: 0; animation: lb-chip 9s ease-in-out infinite; }
.machine .chipm i { inline-size: 22px; block-size: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; background: var(--ih-color-status-success); color: var(--cx-paper); }
.machine .chipm.warn i { background: var(--cx-or); color: var(--cx-ink); }
.machine .chipm:nth-of-type(2) { animation-delay: 3s; } .machine .chipm:nth-of-type(3) { animation-delay: 6s; }
@keyframes lb-chip { 0%, 4% { opacity: 0; transform: translateY(10px) scale(.95); } 10%, 60% { opacity: 1; transform: none; } 70%, 100% { opacity: 0; transform: translateY(-8px); } }
/* Scenes: one small "thing happening" per topic, on top of the gear */
.scene-obj { position: absolute; z-index: 4; inset-inline-start: 50%; inset-block-start: 50%; translate: -50% -50%; pointer-events: none; }
/* stamp: a document gets stamped */
.sc-stamp { inline-size: 40%; aspect-ratio: .78; translate: 12% -6%; }
.sc-stamp .doc { position: absolute; inset: 0; border-radius: 12px; background: var(--cx-paper); box-shadow: 0 30px 60px -20px black; padding: 14% 12%; display: grid; gap: 8%; align-content: start; transform: rotate(-6deg); }
.sc-stamp .doc i { display: block; block-size: 6px; border-radius: 4px; background: var(--ih-color-neutral-200); }
.sc-stamp .doc i:nth-child(1) { inline-size: 60%; background: var(--ih-color-neutral-400); } .sc-stamp .doc i:nth-child(3) { inline-size: 80%; } .sc-stamp .doc i:nth-child(4) { inline-size: 50%; }
.sc-stamp .seal { position: absolute; inset-block-end: 12%; inset-inline-end: 8%; inline-size: 46%; aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--ih-color-status-success); color: var(--ih-color-status-success); display: grid; place-items: center; font-weight: 800; font-size: clamp(10px, 1.3vw, 14px); transform: rotate(-14deg); animation: lb-stamp 4s cubic-bezier(.2,1.4,.4,1) infinite; }
@keyframes lb-stamp { 0%, 20% { opacity: 0; transform: rotate(-14deg) scale(2.4); } 32%, 85% { opacity: 1; transform: rotate(-14deg) scale(1); } 100% { opacity: 0; transform: rotate(-14deg) scale(1); } }
/* coins: money flows into an account */
.sc-coins { inline-size: 56%; aspect-ratio: 1; translate: 26% 6%; }
.sc-coins .bank { position: absolute; inset-inline: 18%; inset-block-end: 6%; block-size: 46%; border-radius: 10px 10px 6px 6px; background: var(--cx-paper); box-shadow: 0 30px 60px -20px black; display: grid; place-items: center; color: var(--cx-ink); }
.sc-coins .bank svg { inline-size: 48%; block-size: 48%; fill: none; stroke: currentColor; stroke-width: 2; }
.sc-coins .coin { position: absolute; inline-size: 18%; aspect-ratio: 1; border-radius: 50%; background: var(--cx-or); color: var(--cx-ink); display: grid; place-items: center; font-weight: 800; font-size: clamp(10px, 1.3vw, 15px); inset-inline-start: 41%; inset-block-start: 0; animation: lb-coin 2.4s ease-in infinite; box-shadow: 0 0 0 4px color-mix(in srgb, var(--cx-or) 25%, transparent); }
.sc-coins .coin:nth-child(3) { animation-delay: .8s; inset-inline-start: 26%; } .sc-coins .coin:nth-child(4) { animation-delay: 1.6s; inset-inline-start: 56%; }
@keyframes lb-coin { 0% { transform: translateY(-20%); opacity: 0; } 15% { opacity: 1; } 70% { transform: translateY(190%); opacity: 1; } 80%, 100% { transform: translateY(200%) scale(.4); opacity: 0; } }
/* calendar: a deadline counts down */
.sc-cal { inline-size: 46%; aspect-ratio: .9; translate: 30% 0; }
.sc-cal .pg { position: absolute; inset: 0; border-radius: 14px; background: var(--cx-paper); color: var(--cx-ink); box-shadow: 0 30px 60px -20px black; display: grid; grid-template-rows: 26% 1fr; overflow: hidden; }
.sc-cal .pg b { display: grid; place-items: center; background: var(--cx-or); font-size: clamp(11px, 1.3vw, 14px); letter-spacing: .08em; }
.sc-cal .pg span { display: grid; place-items: center; font-size: clamp(30px, 5vw, 56px); font-weight: 800; font-variant-numeric: tabular-nums; }
.sc-cal .flip { animation: lb-flip 2.6s ease-in-out infinite; transform-origin: top; }
@keyframes lb-flip { 0%, 70% { transform: rotateX(0); } 85% { transform: rotateX(80deg); opacity: .4; } 100% { transform: rotateX(0); } }
/* seal: ® lands on a brand card */
.sc-seal { inline-size: 50%; aspect-ratio: 1.3; translate: 28% 4%; }
.sc-seal .card { position: absolute; inset: 0; border-radius: 16px; background: var(--cx-paper); box-shadow: 0 30px 60px -20px black; display: grid; place-items: center; color: var(--cx-ink); font-weight: 800; font-size: clamp(16px, 2.4vw, 26px); letter-spacing: -.02em; }
.sc-seal .r { position: absolute; inset-block-start: -14%; inset-inline-end: -10%; inline-size: 38%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--cx-or); color: var(--cx-ink); font-size: clamp(16px, 2.4vw, 28px); font-weight: 800; animation: lb-seal 3.6s cubic-bezier(.2,1.5,.4,1) infinite; box-shadow: 0 0 0 6px color-mix(in srgb, var(--cx-or) 25%, transparent); }
@keyframes lb-seal { 0%, 15% { transform: scale(0) rotate(-90deg); } 30%, 88% { transform: scale(1) rotate(0); } 100% { transform: scale(0); } }
/* alarm: a missed deadline triggers a fine */
.sc-alarm { inline-size: 46%; aspect-ratio: 1; translate: 30% 2%; }
.sc-alarm .clock { position: absolute; inset: 0; border-radius: 50%; background: var(--cx-paper); box-shadow: 0 30px 60px -20px black, 0 0 0 6px color-mix(in srgb, var(--ih-color-status-danger) 30%, transparent); animation: lb-ring 2.4s ease-in-out infinite; }
.sc-alarm .clock::before, .sc-alarm .clock::after { content: ""; position: absolute; inset-inline-start: 50%; inset-block-end: 50%; inline-size: 4px; border-radius: 3px; background: var(--cx-ink); transform-origin: bottom; }
.sc-alarm .clock::before { block-size: 32%; animation: bg-fan-turn 4s linear infinite; }
.sc-alarm .clock::after { block-size: 22%; animation: bg-fan-turn 48s linear infinite; }
.sc-alarm .fine { position: absolute; inset-block-start: -10%; inset-inline-end: -26%; padding: 8px 12px; border-radius: 12px; background: var(--ih-color-status-danger); color: var(--cx-paper); font-weight: 800; font-size: clamp(11px, 1.4vw, 15px); white-space: nowrap; animation: lb-fine 2.4s ease-in-out infinite; }
@keyframes lb-ring { 0%, 60%, 100% { rotate: 0deg; } 66% { rotate: 6deg; } 72% { rotate: -5deg; } 78% { rotate: 3deg; } }
@keyframes lb-fine { 0%, 55% { opacity: 0; transform: translateY(8px) scale(.9); } 65%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
/* passport: a residence visa is stamped */
.sc-pass { inline-size: 40%; aspect-ratio: .72; translate: 32% 0; }
.sc-pass .book { position: absolute; inset: 0; border-radius: 10px; background: linear-gradient(160deg, var(--ih-color-orange-800), var(--ih-color-orange-950)); box-shadow: 0 30px 60px -20px black; display: grid; place-items: center; color: var(--ih-color-orange-200); }
.sc-pass .book svg { inline-size: 46%; block-size: 46%; fill: none; stroke: currentColor; stroke-width: 1.6; }
.sc-pass .visa { position: absolute; inset-block-end: -8%; inset-inline-start: -30%; padding: 8px 12px; border-radius: 10px; border: 2.5px solid var(--ih-color-status-success); color: var(--ih-color-status-success); background: var(--cx-paper); font-weight: 800; font-size: clamp(10px, 1.3vw, 14px); transform: rotate(-10deg); animation: lb-stamp 4s cubic-bezier(.2,1.4,.4,1) infinite; }

/* ---------- Article layout ---------- */
.lb-read { position: fixed; inset-block-start: 0; inset-inline: 0; block-size: 3px; z-index: 70; background: transparent; }
.lb-read i { display: block; block-size: 100%; inline-size: 100%; background: var(--cx-or); transform-origin: left; transform: scaleX(var(--p, 0)); }
[dir="rtl"] .lb-read i { transform-origin: right; }
.lb-facts { position: relative; z-index: 2; margin-block-start: clamp(-64px, -5vw, -40px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .lb-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lb-facts > div { padding: 18px; border-radius: 20px; background: var(--ih-surface); border: 1px solid var(--ih-border); box-shadow: 0 30px 60px -45px black; display: grid; gap: 4px; animation: qz-tile 500ms cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 80ms); }
.lb-facts b { font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.02em; color: var(--ih-text); font-variant-numeric: tabular-nums; }
.lb-facts span { color: var(--ih-text-muted); font-size: 13px; font-weight: 600; }
.lb-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; padding-block: clamp(40px, 6vw, 72px); }
@media (max-width: 960px) { .lb-body { grid-template-columns: 1fr; } }
.toc { position: sticky; inset-block-start: 90px; display: grid; gap: 4px; }
@media (max-width: 960px) { .toc { position: static; padding: 14px; border-radius: 16px; background: var(--ih-surface-alt); } }
.toc b { font-size: 12px; text-transform: uppercase; letter-spacing: var(--ih-font-tracking-label); color: var(--ih-text-muted); margin-block-end: 6px; }
:lang(ar) .toc b { text-transform: none; letter-spacing: 0; }
.toc a { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: center; padding: 7px 8px; border-radius: 10px; color: var(--ih-text-muted); text-decoration: none; font-weight: 700; font-size: 13.5px; line-height: 1.35; transition: background 200ms, color 200ms; }
.toc a ih-hub { --ih-hub-size: 18px; opacity: .35; transition: opacity 200ms; }
.toc a:hover { color: var(--ih-text); background: var(--ih-surface-alt); }
.toc a.on { color: var(--ih-text); background: var(--ih-color-orange-50); }
.toc a.on ih-hub { opacity: 1; }
.art { display: grid; gap: 18px; max-inline-size: 760px; font-size: 17px; line-height: 1.75; }
.art h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.2; letter-spacing: -.03em; margin-block-start: 28px; scroll-margin-top: 90px; display: flex; align-items: center; gap: 12px; }
:lang(ar) .art h2 { letter-spacing: 0; }
.art h2 .n { flex: none; inline-size: 34px; block-size: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--cx-ink); color: var(--cx-paper); font-size: 14px; }
.art h3 { font-size: var(--ih-font-size-xl); margin-block-start: 8px; }
.art p { color: var(--ih-text); }
.art p .muted, .art .muted { color: var(--ih-text-muted); }
.art ul { margin: 0; padding-inline-start: 0; list-style: none; display: grid; gap: 8px; }
.art ul li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.art ul li::before { content: ""; inline-size: 8px; block-size: 8px; margin-block-start: .65em; border-radius: 2px; transform: rotate(45deg); background: var(--cx-or); justify-self: center; }
sup.ref a { font-size: 11px; font-weight: 800; color: var(--ih-text-accent); text-decoration: none; padding: 1px 5px; border-radius: 6px; background: var(--ih-color-orange-50); margin-inline-start: 2px; }
sup.ref a:hover { background: var(--ih-color-orange-100); }
/* Table */
.tbl { overflow-x: auto; border: 1px solid var(--ih-border); border-radius: 18px; background: var(--ih-surface); }
.tbl table { inline-size: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.tbl th, .tbl td { padding: 12px 14px; text-align: start; border-block-end: 1px solid var(--ih-border); vertical-align: top; }
.tbl th { background: var(--ih-surface-alt); font-weight: 800; font-size: 13px; white-space: nowrap; }
.tbl tr:last-child td { border-block-end: 0; }
.tbl td:first-child { font-weight: 700; }
.tbl tbody tr { transition: background 200ms; }
.tbl tbody tr:hover { background: var(--ih-color-orange-50); }
.tbl-note { font-size: 13px; color: var(--ih-text-muted); margin-block-start: -8px; }
/* Callouts */
.co { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--ih-border); background: var(--ih-surface); }
.co .ic { inline-size: 36px; block-size: 36px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; }
.co b { display: block; margin-block-end: 2px; }
.co p { font-size: 15.5px; line-height: 1.6; }
.co--warn { background: var(--ih-color-status-danger-bg); border-color: transparent; } .co--warn .ic { background: var(--ih-danger); color: var(--cx-paper); }
.co--info { background: var(--ih-color-orange-50); border-color: transparent; } .co--info .ic { background: var(--cx-or); color: var(--cx-ink); }
.co--ok { background: var(--ih-color-status-success-bg); border-color: transparent; } .co--ok .ic { background: var(--ih-success); color: var(--cx-paper); }
/* Steps */
.stp { display: grid; gap: 0; counter-reset: s; }
.stp > div { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding-block-end: 20px; counter-increment: s; }
.stp > div::before { content: counter(s); inline-size: 44px; block-size: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--ih-surface); border: 2px solid var(--cx-or); color: var(--ih-text); z-index: 1; transition: background 300ms, transform 300ms; }
.stp > div.in::before { background: var(--cx-or); transform: scale(1.06); }
.stp > div:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 21px; inset-block: 44px 0; inline-size: 2px; background: var(--ih-border); }
.stp b { display: block; font-size: var(--ih-font-size-lg); margin-block-start: 8px; }
.stp p { color: var(--ih-text-muted); font-size: 15.5px; line-height: 1.6; }
/* Checklist */
.chk { display: grid; gap: 8px; padding: 18px; border-radius: 20px; background: var(--ih-surface); border: 1px solid var(--ih-border); }
.chk .hd { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.chk .hd ih-hub { --ih-hub-size: 30px; }
.chk .hd small { margin-inline-start: auto; color: var(--ih-text-muted); font-weight: 700; }
.chk label { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; padding: 10px; border-radius: 12px; cursor: pointer; font-size: 15.5px; line-height: 1.5; transition: background 200ms; }
.chk label:hover { background: var(--ih-surface-alt); }
.chk input { appearance: none; inline-size: 24px; block-size: 24px; border-radius: 7px; border: 2px solid var(--ih-color-neutral-300); margin: 0; display: grid; place-items: center; cursor: pointer; transition: background 200ms, border-color 200ms; }
.chk input:checked { background: var(--ih-success); border-color: var(--ih-success); }
.chk input:checked::after { content: "✓"; color: var(--cx-paper); font-weight: 800; font-size: 14px; }
.chk input:checked + span { color: var(--ih-text-muted); text-decoration: line-through; }
.chk input:focus-visible { outline: 3px solid var(--ih-focus-ring); outline-offset: 2px; }
/* FAQ */
.lfaq details { border-block-end: 1px solid var(--ih-border); }
.lfaq summary { cursor: pointer; list-style: none; padding-block: 16px; font-weight: 800; display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.lfaq summary::-webkit-details-marker { display: none; }
.lfaq summary::after { content: "+"; inline-size: 28px; block-size: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ih-surface-alt); transition: rotate 300ms, background 300ms; }
.lfaq details[open] summary::after { rotate: 45deg; background: var(--cx-or); }
.lfaq p { padding-block-end: 16px; color: var(--ih-text-muted); font-size: 15.5px; line-height: 1.7; }
/* Penalty simulator */
.sim { position: relative; overflow: hidden; border-radius: 24px; background: var(--cx-ink); color: var(--cx-paper); padding: clamp(18px, 3vw, 28px); display: grid; gap: 16px; isolation: isolate; }
.sim::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(400px 220px at 100% 0%, color-mix(in srgb, var(--ih-color-status-danger) 40%, transparent), transparent 70%); }
.sim .hd { display: flex; align-items: center; gap: 12px; }
.sim .hd .al { inline-size: 40px; block-size: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--ih-color-status-danger); font-size: 20px; animation: lb-ring 2.4s ease-in-out infinite; }
.sim .hd b { font-size: var(--ih-font-size-lg); }
.sim .hd small { display: block; color: var(--cx-dim); font-weight: 600; }
.sim .ctl { display: grid; gap: 8px; }
.sim .ctl label { font-weight: 700; font-size: 14px; color: var(--cx-dim); display: flex; justify-content: space-between; }
.sim .ctl label b { color: var(--cx-paper); }
.sim input[type="range"] { inline-size: 100%; accent-color: var(--cx-or); }
.sim .seg2 { display: flex; flex-wrap: wrap; gap: 6px; }
.sim .seg2 button { font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; padding: 7px 12px; border-radius: var(--ih-radius-pill); border: 1px solid var(--cx-line); background: transparent; color: var(--cx-paper); }
.sim .seg2 button[aria-pressed="true"] { background: var(--cx-or); color: var(--cx-ink); border-color: var(--cx-or); }
.sim .out { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 16px; border-radius: 18px; background: color-mix(in srgb, var(--cx-paper) 7%, transparent); }
.sim .big { font-size: clamp(30px, 4vw, 44px); font-weight: 800; color: var(--ih-color-orange-300); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.sim .what { display: grid; gap: 4px; font-size: 14px; color: var(--cx-dim); }
.sim .what b { color: var(--cx-paper); }
.sim .lvl { display: flex; gap: 4px; }
.sim .lvl i { flex: 1; block-size: 6px; border-radius: 6px; background: var(--cx-line); transition: background 300ms; }
.sim .lvl i.on { background: var(--ih-color-orange-300); } .sim .lvl i.on.hot { background: var(--ih-color-status-danger); }
.sim .src { font-size: 12px; color: var(--cx-dim); }
.sim .src a { color: var(--cx-paper); }
/* Sources */
.srcs { display: grid; gap: 10px; padding: clamp(18px, 3vw, 26px); border-radius: 22px; background: var(--ih-surface-alt); }
.srcs h2 { margin: 0; }
.srcs ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; counter-reset: r; }
.srcs li { counter-increment: r; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; font-size: 14.5px; line-height: 1.5; scroll-margin-top: 100px; }
.srcs li::before { content: counter(r); inline-size: 26px; block-size: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--ih-surface); font-weight: 800; font-size: 12px; }
.srcs li:target { background: var(--ih-color-orange-50); border-radius: 10px; }
.srcs a { color: var(--ih-text); font-weight: 700; }
.srcs small { display: block; color: var(--ih-text-muted); font-weight: 600; }
.srcs .gov { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; color: var(--ih-success); }
.review { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--ih-text-muted); font-weight: 600; }
.review span { padding: 5px 10px; border-radius: var(--ih-radius-pill); background: var(--ih-surface-alt); }
.review span.pending { background: var(--ih-color-orange-100); color: var(--ih-text-accent); }
/* Related service CTA */
.lcta { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 22px; border-radius: 24px; background: var(--cx-ink); color: var(--cx-paper); isolation: isolate; }
.lcta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(400px 200px at 100% 50%, color-mix(in srgb, var(--cx-or) 40%, transparent), transparent 70%); }
.lcta b { font-size: var(--ih-font-size-xl); }
.lcta p { color: var(--cx-dim); font-size: 15px; }
@media (max-width: 600px) { .lcta { grid-template-columns: 1fr; } }

/* ---------- Library hub ---------- */
.lib-tools { position: relative; z-index: 2; margin-block-start: clamp(-70px, -6vw, -44px); display: grid; gap: 14px; padding: clamp(16px, 2.6vw, 24px); border-radius: 26px; background: var(--ih-surface); border: 1px solid var(--ih-border); box-shadow: 0 50px 100px -60px black; }
.lib-search { position: relative; }
.lib-search input { inline-size: 100%; min-block-size: 58px; border-radius: 16px; border: 1.5px solid var(--ih-border); background: var(--ih-bg); font: inherit; font-size: 17px; font-weight: 600; padding-inline: 52px 16px; color: var(--ih-text); }
.lib-search input:focus { outline: none; border-color: var(--cx-or); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cx-or) 16%, transparent); }
.lib-search .ico { position: absolute; inset-inline-start: 18px; inset-block-start: 50%; translate: 0 -50%; inline-size: 22px; block-size: 22px; color: var(--ih-text-muted); }
.lib-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lib-filters .sep { inline-size: 1px; block-size: 26px; background: var(--ih-border); margin-inline: 4px; }
.lib-filters button { font: inherit; font-weight: 800; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: var(--ih-radius-pill); border: 1.5px solid var(--ih-border); background: var(--ih-bg); color: var(--ih-text); transition: border-color 200ms, background 200ms, transform 200ms; }
.lib-filters button:hover { border-color: var(--ih-text); }
.lib-filters button[aria-pressed="true"] { background: var(--cx-ink); color: var(--cx-paper); border-color: var(--cx-ink); }
.lib-filters .ico { inline-size: 16px; block-size: 16px; }
.lib-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .lib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .lib-grid { grid-template-columns: 1fr; } }
.lcard { position: relative; overflow: hidden; display: grid; grid-template-rows: auto 1fr; border-radius: 24px; background: var(--ih-surface); border: 1px solid var(--ih-border); color: var(--ih-text); text-decoration: none; transition: transform 300ms cubic-bezier(.2,.8,.2,1), box-shadow 300ms, border-color 300ms; animation: qz-tile 450ms cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 50ms); }
.lcard:hover { transform: translateY(-6px); border-color: var(--ih-text); box-shadow: 0 30px 60px -40px black; }
.lcard .thumb { position: relative; block-size: 150px; background: var(--cx-ink); overflow: hidden; isolation: isolate; }
.lcard .thumb::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(260px 160px at 80% 20%, color-mix(in srgb, var(--cx-or) 40%, transparent), transparent 70%); }
.lcard .thumb .g { position: absolute; inline-size: 180px; aspect-ratio: 1; inset-inline-end: -40px; inset-block-start: -30px; animation: bg-fan-turn 30s linear infinite; }
.lcard .thumb .g path { fill: color-mix(in srgb, var(--cx-paper) 7%, transparent); stroke: color-mix(in srgb, var(--cx-or) 50%, transparent); }
.lcard .thumb .h { position: absolute; inset-block-end: 16px; inset-inline-start: 16px; inline-size: 52px; block-size: 52px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--cx-paper) 10%, transparent); border: 1px solid var(--cx-line); }
.lcard .thumb .h ih-hub { --ih-hub-size: 30px; color: var(--cx-paper); }
.lcard .thumb .em { position: absolute; inset-block-start: 16px; inset-inline-start: 16px; display: flex; gap: 6px; font-size: 20px; }
.lcard .thumb .ty { position: absolute; inset-block-start: 16px; inset-inline-end: 16px; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: var(--ih-radius-pill); background: var(--cx-or); color: var(--cx-ink); }
.lcard:hover .thumb .g { animation-duration: 6s; }
.lcard .thumb .gl { position: absolute; inset-block-end: 14px; inset-inline-end: 18px; inline-size: 58px; block-size: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--cx-or); color: var(--cx-ink); font-weight: 800; font-size: 24px; box-shadow: 0 0 0 6px color-mix(in srgb, var(--cx-or) 22%, transparent); animation: cx-float 4s ease-in-out infinite; }
.lcard:nth-child(2n) .thumb .gl { animation-delay: -1.3s; } .lcard:nth-child(3n) .thumb .gl { animation-delay: -2.6s; }
.lcard .bd { display: grid; gap: 8px; align-content: start; padding: 18px; }
.lcard b { font-size: var(--ih-font-size-lg); line-height: 1.3; }
.lcard p { color: var(--ih-text-muted); font-size: 14px; line-height: 1.55; }
.lcard .ft { display: flex; justify-content: space-between; align-items: center; margin-block-start: auto; padding-block-start: 6px; font-size: 12.5px; font-weight: 800; color: var(--ih-text-muted); }
.lcard .ft .go { color: var(--ih-text-accent); }
.lcard--soon { pointer-events: none; opacity: .7; }
.lcard--soon .ty { background: var(--ih-surface-alt); color: var(--ih-text-muted); }
.lib-pillars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .lib-pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .lib-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lib-pillars button { font: inherit; text-align: start; cursor: pointer; display: grid; gap: 8px; padding: 18px; border-radius: 22px; border: 1.5px solid var(--ih-border); background: var(--ih-surface); color: var(--ih-text); transition: transform 260ms cubic-bezier(.2,.8,.2,1), border-color 200ms, box-shadow 260ms; }
.lib-pillars button:hover { transform: translateY(-4px); border-color: var(--ih-text); }
.lib-pillars button[aria-pressed="true"] { border-color: var(--cx-or); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cx-or) 14%, transparent); }
.lib-pillars .tile { inline-size: 46px; block-size: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--ih-color-orange-50); transition: transform 400ms cubic-bezier(.2,1.4,.4,1), background 200ms; }
.lib-pillars button:hover .tile, .lib-pillars button[aria-pressed="true"] .tile { transform: rotate(-10deg); background: var(--cx-or); }
.lib-pillars .tile .ico { inline-size: 24px; block-size: 24px; }
.lib-pillars b { font-size: var(--ih-font-size-md); }
.lib-pillars small { color: var(--ih-text-muted); font-weight: 700; font-size: 12.5px; }

@media (prefers-reduced-motion: reduce) {
  .machine .gear, .machine .chipm, .sc-stamp .seal, .sc-coins .coin, .sc-cal .flip, .sc-seal .r, .sc-alarm .clock, .sc-alarm .clock::before, .sc-alarm .clock::after, .sc-alarm .fine, .sc-pass .visa, .sim .hd .al, .lcard .thumb .g, .lcard .thumb .gl, .lb-facts > div, .lcard { animation: none !important; }
  .machine .chipm, .sc-stamp .seal, .sc-seal .r, .sc-alarm .fine, .sc-pass .visa { opacity: 1; transform: none; }
}

.tmc .tmrows { display: grid; gap: 10px; }
.tmc .out { grid-template-columns: 44px 1fr; }

/* Official partner logo strip inside bank articles (block type "logos"). */
.lb-logos { margin: 22px 0 26px; padding: 18px; border: 1px solid var(--ih-color-neutral-200); border-radius: var(--ih-radius-md); background: var(--ih-color-neutral-100); }
.lb-logos > b { display: block; margin-bottom: 12px; font-size: var(--ih-font-size-sm); letter-spacing: .02em; }
@media (max-width: 560px) { .lb-logos .blogo--lg { height: 52px; min-width: 104px; padding: 8px 12px; } .lb-logos .blogo--lg img { max-height: 32px; max-width: 128px; } }
.lb-logos .blogo-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.lb-logos .blogo { width: 100%; max-width: none; }
@media (max-width: 560px) { .lb-logos .blogo-row { grid-template-columns: 1fr 1fr; } }
.lb-logos .blogo { min-width: 0; overflow: hidden; } .lb-logos .blogo img { max-width: 100%; }
/* Links from the Library hub to the other learning pages (checklists, glossary, calendar, updates). */
.lib-learn { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.lib-learn a { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 16px; text-decoration: none; font-weight: 800; color: var(--ih-text); background: var(--ih-color-neutral-100); border: 1.5px solid transparent; transition: border-color 200ms, transform 200ms; }
.lib-learn a:hover { border-color: var(--cx-or); transform: translateY(-2px); }
.lib-learn a > span:first-child { inline-size: 34px; block-size: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--ih-color-brand-ink); color: var(--ih-color-brand-paper); font-size: 14px; }
