/* Self-hosted Inter (OFL). Local files only, offline-available. */
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/Inter-Regular.woff2') format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('assets/fonts/Inter-Medium.woff2') format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('assets/fonts/Inter-SemiBold.woff2') format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('assets/fonts/Inter-Bold.woff2') format('woff2')}
@font-face{font-family:'Inter';font-style:italic;font-weight:400;font-display:swap;src:url('assets/fonts/Inter-Italic.woff2') format('woff2')}
@font-face{font-family:'Inter Display';font-style:normal;font-weight:700;font-display:swap;src:url('assets/fonts/InterDisplay-Bold.woff2') format('woff2')}
/* ============================================================================
   LITE.CSS — the LITE-only visual design system.
   Loaded ONLY on the LITE experience. Detailed mode's existing stylesheet is
   completely untouched and shares nothing with this file.
   Design principle: premium + calm + exceptionally clear. Restrained,
   information-led. Self-hosted Inter throughout, including inputs and key figures; no serif display face.
   ============================================================================ */

:root{
  /* Surfaces */
  --lite-bg: #F3EFE6;
  --lite-surface: #FFFFFF;
  --lite-surface-elevated: #FFFFFF;

  /* Typography */
  --lite-ink: #16201D;
  --lite-ink-secondary: #414F4A;
  --lite-ink-muted: #5E6A65;
  --lite-font-display: 'Inter Display','Inter',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --lite-font-body: 'Inter',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;

  /* Borders */
  --lite-border: #DDD6C6;
  --lite-border-focus: #0F3D4D;

  /* Semantic colours -- deepened for a premium-fintech feel; same roles */
  --lite-good: #146B49;
  --lite-good-bg: #E4F2EA;
  --lite-warn: #A8600A;
  --lite-warn-bg: #FBEDD8;
  --lite-danger: #9E2E22;
  --lite-danger-bg: #FADEDA;
  --lite-info: #1F5A8F;
  --lite-pension: #6A4A96;
  --lite-property: #A8720F;
  --lite-neutral: #74716A;

  /* Controls */
  --lite-accent: #0F3D4D;
  --lite-accent-hover: #0A2C38;

  /* Structure */
  --lite-radius: 14px;
  --lite-radius-sm: 8px;
  --lite-shadow: 0 1px 3px rgba(20,20,15,0.06), 0 6px 20px rgba(20,20,15,0.07);
  --lite-space-1: 6px;
  --lite-space-2: 12px;
  --lite-space-3: 20px;
  --lite-space-4: 32px;
  --lite-space-5: 48px;
}

.lite-root{
  background: var(--lite-bg);
  color: var(--lite-ink);
  font-family: var(--lite-font-body);
  line-height: 1.5;
  max-width: 720px;
  margin: 0 auto;
  padding: var(--lite-space-4) var(--lite-space-3) var(--lite-space-5);
}

/* ---- Verdict ---- */
.lite-verdict{
  background: var(--lite-surface);
  border-radius: var(--lite-radius);
  box-shadow: var(--lite-shadow);
  padding: var(--lite-space-4) var(--lite-space-4);
  margin-bottom: var(--lite-space-3);
  border-left: 4px solid var(--verdict-color, var(--lite-good));
}
.lite-verdict-headline{
  display: flex;
  align-items: center;
  gap: var(--lite-space-2);
  font-family: var(--lite-font-display);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.lite-verdict-icon{ font-size: 1.5rem; line-height: 1; }
.lite-verdict-detail{
  color: var(--lite-ink-secondary);
  margin-top: var(--lite-space-1);
  font-size: 0.95rem;
}

/* ---- Key numbers ---- */
.lite-keynums{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--lite-space-3);
  margin-bottom: var(--lite-space-4);
}
.lite-keynum-label{
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lite-ink-muted);
  margin-bottom: 2px;
}
.lite-keynum-value{
  font-family: var(--lite-font-display);
  font-size: 1.7rem;
  color: var(--lite-ink);
  font-weight: 500;
}

/* ---- Cards (charts, events) ---- */
.lite-card{
  background: var(--lite-surface);
  border-radius: var(--lite-radius);
  box-shadow: var(--lite-shadow);
  padding: var(--lite-space-4);
  margin-bottom: var(--lite-space-3);
}
.lite-card-title{
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--lite-ink);
}
.lite-card-subtitle{
  color: var(--lite-ink-muted);
  font-size: 0.85rem;
  margin-bottom: var(--lite-space-2);
}

