/*
Theme Name: DollarToNaira
Theme URI: https://dollartonaira.com
Author: DollarToNaira
Description: Premium forex exchange rate theme for dollartonaira.com. Live board, converter, official and parallel market rates, 30-day chart and rate alerts. Rates are edited under Dashboard > DTN Rates.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dollartonaira
*/

:root {
	--ink: #0d1f1a;
	--ink-deep: #07130f;
	--ink-mid: #173a2f;
	--forest: #0b5d43;
	--forest-deep: #0b3b2c;
	--mint: #7fe0b8;
	--mint-tint: #e4f1eb;
	--paper: #f6f8f7;
	--white: #ffffff;
	--line: #dce4e0;
	--line-soft: #e3ebe7;
	--muted: #5a6b64;
	--body: #33463f;
	--amber: #8f5a10;
	--up: #0b7a55;
	--down: #b3322b;
	--focus: #1fa97a;
	--font-head: "Space Grotesk", system-ui, sans-serif;
	--font-body: "Inter", system-ui, sans-serif;
	--font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
button, input { font-family: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.screen-reader-text, .dtn-hp {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.dtn-skip { position: absolute; left: -9999px; }
.dtn-skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 10px 16px; border-radius: 8px; }

.dtn-wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.dtn-up { color: var(--up); }
.dtn-down { color: var(--down); }
.dtn-muted { font-size: 14px; color: var(--muted); }
.dtn-mono { font-family: var(--font-mono); }
.dtn-strong { font-weight: 600; }
.dtn-svgtext { font-family: var(--font-mono); font-size: 12px; fill: var(--muted); }

/* Live board */
.dtn-ticker { background: var(--ink-deep); color: #cfe3da; }
.dtn-ticker__inner { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; padding-top: 10px; padding-bottom: 10px; font-family: var(--font-mono); font-size: 13px; }
.dtn-ticker__label { color: var(--mint); font-weight: 600; }
.dtn-ticker__item { display: inline-flex; gap: 8px; align-items: baseline; }
.dtn-ticker__pair { color: #9bb5aa; }
.dtn-ticker__val { color: var(--white); }
.dtn-ticker .dtn-up { color: var(--mint); }
.dtn-ticker .dtn-down { color: #ff9d94; }

/* Header */
.dtn-header { background: var(--white); border-bottom: 1px solid var(--line); }
.dtn-header__inner { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.dtn-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.dtn-brand:hover { text-decoration: none; }
.dtn-brand__mark { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: var(--forest); color: var(--white); border-radius: 8px; font-size: 20px; }
.dtn-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; font-size: 15px; font-weight: 500; color: var(--body); }
.dtn-menu { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; margin: 0; padding: 0; }
.dtn-btn-dark { display: inline-block; background: var(--ink); color: var(--white); padding: 10px 18px; border-radius: 8px; font-weight: 500; }
.dtn-btn-dark:hover { text-decoration: none; background: var(--forest-deep); }

/* Hero */
.dtn-hero { background: var(--ink); color: var(--white); }
.dtn-hero__inner { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-top: 72px; padding-bottom: 80px; }
.dtn-hero__copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.dtn-hero__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dtn-pill { background: var(--ink-mid); color: var(--mint); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.dtn-hero__date { color: #9bb5aa; font-size: 14px; }
.dtn-hero h1 { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 56px; line-height: 1.05; letter-spacing: -0.025em; text-wrap: balance; }
.dtn-hero__kicker { display: block; font-size: 14px; color: #9bb5aa; font-weight: 500; margin-bottom: 6px; }
.dtn-hero__bignum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; }
.dtn-hero__big { font-family: var(--font-head); font-weight: 700; font-size: 96px; line-height: 1; letter-spacing: -0.04em; color: var(--mint); }
.dtn-hero__chg { font-family: var(--font-mono); font-size: 20px; font-weight: 600; }
.dtn-hero .dtn-up { color: var(--mint); }
.dtn-hero .dtn-down { color: #ff9d94; }
.dtn-hero__facts { display: flex; flex-wrap: wrap; gap: 12px 40px; padding-top: 20px; border-top: 1px solid #234a3d; }
.dtn-hero__facts div { display: flex; flex-direction: column; gap: 2px; }
.dtn-hero__facts span { font-size: 13px; color: #9bb5aa; }
.dtn-hero__facts b { font-family: var(--font-mono); font-size: 22px; font-weight: 600; }
.dtn-hero__updated { margin: 0; font-size: 13px; color: #9bb5aa; }

/* Converter */
.dtn-converter { flex: 1 1 400px; min-width: 0; max-width: 520px; background: var(--white); color: var(--ink); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.dtn-converter__head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.dtn-converter h2 { margin: 0; font-family: var(--font-head); font-size: 22px; font-weight: 600; }
.dtn-seg { display: flex; background: #eaf0ed; border-radius: 10px; padding: 3px; }
.dtn-seg button { border: 0; border-radius: 8px; padding: 8px 16px; min-height: 36px; font-size: 14px; font-weight: 600; background: transparent; color: var(--body); cursor: pointer; }
.dtn-seg button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.dtn-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dtn-chip { border: 1.5px solid #c5d2cc; border-radius: 999px; padding: 8px 18px; min-height: 44px; font-family: var(--font-mono); font-size: 14px; font-weight: 600; background: var(--white); color: var(--body); cursor: pointer; }
.dtn-chip[aria-pressed="true"] { border-color: var(--forest); background: var(--forest); color: var(--white); }
.dtn-field { display: flex; flex-direction: column; gap: 8px; }
.dtn-field label { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.dtn-input { display: flex; align-items: center; gap: 12px; border: 1.5px solid #c5d2cc; border-radius: 10px; padding: 0 16px; height: 60px; }
.dtn-input span { font-family: var(--font-mono); font-weight: 600; color: var(--forest); font-size: 16px; }
.dtn-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-family: var(--font-head); font-size: 28px; font-weight: 600; color: var(--ink); text-align: right; }
.dtn-input:focus-within { border-color: var(--forest); }
.dtn-swaprow { display: flex; align-items: center; gap: 12px; }
.dtn-swaprow > span { flex: 1; height: 1px; background: var(--line); }
.dtn-swap { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #c5d2cc; background: var(--white); border-radius: 999px; padding: 8px 16px; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--forest); cursor: pointer; }
.dtn-result { background: #eaf4ef; border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.dtn-result__label { font-size: 13px; font-weight: 600; color: #3f6355; letter-spacing: 0.04em; text-transform: uppercase; }
.dtn-result__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.dtn-result__value { font-family: var(--font-head); font-size: 40px; font-weight: 700; letter-spacing: -0.02em; color: var(--forest-deep); overflow-wrap: anywhere; }
.dtn-result__code { font-family: var(--font-mono); font-weight: 600; color: var(--forest); }
.dtn-result__rate { font-size: 14px; color: #3f6355; }

/* Sections */
.dtn-section { padding-top: 56px; padding-bottom: 8px; display: flex; flex-direction: column; gap: 28px; }
.dtn-section--last { padding-bottom: 72px; }
.dtn-sechead { display: flex; flex-direction: column; gap: 8px; }
.dtn-sechead--narrow { max-width: 680px; }
.dtn-sechead--row { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.dtn-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--forest); }
.dtn-section h2 { margin: 0; font-family: var(--font-head); font-size: 36px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }

.dtn-cards, .dtn-channels { display: grid; gap: 20px; }
.dtn-cards { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.dtn-channels { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.dtn-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.dtn-card__label { font-size: 14px; font-weight: 600; color: var(--muted); }
.dtn-card__num { font-family: var(--font-head); font-size: 40px; font-weight: 700; letter-spacing: -0.02em; }
.dtn-card__num--amber { color: var(--amber); }
.dtn-card p { margin: 0; color: #4b5e57; font-size: 15px; }
.dtn-card--green { background: var(--forest); border-color: var(--forest); color: var(--white); }
.dtn-card--green .dtn-card__label { color: #bfe8d6; }
.dtn-card--green p { color: #ddf2e8; }

.dtn-channel { gap: 16px; }
.dtn-channel h3 { margin: 0; font-family: var(--font-head); font-size: 20px; font-weight: 600; }
.dtn-channel dl { margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.dtn-channel dl div { display: flex; justify-content: space-between; gap: 12px; }
.dtn-channel dt { color: var(--muted); }
.dtn-channel dd { margin: 0; font-weight: 500; text-align: right; }

/* Chart */
.dtn-chartcard { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.dtn-chartcard__head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-end; }
.dtn-chartcard h2 { font-size: 28px; letter-spacing: -0.015em; }
.dtn-stats { display: flex; flex-wrap: wrap; gap: 24px; }
.dtn-stats div { display: flex; flex-direction: column; }
.dtn-stats span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.dtn-stats b { font-family: var(--font-mono); font-weight: 600; font-size: 18px; }
.dtn-chartscroll { overflow-x: auto; }
.dtn-chartscroll svg { display: block; width: 100%; min-width: 560px; height: auto; }

/* Table */
.dtn-tablewrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.dtn-table { min-width: 680px; }
.dtn-tr { display: grid; grid-template-columns: 2.2fr 1fr 1fr 0.8fr; gap: 16px; padding: 16px 24px; align-items: center; border-top: 1px solid var(--line-soft); }
.dtn-tr--head { border-top: 0; padding-top: 14px; padding-bottom: 14px; background: #eef3f0; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #4b5e57; }
.dtn-num { text-align: right; }
.dtn-tr:not(.dtn-tr--head) .dtn-num { font-size: 15px; }
.dtn-cur { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.dtn-code { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 32px; border-radius: 6px; background: var(--mint-tint); color: var(--forest); font-family: var(--font-mono); font-weight: 600; font-size: 13px; }

/* Trust */
.dtn-trust { background: var(--forest-deep); color: var(--white); border-radius: 16px; padding: 44px 40px; display: flex; flex-wrap: wrap; gap: 40px; }
.dtn-trust__lead { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.dtn-trust__lead h2 { font-size: 32px; }
.dtn-trust__lead p { margin: 0; color: #bfe0d2; }
.dtn-trust__items { flex: 2 1 480px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.dtn-trust__items div { display: flex; flex-direction: column; gap: 6px; }
.dtn-trust__items b { font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--mint); }
.dtn-trust__items span { color: #d5ebe1; font-size: 15px; }

/* Alerts */
.dtn-alertbox { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 40px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.dtn-alertbox__copy { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.dtn-alertbox h2 { font-size: 30px; }
.dtn-alertbox p { margin: 0; color: #4b5e57; }
.dtn-notice { padding: 10px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.dtn-alertbox .dtn-notice--ok { background: #e4f4ec; color: #0b5d43; }
.dtn-alertbox .dtn-notice--err { background: #fbe9e7; color: #8c2620; }
.dtn-alertform { flex: 1 1 380px; min-width: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.dtn-alertform input[type="email"], .dtn-alertform input[type="text"] { flex: 1 1 200px; min-width: 0; height: 52px; border: 1.5px solid #c5d2cc; border-radius: 10px; padding: 0 16px; font-size: 16px; color: var(--ink); background: var(--white); }
.dtn-alertform .dtn-alertform__target { flex: 0 1 130px; }
.dtn-alertform button { height: 52px; padding: 0 24px; border: 0; border-radius: 10px; background: var(--forest); color: var(--white); font-size: 16px; font-weight: 600; cursor: pointer; }
.dtn-alertform button:hover { background: var(--forest-deep); }

/* Footer */
.dtn-footer { background: var(--ink-deep); color: #9bb5aa; }
.dtn-footer__inner { padding-top: 48px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 28px; }
.dtn-footer__top { display: flex; flex-wrap: wrap; gap: 24px 56px; justify-content: space-between; }
.dtn-footer__about { flex: 1 1 280px; max-width: 420px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.dtn-footer__brand { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--white); }
.dtn-footer__nav { font-size: 14px; align-self: flex-start; }
.dtn-footer__nav .dtn-menu { gap: 12px 40px; }
.dtn-footer__legal { margin: 0; padding-top: 24px; border-top: 1px solid #1b3029; font-size: 13px; max-width: 840px; }

/* Posts and pages */
.dtn-content { padding-top: 56px; padding-bottom: 72px; max-width: 800px; }
.dtn-content h1 { font-family: var(--font-head); font-size: 40px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 16px; }
.dtn-article { margin-bottom: 48px; }
.dtn-article h2 { font-family: var(--font-head); font-size: 28px; margin: 0 0 6px; }
.dtn-article__body { color: var(--body); font-size: 17px; max-width: 68ch; }
.dtn-article__thumb { margin: 20px 0; }
.dtn-article__body a { color: var(--forest); text-decoration: underline; }

/* Phones */
@media (max-width: 640px) {
	.dtn-wrap { padding-left: 16px; padding-right: 16px; }
	.dtn-hero__inner { padding-top: 48px; padding-bottom: 56px; gap: 40px; }
	.dtn-hero h1 { font-size: 40px; }
	.dtn-hero__big { font-size: 68px; }
	.dtn-converter { padding: 20px; }
	.dtn-section h2 { font-size: 28px; }
	.dtn-chartcard, .dtn-alertbox { padding: 20px; }
	.dtn-trust { padding: 28px 20px; }
	.dtn-tr { padding-left: 16px; padding-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
