/* TaxSnap (taxsnap.com.au) — shared stylesheet */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #F7F4EE;
  --surface: #FFFFFF;
  --ink: #1A1A2E;
  --ink-soft: #5A5A72;
  --gold: #C9A84C;
  --gold-light: #F0E0A8;
  --green: #2A7A5A;
  --green-dark: #236348;
  --green-light: #E6F4EE;
  --border: #E0DDD6;
  --radius: 12px;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.5;
}
a { color: var(--green); }

/* ── SITE NAV ── */
.site-nav {
  background: var(--ink);
  color: #fff;
}
.site-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.brand {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  color: var(--gold-light);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand span { color: #fff; opacity: 0.55; font-size: 0.9rem; }
.nav-links {
  display: flex;
  gap: 4px 16px;
  flex-wrap: wrap;
  font-size: 0.86rem;
}
.nav-links a {
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--gold-light); }

/* ── HERO HEADER ── */
header.page-hero {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 30px 20px 26px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
header.page-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  letter-spacing: -0.02em;
  color: var(--gold-light);
}
header.page-hero p {
  font-size: 0.88rem;
  color: #b8b8c4;
  margin-top: 6px;
  font-weight: 300;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* ── BREADCRUMBS ── */
.breadcrumbs {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--green); text-decoration: underline; }
.breadcrumbs .sep { margin: 0 6px; opacity: 0.5; }

/* ── ADS ── */
.ad-top {
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  min-height: 100px;
}
.ad-slot { display: flex; justify-content: center; align-items: center; }
.ad-placeholder {
  background: #fff;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  gap: 6px;
  text-align: center;
}
.ad-leaderboard  { width: 100%; max-width: 728px; min-height: 90px; }
.ad-side-rect    { width: 100%; min-height: 250px; }
.ad-side-small   { width: 100%; min-height: 120px; }
.ad-bottom-rect  { width: 100%; min-height: 280px; max-width: 336px; margin: 0 auto; }

/* ── LAYOUT ── */
.page-wrapper {
  display: grid;
  grid-template-columns: 160px 1fr 160px;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px;
  align-items: start;
}
@media (max-width: 900px) {
  .page-wrapper { grid-template-columns: 1fr; }
  .ad-side { display: none; }
}
.ad-side {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px;
}
main { padding: 0 20px; min-width: 0; }

/* ── CARD ── */
.card {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  overflow: hidden;
}
.card-header { background: var(--green); color: #fff; padding: 20px 28px; }
.card-header h2 { font-family: 'DM Serif Display', serif; font-size: 1.25rem; font-weight: 400; }
.card-header p { font-size: 0.8rem; opacity: 0.78; margin-top: 2px; }
.card-body { padding: 28px; }

/* ── INPUTS ── */
.input-group { margin-bottom: 20px; }
label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 7px;
}
.input-wrap { position: relative; }
.input-wrap > span.prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--ink-soft);
  font-weight: 600;
}
input[type="number"], select {
  width: 100%;
  padding: 13px 14px 13px 32px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s;
  -moz-appearance: textfield;
}
input[type="number"]:focus, select:focus { border-color: var(--green); background: #fff; }
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }
select { padding-left: 14px; cursor: pointer; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .row-2 { grid-template-columns: 1fr; } }

.checkbox-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; cursor: pointer; }
.checkbox-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--green); cursor: pointer; }
.checkbox-row span { font-size: 0.88rem; color: var(--ink-soft); }

.btn {
  width: 100%;
  padding: 15px;
  background: var(--green);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 0.02em;
}
.btn:hover  { background: var(--green-dark); }
.btn:active { transform: scale(0.99); }

/* ── RESULTS ── */
.results { display: none; margin-top: 24px; border-top: 1.5px solid var(--border); padding-top: 24px; }
.results.visible { display: block; }
.take-home-hero {
  background: var(--green-light);
  border: 1.5px solid #b8dece;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 20px;
  text-align: center;
}
.take-home-hero .label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--green); }
.take-home-hero .amount { font-family: 'DM Serif Display', serif; font-size: clamp(2rem, 6vw, 3rem); color: var(--green); line-height: 1.1; margin: 4px 0 2px; }
.take-home-hero .per-period { font-size: 0.82rem; color: var(--ink-soft); }

.period-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
@media (max-width: 480px) { .period-grid { grid-template-columns: 1fr 1fr; } }
.period-card { background: var(--bg); border-radius: 10px; padding: 12px 10px; text-align: center; }
.period-card .p-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }
.period-card .p-val   { font-size: 1.05rem; font-weight: 600; color: var(--ink); margin-top: 4px; }

