.page-content > section { min-width: 0; }
.loto-frequency-table { min-width: 600px; font-size: .8rem; font-variant-numeric: tabular-nums; }
.loto-frequency-table thead th { background: #9e2834; color: #fff; padding: .4rem .25rem; }
.loto-frequency-table .frequency-weekend { background: #fff7e3; }
.loto-frequency-table .frequency-hit { color: #9e2834; font-weight: 700; }
.frequency-overview { padding: .4rem .5rem; border-top: 1px solid #e8deda; }
.frequency-overview-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem; margin-bottom: .55rem; font-size: .8rem; color: #452b29; }
.frequency-overview-heading > span { color: #74635e; font-size: .72rem; }
.frequency-number-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: .2rem; }
.frequency-number { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 38px; padding: .1rem; border: 1px solid #ead9d5; border-radius: 4px; text-decoration: none; color: #84232e; background: #fff7f4; font-variant-numeric: tabular-nums; }
.frequency-number strong { font-size: 1rem; line-height: 1.2; }
.frequency-number small { font-size: .65rem; color: #74635e; }
.frequency-number.is-frequent { background: #f4dce0; border-color: #dba6ad; }
.frequency-number.is-zero { background: #f7f5f3; border-color: #e8e3df; color: #7e726c; }
.frequency-number:hover, .frequency-number:focus-visible { outline: 2px solid #9e2834; outline-offset: 0; color: #9e2834; }
.frequency-groups { display: grid; gap: .25rem; padding: .15rem .5rem .5rem; }
.frequency-group { border: 1px solid #e8deda; border-radius: 7px; overflow: hidden; scroll-margin-top: 85px; }
.frequency-group summary { display: flex; align-items: center; justify-content: space-between; gap: .35rem; min-height: 34px; padding: .3rem .5rem; cursor: pointer; background: #f9f4f1; color: #452b29; font-size: .82rem; list-style: none; }
.frequency-group summary::-webkit-details-marker { display: none; }
.frequency-group summary::after { content: '+'; font-size: 1rem; }
.frequency-group[open] summary::after { content: '−'; }
.frequency-group summary strong { flex: 1; }
.frequency-group summary strong span, .frequency-group summary small { font-weight: 400; color: #74635e; }
.frequency-group .loto-frequency-table { min-width: 570px; }
.frequency-group .loto-frequency-table > :not(caption) > * > * { padding: .2rem .3rem; }
.frequency-overview-heading { margin-bottom: .35rem; }
@media (max-width: 575.98px) {
    .frequency-overview { padding: .35rem; }
    .frequency-number-grid { gap: .18rem; }
    .frequency-number strong { font-size: .85rem; }
    .frequency-number small { font-size: .6rem; }
    .frequency-groups { padding: .1rem .35rem .35rem; }
}
.special-statistics-page { gap: .45rem; }
.statistics-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem; padding: .75rem; background: #fff; border: 1px solid #e8deda; border-radius: 14px; }
.statistics-eyebrow { display: block; margin-bottom: .2rem; color: #74635e; font-size: .72rem; font-weight: 600; letter-spacing: .04em; }
.statistics-period strong { display: block; color: #452b29; font-size: .9rem; font-variant-numeric: tabular-nums; }
.statistics-period strong span { color: #9a8881; padding: 0 .25rem; }
.statistics-filter { display: flex; align-items: flex-end; gap: .45rem; }
.statistics-filter .form-label { font-size: .75rem; color: #74635e; margin-bottom: .2rem; }
.statistics-filter .form-control { min-height: 36px; padding: .35rem .6rem; border-color: #dccdc7; font-size: .8rem; border-radius: 8px; }
.statistics-filter .btn { --bs-btn-bg: #9e2834; --bs-btn-border-color: #9e2834; --bs-btn-hover-bg: #82202b; --bs-btn-hover-border-color: #82202b; --bs-btn-active-bg: #701b25; --bs-btn-active-border-color: #701b25; --bs-btn-focus-shadow-rgb: 158, 40, 52; min-height: 36px; padding: .35rem .6rem; white-space: nowrap; font-size: .8rem; border-radius: 8px; }
.statistics-filter .form-control:focus { border-color: #b8666f; box-shadow: 0 0 0 .2rem rgb(158 40 52 / 12%); }
.statistics-region-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.statistics-region-link { display: flex; align-items: center; gap: .5rem; padding: .6rem .75rem; color: #452b29; background: #fff; border: 1px solid #e8deda; border-radius: 12px; text-decoration: none; transition: border-color .15s, background .15s; }
.statistics-region-link:hover { color: #a52a36; background: #fff5f3; border-color: #cf9c98; }
.statistics-region-link strong, .statistics-region-link small { display: block; }
.statistics-region-link strong { font-size: .88rem; }
.statistics-region-link small { color: #74635e; font-size: .7rem; margin-top: .2rem; }
.statistics-region-icon { display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 9px; color: #a52a36; background: #faeeeb; }
.statistics-region-arrow { margin-left: auto; color: #8e7169; }
.statistics-legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; color: #74635e; font-size: .75rem; }
.statistics-legend > span { display: flex; align-items: center; gap: .4rem; }
.statistics-legend i { display: inline-block; width: 12px; height: 12px; border: 1px solid #e5d7ae; border-radius: 3px; background: #fff7e3; }
.statistics-legend .statistics-scroll-hint { display: none; }
.special-statistics-region { border: 1px solid #e8deda; border-radius: 14px; overflow: hidden; scroll-margin-top: 90px; }
.special-statistics-header { padding: .6rem .8rem; background: #fff; border-bottom: 0; }
.special-statistics-header h2 { color: #452b29; font-size: .95rem; font-weight: 700; }
.special-statistics-header .statistics-result-count { padding: .2rem .5rem; border-radius: 20px; background: #f7f2ef; color: #74635e; font-size: .72rem; }
.special-statistics-table-wrap {
    height: auto;
    max-height: none;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
}
.special-statistics-table-wrap:focus-visible, .statistics-region-link:focus-visible { outline: 3px solid #aa4350; outline-offset: -3px; }
.special-statistics-week-table { min-width: 630px; margin: 0; }
.special-statistics-week-table th { padding: .4rem .25rem; background: #9e2834; border-color: #b24a54; font-size: .8rem; }
.special-statistics-week-table td { height: 62px; padding: .35rem .25rem; border-color: #e8deda; background: #fff; vertical-align: middle; }
.special-statistics-week-table td.is-weekend { background: #fff7e3; }
.special-statistics-week-table td.is-outside-range { background: #f7f5f3; }
.special-statistics-week-table tbody tr:hover td:not(.is-outside-range):not(.is-weekend) { background: #fffaf6; }
.special-statistics-day-result { margin: 0; gap: .1rem; }
.special-statistics-day-result + .special-statistics-day-result { border-top: 1px dashed #e8deda; padding-top: .3rem; margin-top: .3rem; }
.special-statistics-week-table .special-statistics-numbers > span { font-size: 1rem; line-height: 1.25; font-weight: 700; letter-spacing: .015em; color: #a52a36; }
.special-statistics-week-table .special-statistics-numbers > span:first-child { color: #a52a36; }
.special-statistics-province { color: #685751; font-size: .72rem; white-space: normal; overflow: visible; line-height: 1.2; text-align: center; }
.special-statistics-week-table .special-statistics-date { margin-top: .2rem; color: #74635e; font-size: .7rem; }
.special-statistics-no-result { color: #82716a; font-size: .7rem; }
.special-statistics-empty { padding: .85rem; border-top: 1px solid #eee5e0; }
.special-statistics-disclaimer { padding: .55rem .75rem; border-radius: 10px; background: #f7f2ef; color: #74635e; font-size: .75rem; line-height: 1.45; }
@media (max-width: 1199.98px) { .statistics-legend .statistics-scroll-hint { display: flex; } }
@media (max-width: 767.98px) {
    .statistics-toolbar { padding: .6rem .75rem; gap: 1rem; }
    .statistics-filter { width: 100%; }
    .statistics-date-field { flex: 1; min-width: 0; }
    .statistics-region-links { gap: .5rem; }
    .statistics-region-link { align-items: center; gap: .35rem; padding: .5rem; }
    .statistics-region-link strong { font-size: .82rem; }
    .statistics-region-link small { font-size: .67rem; line-height: 1.5; }
    .statistics-region-arrow { display: none; }
    .special-statistics-header { flex-direction: row; align-items: center; padding: .6rem .75rem; }
    .special-statistics-header h2 { font-size: .88rem; }
    .special-statistics-week-table { min-width: 630px; }
}

/* Keep the compact rhythm consistent with the page heading and mobile table. */
.regional-page-title { margin-bottom: 0; padding-top: .25rem; padding-bottom: .25rem; }
.regional-page-title .detail-page-heading { font-size: 1.4rem; margin-bottom: .25rem; }
.regional-page-title .detail-page-description { font-size: .82rem; margin-bottom: 0; }
.special-statistics-week-table .special-statistics-numbers { gap: .1rem; }
@media (max-width: 767.98px) {
    .statistics-region-icon { display: none; }
    .statistics-region-link small { line-height: 1.25; }
    .special-statistics-header { padding: .55rem .65rem; }
    .special-statistics-week-table th { font-size: .75rem; }
    .special-statistics-week-table td { height: 58px; padding: .3rem .2rem; }
    .special-statistics-week-table .special-statistics-numbers > span { font-size: .95rem; }
    .special-statistics-week-table .special-statistics-date { font-size: .7rem; }
}
