:root {
    color-scheme: light;
    --ink: #201d1d;
    --muted: #716b6b;
    --canvas: #f7f4f1;
    --surface: #fff;
    --brand: #b22226;
    --brand-dark: #7f1518;
    --gold: #b38a45;
    --line: #e5ded9;
    --soft: #f3ece8;
    --warning-bg: #fff6d8;
    --warning-ink: #654d00;
    --radius: 16px;
    --shadow: 0 12px 30px rgb(63 38 30 / 8%);
}

* { box-sizing: border-box; }
html { font-family: Tahoma, "Segoe UI", Arial, sans-serif; scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); line-height: 1.75; }
img { max-width: 100%; object-fit: contain; }
a { color: var(--brand-dark); text-underline-offset: .2em; }
button, input, select { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #dcaa53; outline-offset: 3px; }
.shell { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; inset: 8px auto auto 8px; padding: 10px 16px; background: #fff; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 4px 18px rgb(63 38 30 / 5%); }
.utility-bar { background: var(--brand-dark); color: #fff; font-size: .82rem; }
.utility-inner { min-height: 34px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.utility-inner a { color: #fff; }
.header-inner { min-height: 94px; display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.brand { display: inline-flex; flex: 0 0 auto; }
.brand img { width: 288px; height: 54px; }
.main-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 24px; }
.main-nav a { color: #393333; font-weight: 700; text-decoration: none; padding-block: 10px; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--brand); border-color: var(--brand); }

.page-shell { min-height: 68vh; padding-block: clamp(28px, 5vw, 64px); }
.home-title { margin: 0 0 20px; padding: 14px 18px; font-size: clamp(1.35rem, 3vw, 2rem); background: #fff; border-right: 5px solid var(--brand); border-radius: 8px; box-shadow: 0 4px 14px rgb(63 38 30 / 5%); }
.classic-top { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.classic-converter, .base-currency-card { padding: clamp(20px, 3vw, 30px); background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.classic-converter { display: grid; grid-template-columns: repeat(2, 1fr); align-items: end; gap: 13px; }
.classic-converter h2 { grid-column: 1 / -1; margin: 0 0 4px; padding-bottom: 10px; color: var(--brand-dark); border-bottom: 2px solid var(--soft); }
.classic-converter button { align-self: end; }
.today-rate { grid-column: 1 / -1; margin: 0; padding: 11px 14px; color: var(--brand-dark); text-align: center; font-size: 1.08rem; font-weight: 800; background: #fff5f3; border: 1px solid #ecd3ce; border-radius: 7px; }
.base-currency-card time { display: block; margin-bottom: 18px; color: #28751c; font-size: .87rem; font-weight: 700; }
.base-currency-identity { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.base-currency-identity img { border: 1px solid var(--line); border-radius: 50%; }
.base-currency-identity div { display: flex; align-items: baseline; gap: 12px; }
.base-currency-identity strong { color: var(--brand-dark); font-size: 2rem; }
.base-currency-identity span { color: var(--muted); font-size: 1.2rem; }
.base-currency-card dl { display: grid; gap: 0; margin: 14px 0 0; }
.base-currency-card dl div { display: grid; grid-template-columns: 130px 1fr; padding: 8px 0; border-bottom: 1px dotted var(--line); }
.base-currency-card dt { color: var(--muted); font-weight: 700; }
.base-currency-card dd { margin: 0; }
.source-line { margin: 14px 0 0; color: var(--muted); font-size: .84rem; }
.old-top-currencies { margin-top: 18px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.old-top-currencies h2 { margin: 0 0 14px; color: var(--brand-dark); font-size: 1.2rem; }
.old-currency-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.old-currency-grid a { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 9px 12px; color: var(--ink); font-weight: 700; text-decoration: none; background: #faf8f6; border: 1px solid var(--line); border-radius: 7px; }
.old-currency-grid a:hover { color: var(--brand); border-color: #ca9490; }
.old-currency-grid img { border-radius: 50%; }
.old-news-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.old-news-strip a { display: grid; gap: 3px; padding: 16px; color: var(--ink); text-decoration: none; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: 7px; }
.old-news-strip a:hover strong { color: var(--brand); }
.old-news-strip span { color: var(--muted); font-size: .84rem; }
.currency-headlines { margin-top: 24px; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.currency-headlines-title { display: flex; justify-content: space-between; align-items: end; gap: 18px; padding: 18px 20px; background: #faf8f6; border-bottom: 1px solid var(--line); }
.currency-headlines-title p { margin: 0; color: var(--brand); font-size: .84rem; font-weight: 800; }
.currency-headlines-title h2 { margin: 2px 0 0; font-size: clamp(1.2rem, 3vw, 1.55rem); }
.currency-headlines > ol { margin: 0; padding: 0; list-style: none; }
.currency-headlines li { padding: 14px 20px; border-bottom: 1px solid var(--line); }
.currency-headlines li:last-child { border-bottom: 0; }
.currency-headlines li > div { display: grid; gap: 3px; }
.currency-headlines li a { color: var(--ink); font-weight: 800; text-decoration: none; }
.currency-headlines li a:hover { color: var(--brand); text-decoration: underline; }
.currency-headlines li small { color: var(--muted); }
.prices-section { margin-top: 28px; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.old-section-title { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 20px; background: #faf8f6; border-bottom: 1px solid var(--line); }
.old-section-title p { margin: 0; color: var(--brand); font-weight: 800; }
.old-section-title h2 { margin: 2px 0 0; font-size: clamp(1.25rem, 3vw, 1.75rem); }
.old-section-title > span { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.prices-table-wrap { overflow-x: auto; }
.prices-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.prices-table th { padding: 13px 16px; color: #fff; text-align: right; background: var(--brand-dark); }
.prices-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.prices-table tbody tr:nth-child(even) { background: #fcfaf9; }
.prices-table tbody tr:hover { background: #fff5f3; }
.prices-table td:first-child a { display: grid; grid-template-columns: 28px minmax(150px, 1fr) auto; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.prices-table td:nth-child(2) { color: var(--brand-dark); font-weight: 800; }
.prices-table td:last-child { color: var(--muted); font-size: .83rem; }
.old-disclaimer { display: flex; gap: 14px; margin-top: 18px; padding: 16px 18px; color: #5d5552; background: #eee9e5; border-radius: 8px; }
.old-disclaimer strong { color: var(--brand-dark); }
.old-disclaimer p { margin: 0; }
.single-related { margin-top: 28px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.single-related h2 { margin: 0 0 15px; font-size: clamp(1.25rem, 3vw, 1.65rem); }
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: .9fr 1.2fr; align-items: center; gap: clamp(28px, 5vw, 70px); padding: clamp(30px, 5vw, 60px); border-radius: 24px; color: #fff; background: linear-gradient(135deg, #741316, #b22226 65%, #c84b41); box-shadow: var(--shadow); }
.hero::after { content: ""; position: absolute; width: 330px; height: 330px; inset: auto auto -180px -90px; border: 70px solid rgb(255 255 255 / 7%); border-radius: 50%; pointer-events: none; }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { max-width: 560px; margin: 5px 0 14px; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.25; }
.hero-copy > p:last-child { max-width: 560px; margin: 0; color: rgb(255 255 255 / 82%); font-size: 1.08rem; }
.eyebrow { margin: 0 0 4px; color: var(--brand); font-size: .84rem; font-weight: 800; letter-spacing: .02em; }
.hero .eyebrow { color: #f3cf91; }
.converter { position: relative; z-index: 1; padding: clamp(22px, 4vw, 34px); color: var(--ink); background: #fff; border-radius: 20px; box-shadow: 0 20px 50px rgb(55 12 12 / 22%); }
.converter h2 { margin: 0 0 18px; font-size: 1.35rem; }
.converter-fields { display: grid; grid-template-columns: 1fr 1fr auto 1fr; gap: 13px; align-items: end; }
label { display: grid; gap: 6px; }
label > span { color: var(--muted); font-size: .86rem; font-weight: 700; }
input, select, textarea { width: 100%; min-height: 48px; padding: 9px 12px; color: var(--ink); background: #fff; border: 1px solid #cfc5bf; border-radius: 9px; }
textarea { resize: vertical; }
.converter-arrow { align-self: center; margin-top: 27px; color: var(--brand); font-size: 1.5rem; }
button { min-height: 48px; padding: 10px 22px; color: #fff; font-weight: 800; background: var(--brand); border: 0; border-radius: 9px; cursor: pointer; }
button:hover { background: var(--brand-dark); }
.converter button { grid-column: 1 / -1; }

.section-block { margin-block-start: clamp(38px, 6vw, 72px); }
.section-block.compact { margin-block-start: 34px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; }
.section-heading h2, .section-block h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 2rem); }
.section-note, .muted { color: var(--muted); }
.rate-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.rate-card { display: grid; gap: 9px; min-height: 160px; padding: 20px; color: var(--ink); text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.rate-card:hover, .currency-card:hover { border-color: #ca9490; transform: translateY(-2px); }
.currency-pair { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.currency-pair img, .currency-card img, .currency-header > img, .paired-flags img { border: 1px solid var(--line); border-radius: 50%; background: #fff; }
.rate-card > strong { margin-top: auto; color: var(--brand-dark); font-size: 1.55rem; }
.rate-card small { color: var(--muted); }
.rate-unavailable { color: var(--muted) !important; font-size: 1rem !important; }
.currency-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.currency-card { display: flex; align-items: center; gap: 14px; padding: 18px; color: var(--ink); text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 6px 18px rgb(63 38 30 / 5%); }
.currency-card > span:nth-child(2) { display: grid; }
.currency-card small { color: var(--muted); }
.card-chevron { margin-inline-start: auto; color: var(--brand); font-size: 1.8rem; }
.trust-panel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(40px, 7vw, 80px); padding: 25px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); }
.trust-panel div { display: grid; gap: 3px; padding: 5px 24px; border-inline-start: 1px solid #d9cec8; }
.trust-panel div:first-child { border-inline-start: 0; }
.trust-panel span { color: var(--muted); font-size: .9rem; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; color: var(--muted); font-size: .88rem; }
.currency-page { padding: clamp(24px, 5vw, 50px); background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.currency-header { display: flex; align-items: center; gap: 18px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.currency-header h1 { margin: 2px 0; font-size: clamp(1.7rem, 4vw, 2.7rem); line-height: 1.35; }
.currency-header p { margin-block: 0; }
.pair-header > div { min-width: 0; }
.pair-swap { display: grid; grid-template-columns: auto auto; grid-template-areas: "icon label" "icon codes"; align-items: center; gap: 0 9px; margin-inline-start: auto; padding: 10px 14px; color: var(--brand-dark); text-decoration: none; white-space: nowrap; background: #fff8f6; border: 1px solid #dfc9c3; border-radius: 10px; }
.pair-swap:hover { color: #fff; background: var(--brand); border-color: var(--brand); }
.pair-swap svg { grid-area: icon; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pair-swap span { grid-area: label; font-size: .76rem; font-weight: 700; }
.pair-swap strong { grid-area: codes; font-size: .82rem; }
.paired-flags { position: relative; display: flex; min-width: 92px; }
.paired-flags img + img { margin-inline-start: -20px; }
.primary-quote { margin-top: 26px; padding: clamp(22px, 4vw, 38px); text-align: center; background: linear-gradient(135deg, #fffafa, #f6eeeb); border: 1px solid #ead7d2; border-radius: 16px; }
.primary-quote > p:first-child { margin-top: 0; color: var(--muted); }
.primary-quote > strong { display: block; color: var(--brand-dark); font-size: clamp(2rem, 7vw, 4.5rem); line-height: 1.2; }
.primary-quote > strong small { font-size: .35em; }
.unit-rate { margin-bottom: 4px; font-weight: 700; }
.quote-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px 24px; margin-top: 14px; color: var(--muted); font-size: .86rem; }
.notice { margin-block: 22px; padding: 13px 16px; color: var(--warning-ink); background: var(--warning-bg); border-inline-start: 4px solid #c89b17; border-radius: 8px; }
.quick-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.quick-links a { padding: 8px 13px; color: #514947; text-decoration: none; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; }
.quick-links a:hover { color: var(--brand-dark); border-color: #ca9490; }
.pair-history { margin-top: 30px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 7px 22px rgb(63 38 30 / 7%); }
.pair-history-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 22px 24px 18px; background: linear-gradient(180deg, #fff, #fcf8f6); border-bottom: 1px solid var(--line); }
.pair-history-heading h2 { margin: 2px 0 0; font-size: clamp(1.25rem, 3vw, 1.65rem); }
.history-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.history-periods { display: inline-flex; padding: 3px; background: var(--soft); border: 1px solid var(--line); border-radius: 9px; }
.history-periods button, .history-direction { min-height: 38px; padding: 6px 11px; color: #514947; font-size: .78rem; background: transparent; border-radius: 7px; }
.history-periods button:hover, .history-periods button.is-active { color: #fff; background: var(--brand); }
.history-periods button:disabled { cursor: wait; opacity: .62; }
.history-periods button.is-loading::after { content: "…"; margin-inline-start: 3px; }
.history-direction { border: 1px solid #d9cbc5; background: #fff; }
.history-direction:hover { color: var(--brand-dark); background: #fff5f3; border-color: #ca9490; }
.history-summary { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.history-summary div { display: grid; gap: 1px; padding: 13px 18px; border-inline-start: 1px solid var(--line); }
.history-summary div:first-child { border-inline-start: 0; }
.history-summary span { color: var(--muted); font-size: .74rem; }
.history-summary strong { color: var(--brand-dark); font-size: .94rem; direction: ltr; text-align: right; }
.history-summary strong.is-positive { color: #18743a; }
.history-summary strong.is-negative { color: #b42328; }
.history-chart-wrap { position: relative; height: 350px; padding: 20px 18px 8px; direction: ltr; }
.history-caption { margin: 0; padding: 7px 22px 14px; color: var(--muted); font-size: .76rem; }
.history-data-table { margin: 0 22px 20px; border: 1px solid var(--line); border-radius: 8px; }
.history-data-table summary { padding: 9px 13px; color: var(--brand-dark); font-size: .82rem; font-weight: 700; cursor: pointer; }
.history-data-table .conversion-table { border-inline: 0; border-bottom: 0; }
.history-empty { margin: 0; padding: 30px 24px; color: var(--muted); text-align: center; }
.inline-converter { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; align-items: end; gap: 12px; margin-top: 22px; padding: 20px; background: #faf8f6; border: 1px solid var(--line); border-radius: 13px; }
.requested-conversion { margin-top: 38px; text-align: center; }
.requested-conversion h2, .conversion-tables h2, .pair-explanation h2, .related-pairs h2 { margin: 0 0 15px; font-size: clamp(1.25rem, 2.5vw, 1.65rem); }
.summary-table { max-width: 900px; margin-inline: auto; }
.conversion-tables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 5vw, 64px); margin-top: 42px; }
.conversion-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); box-shadow: 0 4px 12px rgb(63 38 30 / 7%); }
.conversion-table th { padding: 13px 16px; color: #fff; text-align: right; background: var(--brand-dark); }
.conversion-table td { padding: 10px 16px; border-bottom: 1px solid var(--line); }
.conversion-table tbody tr:nth-child(even) { background: #f8f6f4; }
.conversion-table tbody tr:hover { background: #fff1ef; }
.conversion-table td:last-child { text-align: right; }
.conversion-table a { text-decoration: none; }
.conversion-table a:hover { text-decoration: underline; }
.pair-explanation { margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line); }
.howto-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.howto-grid > div { position: relative; padding: 20px; background: #faf8f6; border: 1px solid var(--line); border-radius: 10px; }
.howto-grid > div > strong { display: grid; width: 32px; height: 32px; place-items: center; color: #fff; background: var(--brand); border-radius: 50%; }
.howto-grid h3 { margin: 10px 0 4px; font-size: 1.05rem; }
.howto-grid p { margin: 0; color: var(--muted); }
.calculation-note { margin: 16px 0 0; padding: 14px 16px; background: #fff8ed; border-inline-start: 4px solid var(--gold); }
.related-pairs { margin-top: 36px; }
.related-pairs > div { display: flex; flex-wrap: wrap; gap: 9px; }
.related-pairs a { padding: 8px 13px; color: #514947; text-decoration: none; background: var(--soft); border: 1px solid var(--line); border-radius: 7px; }
.related-pairs a:hover { color: var(--brand); border-color: #ca9490; }

.impact-badge { display: inline-block; min-width: 58px; padding: 3px 8px; text-align: center; font-size: .75rem; font-weight: 800; border-radius: 999px; }
.impact-high { color: #8d171a; background: #fee2e2; }
.impact-medium { color: #7a5200; background: #fef3c7; }

.contact-page { width: min(860px, 100%); margin-inline: auto; }
.contact-intro, .contact-form, .contact-success { padding: clamp(22px, 5vw, 40px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.contact-intro { border-top: 5px solid var(--brand); }
.contact-intro h1 { margin: 0 0 8px; color: var(--brand-dark); font-size: clamp(1.8rem, 4vw, 2.7rem); }
.contact-intro > p:last-of-type { margin-bottom: 0; }
.contact-english { margin-top: 24px; padding-top: 20px; text-align: left; border-top: 1px solid var(--line); }
.contact-english h2 { margin: 0 0 5px; font-size: 1.35rem; }
.contact-english p { margin: 0; color: var(--muted); }
.contact-form { position: relative; display: grid; gap: 18px; margin-top: 18px; }
.contact-fields-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label > span { color: var(--ink); }
.bilingual-label, .bilingual-button { display: inline-flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: .38em; direction: rtl; }
.bilingual-label > span[lang="en"] { color: var(--muted); font-weight: 600; }
.bilingual-button { justify-content: center; }
.contact-form label > small { min-height: 1.3em; color: #a51c20; }
.contact-form textarea { min-height: 190px; }
.contact-form button { justify-self: start; min-width: 230px; }
.contact-honeypot { position: absolute !important; overflow: hidden; width: 1px; height: 1px; inset: auto auto auto -10000px; opacity: 0; pointer-events: none; }
.contact-errors:empty { display: none; }
.contact-errors { padding: 12px 15px; color: #8b171b; background: #fff1f1; border: 1px solid #efcaca; border-radius: 8px; }
.contact-errors ul { margin-block: 0; }
.contact-success { margin-top: 18px; border-inline-start: 5px solid #278543; }
.contact-success h2 { margin-top: 0; color: #17652e; }
.contact-success div { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.contact-success h3, .contact-success p { margin-block: 4px; }

.policy-page { width: min(960px, 100%); margin-inline: auto; }
.policy-hero { padding: clamp(24px, 5vw, 44px); color: #fff; background: linear-gradient(135deg, #641215, var(--brand) 70%, #c84b41); border-radius: 18px; box-shadow: var(--shadow); }
.policy-hero .eyebrow { color: #f3cf91; }
.policy-hero h1 { margin: 3px 0 10px; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.35; }
.policy-hero > p:last-of-type { max-width: 760px; margin: 0; color: rgb(255 255 255 / 86%); }
.policy-hero time { display: block; margin-top: 15px; color: #f4d9d5; font-size: .82rem; }
.policy-index { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 18px; padding: 15px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.policy-index a { padding: 6px 11px; color: var(--ink); text-decoration: none; background: #faf7f5; border: 1px solid var(--line); border-radius: 999px; }
.policy-index a:hover { color: var(--brand); border-color: #ca9490; }
.policy-content { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.policy-content section { padding: clamp(21px, 4vw, 34px); scroll-margin-top: 20px; border-bottom: 1px solid var(--line); }
.policy-content section:last-child { border-bottom: 0; }
.policy-content h2 { margin: 0 0 10px; color: var(--brand-dark); font-size: clamp(1.25rem, 3vw, 1.6rem); }
.policy-content p { margin-block: 9px; }
.policy-content ul { margin-block: 12px; padding-inline-start: 24px; }
.policy-links { display: grid; gap: 8px; margin-block: 14px; }
.policy-links a { width: fit-content; padding: 7px 11px; text-decoration: none; background: #f8f5f3; border: 1px solid var(--line); border-radius: 7px; }
.policy-links a:hover { text-decoration: underline; border-color: #ca9490; }

.news-dashboard { display: grid; gap: 24px; }
.news-dashboard-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); align-items: end; gap: 34px; padding: clamp(25px, 5vw, 48px); color: #fff; background: linear-gradient(135deg, #651114, var(--brand) 68%, #c84b41); border-radius: 18px; box-shadow: var(--shadow); }
.news-dashboard-hero .eyebrow { color: #f1ce91; }
.news-dashboard-hero h1 { margin: 3px 0 9px; font-size: clamp(1.85rem, 4vw, 3rem); line-height: 1.35; }
.news-dashboard-hero p:last-child { max-width: 700px; margin: 0; color: rgb(255 255 255 / 84%); }
.news-search { padding: 17px; color: var(--ink); background: rgb(255 255 255 / 96%); border-radius: 12px; }
.news-search label { margin-bottom: 7px; font-size: .82rem; font-weight: 800; }
.news-search > div { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.news-search input, .news-search button { min-height: 44px; }
.news-search button { padding-inline: 18px; }
.news-dashboard-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.news-dashboard-heading h2 { margin: 2px 0 0; font-size: clamp(1.35rem, 3vw, 1.9rem); }
.news-dashboard-heading > span, .news-dashboard-heading > a { color: var(--muted); font-size: .84rem; }
.news-featured { overflow: hidden; display: grid; grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr); min-height: 330px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.news-featured > div { display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 5vw, 46px); }
.news-featured h2 { margin: 8px 0 12px; font-size: clamp(1.45rem, 3vw, 2.2rem); line-height: 1.45; }
.news-featured h2 a, .news-card h2 a { color: var(--ink); text-decoration: none; }
.news-featured h2 a:hover, .news-card h2 a:hover { color: var(--brand); }
.news-featured time, .news-card time { color: var(--brand); font-size: .78rem; font-weight: 800; }
.news-featured p { color: var(--muted); }
.news-read-more { width: fit-content; margin-top: 8px; font-weight: 800; text-decoration: none; }
.news-card-media { position: relative; overflow: hidden; display: grid; min-height: 190px; place-items: center; color: #e4c5c2; text-decoration: none; background: linear-gradient(135deg, #711518, #a52327); }
.news-card-media > span { font-size: 1.35rem; font-weight: 800; }
.news-card-media img { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; }
.news-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.news-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 7px 20px rgb(63 38 30 / 6%); }
.news-card > div { padding: 18px; }
.news-card h2 { margin: 6px 0 9px; font-size: 1.08rem; line-height: 1.55; }
.news-card p { display: -webkit-box; overflow: hidden; margin: 0; color: var(--muted); font-size: .87rem; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.news-card-grid.compact .news-card { border-top: 3px solid var(--brand); }
.news-pagination { display: flex; justify-content: center; align-items: center; gap: 12px; padding-top: 8px; }
.news-pagination a, .news-pagination span { padding: 8px 14px; background: #fff; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.news-pagination span { color: var(--muted); }
.news-empty { padding: 40px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.news-article { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.news-article-header { padding: clamp(25px, 5vw, 52px); border-bottom: 1px solid var(--line); }
.news-article-header h1 { max-width: 940px; margin: 5px 0 15px; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.45; }
.news-article-meta { display: flex; flex-wrap: wrap; gap: 5px 22px; color: var(--muted); font-size: .82rem; }
.news-article-lead { margin: 22px 0 0; padding: 16px 19px; color: #4e4543; background: #faf6f3; border-inline-start: 4px solid var(--gold); border-radius: 8px; font-size: 1.03rem; }
.news-article-image { margin: 0; padding: clamp(18px, 4vw, 34px) clamp(22px, 5vw, 55px) 0; text-align: center; }
.news-article-image img { max-height: 620px; border-radius: 12px; }
.news-article-body { padding: clamp(25px, 5vw, 56px); font-size: 1.04rem; line-height: 2; }
.news-article-body > :first-child { margin-top: 0; }
.news-article-body h2, .news-article-body h3 { color: var(--brand-dark); line-height: 1.5; }
.news-article-body blockquote { margin-inline: 0; padding: 14px 18px; background: #faf7f4; border-inline-start: 4px solid var(--gold); }
.news-article-body table { width: 100%; border-collapse: collapse; }
.news-article-body th, .news-article-body td { padding: 9px; border: 1px solid var(--line); }
.news-related { display: grid; gap: 17px; margin-top: 30px; }

.market-hours-page { display: grid; gap: 24px; }
.market-hours-hero { padding: clamp(26px, 5vw, 48px); color: #fff; background: linear-gradient(135deg, #661215, var(--brand) 68%, #c1483f); border-radius: 20px; box-shadow: var(--shadow); }
.market-hours-hero .eyebrow { color: #f1cc8c; }
.market-hours-hero h1 { max-width: 900px; margin: 4px 0 12px; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.35; }
.market-hours-hero > p:last-child { max-width: 850px; margin: 0; color: rgb(255 255 255 / 86%); }
.market-hours-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.market-board { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.market-board-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 20px 22px; background: #faf8f6; border-bottom: 1px solid var(--line); }
.market-board-toolbar h2 { margin: 2px 0 0; font-size: clamp(1.25rem, 3vw, 1.7rem); }
.market-timezone { width: min(260px, 100%); }
.market-timezone select { min-height: 43px; }
.market-now { position: absolute; z-index: 3; bottom: 27px; left: 0; display: grid; grid-template-columns: auto auto; grid-template-areas: "label clock" "date date"; justify-content: center; align-items: center; gap: 0 12px; width: max-content; min-width: 250px; padding: 8px 18px; color: var(--ink); text-align: center; background: #fff8f6; border: 1px solid #ead7d2; border-radius: 12px; box-shadow: 0 7px 18px rgb(75 22 22 / 13%); transform: translateX(-50%); pointer-events: none; direction: rtl; }
.market-now::after { content: ""; position: absolute; width: 10px; height: 10px; left: 50%; bottom: -6px; background: inherit; border-right: 1px solid #ead7d2; border-bottom: 1px solid #ead7d2; transform: translateX(-50%) rotate(45deg); }
.market-now.near-start { transform: translateX(0); }
.market-now.near-start::after { left: 8px; transform: rotate(45deg); }
.market-now.near-end { transform: translateX(-100%); }
.market-now.near-end::after { left: auto; right: 8px; transform: rotate(45deg); }
.market-now.is-previewing { background: #fff8e7; border-color: #e1b45f; }
.market-now > span { grid-area: label; color: var(--muted); font-size: .8rem; }
.market-now strong { grid-area: clock; color: var(--brand-dark); font-size: clamp(1.35rem, 3vw, 1.8rem); line-height: 1.3; }
.market-now small { grid-area: date; color: var(--muted); font-size: .73rem; }
.market-timeline { display: grid; grid-template-columns: 170px minmax(360px, 1fr); gap: 14px; padding: 8px 22px 12px; direction: rtl; }
.market-timeline-spacer { grid-column: 1; }
.market-timeline-visual { grid-column: 2; min-width: 0; direction: ltr; }
.market-timeline-labels { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; color: var(--muted); font-size: .68rem; line-height: 1; }
.market-timeline-labels span:first-child { text-align: left; }
.market-timeline-labels span:last-child { text-align: right; }
.market-time-track { position: relative; height: 10px; margin-top: 94px; background: repeating-linear-gradient(to right, #ddd5d1 0, #ddd5d1 1px, #f4f0ed 1px, #f4f0ed 12.5%); border-radius: 999px; }
.market-time-track input { position: absolute; z-index: 2; width: calc(100% + 16px); height: 30px; min-height: 0; inset: -10px -8px auto; margin: 0; padding: 0; appearance: none; background: transparent; border: 0; cursor: grab; direction: ltr; }
.market-time-track input:active { cursor: grabbing; }
.market-time-track input::-webkit-slider-runnable-track { height: 10px; background: transparent; }
.market-time-track input::-webkit-slider-thumb { width: 16px; height: 28px; margin-top: -9px; appearance: none; background: var(--brand); border: 3px solid #fff; border-radius: 8px; box-shadow: 0 2px 8px rgb(90 19 20 / 35%); }
.market-time-track input::-moz-range-track { height: 10px; background: transparent; border: 0; }
.market-time-track input::-moz-range-thumb { width: 12px; height: 24px; background: var(--brand); border: 3px solid #fff; border-radius: 8px; box-shadow: 0 2px 8px rgb(90 19 20 / 35%); }
.market-time-track input.is-previewing::-webkit-slider-thumb { background: #e09d24; transform: scale(1.08); }
.market-time-track input.is-previewing::-moz-range-thumb { background: #e09d24; }
.market-slider-help { margin: 8px 0 0; color: var(--muted); text-align: right; font-size: .72rem; direction: rtl; }
.market-session-rows { border-top: 1px solid var(--line); }
.market-session { display: grid; grid-template-columns: 170px minmax(360px, 1fr); align-items: center; gap: 14px; padding: 13px 22px; border-bottom: 1px solid var(--line); }
.market-session:last-child { border-bottom: 0; }
.market-session:hover { background: #fcfaf9; }
.market-session-identity { display: flex; align-items: flex-start; gap: 11px; min-width: 0; }
.market-flag { font-size: 1.7rem; line-height: 1; }
.market-session-copy { display: grid; min-width: 0; }
.market-session h3 { margin: 0; font-size: 1rem; }
.market-session-identity small { color: var(--muted); font-size: .72rem; text-align: right; }
.market-session-visual { display: grid; gap: 6px; min-width: 0; }
.market-session-status { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 3px 14px; padding-inline: 3px; }
.market-session-status strong { font-size: .79rem; }
.market-session-status span { color: var(--muted); font-size: .68rem; line-height: 1.45; }
.market-session.is-open .market-session-status strong { color: #18743a; }
.market-session.is-closed .market-session-status strong { color: #8a7773; }
.market-session-track { position: relative; height: 30px; overflow: hidden; direction: ltr; background: repeating-linear-gradient(to right, #e7e2df 0, #e7e2df 1px, #f7f5f3 1px, #f7f5f3 12.5%); border: 1px solid #ebe5e1; border-radius: 7px; }
.market-session-track span { position: absolute; top: 5px; height: 18px; border-radius: 4px; opacity: .22; }
.market-session.is-open .market-session-track span { opacity: .9; box-shadow: 0 0 0 2px rgb(255 255 255 / 35%) inset; }
.market-legend { display: flex; flex-wrap: wrap; gap: 18px; padding: 12px 22px; color: var(--muted); font-size: .75rem; background: #faf8f6; border-top: 1px solid var(--line); }
.market-legend span { display: inline-flex; align-items: center; gap: 6px; }
.market-legend i { width: 10px; height: 10px; border-radius: 50%; }
.legend-open { background: #16a34a; }
.legend-closed { background: #c8bbb6; }
.market-side-column { display: grid; gap: 16px; }
.market-events-card, .market-tip-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.market-side-heading { padding: 17px 18px 13px; background: #faf8f6; border-bottom: 1px solid var(--line); }
.market-side-heading h2 { margin: 2px 0; font-size: 1.05rem; line-height: 1.45; }
.market-side-heading small { color: var(--muted); }
.market-event-list { margin: 0; padding: 0; list-style: none; }
.market-event-list li { display: grid; grid-template-columns: 68px 1fr; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.market-event-list time { display: grid; align-content: start; color: var(--brand-dark); text-align: center; font-size: .72rem; }
.market-event-list time strong { font-size: .76rem; }
.market-event-list li > div { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 7px; }
.market-event-list li > div > strong { width: 100%; font-size: .82rem; line-height: 1.5; }
.official-calendar-link { display: block; padding: 12px 16px; font-size: .75rem; text-decoration: none; background: #faf8f6; }
.official-calendar-link:hover { text-decoration: underline; }
.market-side-notice, .market-side-empty { margin: 0; padding: 14px 16px; color: var(--muted); font-size: .8rem; }
.market-tip-card { padding: 18px; border-top: 3px solid var(--gold); }
.market-tip-card h2 { margin: 0 0 5px; font-size: 1.05rem; }
.market-tip-card p { margin: 0; color: var(--muted); font-size: .86rem; }
.market-hours-guide { padding: clamp(22px, 4vw, 34px); background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.market-hours-guide > h2 { margin: 0 0 17px; font-size: clamp(1.3rem, 3vw, 1.8rem); }
.market-hours-guide > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.market-hours-guide section { padding: 18px; background: #faf8f6; border: 1px solid var(--line); border-radius: 10px; }
.market-hours-guide h3 { margin: 0 0 6px; font-size: 1rem; }
.market-hours-guide p { margin: 0; color: var(--muted); font-size: .88rem; }

.site-footer { margin-top: 20px; color: #d8cbcb; background: #261f1f; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; padding-block: 36px; }
.footer-grid p { max-width: 580px; margin-bottom: 0; }
.footer-logo { width: 192px; height: 36px; filter: grayscale(1) brightness(3); }
.footer-grid nav { display: grid; grid-template-columns: repeat(2, auto); align-content: start; gap: 8px 26px; }
.footer-grid a { color: #fff; }
.copyright { padding-block: 14px; font-size: .82rem; border-top: 1px solid rgb(255 255 255 / 10%); }

@media (prefers-reduced-motion: no-preference) {
    .rate-card, .currency-card { transition: transform .16s ease, border-color .16s ease; }
}
@media (max-width: 900px) {
    .header-inner { align-items: flex-start; flex-direction: column; padding-block: 18px; gap: 10px; }
    .main-nav { justify-content: flex-start; }
    .hero { grid-template-columns: 1fr; }
    .classic-top { grid-template-columns: 1fr; }
    .old-news-strip { grid-template-columns: 1fr; }
    .market-hours-layout { grid-template-columns: 1fr; }
    .market-side-column { grid-template-columns: repeat(2, 1fr); }
    .market-session { grid-template-columns: 165px minmax(290px, 1fr); }
    .market-timeline { grid-template-columns: 165px minmax(290px, 1fr); }
    .conversion-tables { grid-template-columns: 1fr; }
    .rate-grid { grid-template-columns: repeat(2, 1fr); }
    .currency-grid { grid-template-columns: repeat(2, 1fr); }
    .news-dashboard-hero, .news-featured { grid-template-columns: 1fr; }
    .news-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .shell { width: min(100% - 20px, 1180px); }
    .utility-inner span { display: none; }
    .utility-inner { justify-content: flex-end; }
    .brand img { width: 240px; height: auto; }
    .main-nav { gap: 3px 16px; font-size: .88rem; }
    .hero { padding: 24px 18px; border-radius: 16px; }
    .converter-fields, .inline-converter { grid-template-columns: 1fr; }
    .classic-converter, .old-currency-grid { grid-template-columns: 1fr; }
    .howto-grid { grid-template-columns: 1fr; }
    .base-currency-card dl div { grid-template-columns: 100px 1fr; }
    .old-section-title { align-items: flex-start; flex-direction: column; }
    .prices-table { min-width: 680px; }
    .converter-arrow { display: none; }
    .rate-grid, .currency-grid, .trust-panel, .footer-grid { grid-template-columns: 1fr; }
    .trust-panel div { border-inline-start: 0; border-top: 1px solid #d9cec8; padding-block: 15px; }
    .trust-panel div:first-child { border-top: 0; }
    .currency-page { padding: 20px 15px; }
    .currency-header { align-items: flex-start; }
    .pair-header { flex-wrap: wrap; }
    .pair-header > div { flex: 1; }
    .pair-swap { width: 100%; grid-template-columns: auto auto 1fr; grid-template-areas: "icon label codes"; justify-content: center; margin-inline-start: 0; }
    .pair-swap strong { justify-self: start; }
    .pair-history-heading { flex-direction: column; padding: 18px 16px 15px; }
    .history-controls { width: 100%; justify-content: flex-start; }
    .history-periods { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; }
    .history-periods button { padding-inline: 5px; }
    .history-direction { width: 100%; }
    .history-summary { grid-template-columns: repeat(2, 1fr); }
    .history-summary div:nth-child(3) { border-top: 1px solid var(--line); }
    .history-summary div:nth-child(4) { border-top: 1px solid var(--line); }
    .history-chart-wrap { height: 290px; padding-inline: 8px; }
    .history-caption { padding-inline: 14px; }
    .history-data-table { margin-inline: 14px; }
    .footer-grid nav { grid-template-columns: 1fr 1fr; }
    .market-board-toolbar { align-items: stretch; flex-direction: column; }
    .market-timezone { width: 100%; }
    .market-now { grid-template-columns: auto auto; min-width: 220px; }
    .market-session { grid-template-columns: 1fr; gap: 10px; padding-inline: 14px; }
    .market-timeline { grid-template-columns: 1fr; padding-inline: 14px; }
    .market-timeline-spacer { display: none; }
    .market-timeline-visual { grid-column: 1; }
    .market-session-status { text-align: right; }
    .market-session-track { grid-column: 1 / -1; }
    .market-side-column, .market-hours-guide > div { grid-template-columns: 1fr; }
    .contact-fields-two { grid-template-columns: 1fr; }
    .contact-form button { width: 100%; }
    .news-dashboard-hero { gap: 22px; padding: 24px 18px; }
    .news-search > div, .news-card-grid { grid-template-columns: 1fr; }
    .news-featured { min-height: 0; }
    .news-featured .news-card-media { min-height: 220px; }
    .news-dashboard-heading { align-items: flex-start; }
    .news-article-header, .news-article-body { padding-inline: 20px; }
}
