/* Landlord Planner shared styles, Harbour theme (October 2026).
   Same page structure and class names as Retrofit Planner; the look is its own:
   harbour blue and coral, Manrope throughout, rounder cards with soft shadows. */

:root {
    /* Harbour: deep harbour blue with coral, chosen 5 October 2026 so Landlord Planner
       reads as its own brand next to Retrofit Planner's green. Every text pair passes
       WCAG AA: coral buttons carry navy text (6.1:1), never white (2.6:1). */
    --color-bg: #F3F7FA;
    --color-surface: #FFFFFF;
    --color-surface-alt: #E7EFF5;
    --color-border: #D3E0EA;
    --color-text: #0F2537;
    --color-text-secondary: #43586A;
    --color-text-tertiary: #526678;
    --color-accent: #0F3D5E;
    --color-accent-light: #1B5A86;
    --color-accent-bg: #E3EEF6;
    --color-accent-border: #B4CDE0;
    --color-coral: #FF7A59;
    --color-coral-soft: #FFE1D6;
    --color-highlight: #9A3412;
    --color-highlight-bg: #FFF0EA;
    --color-highlight-border: #FFB59C;
    --color-danger: #C1453B;
    --color-danger-bg: #FFF0EE;
  --chart-1: #0F3D5E;
  --chart-2: #FF7A59;
  --chart-3: #6A9CC4;
    --font-display: 'Manrope', system-ui, sans-serif;
    --font-body: 'Manrope', system-ui, sans-serif;
    --shadow-sm: 0 1px 3px rgba(15,61,94,0.06), 0 1px 2px rgba(15,61,94,0.06);
    --shadow-md: 0 8px 24px rgba(15,61,94,0.10), 0 2px 4px rgba(15,61,94,0.04);
    --shadow-lg: 0 16px 40px rgba(15,61,94,0.14), 0 4px 8px rgba(15,61,94,0.05);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--color-accent-light); }

/* ===== NAVIGATION ===== */
.nav {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.nav-logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--color-accent);
    text-decoration: none;
    letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--color-accent); }

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
    max-width: 1080px;
    margin: 0 auto;
    padding: 16px 24px 0;
    font-size: 0.8rem;
    color: var(--color-text-tertiary);
}
.breadcrumbs a { color: var(--color-text-secondary); text-decoration: none; }
.breadcrumbs a:hover { color: var(--color-accent); }
.breadcrumbs span { margin: 0 6px; }

/* ===== HERO ===== */
.hero {
    max-width: 1080px;
    margin: 0 auto;
    padding: 32px 24px 40px;
}
.hero.centered { text-align: center; padding: 80px 24px 60px; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-accent-bg);
    color: var(--color-accent);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid var(--color-accent-border);
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}
.hero-badge svg { width: 14px; height: 14px; }
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.03em;
    color: var(--color-text);
    margin-bottom: 16px;
    max-width: 680px;
}
.hero.centered h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.hero p {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 620px;
    line-height: 1.7;
}
.hero.centered p {
    max-width: 580px;
    margin: 0 auto;
}

/* ===== MAIN LAYOUT ===== */
.main {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px 80px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}
.main.single-col {
    grid-template-columns: 1fr;
    max-width: 780px;
}

/* ===== CALCULATOR CARD ===== */
.calc-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-sm);
}
.calc-card h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.calc-card .subtitle {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 28px;
}

/* ===== FORM ELEMENTS ===== */
.form-group { margin-bottom: 24px; }
.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}
.form-group .helper {
    font-size: 0.8rem;
    color: var(--color-text-tertiary);
    margin-top: 4px;
}
select, input[type="number"], input[type="text"], input[type="email"], textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--color-surface);
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
}
textarea { min-height: 120px; resize: vertical; }
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B6960' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}
select:focus, input:focus, textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-bg);
}
input[type="number"]::-webkit-inner-spin-button { opacity: 1; }

.btn-calculate {
    width: 100%;
    padding: 14px 24px;
    background: var(--color-accent);
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 8px;
}
.btn-calculate:hover { background: var(--color-accent-light); }
.btn-calculate:active { transform: scale(0.99); }

/* ===== RESULTS ===== */
.results {
    display: none;
    margin-top: 36px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}