.breakdown-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); margin-bottom: 12px; }
.breakdown-item { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.breakdown-item:last-child { border-bottom: none; }
.breakdown-item .bi-label { color: var(--ink-soft); }
.breakdown-item .bi-val   { font-weight: 600; }
.breakdown-item.gross .bi-val { color: var(--ink); }
.breakdown-item.deduct .bi-val { color: #c0392b; }
.breakdown-item.net .bi-label, .breakdown-item.net .bi-val { font-weight: 700; color: var(--green); font-size: 0.95rem; }
.breakdown-item.hidden { display: none; }

.eff-rate { margin-top: 16px; background: var(--gold-light); border-radius: 10px; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; }
.eff-rate span:first-child { font-size: 0.83rem; color: #7a6020; font-weight: 500; }
.eff-rate span:last-child  { font-size: 1.1rem; font-weight: 700; color: #7a6020; }

.annual-summary { margin-top: 16px; background: var(--ink); border-radius: 10px; padding: 16px; color: #fff; }
.annual-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 0.88rem; color: rgba(255,255,255,0.65); }
.annual-row span:last-child { font-weight: 600; color: rgba(255,255,255,0.85); }
.annual-row.annual-net { border-bottom: none; padding-top: 10px; margin-top: 2px; }
.annual-row.annual-net span { color: var(--gold-light) !important; font-weight: 700; font-size: 0.95rem; }

/* ── PRECOMPUTED RESULT (static, salary pages) ── */
.precomp { margin-top: 4px; }

/* ── CONTENT SECTIONS ── */
.seo-section { background: var(--surface); border-top: 1px solid var(--border); padding: 44px 20px; }
.seo-inner { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 36px; }
.seo-intro h2, .seo-block h2 { font-family: 'DM Serif Display', serif; font-size: 1.5rem; color: var(--ink); margin-bottom: 12px; letter-spacing: -0.02em; }
.seo-intro p { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.7; margin-bottom: 10px; }
.seo-block h3 { font-family: 'DM Serif Display', serif; font-size: 1.2rem; color: var(--ink); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--green-light); letter-spacing: -0.01em; }
.seo-block p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.7; margin-bottom: 14px; }
.seo-block ul { margin: 0 0 14px 20px; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.7; }
.seo-block li { margin-bottom: 6px; }

/* ── TABLES ── */
.tax-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin-bottom: 10px; }
.tax-table thead tr { background: var(--ink); color: var(--gold-light); }
.tax-table th { padding: 10px 14px; text-align: left; font-weight: 600; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.tax-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--ink); }
.tax-table tbody tr:nth-child(even) { background: var(--bg); }
.tax-table tbody tr:hover { background: var(--green-light); }
.tax-table tbody tr.highlight { background: var(--gold-light); font-weight: 600; }
.tax-table tbody tr.highlight:hover { background: var(--gold-light); }
.table-wrap { overflow-x: auto; }
.table-note { font-size: 0.75rem !important; color: #999 !important; margin-top: 6px !important; }
.table-note a { color: var(--green); }

/* ── RELATED LINKS ── */
.related { margin-top: 4px; }
.related h3 { font-family: 'DM Serif Display', serif; font-size: 1.2rem; color: var(--ink); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--green-light); }
.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-block;
  padding: 8px 14px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: 0.84rem;
  color: var(--ink);
  text-decoration: none;
  transition: all 0.15s;
}
.chip:hover { border-color: var(--green); background: var(--green-light); color: var(--green-dark); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.link-card {
  display: block;
  padding: 16px 18px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.15s;
}
.link-card:hover { border-color: var(--green); background: var(--green-light); }
.link-card .lc-title { font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.link-card .lc-desc { font-size: 0.8rem; color: var(--ink-soft); margin-top: 4px; line-height: 1.5; }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item summary { padding: 14px 18px; font-weight: 600; font-size: 0.92rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--ink); background: var(--bg); transition: background 0.15s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.2rem; font-weight: 300; color: var(--green); flex-shrink: 0; margin-left: 12px; }
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { background: var(--green-light); }
.faq-item[open] summary { background: var(--green-light); color: var(--green); }
.faq-item p { padding: 14px 18px; font-size: 0.88rem; color: var(--ink-soft); line-height: 1.7; border-top: 1px solid var(--border); background: #fff; margin: 0 !important; }

.disclaimer { margin-top: 20px; font-size: 0.72rem; color: #999; text-align: center; line-height: 1.6; }
.note-box { background: var(--green-light); border: 1px solid #b8dece; border-radius: var(--radius); padding: 14px 16px; font-size: 0.85rem; color: var(--ink-soft); line-height: 1.6; margin-bottom: 16px; }
.note-box strong { color: var(--green-dark); }

/* ── BOTTOM AD ── */
.ad-bottom { max-width: 1100px; margin: 0 auto 32px; padding: 0 36px; display: flex; justify-content: center; }

/* ── PROSE (legal pages) ── */
.prose { max-width: 760px; margin: 0 auto; padding: 40px 20px 60px; }
.prose h1 { font-family: 'DM Serif Display', serif; font-size: 2rem; color: var(--ink); margin-bottom: 8px; letter-spacing: -0.02em; }
.prose .updated { font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 28px; }
.prose h2 { font-family: 'DM Serif Display', serif; font-size: 1.3rem; color: var(--ink); margin: 28px 0 10px; }
.prose p, .prose li { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.75; margin-bottom: 12px; }
.prose ul { margin-left: 22px; }
.prose a { color: var(--green); }

/* ── FOOTER ── */
footer.site-footer { background: var(--ink); color: rgba(255,255,255,0.6); padding: 32px 20px; margin-top: 0; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; margin-bottom: 24px; }
@media (max-width: 700px) { .footer-cols { grid-template-columns: 1fr; gap: 18px; } }
.footer-cols h4 { color: var(--gold-light); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; font-weight: 600; }
.footer-cols a { display: block; color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.86rem; padding: 4px 0; }
.footer-cols a:hover { color: var(--gold-light); }
.footer-brand { font-family: 'DM Serif Display', serif; font-size: 1.3rem; color: var(--gold-light); margin-bottom: 8px; }
.footer-brand-desc { font-size: 0.84rem; line-height: 1.6; max-width: 320px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 18px; font-size: 0.76rem; line-height: 1.6; color: rgba(255,255,255,0.45); }
.footer-bottom a { color: rgba(255,255,255,0.6); }
