/* =========================================================================
   Holiday List pages
   Template: holiday-list/page-holiday-list.php (main page + state child pages)
   Everything is scoped under .hl-page so site header/footer are untouched.
   Colours follow the theme variables in style.css (:root --pc, --green-color, --light-green…).
   ========================================================================= */

.hl-page {
    /* Theme colours */
    --hl-brand: #013A29;
    /* theme green rgb(1, 58, 41): CTA banner, answer-box accent */
    --hl-green: #00553C;
    /* links, accents (theme --green-color) */
    --hl-green-soft: #DEF2EB;
    /* theme --light-green */
    --hl-cta: #E65F46;
    /* buttons (theme --pc) */
    --hl-cta-hover: #CF4E36;
    --hl-cta-soft: #FDECE8;
    --hl-yellow-soft: #FFF3D1;
    /* from theme --yellow-color */
    --hl-yellow-ink: #8A5A00;

    /* Neutrals */
    --hl-bg: #FFFAF0;
    /* page background */
    --hl-surface: #FFFFFF;
    --hl-ink: #272727;
    /* theme --h1toh6 / --p-color */
    --hl-muted: #5F6B66;
    --hl-line: #EFE6D4;

    /* Fonts (loaded by the theme) */
    --hl-font: "Public Sans", "Segoe UI", system-ui, sans-serif;

    background: var(--hl-bg);
    color: var(--hl-ink);
    font-family: var(--hl-font);
    font-size: 16px;
    line-height: 1.65;
    padding-bottom: 64px;
}

.hl-page *,
.hl-page *::before,
.hl-page *::after {
    box-sizing: border-box;
}

.hl-page h1,
.hl-page h2,
.hl-page h3,
.hl-page p,
.hl-page li,
.hl-page td,
.hl-page th,
.hl-page small,
.hl-page b,
.hl-page strong {
    font-family: var(--hl-font);
}

.hl-page h1,
.hl-page h2,
.hl-page h3 {
    color: var(--hl-ink);
    line-height: 1.25;
    margin: 0;
    padding: 0;
    text-wrap: balance;
    letter-spacing: normal;
}

.hl-page h1 {
    font-size: clamp(24px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.2;
}

.hl-page h2 {
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 800;
}

.hl-page h3 {
    font-size: 18px;
    font-weight: 700;
}

.hl-page p {
    margin: 0;
    color: inherit;
    font-size: inherit;
    font-weight: 400;
    line-height: inherit;
}

/* Links inside the content (the breadcrumb keeps the site's own style) */
.hl-wrap a {
    color: var(--hl-green);
    text-underline-offset: 2px;
    text-decoration: underline;
}

.hl-wrap a:hover {
    text-decoration: none;
}

.hl-page a:focus-visible,
.hl-page button:focus-visible {
    outline: 2px solid var(--hl-cta);
    outline-offset: 2px;
}

/* ---------- Layout ---------- */

.hl-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
    padding-top: 28px;
}

.hl-article {
    display: grid;
    gap: 44px;
    min-width: 0;
}

.hl-section {
    display: grid;
    gap: 14px;
    scroll-margin-top: 110px;
    min-width: 0;
}

.hl-intro {
    display: grid;
    gap: 10px;
    color: var(--hl-ink);
}

.hl-muted {
    color: var(--hl-muted);
    font-size: 14.5px;
}

/* ---------- Hero: H1, notice, answer, today cards, stats ---------- */

.hl-hero {
    display: grid;
    gap: 14px;
}

.hl-answer {
    background: var(--hl-surface);
    border: 1px solid var(--hl-line);
    border-left: 4px solid var(--hl-brand);
    border-radius: 10px;
    padding: 16px 18px;
    display: grid;
    gap: 10px;
}

.hl-answer p {
    font-size: 15px;
}

.hl-notice {
    background: var(--hl-cta-soft);
    border: 1px solid var(--hl-cta);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 15px;
}

.hl-page .hl-notice strong,
.hl-page .hl-notice b {
    color: var(--hl-cta-hover);
}