.results.visible { display: block; }
.results h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}
.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}
.result-item {
    background: var(--color-surface-alt);
    border-radius: var(--radius-sm);
    padding: 16px;
}
.result-item.highlight {
    background: var(--color-accent-bg);
    border: 1px solid var(--color-accent-border);
}
.result-item.saving {
    background: var(--color-highlight-bg);
    border: 1px solid var(--color-highlight-border);
}
.result-item .label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.result-item .value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
}
.result-item.highlight .value { color: var(--color-accent); }
.result-item.saving .value { color: var(--color-highlight); }
.result-item .detail {
    font-size: 0.78rem;
    color: var(--color-text-tertiary);
    margin-top: 2px;
}
.result-full {
    background: var(--color-surface-alt);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 12px;
}
.result-full .label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

/* Cost comparison bars */
.cost-bar-container {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
}
.cost-bar-label { font-size: 0.85rem; font-weight: 500; width: 90px; flex-shrink: 0; }
.cost-bar-wrap {
    flex: 1;
    background: var(--color-border);
    height: 28px;
    border-radius: 6px;
    overflow: hidden;
}
.cost-bar { height: 100%; border-radius: 6px; transition: width 0.6s ease; }
.cost-bar.gas, .cost-bar.current { background: var(--color-danger); }
.cost-bar.hp, .cost-bar.new { background: var(--color-accent); }
.cost-bar-amount { font-size: 0.85rem; font-weight: 600; width: 80px; text-align: right; flex-shrink: 0; }

/* ===== NEXT STEPS / CTA ===== */
.next-steps {
    background: var(--color-surface-alt);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 28px;
}
.next-steps h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 16px;
}
.next-step-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--color-text);
    margin-bottom: 8px;
    transition: border-color 0.2s;
}
.next-step-link:last-child { margin-bottom: 0; }
.next-step-link:hover { border-color: var(--color-accent-border); }
.next-step-link .step-icon {
    width: 36px; height: 36px;
    background: var(--color-accent-bg);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.next-step-link .step-icon svg { width: 18px; height: 18px; color: var(--color-accent); }
.next-step-link .step-text { flex: 1; }
.next-step-link .step-name { font-size: 0.88rem; font-weight: 600; }
.next-step-link .step-desc { font-size: 0.78rem; color: var(--color-text-tertiary); }
.next-step-link .step-arrow { color: var(--color-text-tertiary); }
.next-step-link .step-arrow svg { width: 16px; height: 16px; }

.cta-box {
    background: var(--color-accent);
    color: white;
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 16px;
    text-align: center;
}
.cta-box h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.cta-box p { font-size: 0.88rem; opacity: 0.9; margin-bottom: 16px; line-height: 1.5; }
.cta-box a {
    display: inline-block;
    background: white;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: transform 0.1s, box-shadow 0.2s;
}
.cta-box a:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* ===== SIDEBAR ===== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 80px;
}
.sidebar-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.sidebar-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.sidebar-card p, .sidebar-card li { font-size: 0.88rem; color: var(--color-text-secondary); line-height: 1.65; }
.sidebar-card ul { list-style: none; padding: 0; }
.sidebar-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--color-surface-alt);
    display: flex; align-items: baseline; gap: 8px;
}
.sidebar-card ul li:last-child { border-bottom: none; }
.sidebar-card ul li svg { width: 14px; height: 14px; color: var(--color-accent); flex-shrink: 0; margin-top: 2px; }
.sidebar-card.grant { background: var(--color-highlight-bg); border-color: var(--color-highlight-border); }
.sidebar-card.grant h3 { color: var(--color-highlight); }
.grant-amount {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-highlight);
    letter-spacing: -0.03em;
}
.grant-detail { font-size: 0.82rem; color: var(--color-text-secondary); margin-top: 4px; }

/* Sidebar tool links */
.tool-link {
    display: flex; align-items: center; gap: 10px;
    padding: 12px;
    background: var(--color-surface-alt);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--color-text);
    transition: background 0.2s;
    margin-bottom: 8px;
}
.tool-link:last-child { margin-bottom: 0; }
.tool-link:hover { background: var(--color-accent-bg); }
.tool-link .t-icon {
    width: 36px; height: 36px;
    background: var(--color-accent-bg);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.tool-link .t-icon svg { width: 18px; height: 18px; color: var(--color-accent); }
.tool-link .tool-info { flex: 1; }
.tool-link .tool-name { font-size: 0.88rem; font-weight: 600; }
.tool-link .tool-desc { font-size: 0.75rem; color: var(--color-text-tertiary); }

/* ===== CONTENT SECTION ===== */
.content-section {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px 80px;
}
.content-section article { max-width: 720px; }
.content-section h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    margin-top: 40px;
}
.content-section h2:first-child { margin-top: 0; }
.content-section h3 { font-size: 1.1rem; margin-top: 24px; margin-bottom: 8px; }
.content-section p {
    color: var(--color-text-secondary);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

/* In-content related link cards */
.related-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 32px 0;
}
.related-link-card {
    display: flex; align-items: center; gap: 12px;
    padding: 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--color-text);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.related-link-card:hover { border-color: var(--color-accent-border); box-shadow: var(--shadow-sm); }
