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

ul, ol {
    padding-left: 1.5rem;
    padding-bottom: 1.5rem;
}

/* ── Base ──────────────────────────────────────────────── */
body {
    font-family: 'Fredoka', cursive;
    font-size: 1.1rem;
    line-height: 1.6;
    padding: 1rem 2rem;
    color: #333f2b;
    background-color: #f5f5f7;
    margin: 0;
    padding: 0;
}

p {
    margin-bottom: 1rem;
}   


/* ── Headings ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Londrina Solid', cursive;
    font-weight: 400;
    margin-bottom: 0.8rem;
    color: #1d3913;
}

h1 {
    font-size: 2rem;
}

strong {
    font-weight: 600;
}

blockquote {
    font-style: italic;
    color: #537c49;
    border-left: 4px solid #94a7a0;
    padding-left: 1rem;
    margin-left: 0;
    margin-right: 0;
}

header h1 {
    font-family: Fredoka;
    font-weight: 600;
    font-size: 3.2rem;
}

header h4 {
    font-size: 1.8rem;
    color: #515d72;
}


/* ── Household budget table ────────────────────────────── */
.table-scroll {
    overflow-x: auto;           
}

.household-items-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 2rem;
    font-size: 1rem;
}

.household-items-table th,
.household-items-table td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid #d9d9e0;
    white-space: nowrap;
}

.household-items-table thead th {
    border-bottom: 2px solid #b9b9c6;
    font-family: 'Londrina Solid', cursive;
}

.household-items-table tbody tr:hover {
    background-color: #ececf1;
}

/* Column hidden by the mid-width minimizer (JS toggles this). */
.household-items-table .hidden-col {
    display: none;
}

/* ── Property-type minimizer menu (JS reveals it at 769–1000px) ─── */
.property-picker {
    margin: 1rem 0;
    font-size: 1rem;
}

.property-picker[hidden] {
    display: none;
}

.property-picker label {
    margin-right: 0.5rem;
    font-weight: 600;
}

.property-picker select {
    font-family: inherit;
    font-size: 1rem;
    padding: 0.35rem 0.5rem;
    border: 1px solid #b9b9c6;
    border-radius: 6px;
    background: #fff;
}


@media (max-width: 768px) {

    .household-items-table thead {
        display: none;
    }

    .household-items-table,
    .household-items-table tbody,
    .household-items-table tr,
    .household-items-table td {
        display: block;
        width: 100%;
    }


    .household-items-table tr {
        margin: 0 0 1rem;
        padding: 0.5rem 1rem;
        border: 1px solid #cfcfda;
        border-radius: 8px;
        background: #fff;
    }

  
    .household-items-table td {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.4rem 0;
        border-bottom: 1px solid #eee;
        white-space: normal;
        text-align: right;
    }

    .household-items-table td:last-child {
        border-bottom: 0;
    }

   
    .household-items-table td::before {
        content: attr(data-label);
        font-weight: 600;
        text-align: left;
        margin-right: 1rem;
    }


    .household-items-table td:first-child {
        font-family: 'Londrina Solid', cursive;
        font-size: 1.3rem;
        justify-content: flex-start;
        border-bottom: 2px solid #cfcfda;
        margin-bottom: 0.3rem;
    }

    .household-items-table td:first-child::before {
        content: none;
    }
}


/* ── Document header + meta (.doc-header / .doc-meta) ───── */
.doc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.doc-meta {
    background-color: #f5f5f7;
    margin-left: auto;
    text-align: right;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #515d72;
    white-space: nowrap;
    border: 1px solid #d9d9e0;
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
}

.doc-meta .just {
    text-align: left;
    white-space: nowrap;
}


/* ── Secondary document nav (.doc-nav) ─────────────────── */
.doc-nav ul {
    list-style: none;            
    margin: 0;
    padding: 0;                 
    line-height: 1.1;
    padding-bottom: 1.3rem;        
}

.doc-nav li {
    border-left: 6px solid #94a7a0; 
    padding-bottom: -2px;           
    /* border: 1px solid red;            
    /* margin-bottom: 0.4rem; */
}

.doc-nav a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    color: #94a7a0;                 
    text-decoration: none;    
}

.doc-nav a:hover {
    color: #000;                              
    text-decoration: underline double #000;  
}