.hl-today {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hl-tcard,
.hl-stat {
    background: var(--hl-surface);
    border: 1px solid var(--hl-line);
    border-radius: 12px;
    padding: 14px 16px;
    display: grid;
    gap: 2px;
}

.hl-page .hl-tcard small {
    font-size: 12px;
    font-weight: 600;
    color: var(--hl-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.hl-page .hl-tcard b {
    font-size: 18px;
    font-weight: 700;
    color: var(--hl-ink);
}

.hl-page .hl-tcard .hl-yes {
    color: var(--hl-cta);
}

.hl-page .hl-tcard .hl-no {
    color: var(--hl-green);
}

.hl-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.hl-page .hl-stat b {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--hl-ink);
    font-variant-numeric: tabular-nums;
}

.hl-stat span {
    font-size: 13.5px;
    color: var(--hl-muted);
}

/* ---------- Tables ---------- */

.hl-tbl {
    background: var(--hl-surface);
    border: 1px solid var(--hl-line);
    border-radius: 12px;
    overflow-x: auto;
}

.hl-page .hl-tbl table {
    border-collapse: collapse;
    width: 100%;
    min-width: 520px;
    font-size: 15px;
    margin: 0;
    border: 0;
    background: transparent;
}

.hl-page .hl-tbl caption {
    caption-side: bottom;
    text-align: left;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--hl-muted);
    border-top: 1px solid var(--hl-line);
}

.hl-page .hl-tbl th,
.hl-page .hl-tbl td {
    text-align: left;
    padding: 11px 16px;
    border: 0;
    border-bottom: 1px solid var(--hl-line);
    vertical-align: top;
    background: transparent;
    color: var(--hl-ink);
}

.hl-page .hl-tbl th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--hl-muted);
    background: var(--hl-bg);
    font-weight: 600;
}

/* Site CSS zebra-stripes table rows; keep holiday tables plain. */
.hl-page .hl-tbl tr,
.hl-page .hl-tbl tbody tr:nth-child(odd),
.hl-page .hl-tbl tbody tr:nth-child(even) {
    background: transparent;
}

.hl-page .hl-tbl tbody tr:hover td {
    background: var(--hl-bg);
}

.hl-page .hl-tbl tbody tr:last-child td {
    border-bottom: 0;
}

.hl-page .hl-tbl td.hl-date {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.hl-page .hl-tbl tr.is-weekend td {
    color: var(--hl-muted);
}

.hl-note {
    display: block;
    color: var(--hl-muted);
    font-size: 12.5px;
}

.hl-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.hl-tag--gazetted {
    background: var(--hl-green-soft);
    color: var(--hl-green);
}

.hl-tag--restricted {
    background: var(--hl-yellow-soft);
    color: var(--hl-yellow-ink);
}

.hl-tag--bank {
    background: var(--hl-cta-soft);
    color: var(--hl-cta-hover);
}

.hl-tag--weekend {
    background: var(--hl-bg);
    color: var(--hl-muted);
    border: 1px solid var(--hl-line);
}

/* ---------- Month-wise ---------- */

.hl-months {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.hl-month {
    background: var(--hl-surface);
    border: 1px solid var(--hl-line);
    border-radius: 12px;
    padding: 14px 16px;
    display: grid;
    gap: 8px;
    align-content: start;
}

.hl-page .hl-month h3 {
    font-size: 15px;
}

.hl-page .hl-month ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 4px;
    font-size: 14px;
}

.hl-page .hl-month li {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 8px;
    margin: 0;
}

.hl-month li span {
    font-variant-numeric: tabular-nums;
    color: var(--hl-muted);
}

.hl-page .hl-none {
    color: var(--hl-muted);
    font-size: 14px;
}

/* ---------- States ---------- */

.hl-regions {
    display: grid;
    gap: 16px;
}

.hl-region {
    display: grid;
    gap: 8px;
}

.hl-page .hl-region h3 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--hl-muted);
}

.hl-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hl-page .hl-chips a {
    background: var(--hl-surface);
    border: 1px solid var(--hl-line);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
    color: var(--hl-ink);
}

