/* Oakwood Finance calculators - embedded on oakwoodfinance.com.au/resources/calculators/ (one calculator per iframe)
   and usable on their own at /calculators/. Brand rule: white ground, black text, gold accents only. */
:root {
  --gold: #bf9750;
  --gold-light: #e0be7e;
  --gold-deep: #9c7238;
  --ink: #111111;
  --muted: #5f5f5f;
  --line: #e6e6e6;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: #ffffff; color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--gold-deep); }

.calc { max-width: 960px; margin: 0 auto; padding: 18px 20px 14px; }
.calc--embed { padding-top: 6px; }
.calc__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--gold); padding-bottom: 10px; margin-bottom: 16px; }
.calc__title { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.15; margin: 0; }
.calc__lead { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.calc__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 26px; align-items: start; }
@media (max-width: 720px) { .calc__grid { grid-template-columns: 1fr; gap: 18px; } .calc { padding: 14px 16px 12px; } }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 12px; }
.field { grid-column: span 2; min-width: 0; }
.field--half { grid-column: span 1; }
@media (max-width: 480px) { .field--half { grid-column: span 2; } }
.more { margin-top: 8px; }
.more summary { cursor: pointer; color: var(--gold-deep); font-weight: 600; font-size: 12.5px; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: '\25B8\00a0'; }
.more[open] summary::before { content: '\25BE\00a0'; }
.field label { display: block; font-weight: 700; font-size: 12.5px; letter-spacing: .25px; margin-bottom: 5px; }
.field__hint { color: var(--muted); font-size: 12px; margin-top: 4px; line-height: 1.35; }
.control { display: flex; align-items: stretch; border: 1px solid #cfcfcf; border-radius: 8px; background: #fff; height: 42px; overflow: hidden; }
.control:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(191, 151, 80, .18); }
.control__affix { padding: 0 11px; color: var(--muted); font-weight: 700; font-size: 14px; display: flex; align-items: center; border-right: 1px solid var(--line); background: #fafafa; }
.control__affix--right { border-right: 0; border-left: 1px solid var(--line); }
.control input, .control select { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 12px; font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); background: transparent; appearance: none; -webkit-appearance: none; }
.control select { padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23bf9750' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; cursor: pointer; }
.control input::-webkit-outer-spin-button, .control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.control input[type=number] { -moz-appearance: textfield; }
input[type=range] { width: 100%; accent-color: var(--gold); margin: 7px 0 0; height: 18px; }
.toggle { display: flex; border: 1px solid #cfcfcf; border-radius: 8px; overflow: hidden; height: 42px; }
.toggle button { flex: 1; border: 0; background: #fff; font: inherit; font-weight: 600; font-size: 13.5px; color: var(--ink); cursor: pointer; padding: 0 6px; }
.toggle button + button { border-left: 1px solid #cfcfcf; }
.toggle button.is-on { background: var(--gold); color: #000; }

.rows { width: 100%; border-collapse: collapse; }
.rows th { text-align: left; font-size: 11.5px; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); padding: 10px 0 4px; }
.rows td { padding: 3px 0; }
.rows td + td { padding-left: 8px; }
.rows .control { height: 36px; }
.rows .control input, .rows .control select { font-size: 14px; }
.rows .control__affix { padding: 0 8px; font-size: 13px; }
.rows td:first-child { width: 42%; font-size: 13.5px; }

.results { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 14px; background: #fff; }
.headline { border-left: 4px solid var(--gold); padding-left: 14px; margin-bottom: 12px; }
.headline__label { font-size: 11.5px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.headline__value { font-family: var(--serif); font-size: 38px; line-height: 1.05; margin: 3px 0 2px; color: var(--ink); white-space: nowrap; }
.headline__sub { color: var(--muted); font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 9px 14px; margin: 12px 0 10px; }
.stat__label { font-size: 12px; color: var(--muted); line-height: 1.3; }
.stat__value { font-weight: 700; font-size: 16.5px; margin-top: 1px; }
.stat__value--gold { color: var(--gold-deep); }
canvas.chart { width: 100%; height: 170px; display: block; margin: 6px 0 2px; }
canvas.chart--short { height: 62px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); margin: 6px 0 2px; }
.legend i { display: inline-block; width: 14px; height: 3px; vertical-align: middle; margin-right: 5px; border-radius: 2px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 8px 0 4px; }
.table th, .table td { padding: 5px 4px; border-bottom: 1px solid var(--line); text-align: right; }
.table th:first-child, .table td:first-child { text-align: left; }
.table th { font-weight: 700; color: var(--muted); font-size: 11.5px; letter-spacing: .4px; text-transform: uppercase; }
.table tr.is-total td { font-weight: 700; border-bottom: 0; }
.bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: #f0f0f0; margin: 8px 0 6px; }
.bar i { display: block; height: 100%; }

.actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.cta { display: inline-block; background: var(--gold); color: #000; font-weight: 700; text-decoration: none; padding: 10px 20px; border-radius: 8px; border: 2px solid var(--gold); font-size: 14px; }
.cta:hover { background: #fff; color: #000; }
.btn-reset { background: none; border: 0; color: var(--gold-deep); font-weight: 600; cursor: pointer; padding: 0; font: inherit; font-size: 13px; text-decoration: underline; }
.note { font-size: 11.5px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.note strong { color: var(--ink); }
.flag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--gold-deep); border: 1px solid var(--gold-light); border-radius: 4px; padding: 1px 6px; margin-left: 6px; vertical-align: middle; }

/* Inside the website's iframe the box is often only 540px tall on desktop: drop the chart and tighten the notes
   so the figures stay visible without scrolling. The frame still scrolls for the fine print. */
@media (min-width: 721px) and (max-height: 620px) {
  .calc--embed canvas.chart, .calc--embed .legend { display: none; }
  .calc--embed .note { margin-top: 8px; }
  .calc--embed .calc__head { margin-bottom: 12px; }
}

/* chooser (standalone page only) */
.chooser { max-width: 960px; margin: 0 auto; padding: 36px 20px 40px; }
.chooser__title { font-family: var(--serif); font-weight: 400; font-size: 34px; margin: 0 0 6px; }
.chooser__lead { color: var(--muted); margin: 0 0 24px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.card { display: block; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 10px; padding: 16px 16px 14px; transition: box-shadow .15s; }
.card:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .08); }
.card__title { font-family: var(--serif); font-size: 19px; margin: 0 0 4px; }
.card__text { font-size: 13px; color: var(--muted); margin: 0; }
.back { display: inline-block; font-size: 13px; margin-bottom: 10px; }
