/* ==================== LEGAL RENTALS GUIDE (legal-vacation-rentals-hawaii.aspx - Dec 2026) ====================
   Sits on top of hg-about.css (page frame: .hga, .hga-head, .hga-sec, .hga-col, .hga-wide, .hga-cards,
   .hga-defs, .hga-sand, .hga-list, .hga-pill). Everything here is prefixed hgl-. */

.hgl {
    scroll-behavior: smooth;
}

    /* anchors land below the pinned header */
    .hgl [id] {
        scroll-margin-top: calc(var(--hgx-pinned, 49px) + 18px);
    }

    .hgl code {
        padding: 0;
        background: none;
        font: 600 .92em/1.3 Consolas, 'SFMono-Regular', Menlo, monospace;
        color: var(--hgx-brown);
        white-space: nowrap;
    }

/* ---------------------------------------------------------------- jump links */

.hgl-jump {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 900px;
    margin: 30px auto 0;
    padding: 0 20px;
}

    .hgl-jump a.hga-pill {
        padding: 7px 16px;
        font-size: 15px;
    }

/* ---------------------------------------------------------------- the short version */

.hga-sand.hgl-short {
    margin-top: 44px;
}

.hgl-points {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: hglp;
}

    .hgl-points li {
        position: relative;
        margin: 0;
        padding: 14px 0 14px 54px;
        border-top: 1px solid var(--hgx-line);
        counter-increment: hglp;
    }

        .hgl-points li:first-child {
            border-top: 0;
            padding-top: 4px;
        }

        .hgl-points li::before {
            content: counter(hglp);
            position: absolute;
            left: 0;
            top: 10px;
            width: 36px;
            font: 400 34px/1 var(--hgx-serif);
            color: var(--hgx-gold);
            text-align: center;
        }

        .hgl-points li:first-child::before {
            top: 0;
        }

    .hgl-points b {
        color: var(--hgx-brown);
    }

/* ---------------------------------------------------------------- small print under a block */

.hga .hgl-note {
    margin-top: 18px;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--hgx-muted);
}

/* ---------------------------------------------------------------- at a glance */

.hgl-tablewrap {
    margin: 24px 0 0;
}

.hgl-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15.5px;
    line-height: 1.5;
}

    .hgl-table th,
    .hgl-table td {
        padding: 14px 16px 15px;
        border-bottom: 1px solid var(--hgx-line);
        text-align: left;
        vertical-align: top;
    }

        .hgl-table th:first-child,
        .hgl-table td:first-child {
            padding-left: 0;
        }

        .hgl-table th:last-child,
        .hgl-table td:last-child {
            padding-right: 0;
        }

    .hgl-table thead th {
        padding-top: 0;
        padding-bottom: 9px;
        border-bottom: 2px solid var(--hgx-line);
        font: 700 11.5px/1.3 var(--hgx-sans);
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--hgx-muted);
        vertical-align: bottom;
    }

    .hgl-table tbody th {
        width: 15%;
        font: 500 21px/1.2 var(--hgx-serif);
        color: var(--hgx-brown);
    }

        .hgl-table tbody th a {
            color: inherit;
            text-decoration: none;
        }

            .hgl-table tbody th a:hover,
            .hgl-table tbody th a:focus {
                color: var(--hgx-blue);
            }

        .hgl-table tbody th span {
            display: block;
            margin-top: 3px;
            font: 400 13px/1.3 var(--hgx-sans);
            color: var(--hgx-muted);
        }

    .hgl-table td:nth-child(2) {
        width: 13%;
        white-space: nowrap;
    }

/* ---------------------------------------------------------------- county sections */

.hgl-county {
    padding-top: 64px;
}

.hgl-sub {
    margin-bottom: 8px;
    font: 700 11.5px/1 var(--hgx-sans);
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--hgx-gold-text);
}

.hga .hgl-county h2 {
    font-size: 40px;
}

.hga .hgl-lead {
    margin: 0 0 6px;
    font: 20px/1.55 Georgia, 'Times New Roman', serif;
    text-wrap: pretty;
}

/* label on the left, plain answer on the right (same rhythm as .hga-def) */
.hgl-facts {
    margin: 24px 0 0;
    border-top: 1px solid var(--hgx-line);
}

.hgl-fact {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 6px 24px;
    padding: 18px 0;
    border-bottom: 1px solid var(--hgx-line);
}

    .hga .hgl-fact h3 {
        font: 700 15.5px/1.35 var(--hgx-sans);
        color: var(--hgx-brown);
    }

    .hga .hgl-fact p {
        margin-bottom: 10px;
    }

/* callout */
.hgl-box {
    margin: 26px 0 0;
    padding: 20px 24px 22px;
    border: 1px solid var(--hgx-line);
    border-left: 4px solid var(--hgx-gold);
    border-radius: 0 12px 12px 0;
    background: #fff;
    font-size: 16px;
    line-height: 1.6;
}

    .hga .hgl-box h3 {
        margin-bottom: 6px;
        font-size: 22px;
        font-weight: 500;
        line-height: 1.25;
    }