.related-link-card .rl-icon {
    width: 40px; height: 40px;
    background: var(--color-accent-bg);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.related-link-card .rl-icon svg { width: 20px; height: 20px; color: var(--color-accent); }
.related-link-card .rl-text { flex: 1; }
.related-link-card .rl-name { font-size: 0.88rem; font-weight: 600; }
.related-link-card .rl-desc { font-size: 0.75rem; color: var(--color-text-tertiary); }

/* ===== TOOL CARDS GRID (homepage) ===== */
.tools-grid {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px 80px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.tool-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-decoration: none;
    color: var(--color-text);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    display: flex;
    flex-direction: column;
}
.tool-card:hover { border-color: var(--color-accent-border); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.tool-card .icon {
    width: 48px; height: 48px;
    background: var(--color-accent-bg);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.tool-card .icon svg { width: 24px; height: 24px; color: var(--color-accent); }
.tool-card.featured .icon { background: var(--color-accent); }
.tool-card.featured .icon svg { color: white; }
.tool-card h2 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.tool-card p { font-size: 0.9rem; color: var(--color-text-secondary); line-height: 1.6; flex: 1; }
.tool-card .tag {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-accent);
    background: var(--color-accent-bg);
    padding: 4px 10px;
    border-radius: 100px;
}
.tool-card.coming-soon { opacity: 0.6; pointer-events: none; }
.tool-card.coming-soon .tag { color: var(--color-text-tertiary); background: var(--color-surface-alt); }

/* ===== TRUST SECTION ===== */
.trust-section {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px 80px;
    text-align: center;
}
.trust-section h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 32px;
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    text-align: left;
}
.trust-item { display: flex; gap: 12px; align-items: start; }
.trust-item .trust-icon {
    width: 40px; height: 40px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.trust-item .trust-icon svg { width: 20px; height: 20px; color: var(--color-accent); }
.trust-item h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.trust-item p { font-size: 0.85rem; color: var(--color-text-secondary); line-height: 1.6; }

/* ===== GRANTS CHECKER SPECIFIC ===== */
.grant-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 16px;
}
.grant-card.eligible { border-color: var(--color-accent-border); background: var(--color-accent-bg); }
.grant-card.ineligible { opacity: 0.5; }
.grant-card h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.grant-card .grant-value {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 8px;
}
.grant-card p { font-size: 0.88rem; color: var(--color-text-secondary); }

/* ===== STATIC PAGE CONTENT ===== */
.page-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}
.page-content h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    line-height: 1.2;
}
.page-content h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-top: 40px;
    margin-bottom: 12px;
}
.page-content h3 { font-size: 1.1rem; font-weight: 600; margin-top: 28px; margin-bottom: 8px; }
.page-content p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}
.page-content ul, .page-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}
.page-content li {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
    line-height: 1.6;
}
.page-content .lead {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 24px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 48px 24px;
}
.footer-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-brand {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-accent);
    font-size: 1rem;
    margin-bottom: 8px;
}
.footer-about { font-size: 0.82rem; color: var(--color-text-tertiary); line-height: 1.6; }
.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
}
.footer-col a {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    padding: 4px 0;
}
.footer-col a:hover { color: var(--color-accent); }
.footer .attribution {
    max-width: 1080px;
    margin: 24px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    font-size: 0.72rem;
    color: var(--color-text-tertiary);
    text-align: center;
    line-height: 1.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 800px) {
    .main { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .nav-links { display: none; }
    .calc-card { padding: 24px; }
    .result-grid { grid-template-columns: 1fr; }
    .related-links { grid-template-columns: 1fr; }
    .tools-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
    .footer-inner { grid-template-columns: 1fr; }
}


/* Charts and diagrams (added September 2026) */
.chart-fig{margin:24px 0;padding:16px 16px 12px;background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md)}
.chart-fig figcaption{font-size:.8rem;color:var(--color-text-secondary);margin-top:10px;line-height:1.5}
.chart-head{display:flex;justify-content:space-between;gap:10px 16px;flex-wrap:wrap;align-items:baseline;margin-bottom:6px}
.chart-title{font-weight:700;font-size:.95rem;color:var(--color-text)}
.chart-legend{display:flex;gap:14px;flex-wrap:wrap;font-size:.78rem;color:var(--color-text-secondary)}
.chart-legend span{display:inline-flex;align-items:center;gap:6px}
.chart-legend i{display:inline-block;width:12px;height:12px;border-radius:3px}
.chart-svg{width:100%;height:auto;display:block;font-family:var(--font-body)}
.chart-svg .grid{stroke:var(--color-border);stroke-width:1}
.chart-svg .axis{stroke:#C9C6BC;stroke-width:1}
.chart-svg .tick{fill:var(--color-text-tertiary);font-size:11px}
.chart-svg .cat{fill:var(--color-text-secondary);font-size:11.5px}
.chart-svg .val{fill:var(--color-text);font-size:11.5px;font-weight:600}
.chart-svg .bar{transition:opacity .12s ease}
.chart-svg .bar:hover,.chart-svg .bar:focus{opacity:.78;outline:none}
.chart-svg .hit{fill:transparent}
.chart-tip{position:absolute;z-index:20;pointer-events:none;background:var(--color-text);color:#FFFFFF;font-size:.78rem;line-height:1.45;padding:7px 10px;border-radius:6px;max-width:260px;box-shadow:0 4px 14px rgba(0,0,0,.18)}
.chart-tip b{font-weight:700;font-size:.9rem;display:block}
.diagram-fig{margin:28px 0;padding:8px 0 0;text-align:center}
.diagram-fig svg{max-width:100%;height:auto;display:block;margin:0 auto;font-family:var(--font-body)}
.diagram-fig figcaption{font-size:.8rem;color:var(--color-text-secondary);margin-top:10px;line-height:1.5;text-align:left}
@media (prefers-reduced-motion:reduce){.chart-svg .bar{transition:none}}
.chart-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;contain:inline-size}
@media (max-width:640px){.chart-scroll .chart-svg,.diagram-fig .chart-scroll svg{min-width:560px}}
.chart-svg .val-in{fill:#FFFFFF}
.tblwrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:24px 0}
.tblwrap>.data-table{margin:0}
.photo-fig{margin:20px 0 28px}
.photo-fig img{width:100%;height:auto;display:block;border-radius:var(--radius-md);aspect-ratio:3/2;object-fit:cover;object-position:var(--photo-focus,50% 50%);background:var(--color-surface-alt)}
.photo-fig figcaption{font-size:.8rem;color:var(--color-text-secondary);margin-top:8px;line-height:1.5}
.photo-fig figcaption a{color:inherit}
.photo-banner{max-width:1080px;margin:0 auto;padding:0 24px 28px}
.photo-banner .photo-fig{margin:0}
.photo-banner .photo-fig img{aspect-ratio:3/1;border-radius:var(--radius-lg)}
@media (max-width:640px){.photo-banner .photo-fig img{aspect-ratio:16/9}}
.guide-item .gi-thumb{width:56px;height:56px;border-radius:10px;overflow:hidden;flex-shrink:0;background:var(--color-surface-alt)}
.guide-item .gi-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.tool-card{overflow:hidden}
.tool-card .tc-img{width:calc(100% + 64px);max-width:none;height:190px;margin:-32px -32px 20px;object-fit:cover;object-position:var(--tc-focus,50% 50%);display:block;background:var(--color-surface-alt)}
@media (max-width:768px){.tool-card .tc-img{height:170px}}

.intro-band{max-width:1080px;margin:0 auto;padding:0 24px 8px}
.intro-band h2{font-family:var(--font-display);font-size:1.4rem;font-weight:600;letter-spacing:-.01em;margin:0 0 6px}
.intro-band p{color:var(--color-text-secondary);font-size:.95rem;max-width:760px}
.intro-band .note{font-size:.8rem;color:var(--color-text-tertiary);margin-top:8px}
.intro-band .data-table{width:100%;border-collapse:collapse;margin:16px 0 8px;font-size:.9rem;background:var(--color-surface)}
.intro-band .data-table th{background:var(--color-surface-alt);font-weight:600;text-align:left;padding:12px 16px;border-bottom:2px solid var(--color-border);font-size:.82rem;text-transform:uppercase;letter-spacing:.04em;color:var(--color-text-secondary)}
.intro-band .data-table td{padding:12px 16px;border-bottom:1px solid var(--color-surface-alt)}
.intro-band .data-table tr:last-child td{border-bottom:none}
.intro-band .data-table .highlight-cell{color:var(--color-accent);font-weight:600}
.quote-form{background:var(--color-surface);border:1px solid var(--color-accent-border);border-radius:var(--radius-lg);padding:28px;margin:32px 0;box-shadow:var(--shadow-sm)}
.quote-form h2{font-family:var(--font-display);font-size:1.4rem;font-weight:700;letter-spacing:-.01em;margin:0 0 6px}
.quote-form .qf-sub{color:var(--color-text-secondary);margin:0 0 14px;line-height:1.55}
.quote-form .qf-points{display:flex;gap:14px 20px;flex-wrap:wrap;font-size:.85rem;color:var(--color-text-secondary);margin:0 0 18px;padding:0;list-style:none}
.quote-form .qf-points li{display:flex;align-items:center;gap:6px}
.quote-form .qf-points svg{width:16px;height:16px;color:var(--color-accent);flex-shrink:0}
.quote-form .qf-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
.quote-form .form-group{margin-bottom:14px}
.quote-form label{display:block;font-weight:600;font-size:.88rem;margin-bottom:6px}
.quote-form input[type="text"],.quote-form input[type="email"],.quote-form input[type="tel"],.quote-form select{width:100%;padding:10px 12px;border:1px solid var(--color-border);border-radius:var(--radius-sm);font-size:.95rem;font-family:inherit;background:#fff;color:var(--color-text)}
.quote-form input:focus,.quote-form select:focus{outline:none;border-color:var(--color-accent)}
.quote-form .qf-consent{display:flex;gap:10px;align-items:flex-start;font-size:.88rem;color:var(--color-text-secondary);margin:2px 0 16px;line-height:1.5}
.quote-form .qf-consent input{margin-top:4px;flex-shrink:0}
.quote-form .btn-calculate{margin-top:0}
.quote-form .qf-small{font-size:.78rem;color:var(--color-text-tertiary);margin:12px 0 0;line-height:1.5}
.quote-band{max-width:1080px;margin:0 auto;padding:0 24px 24px}
.quote-band .quote-form{margin:0}
@media (max-width:640px){.quote-form{padding:20px}.quote-form .qf-grid{grid-template-columns:1fr}}

/* ---- guide pages (moved from inline blocks) ---- */
.guide-content{max-width:760px;margin:0 auto;padding:0 24px 60px}.guide-content h1{font-family:var(--font-display);font-size:2rem;font-weight:700;letter-spacing:-0.03em;line-height:1.2;margin-bottom:16px}.guide-content h2{font-family:var(--font-display);font-size:1.4rem;font-weight:600;margin-top:40px;margin-bottom:12px}.guide-content h3{font-family:var(--font-display);font-size:1.1rem;font-weight:600;margin-top:28px;margin-bottom:8px}.guide-content p{line-height:1.7;margin-bottom:16px}.guide-content ul{margin:0 0 16px 20px;line-height:1.7}.guide-content li{margin-bottom:8px}
.data-table{width:100%;border-collapse:collapse;margin:24px 0;font-size:.9rem}.data-table th{background:var(--color-surface-alt);font-weight:600;text-align:left;padding:12px 16px;border-bottom:2px solid var(--color-border);font-size:.82rem;text-transform:uppercase;letter-spacing:.04em;color:var(--color-text-secondary)}.data-table td{padding:12px 16px;border-bottom:1px solid var(--color-surface-alt)}.data-table tr:last-child td{border-bottom:none}.data-table .highlight-cell{color:var(--color-accent);font-weight:600}.note{font-size:.78rem;color:var(--color-text-tertiary);margin-top:-12px;margin-bottom:24px}.callout{background:var(--color-accent-bg);border:1px solid var(--color-accent-border);border-radius:var(--radius-md);padding:20px 24px;margin:28px 0}.callout h4{font-family:var(--font-display);font-size:1rem;font-weight:600;color:var(--color-accent);margin-bottom:8px}.callout p{font-size:.9rem;color:var(--color-text-secondary);margin:0}.callout a{color:var(--color-accent);font-weight:600}.key-number{display:inline-block;font-family:var(--font-display);font-weight:700;font-size:1.1rem;color:var(--color-accent)}.article-meta{font-size:.85rem;color:var(--color-text-tertiary);margin-bottom:24px}
.toc{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);padding:24px;margin:24px 0}.toc h4{font-family:var(--font-display);font-size:1rem;font-weight:600;margin-bottom:12px}.toc a{display:block;font-size:.88rem;color:var(--color-text-secondary);text-decoration:none;padding:6px 0;border-bottom:1px solid var(--color-surface-alt)}.toc a:last-child{border-bottom:none}.toc a:hover{color:var(--color-accent)}

/* ---- newsletter ---- */
.newsletter-signup{background:var(--color-surface-alt,#f5f7f5);border-top:2px solid var(--color-accent-bg,#e8f5e9);padding:40px 24px;text-align:center}.newsletter-inner{max-width:520px;margin:0 auto}.newsletter-signup h3{font-family:var(--font-display);font-size:1.2rem;font-weight:600;margin-bottom:8px}.newsletter-signup p{font-size:.88rem;color:var(--color-text-secondary,#555);margin-bottom:16px;line-height:1.5}.newsletter-form{display:flex;gap:8px;max-width:420px;margin:0 auto}.newsletter-form input[type="email"]{flex:1;padding:10px 14px;border:1px solid var(--color-border,#ddd);border-radius:var(--radius-sm,6px);font-size:.9rem}.newsletter-form button{padding:10px 20px;background:var(--color-accent,#1b6b4a);color:#fff;border:none;border-radius:var(--radius-sm,6px);font-size:.9rem;font-weight:600;cursor:pointer}@media(max-width:500px){.newsletter-form{flex-direction:column}.newsletter-form button{width:100%}}

/* ---- guides hub (moved from inline block) ---- */
        .glossary { max-width: 1080px; margin: 0 auto; padding: 0 24px 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
        .glossary a { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); text-decoration: none; color: var(--color-text); font-size: 0.88rem; font-weight: 500; transition: border-color 0.2s, background 0.2s; }
        .glossary a:hover { border-color: var(--color-accent-border); background: var(--color-accent-bg); }
        .glossary a .g-count { font-size: 0.75rem; color: var(--color-text-tertiary); margin-left: auto; }
        .guide-section { max-width: 1080px; margin: 0 auto; padding: 0 24px 32px; }
        .guide-section-header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--color-accent-bg); }
        .guide-section-header h2 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; color: var(--color-text); margin: 0; }
        .guide-section-header .count { font-size: 0.78rem; color: var(--color-text-tertiary); }
        .guide-list { display: flex; flex-direction: column; gap: 10px; }
        .guide-item { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); text-decoration: none; color: var(--color-text); transition: border-color 0.2s, box-shadow 0.2s, transform 0.1s; }
        .guide-item:hover { border-color: var(--color-accent-border); box-shadow: 0 2px 8px rgba(0,0,0,0.04); transform: translateY(-1px); }
        .guide-item .gi-icon { width: 40px; height: 40px; background: var(--color-accent-bg); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
        .guide-item .gi-icon svg { width: 20px; height: 20px; stroke: var(--color-accent); }
        .guide-item .gi-content { flex: 1; min-width: 0; }
        .guide-item .gi-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 2px; }
        .guide-item .gi-desc { font-size: 0.82rem; color: var(--color-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .guide-item .gi-badges { display: flex; gap: 6px; flex-shrink: 0; }
        .gi-badge { font-size: 0.7rem; font-weight: 600; padding: 3px 8px; border-radius: 100px; white-space: nowrap; }
        .gi-badge.popular { background: var(--color-accent-bg); color: var(--color-accent); border: 1px solid var(--color-accent-border); }
        .gi-badge.homeowner { background: #EEF0FF; color: #4F46E5; border: 1px solid #C7D2FE; }
        .gi-badge.landlord { background: #FFF1E6; color: #C2410C; border: 1px solid #FED7AA; }
        .gi-badge.money { background: var(--color-highlight-bg); color: var(--color-highlight); border: 1px solid var(--color-highlight-border); }
        .gi-badge.free { background: #ECFDF5; color: #059669; border: 1px solid #A7F3D0; }
        .gi-badge.new { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; }
        .guide-item .gi-arrow { flex-shrink: 0; }
        .guide-item .gi-arrow svg { width: 16px; height: 16px; stroke: var(--color-text-tertiary); }
        @media (max-width: 800px) {
            .glossary { grid-template-columns: 1fr 1fr; }
            .guide-item .gi-desc { display: none; }
            .guide-item .gi-badges { flex-wrap: wrap; }
        }
        @media (max-width: 640px) {
            .guide-item { flex-wrap: wrap; gap: 12px; }
            .guide-item .gi-content { flex: 1 1 0; min-width: 0; }
            .guide-item .gi-badges { order: 3; flex-basis: 100%; justify-content: flex-start; margin-top: 2px; }
            .guide-item .gi-arrow { display: none; }
            .guide-item .gi-thumb { width: 48px; height: 48px; }
            .guide-item .gi-icon { width: 36px; height: 36px; }
            .guide-item .gi-icon svg { width: 18px; height: 18px; }
        }
        @media (max-width: 500px) {
            .glossary { grid-template-columns: 1fr; }
        }
.gi-badge.landlord{background:var(--color-accent-bg);color:var(--color-accent)}
.tools-grid .tool-card h2{margin-top:0}
.main > .calc-card,.main > .sidebar{min-width:0}
.tblwrap{contain:inline-size}
/* mobile nav: a scrollable strip instead of hiding the links */
@media (max-width: 800px){
  .nav-inner{flex-wrap:wrap;row-gap:8px}
  .nav-links{display:flex;gap:18px;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding-bottom:2px}
  .nav-links::-webkit-scrollbar{display:none}
  .nav-links li{flex:0 0 auto}
  .nav-links a{font-size:.85rem;white-space:nowrap}
}
@media (max-width: 800px){
  .nav-links{mask-image:linear-gradient(to right,#000 88%,transparent);-webkit-mask-image:linear-gradient(to right,#000 88%,transparent)}
}


/* ---------------------------------------------------------------- Harbour theme
   Component touches on top of the shared structure. */
.nav { background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.nav-logo { color: var(--color-accent); font-weight: 800; letter-spacing: -0.01em; }
.hero { background: radial-gradient(circle at 80% 0%, var(--color-coral-soft) 0, transparent 40%), var(--color-bg); }
.hero h1 { color: var(--color-accent); font-weight: 800; letter-spacing: -0.025em; }
.hero-badge { background: var(--color-coral); color: var(--color-text); border-color: var(--color-coral); }
.btn-calculate { background: var(--color-coral); color: var(--color-text); border-radius: 12px; font-weight: 800; }
.btn-calculate:hover { background: #FF8C6F; color: var(--color-text); }
.tool-card { border: none; box-shadow: var(--shadow-md); }
.tag, .gi-badge { background: var(--color-accent-bg); color: var(--color-accent); border-radius: 999px; }
.data-table th { background: var(--color-accent); color: #FFFFFF; }
.footer { background: var(--color-accent); color: #CFE0EC; }
.footer a, .footer-brand, .footer h4 { color: #FFFFFF; }
.footer .attribution, .footer .attribution a { color: #CFE0EC; }

.optout-box { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 16px 20px; margin: 16px 0 20px; background: var(--color-surface); }
.optout-box p { margin: 0 0 12px; }
.optout-btn { font: inherit; font-weight: 600; font-size: 0.9rem; padding: 10px 20px; border-radius: var(--radius-sm); border: 1px solid var(--color-accent); background: var(--color-surface); color: var(--color-accent); cursor: pointer; }
.optout-btn:hover { background: var(--color-accent); color: #fff; }
.optout-btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

/* Accessibility fixes, 6 October 2026 (axe 4.13 over every page at 1280 and 375 wide):
   the Harbour footer is dark, so its small print needs the light footer colour (was text-tertiary, 2.6:1);
   breadcrumb links were told apart by colour alone, so they are underlined like other links. */
.footer .footer-about, .footer .attribution, .footer .attribution a { color: #CFE0EC; }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 2px; }
.gi-badges .gi-badge.new { background: var(--color-coral); color: var(--color-text); }   /* navy on coral, 6.1:1 */
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.newsletter-inner .nl-small{font-size:.78rem;color:var(--color-text-secondary);margin:10px 0 0;line-height:1.5}
.newsletter-inner .nl-small a{color:var(--color-accent)}
