/* USD page redesign 2026-11 (staging): the rebuilt HAMARA site's look (Heebo, header, footer, cards, calculator card with a rate band)
   layered over hamara-usd-v2.css, which stays the structural base. Every rule is scoped to body.hmv2-page / .hmv2 (page 34 only).
   Ad-free page: nothing here touches ads. Rollback = delete this file + restore the previous page-34.php / js / inc. */
@font-face{font-family:"Heebo";font-style:normal;font-weight:100 900;font-display:swap;src:url(../fonts/heebo-hebrew.woff2) format("woff2");unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:"Heebo";font-style:normal;font-weight:100 900;font-display:swap;src:url(../fonts/heebo-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

body.hmv2-page, .hmv2, .hmv2-top {
	--ink: #0f1b2d; --ink2: #2c3a4f; --muted: #566274; --faint: #8793a3;
	--line: #e3e8ef; --hair: #eef1f5; --soft: #f5f8fb; --page: #f5f8fb; --skel: #e6ecf2;
	--blue: #15A2DB; --blue-strong: #0a6a92; --blue-ink: #0a6a92; --blue-deep: #083d55; --blue-night: #062f43; --blue-tint: #eaf6fc; --blue-line: #c6e6f5;
	--green: #7aa62e; --teal: #3aa6a0;
	--up: #11793a; --down: #b42318; --warn: #8a4b08;
	--r: 16px; --r-sm: 8px; --ctl: 56px; --ctl2: 48px;
	--shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 10px 30px rgba(15, 27, 45, .07);
	--font: "Heebo", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
	--wrap: 1200px; --gutter: 16px;
	--card: #fff; --r-md: 12px; --sh: 0 1px 2px rgba(15, 27, 45, .05), 0 10px 30px rgba(15, 27, 45, .07); --sh-sm: 0 1px 2px rgba(15, 27, 45, .06);
	--up-bg: #e8f6ee; --down-bg: #fdecea; --amber: #8a4b08; --amber-bg: #fff6e5; --amber-line: #f3d9a4; --err: #9b1c1c; --err-bg: #fdf0ef; --err-line: #f4c7c3;
}
body.hmv2-page { padding-top: 0; background: var(--page); font-family: var(--font); font-feature-settings: "tnum" 1, "lnum" 1; }
body.hmv2-page .hmv2, body.hmv2-page .hmv2 button, body.hmv2-page .hmv2 input, body.hmv2-page .hmv2 select, body.hmv2-page .hmv2 textarea { font-family: var(--font); }
body.hmv2-page .hmv2 { background: transparent; padding-bottom: 8px; }

/* ---------- the theme's own header/footer stay in the HTML (analytics, accessibility widget) but are hidden; the rebuilt site's are shown ---------- */
body.hmv2-page > .header, body.hmv2-page > #loader, body.hmv2-page > footer:not(.ftr), body.hmv2-page > .search { display: none !important; }
.skip { position: absolute; inset-inline-start: 8px; top: -64px; background: #fff; color: var(--ink); padding: 10px 14px; border: 2px solid var(--blue-ink); border-radius: 8px; z-index: 200; }
.skip:focus { top: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.brandline { height: 4px; background: linear-gradient(90deg, var(--green) 0 33.3%, var(--teal) 33.3% 66.6%, var(--blue) 66.6% 100%); }
.hdr { background: #fff; border-bottom: 1px solid var(--hair); position: relative; z-index: 30; font-family: var(--font); }
.hdr .wrap { display: flex; align-items: center; gap: 8px; min-height: 68px; }
.hdr .logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 900; font-size: 1.75rem; letter-spacing: -.03em; }
.hdr .logo svg { width: 30px; height: 28px; flex: none; }
.hdr .nav { display: flex; gap: 2px; margin-inline-start: 20px; flex: 0 0 auto; }
.hdr .nav a { padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 10px; color: var(--ink2); text-decoration: none; font-weight: 500; font-size: .9375rem; white-space: nowrap; }
.hdr .nav a:hover, .hdr .nav a[aria-current] { background: var(--blue-tint); color: var(--blue-deep); }
.hdr .langs { display: flex; gap: 2px; font-size: .8125rem; }
.hdr .langs a { padding: 8px 7px; min-width: 36px; min-height: 36px; text-align: center; text-decoration: none; color: var(--muted); border-radius: 8px; }
.hdr .langs a[aria-current] { background: var(--blue-tint); color: var(--blue-ink); font-weight: 700; }
.hdr .ibtn { width: 44px; height: 44px; display: inline-grid; place-items: center; background: transparent; border: 0; border-radius: 12px; color: var(--ink2); cursor: pointer; }
.hdr .spacer { flex: 1; }
.hdr .menu { display: contents; }
.hdr .menu-btn { display: none; }
.hdr a:focus-visible, .hdr button:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 2px; border-radius: 6px; }
@media (max-width: 900px) {
	.hdr .wrap { min-height: 60px; }
	.hdr .logo { font-size: 1.5rem; }
	.hdr .menu-btn { display: inline-grid; margin-inline-start: auto; }
	.hdr .menu { display: none; }
	.hdr .nav, .hdr .langs { display: flex; }
	.hdr.open .menu { display: block; position: absolute; inset-inline: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(16, 24, 40, .12); padding: 8px 16px 16px; z-index: 40; }
	.hdr.open .nav { flex-direction: column; margin: 0; gap: 0; }
	.hdr.open .nav a { min-height: 48px; font-size: 1rem; }
	.hdr.open .langs { flex-wrap: wrap; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 6px; }
	.hdr.open .langs a { min-height: 44px; min-width: 44px; padding: 8px 12px; }
}
.ftr { background: var(--blue-night); color: #d9e7ee; margin-top: 40px; padding: 40px 0 28px; font-family: var(--font); line-height: 1.6; text-align: right; }
.ftr a { color: #d9e7ee; }
.ftr h3 { color: #fff; margin: 0 0 10px; font-size: 1.0625rem; font-weight: 700; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ftr .cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.ftr p { color: #c0d3dd; font-size: .9375rem; margin: 0 0 1em; }
.ftr .copy { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .8125rem; color: #a8c0cd; }

/* ---------- title block ---------- */
body.hmv2-page .top.hmv2-top { background: transparent; max-width: var(--wrap); padding: 18px var(--gutter) 6px; }
body.hmv2-page .top.hmv2-top h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
body.hmv2-page #breadcrumbs { font-size: .875rem; color: var(--muted); }

/* ---------- headings, cards ---------- */
.hmv2-h2 { display: flex; align-items: center; gap: 8px; font-size: clamp(1.125rem, 1.05rem + .4vw, 1.375rem); font-weight: 700; letter-spacing: -.01em; margin: 0 0 12px; }
.hmv2-h2::before { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--green), var(--green)) 0 100% / 4px 45% no-repeat, linear-gradient(var(--teal), var(--teal)) 5px 100% / 4px 72% no-repeat, linear-gradient(var(--blue), var(--blue)) 10px 100% / 4px 100% no-repeat; }
.hmv2-over, .hmv2-tools-more, .hmv2-chart, .hmv2-explain, .hmv2-faq, .hmv2-method, .hmv2-fx, .hmv2-pop, .hmv2-tools, .hmv2-embed {
	background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin: 0 0 16px; box-shadow: var(--shadow-sm, 0 1px 2px rgba(15, 27, 45, .06));
}
.hmv2-embed { padding: 14px 20px; }
.hmv2-embed summary { cursor: pointer; font-weight: 600; color: var(--ink2); }
.hmv2-a, .hmv2-rest, .hmv2-extra { padding: 0 var(--gutter); }

/* ---------- top of the page: the main rate card (rate, S2, update time), then the shared calculator ---------- */
.hmv2-rate { line-height: 1.6; padding: 16px 18px 14px; background: var(--blue-tint); border: 1px solid var(--blue-line); border-radius: 18px; margin: 0 0 16px; }
.hmv2-rate-main { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem); font-weight: 800; letter-spacing: -.02em; }
.hmv2-s2 { margin: 6px 0 0; font-size: 1rem; font-weight: 700; color: var(--muted); }
.hmv2-s2.up { color: var(--up); } .hmv2-s2.down { color: var(--down); }
.hmv2-rate.is-loading .hmv2-s2 { display: none; }

.hmv2-rate-meta { font-size: .875rem; }
/* the shared calculator (rules in hamara-usd-shared-calc.css, copied from the rebuilt site): only page glue here */
.hmv2-ccalc, .hmv2-ccalc *, .pk, .pk * { box-sizing: border-box; }
.hmv2-ccalc { margin: 0 0 16px; line-height: 1.6; } /* the rebuilt site's body line-height (1.6); the theme's is 1.5 */
.pk { line-height: 1.6; }
.hmv2-ccalc .c-head h2 { margin: 0; font-family: var(--font); line-height: 1.25; letter-spacing: -.01em; text-wrap: balance; } /* same base rule as the rebuilt site's h2 */
.hmv2-ccalc .c-swap { padding: 1px 6px; font-family: Arial; } /* browser-default button box, as on the rebuilt pages (the theme resets it) */
.hmv2-ccalc .sel-real { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hmv2-ccalc .select2-container { display: none !important; }
.hmv2-ccalc .flag img, .pk .flag img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hmv2-ccalc input.c-amount { font-family: var(--font); }
.c-res.is-busy { opacity: .6; }
/* the conversion equation reads left-to-right: source amount + currency on the LEFT, "=" in the middle, converted amount + currency on the RIGHT. Only the equation row is LTR and bidi-isolated (page 34 only: this file is loaded by page-34.php); the rest of the card stays RTL. */
.hmv2-ccalc .c-res .eq { direction: ltr; unicode-bidi: isolate; }
.hmv2-ccalc .c-res .eq-s { unicode-bidi: isolate; }
.hmv2-ccalc .c-go { font-family: var(--font); }
/* ---------- over time, tools, chart ---------- */
.hmv2-over { margin-top: 0; }
.hmv2-s3 { margin: -4px 0 12px; font-size: .9375rem; color: var(--muted); }
.hmv2-over-table th, .hmv2-over-table td { border-bottom-color: var(--hair); }
.hmv2-tool { border-color: var(--line); border-radius: 12px; }
.hmv2-tools-more .hmv2-tool-head { border-radius: 12px; }
.hmv2-tab.is-active { background: #fff; color: var(--blue-deep); }
.hmv2-tabs { border-radius: 999px; }
.hmv2-pop-row, .hmv2-fx-row { border-radius: 10px; }
.hmv2-fx-toggle, .hmv2-pop-toggle { border-radius: 999px; border-color: var(--blue-line); color: var(--blue-ink); }
.hmv2-faq details { border-top: 1px solid var(--hair); }
.hmv2-faq summary { font-weight: 600; }
body.hmv2-page .hm-shop { margin: 0 0 16px; }

/* ---------- layout ---------- */
@media (min-width: 901px) {
	.hmv2-grid { grid-template-columns: minmax(0, 1fr) 340px; column-gap: 32px; max-width: var(--wrap); padding: 4px var(--gutter) 0; justify-content: stretch; }
	.hmv2-a, .hmv2-rest, .hmv2-extra { padding: 0; }
	.hmv2-a { max-width: none; margin: 0; }
	.hmv2-side { position: static; }
}
@media (max-width: 600px) {
	.hmv2-over, .hmv2-tools-more, .hmv2-chart, .hmv2-explain, .hmv2-faq, .hmv2-method, .hmv2-fx, .hmv2-pop, .hmv2-tools, .hmv2-embed { padding: 16px; }
		.ftr { margin-top: 24px; padding: 28px 0 24px; }
}

/* ---------- the theme / v2 style bare "footer", ".langs" and "header": undo that for the rebuilt chrome (specificity beats body.hmv2-page footer / .langs rules) ---------- */
body.hmv2-page footer.ftr { display: block; padding: 40px 0 28px; background: var(--blue-night); color: #d9e7ee; gap: 0; position: static; width: auto; }
body.hmv2-page footer.ftr .cols { display: grid; }
body.hmv2-page .hdr { position: relative; height: auto; padding: 0; box-shadow: none; }
body.hmv2-page .hdr .langs { position: static; display: flex; gap: 2px; padding: 0; border: 0; margin: 0; width: auto; height: auto; background: none; }
body.hmv2-page .hdr .langs a { display: block; width: auto; height: auto; margin: 0; padding: 8px 7px; min-width: 36px; min-height: 36px; border-radius: 8px; opacity: 1; background: none; color: var(--muted); text-align: center; line-height: 1.6; }
body.hmv2-page .hdr .langs a[aria-current] { background: var(--blue-tint); color: var(--blue-ink); font-weight: 700; }
body.hmv2-page .hdr .langs a:hover { background: var(--soft); }
body.hmv2-page .hdr .langs a span { position: static; display: inline; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; font-size: inherit; opacity: 1; pointer-events: auto; white-space: normal; transform: none; visibility: visible; }
body.hmv2-page .hdr .langs a span.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.hmv2-page .hdr nav, body.hmv2-page .hdr .nav { position: static; display: flex; width: auto; height: auto; background: none; transform: none; overflow: visible; padding: 0; top: auto; }
@media (max-width: 900px) { body.hmv2-page .hdr .menu { display: none; } body.hmv2-page .hdr.open .menu { display: block; } body.hmv2-page .hdr.open .nav { flex-direction: column; } body.hmv2-page .hdr.open .langs { flex-wrap: wrap; } }
@media (min-width: 901px) {
	.hmv2-rate { text-align: start; }
	.hmv2-fresh, .hmv2-rate-meta { justify-content: flex-start; }
}
@media (max-width: 900px) { .hmv2-pop, .hmv2-tools { margin-inline: var(--gutter); } }