/* Maui: the two end dates */
.hgl-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 14px 0 4px;
}

    .hgl-dates div {
        padding: 14px 16px 15px;
        border-radius: 10px;
        background: var(--hgx-sand);
        font-size: 14.5px;
        line-height: 1.4;
        color: var(--hgx-ink);
    }

    .hgl-dates b {
        display: block;
        margin: 2px 0;
        font: 400 25px/1.15 var(--hgx-serif);
        color: var(--hgx-brown);
    }

    .hgl-dates span {
        display: block;
        font: 700 11px/1.3 var(--hgx-sans);
        letter-spacing: .1em;
        text-transform: uppercase;
        color: var(--hgx-gold-text);
    }

/* ---------------------------------------------------------------- the numbers on a listing */

.hgl-ids {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 26px;
}

.hgl-id {
    padding: 22px 24px 24px;
    border: 1px solid var(--hgx-line);
    border-radius: 12px;
    background: #fff;
    font-size: 16px;
    line-height: 1.6;
}

    .hga .hgl-id h3 {
        font-size: 23px;
        font-weight: 500;
        line-height: 1.2;
    }

    .hgl-id .hgl-eg {
        display: flex;
        flex-wrap: wrap;
        gap: 2px 18px;
        margin: 10px 0 12px;
        padding: 8px 12px;
        border-radius: 8px;
        background: var(--hgx-sand);
        font: 600 15px/1.5 Consolas, 'SFMono-Regular', Menlo, monospace;
        color: var(--hgx-brown);
    }

        .hgl-id .hgl-eg i {
            font-style: normal;
            white-space: nowrap;
        }

        .hgl-id .hgl-eg em {
            font: 400 14px/1.6 var(--hgx-sans);
            color: var(--hgx-muted);
        }

    .hgl-id .hgl-need {
        display: block;
        margin-top: 10px;
        font-size: 14.5px;
        color: var(--hgx-muted);
    }

/* ---------------------------------------------------------------- check it yourself */

.hgl-steps {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: hgls;
}

    .hgl-steps > li {
        position: relative;
        margin: 0 0 18px;
        padding-left: 50px;
        counter-increment: hgls;
    }

        .hgl-steps > li::before {
            content: counter(hgls);
            position: absolute;
            left: 0;
            top: 1px;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: #2f4a46;
            font: 700 15px/32px var(--hgx-sans);
            color: #fff;
            text-align: center;
        }

    .hgl-steps b {
        color: var(--hgx-brown);
    }

.hgl-where {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    font-size: 16px;
}

    .hgl-where li {
        margin: 0 0 6px;
        padding: 0;
    }

        .hgl-where li::before {
            display: none;
        }

/* ---------------------------------------------------------------- sources */

.hgl-sources {
    font-size: 15px;
    line-height: 1.6;
}

    .hga .hgl-sources h3 {
        margin: 18px 0 4px;
        font: 700 13px/1.3 var(--hgx-sans);
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--hgx-muted);
    }

    .hgl-sources ul {
        margin: 0;
        padding-left: 20px;
    }

    .hgl-sources li {
        margin-bottom: 3px;
    }

/* ---------------------------------------------------------------- phones */

@media (max-width: 860px) {
    .hgl-jump {
        margin-top: 24px;
        padding: 0 14px;
    }

    .hgl-county {
        padding-top: 48px;
    }

    .hga .hgl-county h2 {
        font-size: 32px;
    }

    .hga .hgl-lead {
        font-size: 18px;
    }

    .hgl-fact {
        grid-template-columns: 1fr;
        padding: 16px 0;
    }

    .hgl-ids,
    .hgl-dates {
        grid-template-columns: 1fr;
    }

    .hgl-points li {
        padding-left: 44px;
    }

        .hgl-points li::before {
            width: 30px;
            font-size: 28px;
        }

    /* the table becomes one card per county */
    .hgl-table thead {
        display: none;
    }

    .hgl-table,
    .hgl-table tbody,
    .hgl-table tr,
    .hgl-table th,
    .hgl-table td {
        display: block;
        width: auto !important;
    }

    .hgl-table tr {
        margin-bottom: 14px;
        padding: 16px 18px 6px;
        border: 1px solid var(--hgx-line);
        border-radius: 12px;
        background: #fff;
    }

    .hgl-table th,
    .hgl-table td {
        padding: 0 0 10px !important;
        border: 0;
        white-space: normal !important;
    }

        .hgl-table td::before {
            content: attr(data-th);
            display: block;
            font: 700 10.5px/1.5 var(--hgx-sans);
            letter-spacing: .08em;
            text-transform: uppercase;
            color: var(--hgx-muted);
        }

    .hgl-box {
        padding: 18px 18px 20px;
    }
}