.hl-page .hl-chips a:hover {
    border-color: var(--hl-green);
    color: var(--hl-green);
}

.hl-page .hl-chips a.is-top {
    border-color: var(--hl-green);
    color: var(--hl-green);
    font-weight: 600;
}

/* ---------- Buttons, CTA, download ---------- */

.hl-page .hl-btn {
    display: inline-block;
    background: var(--hl-cta);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
    padding: 11px 22px;
    border-radius: 8px;
    border: 0;
    cursor: pointer;
    white-space: nowrap;
}

.hl-page .hl-btn:hover {
    background: var(--hl-cta-hover);
    color: #fff;
}

.hl-cta {
    background: var(--hl-brand);
    border-radius: 16px;
    padding: 28px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
}

.hl-page .hl-cta h2 {
    font-size: 22px;
    color: #fff;
}

.hl-page .hl-cta p {
    color: rgba(255, 255, 255, .85);
    font-size: 15px;
    margin-top: 6px;
}

.hl-dl {
    background: var(--hl-surface);
    border: 1px solid var(--hl-line);
    border-radius: 12px;
    padding: 20px;
    display: grid;
    gap: 12px;
    scroll-margin-top: 110px;
}

/* ---------- FAQ, prose, related ---------- */

.hl-faq {
    display: grid;
    gap: 10px;
}

/* FAQ accordion (native <details>/<summary>, no JS) */
.hl-q {
    background: var(--hl-surface);
    border: 1px solid var(--hl-line);
    border-radius: 12px;
    transition: border-color .2s ease;
}

.hl-q[open] {
    border-color: var(--hl-green);
}

.hl-q__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.hl-q__question::-webkit-details-marker,
.hl-q__question::marker {
    display: none;
    content: "";
}

.hl-q__question:focus-visible {
    outline: 2px solid var(--hl-cta);
    outline-offset: 2px;
    border-radius: 12px;
}

.hl-page .hl-q h3 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.hl-q:hover h3,
.hl-q[open] h3 {
    color: var(--hl-green);
}

/* + / − icon */
.hl-q__icon {
    position: relative;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--hl-green-soft);
}

.hl-q__icon::before,
.hl-q__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    margin: -1px 0 0 -6px;
    border-radius: 2px;
    background: var(--hl-green);
    transition: transform .2s ease;
}

.hl-q__icon::after {
    transform: rotate(90deg);
}

.hl-q[open] .hl-q__icon::after {
    transform: rotate(0deg);
}

.hl-q__answer {
    display: grid;
    gap: 8px;
    padding: 0 18px 18px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--hl-ink);
}

.hl-q__answer p {
    max-width: 72ch;
}

@media (prefers-reduced-motion: reduce) {

    .hl-q,
    .hl-q__icon::before,
    .hl-q__icon::after {
        transition: none;
    }
}

.hl-prose {
    display: grid;
    gap: 12px;
}

.hl-page .hl-prose ul,
.hl-page .hl-prose ol {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 8px;
    max-width: 72ch;
}

.hl-page .hl-prose ul {
    list-style: disc;
}

.hl-page .hl-prose ol {
    list-style: decimal;
}

.hl-page .hl-prose li {
    margin: 0;
    padding-left: 2px;
    list-style-type: disc;
}

.hl-page .hl-prose h3 {
    margin-top: 4px;
}

.hl-page .hl-callout {
    background: var(--hl-green-soft);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 15px;
}

.hl-related {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.hl-related .hl-rcol a {
    text-decoration: none;
    transition: 0.3s ease-in-out;
}

.hl-related .hl-rcol a:hover {
    text-decoration: underline;
}

.hl-rcol {
    background: var(--hl-surface);
    border: 1px solid var(--hl-line);
    border-radius: 12px;
    padding: 16px 18px;
    display: grid;
    gap: 14px;
    align-content: start;
}

.hl-page .hl-rcol h3 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--hl-muted);
}

