/* Locally authored public presentation. No imports, external fonts or CDN. */
:root {
    color-scheme: light;
    --ink: #24342f;
    --muted: #5e6d66;
    --paper: #fff;
    --canvas: #f2f5f3;
    --line: #dce5df;
    --accent: #23845e;
    --radius: 16px;
    --shadow: 0 5px 22px rgba(28, 57, 44, .035);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--canvas);
    -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button, input, select { border-radius: 8px; }
button { color: inherit; }
button:disabled { opacity: .45; cursor: not-allowed; }
button, a { touch-action: manipulation; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul { margin: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}
[hidden] { display: none !important; }
::selection { background: #cae9d8; color: #173c2d; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -90px; z-index: 100; background: var(--paper); border: 2px solid var(--accent); padding: 12px 20px; }
.skip-link:focus { top: 16px; }
.site-shell { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 112px; border-bottom: 1px solid var(--line); }
.site-brand { min-width: 0; }
.brand-link { display: inline-flex; align-items: center; gap: 14px; }
.brand-mark { width: 46px; height: 46px; flex: 0 0 auto; }
.brand-copy { display: grid; gap: 3px; min-width: 0; }
.brand-name { font-size: 25px; line-height: 1.4; letter-spacing: .06em; }
.brand-description { color: var(--muted); font-size: 13px; max-width: 540px; }
.site-header-actions { flex-shrink: 0; }
.icon-button { min-height: 42px; padding: 7px 17px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 650; }
.icon-button:hover { border-color: var(--accent); color: var(--accent); }
.site-status { min-height: 39px; padding: 10px 0; font-size: 12px; color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.site-status.status-error { color: #9e3939; }
.site-status.status-ok { color: #4e685d; }
.site-section-nav { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; padding: 12px 0 21px; }
.site-section-nav a { font-size: 14px; padding: 6px 17px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.site-section-nav a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.site-main { padding: 0 0 28px; outline: none; }
.site-app { display: grid; gap: 22px; align-items: start; }
.module { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: 24px; }
.module-header { display: flex; justify-content: space-between; gap: 18px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.module-header h2, .tabs-heading h2 { font-size: 22px; line-height: 1.4; letter-spacing: .04em; font-weight: 700; }
.module-header p { margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.module-kicker, .eyebrow { display: block; color: var(--accent); font-size: 11px; letter-spacing: .13em; font-weight: 700; margin-bottom: 4px; }
.module-body { padding: 22px 24px; }
.module-hero { display: flex; align-items: center; gap: 22px; padding: 36px; background: #e7f1eb; border-color: transparent; min-height: 190px; }
.hero-mark { display: grid; place-items: center; width: 88px; height: 88px; background: rgba(255, 255, 255, .8); border-radius: 24px; flex-shrink: 0; }
.hero-copy { min-width: 0; flex: 1; }
.hero-copy h1 { font-size: clamp(27px, 3.7vw, 41px); line-height: 1.4; letter-spacing: .1em; margin: 4px 0 10px; }
.hero-copy p { font-size: 14px; line-height: 1.8; max-width: 650px; }
.site-code-label { display: block; margin-top: 15px; font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.hero-link { flex-shrink: 0; font-size: 13px; border-bottom: 1px solid currentColor; padding-bottom: 5px; }
.hero-link span { margin-left: 20px; }
.module-state { text-align: center; padding: 27px 18px; background: #f7f9f8; color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; font-size: 14px; line-height: 1.85; }
.module-state p { max-width: 530px; margin: 0 auto; }
.module-state button { margin-top: 13px; }
.module-loading p::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--accent); animation: soft-pulse 1.7s ease-in-out infinite; }
.module-error { color: #963b36; background: #fff7f5; border-color: #eccdc7; }
.module-empty::before { content: ""; display: block; width: 30px; height: 24px; margin: 0 auto 13px; border: 1.5px solid #a7b6ae; border-radius: 4px; background: linear-gradient(#a7b6ae, #a7b6ae) center 8px / 14px 1px no-repeat, linear-gradient(#a7b6ae, #a7b6ae) center 13px / 10px 1px no-repeat; }
.primary-button, .secondary-button, .pager button { min-height: 42px; border: 1px solid var(--accent); padding: 8px 18px; border-radius: 7px; font-size: 14px; font-weight: 650; }
.primary-button { background: var(--accent); color: #fff; }
.primary-button:hover { filter: brightness(.92); }
.secondary-button, .pager button { background: #fff; color: var(--accent); }
.secondary-button:hover, .pager button:not(:disabled):hover { background: #f1f5f3; }
.text-button { background: transparent; border: 0; color: var(--accent); font-size: 14px; padding: 8px 0; text-decoration: underline; text-underline-offset: 5px; flex-shrink: 0; }
.muted { color: var(--muted); font-size: 12px; }
.filter-area { margin-bottom: 17px; }
.filter-form { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.filter-form label, .search-label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.filter-form input, .filter-form select, .search-label input { border: 1px solid #cbd8d0; padding: 9px 12px; min-height: 42px; color: var(--ink); background: #fff; max-width: 100%; }
.filter-form input { width: 135px; }
.filter-form select { min-width: 130px; max-width: 180px; }
.search-label input { width: 100%; }
.filter-form input::placeholder, .search-label input::placeholder { color: #77867e; }
.filter-feedback { width: 100%; color: #993b38; font-size: 13px; }
.draw-disclaimer { background: #f4f7f4; border-left: 3px solid var(--accent); padding: 10px 14px; font-size: 12px; line-height: 1.8; margin-bottom: 18px; color: #4c6457; }
.draw-selector, .history-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 18px; }
.draw-tab, .history-tab { border: 1px solid var(--line); background: #fff; color: var(--muted); padding: 8px 15px; min-height: 40px; font-size: 14px; }
.draw-tab.is-active, .history-tab.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.draw-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.draw-grid.is-double { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.draw-card { border: 1px solid var(--line); border-radius: 12px; min-width: 0; padding: 20px; background: #fff; }
.draw-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.draw-card-head h3 { font-size: 19px; letter-spacing: .02em; }
.lottery-code { color: var(--muted); font-size: 10px; letter-spacing: .1em; border: 1px solid var(--line); padding: 3px 7px; border-radius: 5px; text-transform: uppercase; }
.draw-issue { display: flex; align-items: baseline; gap: 13px; margin: 15px 0 18px; font-size: 13px; }
.draw-issue > span { color: var(--muted); }
.draw-issue strong { font-weight: 650; font-size: 18px; font-variant-numeric: tabular-nums; }
.number-list { list-style: none; padding: 0; display: flex; align-items: center; justify-content: flex-start; gap: clamp(5px, 1vw, 12px); min-height: 54px; margin-bottom: 18px; }
.ball { width: clamp(32px, 4.8vw, 51px); height: clamp(32px, 4.8vw, 51px); flex-shrink: 0; border: 1px solid #cbd8d0; border-radius: 50%; display: grid; place-items: center; font-size: clamp(16px, 2vw, 23px); font-weight: 700; font-variant-numeric: tabular-nums; color: #374a40; background: linear-gradient(145deg, #fff 30%, #ecf2ed); }
.ball:last-child { border: 2px solid var(--accent); color: var(--accent); margin-left: 9px; position: relative; }
.ball:last-child::before { content: "+"; position: absolute; left: -13px; color: #78877d; font-size: 13px; font-weight: 400; }
.ball.is-hidden { font-size: 10px; font-weight: 500; background: #f7f9f7; color: #677970; border-style: dashed; }
.result-pending { list-style: none; text-align: center; width: 100%; padding: 14px; background: #f5f8f5; color: var(--muted); font-size: 14px; border-radius: 7px; }
.draw-meta { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; font-size: 11px; color: var(--muted); margin-top: 9px; }
.draw-note { font-size: 11px; color: #80532d; padding-top: 12px; }
.draw-updated { font-size: 11px; color: var(--muted); margin-top: 8px; }
.next-record { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 17px; padding-top: 12px; font-size: 12px; }
.next-record > span { color: var(--muted); }
.next-record strong { font-size: 14px; }
.next-record time { color: var(--muted); margin-left: auto; }
.reveal-progress { font-size: 12px; color: var(--accent); }
.progress-track { width: 100%; height: 4px; overflow: hidden; background: #e9eeeb; border-radius: 3px; margin: 8px 0; }
.progress-track span { display: block; height: 100%; background: var(--accent); transition: width .35s ease; }
.record-tag { display: inline-block; padding: 2px 6px; background: #fff4d8; border: 1px solid #dfc996; border-radius: 3px; font-size: 11px; color: #7f5c25; }
.record-stale { color: #913b32; background: #fff0ec; border-color: #e3c3ba; }
.table-scroll { overflow-x: auto; overscroll-behavior-inline: contain; border: 1px solid var(--line); border-radius: 8px; }
.history-table { border-collapse: collapse; width: 100%; text-align: left; font-size: 13px; }
.history-table th, .history-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.history-table th { font-weight: 650; white-space: nowrap; }
.history-table thead { background: #f1f6f2; color: #496054; font-size: 12px; }
.history-table tbody tr:last-child th, .history-table tbody tr:last-child td { border-bottom: 0; }
.history-table td:nth-child(3) { min-width: 115px; font-size: 11px; color: var(--muted); }
.history-table td:last-child { min-width: 140px; }
.history-balls { display: flex; align-items: center; gap: 5px; min-width: max-content; }
.history-ball { display: inline-flex; align-items: center; justify-content: center; width: 29px; height: 29px; border: 1px solid #d3ddd6; background: #f9fbf9; border-radius: 50%; font-variant-numeric: tabular-nums; font-size: 13px; color: #375244; }
.history-ball:last-child { border-color: var(--accent); color: var(--accent); margin-left: 6px; }
/* Basic attributes belong only to server-visible numbers, never hidden slots. */
.ball.is-visible, .history-ball.is-visible { position: relative; }
.number-list > .ball { margin-bottom: 24px; }
.history-balls > .history-ball { margin-bottom: 22px; }
.number-value { line-height: 1; }
.number-zodiac { position: absolute; top: calc(100% + 5px); left: 50%; transform: translateX(-50%); width: max-content; font-size: 12px; line-height: 1.4; font-weight: 500; white-space: nowrap; color: #566b60; }
.number-zodiac.is-unavailable { font-size: 10px; font-weight: 400; }
.ball.wave-red, .history-ball.wave-red { color: #a52c34; border-color: #bb444c; background: linear-gradient(145deg, #fff, #fbe8e9); }
.ball.wave-blue, .history-ball.wave-blue { color: #205da3; border-color: #3774b4; background: linear-gradient(145deg, #fff, #e5effb); }
.ball.wave-green, .history-ball.wave-green { color: #216c47; border-color: #328454; background: linear-gradient(145deg, #fff, #e3f2e7); }
.history-ball.is-hidden { font-size: 9px; color: #677970; border-color: #cbd8d0; border-style: dashed; background: #f7f9f7; }
.history-source { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; }
.correction-details { min-width: 170px; max-width: 300px; font-size: 12px; }
.correction-details summary { color: #8a5a2f; cursor: pointer; font-weight: 650; }
.correction-details p { padding: 8px 0; border-bottom: 1px dashed #dbcbb8; overflow-wrap: anywhere; }
.pager { display: flex; align-items: center; justify-content: center; gap: 18px; padding-top: 22px; font-size: 13px; }
.pager button { font-size: 13px; min-height: 38px; padding: 5px 13px; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gallery-card { min-width: 0; }
.gallery-card-button, .tab-gallery-item { display: block; width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-align: left; overflow: hidden; padding: 0; height: 100%; }
.gallery-card-button:hover, .tab-gallery-item:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(30, 66, 45, .09); }
.gallery-card img, .tab-gallery-item img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; background: #f2f4f1; }
.gallery-card-copy { display: grid; gap: 4px; padding: 12px; }
.gallery-card-copy strong, .tab-gallery-item strong { font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.gallery-card-copy > span { font-size: 12px; color: var(--muted); }
.gallery-no-image { display: grid; place-items: center; aspect-ratio: 4 / 5; background: #f2f5f2; color: var(--muted); font-size: 13px; }
.gallery-card-meta { display: block; padding-top: 4px; font-size: 11px; color: var(--muted); }
.article-list, .notice-list { display: grid; gap: 0; }
.article-item, .notice-item { display: flex; justify-content: space-between; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.article-item:first-child, .notice-item:first-child { padding-top: 0; }
.article-item:last-child, .notice-item:last-child { border-bottom: 0; padding-bottom: 0; }
.article-item > div, .notice-item > div { min-width: 0; }
.article-item h3, .notice-item h3 { font-size: 17px; font-weight: 650; line-height: 1.7; overflow-wrap: anywhere; }
.article-item p, .notice-item p { font-size: 14px; line-height: 1.9; color: var(--muted); margin-top: 7px; overflow-wrap: anywhere; }
.article-category { color: var(--accent); font-size: 11px; }
.notice-item h3 a { text-decoration: underline; text-underline-offset: 5px; }
.module-banner { display: grid; grid-template-columns: 1fr 1fr; background: #e6edf5; border-color: #cbdbea; min-height: 210px; }
.banner-copy { padding: 33px; align-self: center; }
.banner-copy h2 { font-size: 37px; letter-spacing: .15em; line-height: 1.4; }
.banner-copy p { margin-top: 13px; font-size: 14px; line-height: 1.9; }
.banner-items { min-width: 0; padding: 24px; align-self: center; }
.banner-items .module-state { background: rgba(255, 255, 255, .55); }
.banner-list { display: grid; gap: 12px; }
.banner-item { display: flex; align-items: center; gap: 15px; padding: 12px; background: rgba(255, 255, 255, .85); border: 1px solid rgba(70, 90, 120, .15); border-radius: 8px; }
.banner-item img { width: 110px; max-height: 125px; object-fit: contain; background: #fff; }
.banner-item h3 { font-size: 17px; }
.banner-item h3 a { text-decoration: underline; text-underline-offset: 4px; }
.banner-item p { font-size: 13px; line-height: 1.8; color: var(--muted); overflow-wrap: anywhere; }
.recent-list { list-style: none; padding: 0; }
.recent-list li { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.recent-list li:first-child { padding-top: 0; }
.recent-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.recent-list li > div:first-child { display: grid; gap: 2px; }
.recent-list time { font-size: 11px; color: var(--muted); }
.recent-list strong { font-size: 16px; }
.directory-tools { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 20px; }
.directory-tools .search-label { flex: 1; max-width: 510px; }
.site-list-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.site-directory-item { display: flex; align-items: center; gap: 10px; padding: 14px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; min-width: 0; }
.site-directory-item:hover { border-color: var(--accent); background: #f5f9f6; }
.directory-mark { flex: 0 0 33px; width: 33px; height: 36px; border-radius: 7px; background: #eaf2ec; display: grid; place-items: center; color: var(--accent); font-family: "Songti SC", SimSun, serif; font-weight: 700; font-size: 20px; }
.site-directory-item > span:nth-child(2) { min-width: 0; }
.site-directory-item strong { display: block; font-size: 14px; }
.site-directory-item small { display: block; font-size: 10px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.directory-arrow { margin-left: auto; color: var(--accent); font-size: 14px; }
.site-navigation { border: 1px solid var(--line); background: #fff; border-radius: 12px; margin: 12px 0; box-shadow: var(--shadow); }
.navigation-inner { padding: 24px; }
.navigation-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.navigation-heading .module-kicker { display: none; }
.navigation-heading h2 { font-size: 20px; }
.navigation-inner > .search-label { margin-bottom: 20px; max-width: 520px; }
.module-glyphbar, .module-toolbar, .module-anchorbar { display: flex; align-items: center; gap: 20px; padding: 24px; }
.module-glyphbar h2, .module-toolbar h2, .module-anchorbar h2 { font-size: 22px; }
.glyph-logo { width: 87px; height: 75px; flex-shrink: 0; display: grid; place-items: center; background: var(--accent); color: #fff; letter-spacing: .15em; font-size: 28px; font-family: "Songti SC", SimSun, serif; border: 4px double #fff; box-shadow: 0 0 0 1px var(--accent); }
.glyph-links, .toolbar-actions, .anchor-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-left: auto; }
.glyph-links a, .toolbar-link, .anchor-links a { padding: 7px 15px; min-height: 40px; border: 1px solid var(--line); background: #fff; color: var(--accent); font-size: 14px; border-radius: 5px; }
.glyph-links a:hover, .toolbar-link:hover, .anchor-links a:hover { border-color: var(--accent); }
.tabs-heading { padding: 25px 25px 0; }
.tab-list { display: flex; align-items: stretch; padding: 0 25px; border-bottom: 1px solid var(--line); margin-top: 17px; }
.tab-button { background: transparent; padding: 11px 27px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; font-size: 15px; color: var(--muted); }
.tab-button.is-active { border-bottom-color: var(--accent); color: var(--accent); font-weight: 700; }
.tab-panel { padding: 24px; }
.tab-panel .module { border: 0; border-radius: 0; box-shadow: none; }
.tab-panel .module-header { padding: 0 0 17px; }
.tab-panel .module-body { padding: 18px 0 0; }
.tab-gallery-item strong { display: block; padding: 12px; }
.site-footer { border-top: 1px solid var(--line); padding: 27px 0 38px; color: var(--muted); font-size: 12px; }
.site-footer strong { color: var(--ink); font-size: 13px; letter-spacing: .04em; }
.site-footer p { margin: 7px 0; max-width: 780px; line-height: 1.9; }
.site-footer > span { font-size: 11px; }
.site-bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); display: flex; align-items: stretch; justify-content: space-around; padding: 9px 12px calc(9px + env(safe-area-inset-bottom, 0px)); width: min(100%, 760px); background: rgba(255, 255, 255, .97); border: 1px solid var(--line); border-radius: 18px 18px 0 0; z-index: 20; box-shadow: 0 -4px 25px rgba(28, 60, 42, .06); }
.site-bottom-nav a { display: grid; gap: 0; justify-items: center; min-width: 60px; padding: 1px 8px; color: #5c7164; font-size: 12px; }
.site-bottom-nav a > span:first-child { font-size: 23px; line-height: 1.3; }
.site-bottom-nav a:hover, .site-bottom-nav a.is-active { color: var(--accent); }
.has-bottom-nav { padding-bottom: 87px; }
.modal-open { overflow: hidden; }
.modal-root { position: fixed; inset: 0; z-index: 80; overflow-y: auto; overscroll-behavior: contain; }
.modal-backdrop { display: flex; align-items: center; justify-content: center; min-height: 100%; background: rgba(20, 33, 27, .72); padding: 32px 20px; }
.modal-card { width: min(100%, 760px); background: #fff; border-radius: 16px; padding: 27px; box-shadow: 0 24px 80px rgba(0, 0, 0, .22); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 20px; }
.modal-header h2 { font-size: 23px; overflow-wrap: anywhere; }
.modal-header .icon-button { flex-shrink: 0; }
.modal-body-text { font-size: 16px; line-height: 2; overflow-wrap: anywhere; }
.modal-image-button { display: block; background: #f2f4f1; border: 1px solid var(--line); padding: 0; width: 100%; margin: 0 0 24px; border-radius: 8px; overflow: hidden; cursor: zoom-in; }
.modal-image-button img { max-height: 560px; margin: auto; object-fit: contain; }
.modal-footnote { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 25px; padding-top: 15px; }
.safe-content-link { color: var(--accent); text-decoration: underline; display: inline-block; margin: 15px 0; }
.image-preview-card { max-width: 100%; position: relative; }
.image-preview-card > img { max-height: calc(100dvh - 130px); width: auto; object-fit: contain; margin: auto; }
.image-preview-card > p { font-size: 13px; color: #fff; text-align: center; padding-top: 12px; }
.image-close { position: sticky; display: block; margin: 0 0 12px auto; top: 0; }
.image-error-note { display: block; padding: 15px; color: #923f39; background: #fff6f3; font-size: 13px; }

/* 01 · 49: compact mobile gallery application; four-item bottom navigation. */
.template-498z { max-width: 820px; --radius: 13px; --canvas: #f3f7f3; }
.template-498z .site-header { background: var(--accent); color: #fff; min-height: 92px; margin: 0 -28px; padding: 17px 28px; border-radius: 0 0 18px 18px; border: 0; }
.template-498z .brand-mark { background: #fff; border-radius: 13px; padding: 6px; width: 43px; height: 43px; }
.template-498z .brand-description { color: #e2f0e7; max-width: 480px; font-size: 11px; }
.template-498z .brand-name { font-size: 24px; }
.template-498z .site-header .icon-button { color: #fff; border-color: rgba(255,255,255,.45); background: transparent; }
.template-498z .module-hero { min-height: 100px; padding: 19px 23px; background: #e9f4e9; gap: 15px; }
.template-498z .hero-mark { display: none; }
.template-498z .hero-copy h1 { font-size: 23px; margin: 0 0 4px; }
.template-498z .hero-copy .eyebrow, .template-498z .site-code-label { display: none; }
.template-498z .hero-copy p { font-size: 12px; }
.template-498z .hero-link { display: none; }
.template-498z .site-section-nav { display: none; }
.template-498z .module-gallery .module-header { border-bottom: 0; }
.template-498z .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.template-498z .module-kicker { display: none; }
.template-498z .module-header h2 { font-size: 20px; }

/* 02 · 118: wide blue brand banner paired with a five-record sidebar. */
.template-118tt { --line: #d7e2ef; --ink: #203749; --muted: #5b6e7e; --radius: 10px; }
.template-118tt .site-header { min-height: 96px; }
.template-118tt .brand-name { color: var(--accent); font-size: 30px; font-family: "Songti SC", SimSun, serif; }
.template-118tt .site-app { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.template-118tt .module-banner { grid-column: 1 / -1; background: #1f65a0; color: #fff; min-height: 215px; border: 0; position: relative; }
.template-118tt .banner-copy { border-right: 1px solid rgba(255,255,255,.2); margin: 26px 0; padding: 10px 34px; }
.template-118tt .banner-copy .module-kicker { color: #d7e9ff; }
.template-118tt .banner-copy h2 { font-size: 44px; }
.template-118tt .banner-items .module-state { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); color: #e3eefb; }
.template-118tt .module-recent { grid-column: 1; grid-row: 2; }
.template-118tt .module-draw { grid-column: 2; grid-row: 2 / span 2; }
.template-118tt .module-notices { grid-column: 1; }
.template-118tt .module-gallery, .template-118tt .module-history, .template-118tt .module-articles { grid-column: 1 / -1; }
.template-118tt .module-recent .module-header { background: #edf4fc; }
.template-118tt .module-header h2 { color: #215f96; }
.template-118tt .draw-card { padding: 13px; }
.template-118tt .ball { width: 36px; height: 36px; font-size: 18px; }
.template-118tt .ball.is-hidden { font-size: 9px; }

/* 03 · ala: green ruled forum with a notice sidebar and broad record rows. */
.template-ala { --radius: 3px; max-width: 1110px; }
.template-ala .site-header { border-top: 7px solid var(--accent); min-height: 103px; }
.template-ala .site-app { grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); gap: 17px; }
.template-ala .module-hero { grid-column: 1 / -1; min-height: 130px; padding: 26px; border-left: 7px solid var(--accent); }
.template-ala .hero-mark { display: none; }
.template-ala .hero-copy h1 { font-size: 29px; }
.template-ala .module-notices { grid-column: 1; }
.template-ala .module-draw { grid-column: 2; }
.template-ala .module-history, .template-ala .module-gallery, .template-ala .module-articles, .template-ala .module-directory { grid-column: 1 / -1; }
.template-ala .module-header { padding: 13px 20px; background: #e9f1e7; border-top: 3px solid var(--accent); }
.template-ala .module-kicker { display: none; }
.template-ala .module-header h2 { font-size: 18px; }
.template-ala .notice-item { display: block; }

/* 04 · tt: blue double results first, then newspaper-like text and imagery. */
.template-tt { --radius: 6px; --line: #d3e0ed; --ink: #283b51; }
.template-tt .site-header { border-bottom: 4px solid var(--accent); }
.template-tt .brand-name { color: var(--accent); font-size: 31px; }
.template-tt .module-hero { background: #e9f1fb; padding: 23px 30px; min-height: 125px; }
.template-tt .hero-mark { width: 60px; height: 60px; border-radius: 4px; }
.template-tt .hero-copy h1 { font-size: 30px; }
.template-tt .site-code-label { display: none; }
.template-tt .draw-card-head { background: #edf3fa; padding: 12px 15px; margin: -20px -20px 18px; border-bottom: 1px solid var(--line); }
.template-tt .module-draw .module-header { background: var(--accent); color: #fff; }
.template-tt .module-draw .module-header p, .template-tt .module-draw .module-kicker { color: #e7effc; }
.template-tt .article-list { grid-template-columns: 1fr 1fr; gap: 25px; }

/* 05 · gjp: centered taupe masthead and a real tabbed content block. */
.template-gjp { max-width: 1080px; --radius: 0px; --line: #e0d6ca; --muted: #75695e; --ink: #443b31; }
.template-gjp .site-header { justify-content: center; position: relative; min-height: 140px; background: #f1eae1; margin: 0 -28px; padding: 24px 160px 24px 24px; border-bottom: 7px solid var(--accent); }
.template-gjp .site-header-actions { position: absolute; right: 24px; }
.template-gjp .brand-name { font-family: "Songti SC", SimSun, serif; font-size: 36px; letter-spacing: .15em; }
.template-gjp .brand-mark { display: none; }
.template-gjp .brand-description { max-width: 550px; }
.template-gjp .module-banner { display: block; background: #ddd0bd; min-height: 0; }
.template-gjp .banner-copy { display: none; }
.template-gjp .banner-items { padding: 17px; }
.template-gjp .tabs-heading { background: #f8f4ed; padding: 22px 25px; }
.template-gjp .tab-list { margin-top: 0; background: #eee6dc; padding: 0; }
.template-gjp .tab-button { flex: 1; border-right: 1px solid var(--line); }
.template-gjp .tab-button.is-active { background: #fff; }
.template-gjp .history-table thead { background: #f2eadf; color: #6d5844; }

/* 06 · jbp: type-led turquoise glyph bar and asymmetric gallery grid. */
.template-jbp { --radius: 5px; --line: #cce3e1; }
.template-jbp .site-header { min-height: 100px; border-bottom: 0; }
.template-jbp .brand-name { color: var(--accent); }
.template-jbp .module-glyphbar { background: #e0f1ee; border-top: 5px solid var(--accent); }
.template-jbp .glyph-logo { width: 110px; height: 85px; font-size: 32px; }
.template-jbp .site-app { grid-template-columns: 1.25fr 1fr; }
.template-jbp .module-glyphbar, .template-jbp .module-draw, .template-jbp .module-history, .template-jbp .module-notices { grid-column: 1 / -1; }
.template-jbp .module-gallery { grid-column: 1; grid-row: 3 / span 2; }
.template-jbp .module-history { grid-column: 2; grid-row: 3; }
.template-jbp .module-articles { grid-column: 2; }
.template-jbp .gallery-grid { grid-template-columns: 1fr 1fr; }
.template-jbp .module-header { border-left: 5px solid var(--accent); }

/* 07 · bxj: red bulletin board, compact borders and striped archive rows. */
.template-bxj { --radius: 2px; --line: #e8d6d5; --ink: #47302f; }
.template-bxj .site-header { background: var(--accent); color: #fff; padding: 20px 27px; margin: 0 -28px; min-height: 110px; }
.template-bxj .brand-description { color: #ffe5e2; }
.template-bxj .brand-mark { background: #fff; padding: 6px; border-radius: 6px; }
.template-bxj .hero-mark, .template-bxj .site-code-label { display: none; }
.template-bxj .module-hero { background: #fff5f1; border: 1px solid #e9bdb7; min-height: 90px; padding: 19px 25px; }
.template-bxj .hero-copy h1 { font-family: "Songti SC", SimSun, serif; font-size: 27px; margin: 0; }
.template-bxj .hero-copy .eyebrow { display: none; }
.template-bxj .module-header { padding: 13px 20px; background: #fcf0ed; border-top: 3px solid var(--accent); }
.template-bxj .module-header h2 { font-size: 19px; }
.template-bxj .module-kicker { display: none; }
.template-bxj .history-table tbody tr:nth-child(even) { background: #fff9f6; }
.template-bxj .gallery-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }

/* 08 · zyh: coral editorial toolbar with gallery leading the right rail. */
.template-zyh { --radius: 14px; --line: #eeded8; --ink: #4b3530; }
.template-zyh .site-header { min-height: 95px; }
.template-zyh .brand-mark { border-radius: 50%; background: #f7e5dc; padding: 5px; }
.template-zyh .site-app { grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); }
.template-zyh .module-toolbar { grid-column: 1 / -1; background: #f8e2d9; border: 0; border-radius: 12px 12px 32px 12px; }
.template-zyh .module-notices { grid-column: 1; grid-row: 2; }
.template-zyh .module-gallery { grid-column: 2; grid-row: 2 / span 2; }
.template-zyh .module-draw { grid-column: 1; }
.template-zyh .module-articles, .template-zyh .module-history { grid-column: 1 / -1; }
.template-zyh .gallery-grid { grid-template-columns: 1fr 1fr 1fr; }
.template-zyh .module-draw .module-body { padding: 12px; }
.template-zyh .draw-card { padding: 12px; }
.template-zyh .number-list { gap: 4px; }
.template-zyh .ball { width: 29px; height: 29px; font-size: 15px; }
.template-zyh .ball.is-hidden { font-size: 8px; }
.template-zyh .notice-item { display: block; }
.template-zyh .module-header .module-kicker { border-radius: 20px; display: inline-block; background: #fff0e9; padding: 2px 9px; }

/* 09 · dyj: olive editorial masthead with text-first publishing blocks. */
.template-dyj { --radius: 3px; --line: #e1e3cf; --ink: #3c422d; --muted: #6b715b; }
.template-dyj .site-header { border-bottom: 2px solid var(--accent); }
.template-dyj .brand-name { font-family: "Songti SC", SimSun, serif; }
.template-dyj .module-banner { background: #e7e8d5; border-bottom: 8px solid var(--accent); }
.template-dyj .banner-copy h2 { font-family: "Songti SC", SimSun, serif; font-size: 38px; }
.template-dyj .article-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
.template-dyj .article-item { display: block; border-right: 1px solid var(--line); padding-right: 20px; }
.template-dyj .module-articles .module-header { background: #f5f5e9; }
.template-dyj .module-header h2 { font-family: "Songti SC", SimSun, serif; font-size: 25px; }
.template-dyj .module-header { border-bottom-style: double; border-bottom-width: 3px; }

/* 10 · d3b: compact sage directory strip and linked bulletin hierarchy. */
.template-d3b { max-width: 1090px; --radius: 2px; --line: #d4dfd3; }
.template-d3b .site-header { min-height: 90px; background: #eaf0e7; margin: 0 -28px; padding: 15px 28px; }
.template-d3b .brand-name { font-size: 25px; letter-spacing: .13em; }
.template-d3b .module-links .module-header { padding: 13px 20px; background: var(--accent); color: #fff; }
.template-d3b .module-links .module-kicker, .template-d3b .module-links .module-header p { display: none; }
.template-d3b .module-links .module-header h2 { font-size: 18px; }
.template-d3b .module-links .module-body { padding: 0; }
.template-d3b .compact-site-links .site-list-grid { gap: 0; grid-template-columns: repeat(4,minmax(0,1fr)); }
.template-d3b .compact-site-links .site-directory-item { border-radius: 0; border-width: 0 1px 1px 0; padding: 13px 18px; }
.template-d3b .compact-site-links .directory-mark, .template-d3b .compact-site-links small { display: none; }
.template-d3b .module-header { padding: 16px 22px; border-left: 4px solid var(--accent); }
.template-d3b .article-item h3::before { content: "—"; color: var(--accent); margin-right: 10px; }

/* 11 · yqs: purple library with gallery and plain-text reading columns. */
.template-yqs { --radius: 18px; --line: #e2dced; --ink: #3b334c; --muted: #746982; }
.template-yqs .site-header { min-height: 115px; }
.template-yqs .brand-name { color: var(--accent); }
.template-yqs .site-app { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.template-yqs .module-hero { grid-column: 1 / -1; background: #eee7f6; border-radius: 24px 8px 24px 8px; }
.template-yqs .hero-mark { border-radius: 50%; }
.template-yqs .module-gallery { grid-column: 1; }
.template-yqs .module-articles { grid-column: 2; }
.template-yqs .module-draw, .template-yqs .module-history, .template-yqs .module-notices { grid-column: 1 / -1; }
.template-yqs .gallery-grid { grid-template-columns: 1fr 1fr; }
.template-yqs .article-item { display: block; }
.template-yqs .module-header .module-kicker { color: #9176b0; }
.template-yqs .module-header { background: #faf7fd; }

/* 12 · cbw: amber horizontal billboard and paired result cards. */
.template-cbw { --radius: 5px; --line: #e8ddc6; --ink: #453a29; --muted: #7b6b51; }
.template-cbw .site-header { border-top: 6px solid var(--accent); }
.template-cbw .module-banner { background: #f1e4c5; grid-template-columns: 1.4fr 1fr; min-height: 170px; }
.template-cbw .banner-copy h2 { font-size: 40px; }
.template-cbw .draw-card { border-top: 4px solid #c99945; background: #fffdf8; }
.template-cbw .draw-card-alt { border-top-color: #94642d; }
.template-cbw .module-draw .module-header { background: #fff6df; }
.template-cbw .module-gallery .gallery-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
.template-cbw .history-table thead { background: #faf0d9; color: #70552e; }

/* 13 · gabjw: original scenic teal banner and table-like directory. */
.template-gabjw { --radius: 3px; --line: #ccdfdd; --ink: #234c4a; --muted: #547773; }
.template-gabjw .site-header { border-bottom: 4px solid var(--accent); }
.template-gabjw .brand-name { font-family: "Songti SC", SimSun, serif; font-size: 31px; }
.template-gabjw .module-hero { min-height: 260px; background: #daeeea url('/assets/site-landscape.svg') center bottom / cover no-repeat; border: 0; align-items: flex-start; padding: 32px; }
.template-gabjw .hero-mark { display: none; }
.template-gabjw .hero-copy { max-width: 600px; }
.template-gabjw .hero-copy h1 { font-family: "Songti SC", SimSun, serif; }
.template-gabjw .hero-link { background: rgba(255,255,255,.7); padding: 7px 10px; border: 0; }
.template-gabjw .module-directory .module-body { padding: 17px 20px; }
.template-gabjw .site-directory-list .site-list-grid { gap: 0; border: 1px solid var(--line); }
.template-gabjw .site-directory-list .site-directory-item { border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: #f4faf8; }
.template-gabjw .directory-mark { display: none; }
.template-gabjw .site-directory-list small { display: none; }
.template-gabjw .history-table { border: 2px solid #b7d3cd; }
.template-gabjw .history-table td, .template-gabjw .history-table th { border: 1px solid #cde1dc; }
.template-gabjw .history-table thead { background: #dceee8; }

/* 14 · tsp: cream ledger with anchor index, double panels and ruled tables. */
.template-tsp { --radius: 1px; --line: #e1d6be; --ink: #4c412f; --muted: #7c705b; }
.template-tsp .site-header { background: #f3eddf; margin: 0 -28px; padding: 21px 28px; border-bottom: 4px double var(--accent); }
.template-tsp .brand-name { font-family: "Songti SC", SimSun, serif; font-size: 30px; }
.template-tsp .module-anchorbar { padding: 17px 24px; background: #fffaf0; }
.template-tsp .anchorbar-title h2 { font-size: 20px; }
.template-tsp .anchor-links a { border: 0; border-left: 1px solid #d1b888; border-radius: 0; background: none; padding: 5px 22px; }
.template-tsp .module-draw .module-header { border-bottom: 3px double var(--line); }
.template-tsp .draw-card { border-radius: 0; background: #fffdf7; }
.template-tsp .history-table th, .template-tsp .history-table td { border-right: 1px solid var(--line); }
.template-tsp .history-table thead { background: #f5efde; color: #6e5a38; }
.template-tsp .module-header h2 { font-family: "Songti SC", SimSun, serif; }

/* 15 · gxh: green portal, directory first and editorial result/sidebar grid. */
.template-gxh { --radius: 4px; --line: #d2e1d2; max-width: 1220px; }
.template-gxh .site-header { border-bottom: 5px solid var(--accent); min-height: 106px; }
.template-gxh .brand-name { font-size: 32px; color: var(--accent); }
.template-gxh .site-app { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 17px; }
.template-gxh .module-directory { grid-column: 1 / -1; }
.template-gxh .module-directory .module-header { display: none; }
.template-gxh .module-directory .module-body { padding: 16px; background: #edf4e9; }
.template-gxh .directory-tools { margin-bottom: 12px; }
.template-gxh .site-directory-list small { display: none; }
.template-gxh .site-list-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.template-gxh .module-hero { grid-column: 1 / -1; min-height: 95px; padding: 17px 25px; border-radius: 0; background: var(--accent); color: #fff; }
.template-gxh .hero-copy h1 { font-size: 27px; margin: 0; }
.template-gxh .hero-mark, .template-gxh .site-code-label, .template-gxh .hero-copy .eyebrow { display: none; }
.template-gxh .hero-copy p { color: #e4f0dd; font-size: 12px; }
.template-gxh .module-draw { grid-column: 1; }
.template-gxh .module-notices { grid-column: 2; }
.template-gxh .module-history, .template-gxh .module-gallery, .template-gxh .module-articles { grid-column: 1 / -1; }
.template-gxh .module-header { padding: 13px 20px; background: #eff6e9; border-top: 3px solid var(--accent); }
.template-gxh .module-header h2 { font-size: 20px; }
.template-gxh .module-kicker { display: none; }

/* 16 · fhw: silver portal, centered print masthead and mixed-width panels. */
.template-fhw { --radius: 2px; --line: #d9dfe4; --ink: #34414c; --muted: #6a7884; max-width: 1190px; }
.template-fhw .site-header { min-height: 134px; border-bottom: 6px double #919ba5; }
.template-fhw .brand-name { font-size: 36px; font-family: "Songti SC", SimSun, serif; letter-spacing: .13em; }
.template-fhw .brand-mark { filter: grayscale(1); width: 51px; height: 51px; }
.template-fhw .module-hero { background: linear-gradient(120deg, #f8f9fa, #dfe5ea); min-height: 150px; padding: 26px 33px; }
.template-fhw .hero-mark { display: none; }
.template-fhw .hero-copy h1 { font-family: "Songti SC", SimSun, serif; font-size: 32px; }
.template-fhw .site-app { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.template-fhw .module-hero, .template-fhw .module-directory, .template-fhw .module-history, .template-fhw .module-gallery { grid-column: 1 / -1; }
.template-fhw .module-notices { grid-column: 1; }
.template-fhw .module-draw { grid-column: 2; grid-row: 3 / span 2; }
.template-fhw .module-articles { grid-column: 1; }
.template-fhw .module-header { padding: 14px 21px; background: #f0f3f5; border-top: 2px solid #96a1ab; }
.template-fhw .module-header h2 { font-size: 20px; }
.template-fhw .module-kicker { display: none; }
.template-fhw .site-directory-list .site-list-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; }
.template-fhw .site-directory-list .site-directory-item { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); }
.template-fhw .directory-mark { border-radius: 0; background: #e8edf0; }
.template-fhw .ball { width: 37px; height: 37px; }
.template-fhw .ball.is-hidden { font-size: 9px; }

.recent-caption { font-size: 13px; color: var(--accent); margin-bottom: 16px; }
/* Additional inherited / per-site banner, without disturbing template order. */
.site-app > .compact-banners { grid-column: 1 / -1; display: block; min-height: 0; background: #fff; border: 1px solid var(--line); }
.compact-banners .module-header { background: #f7f9f7; }
.compact-banners .banner-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
.site-app > .compact-banners .module-state { padding: 16px; }
@media (max-width: 600px) { .compact-banners .banner-list { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 359px) {
    .draw-card .number-list { gap: 4px; }
    .draw-card .number-list .ball { width: 27px; height: 27px; font-size: 15px; }
    .draw-card .number-list .ball.is-hidden { font-size: 8px; }
}

/* Hub · search-first neutral catalogue. All entries are server-provided URLs. */
.template-dh { max-width: 1150px; --radius: 17px; }
.template-dh .site-header { border-bottom: 0; min-height: 110px; }
.template-dh .module-hero { background: #e6eee9; padding: 42px; min-height: 240px; }
.template-dh .hero-mark { width: 105px; height: 105px; }
.template-dh .hero-copy h1 { font-size: 40px; }
.template-dh .module-directory .module-header { padding-bottom: 0; border: 0; }
.template-dh .module-directory .site-list-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.template-dh .site-directory-item { padding: 22px 15px; }
.template-dh .directory-mark { width: 43px; height: 46px; flex-basis: 43px; font-size: 25px; }
.template-dh .site-directory-item strong { font-size: 16px; }
.template-dh .site-directory-item small { max-width: 125px; }

@keyframes soft-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@media (min-width: 1000px) {
    .draw-grid:not(.is-double) .draw-card { display: grid; grid-template-columns: 1fr 1.8fr; column-gap: 30px; }
    .draw-grid:not(.is-double) .draw-card-head { grid-column: 1; }
    .draw-grid:not(.is-double) .draw-issue { grid-column: 1; margin: 8px 0; }
    .draw-grid:not(.is-double) .number-list { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin: 0; }
    .draw-grid:not(.is-double) .draw-meta, .draw-grid:not(.is-double) .next-record, .draw-grid:not(.is-double) .draw-note, .draw-grid:not(.is-double) .reveal-progress, .draw-grid:not(.is-double) .draw-updated { grid-column: 1 / -1; }
    .template-118tt .draw-grid .draw-card, .template-ala .draw-grid .draw-card, .template-zyh .draw-grid .draw-card, .template-gxh .draw-grid .draw-card, .template-fhw .draw-grid .draw-card, .template-498z .draw-grid .draw-card { display: block; }
    .template-118tt .number-list, .template-ala .number-list, .template-zyh .number-list, .template-gxh .number-list, .template-fhw .number-list, .template-498z .number-list { margin: 16px 0 !important; }
}
@media (max-width: 1000px) {
    .site-shell { padding: 0 22px; }
    .site-list-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .gallery-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .brand-description { max-width: 450px; }
    .hero-mark { width: 65px; height: 65px; }
    .module-hero { padding: 27px; gap: 17px; }
    .hero-link { display: none; }
    .draw-card { padding: 16px; }
    .number-list { gap: 6px; }
    .ball { width: 38px; height: 38px; font-size: 18px; }
    .ball.is-hidden { font-size: 9px; }
    .template-498z .site-header, .template-gjp .site-header, .template-bxj .site-header, .template-d3b .site-header, .template-tsp .site-header { margin: 0 -22px; }
    .template-118tt .site-app, .template-ala .site-app, .template-zyh .site-app, .template-fhw .site-app { grid-template-columns: minmax(0,1fr); }
    .template-118tt .site-app > .module, .template-ala .site-app > .module, .template-zyh .site-app > .module, .template-fhw .site-app > .module { grid-column: 1; grid-row: auto; }
    .template-118tt .module-recent { order: 0; }
    .template-118tt .ball, .template-zyh .ball, .template-fhw .ball { width: 43px; height: 43px; }
    .template-zyh .number-list { gap: 9px; }
    .template-zyh .ball.is-hidden { font-size: 10px; }
    .template-jbp .site-app { grid-template-columns: minmax(0,1fr); }
    .template-jbp .site-app > .module { grid-column: 1; grid-row: auto; }
    .template-jbp .gallery-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .template-gxh .site-app { grid-template-columns: minmax(0,1fr); }
    .template-gxh .site-app > .module { grid-column: 1; grid-row: auto; }
    .template-gjp .site-header { padding-left: 22px; justify-content: flex-start; }
    .template-dh .module-directory .site-list-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 760px) {
    :root { font-size: 16px; }
    .site-shell { padding: 0 16px; }
    .site-header { min-height: 88px; gap: 14px; }
    .brand-name { font-size: 22px; letter-spacing: .04em; }
    .brand-mark { width: 37px; height: 37px; }
    .brand-link { gap: 10px; }
    .brand-description { font-size: 11px; max-width: 320px; line-height: 1.6; }
    .site-header .icon-button { min-width: 78px; min-height: 40px; font-size: 12px; padding: 6px 9px; }
    .site-status { font-size: 11px; align-items: flex-start; }
    .site-section-nav { gap: 6px; padding: 6px 0 16px; }
    .site-section-nav a { padding: 6px 12px; font-size: 13px; }
    .site-app { gap: 16px; }
    .module { scroll-margin-top: 18px; }
    .module-header { padding: 18px 18px 15px; }
    .module-header h2 { font-size: 20px; }
    .module-body { padding: 18px; }
    .module-hero { padding: 25px; min-height: 160px; }
    .hero-copy h1 { font-size: 28px; letter-spacing: .05em; }
    .hero-copy p { font-size: 13px; }
    .hero-mark { display: none; }
    .draw-grid.is-double { grid-template-columns: minmax(0,1fr); }
    .number-list { gap: 10px; }
    .ball { width: 43px; height: 43px; font-size: 20px; }
    .ball.is-hidden { font-size: 10px; }
    .draw-tab, .history-tab { padding: 7px 11px; font-size: 13px; }
    .gallery-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
    .module-banner { grid-template-columns: minmax(0,1fr); }
    .banner-copy { padding: 26px 25px 10px; }
    .banner-copy h2 { font-size: 32px; }
    .banner-items { padding: 20px 25px; }
    .gallery-card-copy { padding: 10px; }
    .site-list-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .site-directory-item { padding: 13px 10px; }
    .directory-mark { flex-basis: 29px; width: 29px; height: 32px; font-size: 18px; }
    .directory-arrow { display: none; }
    .site-directory-item small { max-width: 145px; }
    .directory-tools { align-items: flex-end; }
    .navigation-inner { padding: 18px; }
    .module-glyphbar, .module-toolbar, .module-anchorbar { padding: 20px; flex-wrap: wrap; }
    .glyph-links, .toolbar-actions, .anchor-links { margin-left: 0; }
    .toolbar-actions, .anchor-links { width: 100%; gap: 8px; }
    .toolbar-link, .anchor-links a { flex: 1; text-align: center; white-space: nowrap; padding: 7px 9px; }
    .tabs-heading { padding: 18px 18px 0; }
    .tab-list { padding: 0 18px; }
    .tab-panel { padding: 18px; }
    .tab-button { padding: 10px 20px; }
    .article-item, .notice-item { gap: 10px; }
    .article-item h3, .notice-item h3 { font-size: 16px; }
    .module-state { padding: 24px 14px; }
    .template-498z .site-header, .template-gjp .site-header, .template-bxj .site-header, .template-d3b .site-header, .template-tsp .site-header { margin: 0 -16px; padding-left: 20px; padding-right: 20px; }
    .template-498z .brand-description { display: none; }
    .template-498z .site-header { min-height: 76px; }
    .template-498z .brand-name { font-size: 25px; }
    .template-498z .module-gallery .module-body { padding-top: 0; }
    .template-118tt .banner-copy { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.2); margin: 0 24px; padding: 22px 0; }
    .template-118tt .banner-copy h2 { font-size: 38px; }
    .template-118tt .brand-name { font-size: 27px; }
    .template-tt .article-list, .template-dyj .article-list { grid-template-columns: 1fr; }
    .template-tt .draw-card-head { margin: -16px -16px 18px; }
    .template-gjp .site-header { min-height: 128px; display: block; padding: 22px 20px; }
    .template-gjp .site-header-actions { position: static; margin-top: 10px; }
    .template-gjp .brand-name { font-size: 29px; }
    .template-gjp .brand-description { max-width: 100%; }
    .template-jbp .gallery-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .template-jbp .glyph-logo { width: 79px; height: 70px; font-size: 26px; }
    .template-jbp .module-glyphbar h2 { font-size: 19px; }
    .template-bxj .gallery-grid, .template-cbw .module-gallery .gallery-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .template-d3b .compact-site-links .site-list-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .template-yqs .site-app { grid-template-columns: minmax(0,1fr); }
    .template-yqs .site-app > .module { grid-column: 1; grid-row: auto; }
    .template-yqs .gallery-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .template-cbw .module-banner { grid-template-columns: minmax(0,1fr); }
    .template-cbw .banner-copy h2 { font-size: 32px; }
    .template-gabjw .module-hero { min-height: 250px; padding: 26px; }
    .template-gabjw .hero-copy h1 { font-size: 31px; }
    .template-gxh .site-list-grid, .template-fhw .site-directory-list .site-list-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .template-gxh .brand-name { font-size: 28px; }
    .template-fhw .site-header { min-height: 112px; }
    .template-fhw .brand-name { font-size: 28px; }
    .template-dh .module-hero { min-height: 180px; padding: 28px; }
    .template-dh .hero-copy h1 { font-size: 32px; }
    .template-dh .module-directory .site-list-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .template-dh .site-directory-item { padding: 18px 12px; }
    .template-dh .site-directory-item small { max-width: 155px; }
}
@media (max-width: 440px) {
    .site-shell { padding: 0 12px; }
    .brand-description { max-width: 210px; }
    .brand-name { font-size: 20px; }
    .brand-mark { width: 32px; height: 32px; }
    .module-header { padding: 16px; }
    .module-body { padding: 16px; }
    .module-header p { font-size: 12px; }
    .filter-form { gap: 9px; }
    .filter-form label { flex: 1 1 calc(50% - 9px); }
    .filter-form input, .filter-form select { width: 100%; min-width: 0; max-width: 100%; }
    .filter-form button { flex: 1 1 calc(50% - 9px); }
    .draw-card { padding: 13px; }
    .number-list { gap: 5px; min-height: 40px; }
    .ball, .template-118tt .ball, .template-zyh .ball, .template-fhw .ball { width: 32px; height: 32px; font-size: 17px; }
    .ball.is-hidden, .template-118tt .ball.is-hidden, .template-zyh .ball.is-hidden, .template-fhw .ball.is-hidden { font-size: 9px; }
    .ball:last-child { margin-left: 5px; }
    .ball:last-child::before { left: -10px; font-size: 11px; }
    .next-record { gap: 8px; }
    .next-record time { margin-left: 0; }
    .draw-card-head h3 { font-size: 18px; }
    .gallery-grid, .template-498z .gallery-grid, .template-jbp .gallery-grid, .template-bxj .gallery-grid, .template-zyh .gallery-grid, .template-yqs .gallery-grid, .template-cbw .module-gallery .gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
    .gallery-card-copy strong { font-size: 14px; }
    .site-list-grid { grid-template-columns: minmax(0,1fr); }
    .site-directory-item small { max-width: 230px; }
    .directory-tools { gap: 10px; }
    .directory-tools button { font-size: 12px; padding: 9px 10px; }
    .recent-list li { display: block; }
    .recent-list li > div:first-child { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
    .recent-list .history-balls { gap: 7px; }
    .article-item, .notice-item { display: block; }
    .text-button { margin-top: 6px; }
    .banner-item { display: block; }
    .banner-item img { width: 100%; max-height: 210px; margin-bottom: 10px; }
    .site-footer { padding-bottom: 25px; }
    .template-498z .site-header, .template-gjp .site-header, .template-bxj .site-header, .template-d3b .site-header, .template-tsp .site-header { margin: 0 -12px; padding-left: 16px; padding-right: 16px; }
    .template-498z .brand-name { font-size: 24px; }
    .template-498z .module-hero { padding: 16px 20px; }
    .template-tt .draw-card-head { margin: -13px -13px 16px; }
    .template-gxh .site-list-grid, .template-fhw .site-directory-list .site-list-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .template-gxh .directory-mark, .template-fhw .directory-mark { display: none; }
    .template-fhw .site-directory-list small { display: none; }
    .template-tsp .anchor-links a { padding: 4px 10px; }
    .template-dh .module-directory .site-list-grid { gap: 10px; }
    .template-dh .site-directory-item { display: block; padding: 16px 12px; }
    .template-dh .directory-mark { margin-bottom: 10px; }
    .template-dh .site-directory-item strong { font-size: 14px; }
    .template-dh .site-directory-item small { max-width: 110px; }
    .modal-backdrop { padding: 16px 10px; }
    .modal-card { padding: 20px; border-radius: 12px; }
    .modal-header h2 { font-size: 20px; }
    .modal-body-text { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
    .site-header-actions, .site-navigation, .site-section-nav, .site-bottom-nav, .filter-area, .pager, .modal-root, .text-button, .hero-link { display: none !important; }
    body, .site-shell { padding: 0; max-width: 100%; }
    .site-app { display: block !important; }
    .module { break-inside: avoid; box-shadow: none; margin-bottom: 20px; }
}
