/* AU Pay Scales - shared stylesheet. No frameworks, no web fonts. */
:root {
  --ink: #14213d;
  --ink-soft: #4a5673;
  --paper: #fbfaf6;
  --card: #ffffff;
  --line: #e4e1d6;
  --brand: #0b6e4f;
  --brand-dark: #08543c;
  --gold: #f2b705;
  --tint: #eaf5f0;
  --radius: 12px;
  --wrap: 1040px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
a { color: var(--brand-dark); }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* Header: compact on mobile */
.site-header { background: var(--ink); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 46px; }
.logo { color: #fff; text-decoration: none; font-weight: 800; letter-spacing: -0.01em; font-size: 17px; }
.logo span { color: var(--gold); }
.nav a { color: #dfe4f0; text-decoration: none; font-size: 14px; margin-left: 16px; }
.nav a:hover { color: #fff; }

/* Typography */
h1 { font-size: 1.65rem; line-height: 1.2; margin: 0 0 10px; letter-spacing: -0.02em; }
h2 { font-size: 1.3rem; line-height: 1.25; margin: 36px 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; margin: 22px 0 6px; }
p { margin: 0 0 14px; }
.lead { color: var(--ink-soft); font-size: 1.05rem; }
.crumbs { font-size: 13px; color: var(--ink-soft); padding: 12px 0 0; }
.crumbs a { color: var(--ink-soft); }
.updated { font-size: 13px; color: var(--ink-soft); margin-bottom: 18px; }
main { padding: 8px 0 40px; }

/* Cards and layout */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.grid { display: grid; gap: 14px; }
.tool-card { display: block; text-decoration: none; color: var(--ink); }
.tool-card:hover { border-color: var(--brand); }
.tool-card h3 { margin: 0 0 4px; }
.tool-card p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 8px; border-radius: 99px; margin-bottom: 8px; }
.tag.live { background: var(--tint); color: var(--brand-dark); }
.tag.soon { background: #f1efe7; color: var(--ink-soft); }
.hero { padding: 26px 0 6px; }

/* Calculator */
.calc { border-top: 4px solid var(--brand); }
.fields { display: grid; gap: 12px; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
select, input[type="date"] {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #c9c5b6; border-radius: 8px; padding: 10px 12px; min-height: 44px;
}
select:focus, input:focus, a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
.hint { font-size: 12.5px; color: var(--ink-soft); margin: 4px 0 0; }
.results { margin-top: 18px; display: grid; gap: 12px; }
.stat { background: var(--tint); border-radius: 10px; padding: 14px; }
.stat .k { font-size: 12.5px; color: var(--ink-soft); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.stat .v { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.stat .s { font-size: 13.5px; color: var(--ink-soft); }
.stat.plain { background: #f6f4ec; }
.steps { list-style: none; margin: 14px 0 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 96px 1fr auto; gap: 10px; align-items: center; font-size: 14px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.steps li:last-child { border-bottom: 0; }
.bar { height: 10px; background: #eceade; border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.steps b { font-variant-numeric: tabular-nums; }

/* Tables */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14px; font-variant-numeric: tabular-nums; }
caption { text-align: left; padding: 12px 14px; font-weight: 700; }
th, td { padding: 9px 12px; text-align: right; border-top: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; position: sticky; left: 0; background: #fff; }
thead th { background: var(--ink); color: #fff; border-top: 0; font-weight: 600; }
thead th:first-child { background: var(--ink); }
tr.group td { background: #f6f4ec; font-weight: 700; text-align: left; }
tr.is-selected td { background: #fff8dc; font-weight: 700; }

.btn { display: inline-block; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; background: var(--brand); color: #fff; border: 0; border-radius: 8px; padding: 10px 16px; margin-top: 12px; }
.btn:hover { background: var(--brand-dark); }
.note { background: #fff8dc; border-left: 4px solid var(--gold); padding: 12px 14px; border-radius: 0 8px 8px 0; font-size: 14px; }
details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; }
summary { font-weight: 700; cursor: pointer; }
details p { margin: 10px 0 0; }
.author-box { display: flex; gap: 14px; align-items: flex-start; margin-top: 36px; }
.author-box .mark { flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; font-weight: 800; }
.author-box p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.author-box strong { color: var(--ink); }

.site-footer { border-top: 1px solid var(--line); background: #f3f1e8; font-size: 13px; color: var(--ink-soft); padding: 22px 0 28px; }
.site-footer a { color: var(--ink-soft); margin-right: 14px; }
.site-footer p { margin: 10px 0 0; }

@media (min-width: 700px) {
  .site-header .wrap { min-height: 58px; }
  .logo { font-size: 19px; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.5rem; }
  .grid.cols { grid-template-columns: repeat(3, 1fr); }
  .fields { grid-template-columns: 2fr 1fr 1.3fr; }
  .results { grid-template-columns: repeat(2, 1fr); }
  .steps li { grid-template-columns: 150px 1fr auto; }
  .card { padding: 24px; }
}

@media print {
  .site-header, .site-footer, .calc, .btn, .crumbs, .faq, .author-box, .no-print { display: none !important; }
  body { background: #fff; font-size: 12px; }
  .table-scroll { border: 0; overflow: visible; }
  table { min-width: 0; }
  thead th { background: #fff !important; color: #000; border-bottom: 2px solid #000; }
}