/* ---- Disclosure banner ---- */
.lite-disclosure-banner{
  background: var(--lite-warn-bg);
  border-radius: var(--lite-radius-sm);
  padding: var(--lite-space-2) var(--lite-space-3);
  margin-bottom: var(--lite-space-3);
  border-left: 3px solid var(--lite-warn);
}
.lite-disclosure-banner-title{ font-weight: 600; margin-bottom: var(--lite-space-1); }
.lite-disclosure-line{ padding: 2px 0; color: var(--lite-ink-secondary); font-size: 0.9rem; }
.lite-disclosure-dismiss{
  margin-top: var(--lite-space-1);
  background: none; border: none; padding: 0;
  color: var(--lite-accent); font-weight: 600; cursor: pointer; font-size: 0.9rem;
}
.lite-disclosure-dismiss:hover{ color: var(--lite-accent-hover); text-decoration: underline; }

/* ---- Key events ---- */
.lite-event-row{
  display: flex;
  align-items: baseline;
  gap: var(--lite-space-2);
  padding: var(--lite-space-1) 0;
  border-bottom: 1px solid var(--lite-border);
  font-size: 0.92rem;
}
.lite-event-row:last-child{ border-bottom: none; }
.lite-event-year{ font-weight: 600; min-width: 3.2em; }
.lite-event-dot{ display:inline-block; width:0.55em; height:0.55em; border-radius:50%; background:var(--lite-accent, #66877E); margin-right:0.55em; vertical-align:0.04em; }

/* ---- Explore Detailed link ---- */
.lite-explore-link{
  display: block;
  text-align: center;
  margin-top: var(--lite-space-4);
  color: var(--lite-accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}
.lite-explore-link:hover{ color: var(--lite-accent-hover); }

/* ---- Buttons (for any LITE-side controls, e.g. Calculate) ---- */
.lite-btn-primary{
  background: var(--lite-accent);
  color: #fff;
  border: none;
  border-radius: var(--lite-radius-sm);
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}
.lite-btn-primary:hover{ background: var(--lite-accent-hover); }
.lite-input{
  border: 1px solid var(--lite-border);
  border-radius: var(--lite-radius-sm);
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: var(--lite-font-body);
  width: 100%;
  box-sizing: border-box;
}
.lite-input:focus{
  outline: none;
  border-color: var(--lite-border-focus);
  box-shadow: 0 0 0 3px rgba(15,61,77,0.28);
}
.lite-form-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--lite-space-3);
}
.lite-field{ display: flex; flex-direction: column; gap: 6px; }
.lite-label{ font-size: 0.85rem; color: var(--lite-ink-secondary); }
.lite-field-hint{ font-size: 0.76rem; color: var(--lite-ink-secondary); opacity: 0.85; margin-top: -3px; line-height: 1.3; }
.lite-input:invalid, .lite-input.lite-invalid{
  border-color: var(--lite-danger);
  box-shadow: 0 0 0 3px rgba(178,58,46,0.10);
}
.lite-row-card{
  background: var(--lite-bg);
  border: 1px solid var(--lite-border);
  border-left: 4px solid var(--lite-neutral);
  border-radius: var(--lite-radius-sm);
  padding: var(--lite-space-3);
  margin-bottom: var(--lite-space-2);
  transition: border-left-color 0.15s ease;
}
.lite-row-card[data-asset-type="cash"]{ border-left-color: var(--lite-good); }
.lite-row-card[data-asset-type="investment"],
.lite-row-card[data-asset-type="shares"]{ border-left-color: var(--lite-info); }
.lite-row-card[data-asset-type="bond"]{ border-left-color: var(--lite-neutral); }
.lite-row-card[data-asset-type="property"]{ border-left-color: var(--lite-property); }
.lite-row-card[data-asset-type="pension"]{ border-left-color: var(--lite-pension); }
.lite-step-badge{
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--lite-accent); color: #fff;
  font-size: 0.78rem; font-weight: 700; margin-right: 10px;
  font-family: var(--lite-font-body); vertical-align: middle;
}

/* ---- Responsive ---- */
@media (max-width: 600px){
  .lite-root{ padding: var(--lite-space-3) var(--lite-space-2) var(--lite-space-4); }
  .lite-verdict-headline{ font-size: 1.35rem; }
  .lite-keynum-value{ font-size: 1.4rem; }
  .lite-card{ padding: var(--lite-space-3); }
  /* Charts specifically get tighter side padding on mobile -- the SVG's
     internal text sizing was calibrated against a wider estimate than the
     true available width once .lite-root + .lite-card padding compound;
     this gives the chart more real pixels to render into rather than
     inflating the SVG's own font sizes further (which would look
     oversized at desktop). Found and fixed during the final release audit. */
  .lite-chart-card{ padding-left: 8px; padding-right: 8px; }
}

/* Property rows contain a second responsive grid.  On narrow screens the
   nested grid must be allowed to shrink below the browser's default min-
   content width; otherwise long labels/select controls can make the whole
   asset card overflow horizontally when Property is selected. */
