/* The tax pages (tax.go): how Niki POS calculates tax, in general and per country. Loaded after site.css, on those pages only. Start and end, never left and right: Arabic pages read right to left. */

.tax-wrap { max-width: 960px; }
.tax-hero { padding-bottom: 32px; }
.tax-hero h1 { font-size: clamp(2rem, 5vw, 3rem); max-width: 18em; }
.tax-hero .lead { max-width: 40em; }
.tax-advice { margin: 0 0 20px; padding: 10px 14px; border-inline-start: 4px solid var(--primary); border-radius: 8px; background: var(--surface); color: var(--text-muted); font-size: 0.93rem; max-width: 46em; }

.tax-toc ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tax-toc li { margin: 0; }
.tax-toc a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid var(--outline); border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; font-size: 0.92rem; font-weight: 600; }
.tax-toc a:hover { border-color: var(--primary); color: var(--primary); }
.tax-toc .icon { color: var(--primary); }

.tax-body { padding-top: 8px; padding-bottom: 56px; }
.tax-section { padding: 28px 0 8px; border-top: 1px solid var(--border); }
.tax-section:first-child { border-top: 0; }
.tax-section > h2 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); letter-spacing: -0.02em; margin: 0 0 12px; }
.tax-text { max-width: 46em; }
.tax-text p, .tax-intro { margin: 0 0 14px; }
.tax-text ul, .tax-text ol { margin: 0 0 14px; padding-inline-start: 1.3em; }
.tax-text li { margin: 0.4em 0; padding-inline-start: 2px; }
.tax-text strong { color: var(--text); }
.tax-checked { color: var(--text-muted); font-size: 0.9rem; font-style: italic; margin: 24px 0 0; }
.tax-sources a { overflow-wrap: anywhere; }

/* A worked example: what it shows, beside the receipt the app prints. */
.tax-example { display: grid; gap: 20px; margin: 20px 0 24px; padding: 22px; border-radius: var(--radius); background: var(--surface-low); border: 1px solid var(--border); align-items: start; }
.tax-example h3 { margin: 0 0 8px; font-size: 1.1rem; }
.tax-example-text p { margin: 0 0 10px; color: var(--text-muted); }
.tax-example-text p:last-child { margin-bottom: 0; }
.tax-example-text ul { margin: 0 0 10px; padding-inline-start: 1.2em; color: var(--text-muted); }
@media (min-width: 760px) { .tax-example { grid-template-columns: minmax(0, 1fr) 300px; } }

.tax-receipt { justify-self: center; width: min(100%, 300px); padding: 18px 16px 20px; border-radius: 4px; background: #fff; color: #1E1B19; box-shadow: var(--shadow); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.tax-receipt-title { margin: 0 0 8px; text-align: center; font-weight: 800; letter-spacing: 0.04em; }
.tax-receipt table { margin: 0; font-size: inherit; }
.tax-receipt th, .tax-receipt td { padding: 3px 0; border: 0; vertical-align: top; color: #1E1B19; }
.tax-receipt th { font-weight: 500; padding-inline-end: 12px; }
.tax-receipt td { text-align: end; white-space: nowrap; }
.tax-receipt-item th span { display: block; color: #5C5048; font-size: 0.85em; }
.tax-receipt-minor th, .tax-receipt-minor td { color: #5C5048; font-size: 0.9em; padding-inline-start: 10px; }
.tax-receipt-totals tr:first-child th, .tax-receipt-totals tr:first-child td { border-top: 1px dashed #B9ACA4; padding-top: 8px; }
.tax-receipt-strong th, .tax-receipt-strong td { font-weight: 800; }

/* A country's preset at a glance. */
.tax-facts dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0; }
.tax-facts dl > div { padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.tax-facts dt { color: var(--text-muted); font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; }
.tax-facts dd { margin: 0; font-weight: 700; }
.tax-facts dd span { display: block; margin-top: 4px; color: var(--text-muted); font-size: 0.85rem; font-weight: 500; }

/* Every preset country, on the general page. */
.tax-countries { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.tax-countries li { margin: 0; }
.tax-countries a { display: flex; flex-direction: column; height: 100%; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.tax-countries a:hover { border-color: var(--outline); box-shadow: var(--shadow); }
.tax-countries span { color: var(--text-muted); font-size: 0.88rem; }

.tax-body .faq { max-width: 46em; }
.tax-body .faq details .tax-text { padding-bottom: 6px; color: var(--text-muted); }
.tax-body .more-link { margin-top: 36px; }

/* A country's page (country.html): its payment methods. */
.pay-methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.pay-methods li { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.pay-methods strong { font-size: 1.05rem; }
.pay-methods span { color: var(--text-muted); font-size: 0.88rem; }
.pay-methods em { margin-top: 4px; color: var(--primary); font-size: 0.82rem; font-style: normal; font-weight: 600; }
.country-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 28px 20px; align-items: start; margin-top: 8px; }
.country-shots figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.country-shots .phone { width: min(240px, 70vw); }
.country-paper { display: block; width: min(220px, 64vw); height: auto; border-radius: 4px; box-shadow: var(--shadow-lg); }
.country-shots figcaption { color: var(--text-muted); font-size: 0.92rem; text-align: center; max-width: 16em; }
.country-shots-title { margin: 28px 0 6px; font-size: 1.15rem; }
.tax-facts .country-shots { margin-bottom: 8px; }