.hl-page .hl-rcol ul {
    margin: 0;
    list-style: disc;
    font-size: 14.5px;
    display: grid;
    gap: 4px;
}

/* ---------- Sidebar ---------- */

.hl-aside {
    display: grid;
    gap: 16px;
    align-content: start;
    align-self: start;
    position: sticky;
    top: 100px;
}

/* "On this page" – same look as the blog "In this article" list (blog-new.css .toc-link) */
.hl-toc {
    display: grid;
    padding: 0 0 16px 8px;
    background: var(--hl-surface);
    border: 1px solid var(--hl-line);
    border-radius: 12px;
    padding: 18px;

}

.hl-page .hl-toc__label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .3px;
    color: #85847e;
}

.hl-page .hl-toc .hl-toc__link {
    display: block;
    position: relative;
    padding: 8px 0;
    font-size: 15px;
    line-height: 1.35;
    color: #555;
    text-decoration: none;
}

.hl-page .hl-toc .hl-toc__link:hover,
.hl-page .hl-toc .hl-toc__link.is-active {
    color: #005b45;
    font-weight: 700;
}

.hl-page .hl-toc .hl-toc__link.is-active::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 10px;
    height: 16px;
    border-left: 2px solid #00835f;
}

/* Mobile "On this page": collapsible card before the first section (hidden on desktop) */
.hl-toc--mobile {
    display: none;
}

.hl-page .hl-toc--mobile>summary.hl-toc__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.hl-toc--mobile>summary::-webkit-details-marker,
.hl-toc--mobile>summary::marker {
    display: none;
    content: "";
}

.hl-page .hl-toc--mobile[open]>summary.hl-toc__label {
    margin-bottom: 8px;
}

.hl-toc--mobile nav {
    display: grid;
    padding-left: 8px;
}

/* chevron ⌄ that flips when open */
.hl-toc__arrow {
    display: inline-block;
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    margin: -4px 4px 0 12px;
    border-right: 2px solid #85847e;
    border-bottom: 2px solid #85847e;
    transform: rotate(45deg);
    transition: transform .2s ease;
}

.hl-toc--mobile[open] .hl-toc__arrow {
    margin-top: 4px;
    transform: rotate(-135deg);
}

.hl-box {
    background: var(--hl-surface);
    border: 1px solid var(--hl-line);
    border-radius: 12px;
    padding: 18px;
    display: grid;
    gap: 10px;
}

.hl-page .hl-box h3 {
    font-size: 15px;
}

.hl-page .hl-box ol,
.hl-page .hl-box ul {
    margin: 0;
    font-size: 14.5px;
    display: grid;
    gap: 6px;
}

.hl-page .hl-box ol {
    list-style: decimal;
}

.hl-page .hl-box ul {
    list-style: disc;
}

.hl-page .hl-box a {
    text-decoration: none;
}

.hl-page .hl-box a:hover {
    text-decoration: underline;
}

.hl-box--promo {
    border-color: var(--hl-cta);
    background: var(--hl-cta-soft);
}

.hl-page .hl-box--promo p {
    font-size: 14px;
}

.hl-page .hl-box--promo .hl-btn {
    justify-self: start;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
    .hl-wrap {
        grid-template-columns: minmax(0, 1fr);
    }

    .hl-wrap>*,
    .hl-hero>* {
        min-width: 0;
    }

    .hl-aside {
        position: static;
    }

    /* "On this page" moves from the sidebar to just before the first section */
    .hl-toc--side {
        display: none;
    }

    .hl-toc--mobile {
        display: block;
    }
}

@media (max-width: 560px) {

    .hl-today,
    .hl-cta {
        grid-template-columns: minmax(0, 1fr);
    }

    .hl-cta {
        padding: 20px;
    }

    .hl-page .hl-cta h2 {
        font-size: 18px;
        color: #fff;
    }

    .hl-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hl-article {
        gap: 36px;
    }

    .hl-page .hl-cta .hl-btn {
        white-space: normal;
    }

    .hl-answer p {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    html:has(.hl-page) {
        scroll-behavior: smooth;
    }
}