.lite-form-grid > .lite-field{ min-width:0; }
.lite-form-grid{ grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.lite-row-card{ min-width:0; box-sizing:border-box; }
.lite-property-fields{ min-width:0; }
.lite-property-fields .lite-form-grid{ min-width:0; }
@media (max-width: 380px){
  .lite-property-fields .lite-form-grid{ grid-template-columns: minmax(0, 1fr); }
  .lite-property-fields .lite-label{ overflow-wrap:anywhere; }
}

/* Approved shared identity: stronger teal/eucalyptus, lime/champagne accents, modern sans. */
:root{--lite-bg:#F5F2EA;--lite-ink:#243F3B;--lite-ink-secondary:#405C55;--lite-ink-muted:#53635F;--lite-font-display:Inter,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;--lite-font-body:Inter,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;--lite-border:#D4DED8;--lite-border-focus:#326F68;--lite-good:#3F8066;--lite-good-bg:#E4EFE8;--lite-warn:#A96B27;--lite-warn-bg:#F5E7CF;--lite-danger:#B85A48;--lite-danger-bg:#F4E0DA;--lite-info:#326F68;--lite-accent:#243F3B;--lite-accent-hover:#326F68;}
.lite-root h1,.lite-root h2,.lite-root h3,.lite-root h4,.lite-root input,.lite-root select,.lite-root button,.lite-root textarea{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important}
.lite-verdict{border-left-color:var(--verdict-color,var(--lite-good))}
.lite-btn-primary{background:var(--lite-accent);box-shadow:0 2px 4px rgba(36,63,59,.15)}
.lite-btn-primary:hover{background:var(--lite-accent-hover)}

@media (max-width:600px){
  #detailedToolbar.actions{width:100%;max-width:100%;display:flex;flex-wrap:wrap;gap:6px;}
  #detailedToolbar .btn{flex:1 1 auto;min-width:0;white-space:normal;padding:8px 9px;font-size:.78rem;}
  .masthead .actions{flex-wrap:wrap;max-width:100%;}
  .tabs{gap:0;}
}
/* Whole-app review: action controls and edit-state indicator remain responsive. */
.masthead .actions{flex-wrap:wrap;align-items:center;max-width:100%;}
#planEditStatus{min-width:0!important;white-space:normal;}
/* Shared progressive disclosure and small-screen resilience. */
[hidden]{display:none!important}
.journey-progress{display:flex;gap:8px;flex-wrap:wrap;margin:22px 0 10px;scroll-margin-top:18px}
.journey-progress button{font:600 .85rem Inter,sans-serif;border:1px solid #bbc9c1;background:#fff;color:#243f3b;border-radius:24px;padding:10px 14px;cursor:pointer}
.journey-progress button.active{color:#fff;background:#243f3b;border-color:#243f3b}
.journey-status{font-weight:600;color:#42675e;margin:12px 0}
.journey-controls{display:flex;justify-content:space-between;gap:14px;margin:22px 0}
.journey-controls button:disabled{opacity:.4;cursor:default}
.adviser-disclosure>summary{font-size:1rem;font-weight:700;cursor:pointer;color:#243f3b;padding:3px 0}
.adviser-disclosure[open]>summary{margin-bottom:20px}
@media(max-width:600px){
 .journey-progress{gap:6px}.journey-progress button{font-size:.75rem;padding:8px 10px}
 .actions{display:flex;flex-wrap:wrap;gap:8px}.actions>*{max-width:100%}
 .tabs{flex-wrap:wrap}.tab{white-space:normal}
 .card,.lite-card,.field,.lite-field{min-width:0}
 input,select,textarea{max-width:100%;min-width:0}
 .grid2,.grid3,.grid4{grid-template-columns:1fr!important}
}
.lite-btn-secondary{font:600 .86rem Inter,sans-serif;padding:10px 16px;border:1px solid #a7bbb1;border-radius:8px;background:#fff;color:#243f3b;cursor:pointer}
.lite-btn-secondary:hover{background:#e4efe8}
.household-advanced{margin-top:18px;padding-top:12px;border-top:1px solid #d4ded8}
.app-notices{margin:16px 0;border:1px solid #d4ded8;border-radius:8px;padding:12px;font-size:.85rem}
.app-notices>summary{cursor:pointer;font-weight:600}
.masthead{padding:25px;border-radius:14px;background:linear-gradient(90deg,rgba(24,59,53,.96),rgba(24,59,53,.78)),url('assets/report-coast.jpg') center 47%/cover;border-bottom:4px solid #c8d87b;color:white;gap:20px}
.masthead h1{color:white}.masthead .tag{color:#e3eee8}.masthead .hint{color:#e3eee8}
@media(max-width:600px){.masthead{padding:20px 16px}.masthead .actions{width:100%}}
.masthead .btn{background:#fff;color:#243f3b;border-color:#d4ded8;box-shadow:none}
.masthead .btn:hover{background:#e4efe8}
textarea{font:inherit;color:inherit;width:100%;min-height:120px;padding:12px;border:1px solid #d4ded8;border-radius:8px;background:#fff;box-sizing:border-box}
