:root {
    --bg: #f7f5ef;
    --text: #121212;
    --muted: #555;
    --rule: #1f1f1f;
    --link: #111;
    color-scheme: light;
}

:root[data-theme="dark"] {
    --bg: #151617;
    --text: #ececec;
    --muted: #bababa;
    --rule: #8f8f8f;
    --link: #f5f5f5;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Georgia", "Times New Roman", serif;
    line-height: 1.7;
}

html {
    scroll-behavior: smooth;
}

.container {
    width: min(860px, 100% - 2rem);
    margin: 0 auto;
    padding: 1.25rem 0 3rem;
}

.site-header {
    position: relative;
    z-index: 80;
    border-top: 3px double var(--rule);
    border-bottom: 3px double var(--rule);
    margin-bottom: 1.6rem;
    padding: 0.85rem 0 0.7rem;
    text-align: center;
}

.lang-switch {
    display: flex;
    width: 100%;
    justify-content: flex-end;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.6rem;
    padding: 0 0.1rem 0.55rem;
    border-bottom: 1px solid var(--rule);
}

.lang-pill {
    width: 2.05rem;
    height: 2.05rem;
    border: 1px solid #111;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: #fff;
}

.lang-pill.active {
    background: #111;
    color: #fff;
}

.theme-toggle {
    width: 2.85rem;
    height: 1.7rem;
    border: 1px solid #111;
    border-radius: 999px;
    background: #f1f1f1;
    padding: 0.14rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.theme-toggle-thumb {
    width: 1.28rem;
    height: 1.28rem;
    border-radius: 50%;
    background: #111;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.theme-toggle[aria-pressed="true"] {
    background: #111;
}

.theme-toggle[aria-pressed="true"] .theme-toggle-thumb {
    background: #fff;
    transform: translateX(1.1rem);
}

.style-mode-toggle {
    width: 2.85rem;
    height: 1.7rem;
    border: 1px solid #111;
    border-radius: 999px;
    background: #fff;
    color: #111;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.style-mode-toggle-label {
    display: inline-flex;
    width: 1.22rem;
    height: 1.22rem;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: #111;
    color: #fff;
}

.style-mode-toggle[aria-pressed="true"] {
    background: #111;
    color: #fff;
}

.style-mode-toggle[aria-pressed="true"] .style-mode-toggle-label {
    background: #fff;
    color: #111;
}

.music-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    padding-left: 0.15rem;
}

.music-toggle {
    width: 1.95rem;
    height: 1.95rem;
    border: 1px solid #111;
    border-radius: 50%;
    background: #fff;
    color: #111;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.music-toggle-icon {
    position: relative;
    display: block;
    width: 0.74rem;
    height: 0.74rem;
    line-height: 1;
}

.music-toggle[aria-pressed="false"] .music-toggle-icon::before {
    content: "";
    position: absolute;
    top: 0.08rem;
    left: 0.17rem;
    width: 0;
    height: 0;
    border-top: 0.29rem solid transparent;
    border-bottom: 0.29rem solid transparent;
    border-left: 0.46rem solid currentColor;
}

.music-toggle[aria-pressed="true"] .music-toggle-icon::before,
.music-toggle[aria-pressed="true"] .music-toggle-icon::after {
    content: "";
    position: absolute;
    top: 0.08rem;
    width: 0.16rem;
    height: 0.58rem;
    border-radius: 1px;
    background: currentColor;
}

.music-toggle[aria-pressed="true"] .music-toggle-icon::before {
    left: 0.14rem;
}

.music-toggle[aria-pressed="true"] .music-toggle-icon::after {
    right: 0.14rem;
}

.music-volume {
    -webkit-appearance: none;
    appearance: none;
    width: 4.9rem;
    height: 1.1rem;
    background: transparent;
}

.music-volume:focus {
    outline: none;
}

.music-volume::-webkit-slider-runnable-track {
    height: 2px;
    background: #858585;
    border-radius: 999px;
}

.music-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #111;
    margin-top: -4px;
}

.music-volume::-moz-range-track {
    height: 2px;
    background: #858585;
    border-radius: 999px;
}

.music-volume::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 50%;
    background: #111;
}

#bgm-player {
    position: absolute;
    left: -9999px;
    top: 0;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
}

.site-title {
    margin: 0 0 0.25rem;
    line-height: 1;
}

.site-title-logo {
    display: block;
    width: min(100%, 638px);
    height: auto;
    margin: 0 auto;
}

.logo-dark {
    display: none;
}

.masthead-row {
    display: grid;
    grid-template-columns: 20fr 60fr 20fr;
    align-items: center;
    gap: 1rem;
    margin-top: 0.7rem;
}

.masthead-box {
    border: 1px solid #111;
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url("../img/cookie.png") center/cover no-repeat;
    padding: 0.9rem 0.8rem;
    min-height: 108px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.masthead-box p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.3;
    font-style: italic;
}

.masthead-main {
    padding: 0 0.2rem;
}

.today-box {
    text-align: left;
    padding: 0.9rem 0.8rem;
    border: 1px solid #111;
    background: #fdfcf8;
    min-height: 108px;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.today-box-title {
    margin: 0;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    font-size: 0.72rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    font-weight: 700;
    border: 1px solid #111;
    padding: 0.12rem 0.4rem;
    background: #fff;
}

.today-box-content {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.45;
    font-variant-numeric: tabular-nums;
}

.masthead-meta {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.masthead-meta-left {
    text-align: left;
}

.masthead-single-rule {
    margin-top: 0.7rem;
    border-top: 1px solid var(--rule);
}

.top-links-wrap {
    margin: 0;
    position: relative;
    z-index: 90;
}

.top-links-wrap-centered {
    text-align: center;
    z-index: 30;
}

.top-menu-toggle {
    display: inline-flex;
    border: 1px solid #111;
    background: #fff;
    color: #111;
    min-width: 2.2rem;
    height: 2rem;
    border-radius: 0.35rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.05rem;
    line-height: 1;
}

.top-links {
    margin: 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.top-links.menu-collapsible {
    display: none;
    position: absolute;
    z-index: 100;
    left: 0;
    top: calc(100% + 0.45rem);
    transform: none;
    width: min(92vw, 420px);
    padding: 0.65rem 0.8rem;
    border: 1px solid #111;
    border-radius: 0.5rem;
    background: var(--bg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    text-align: center;
    flex-direction: column;
    gap: 0.3rem;
}

.top-links.menu-collapsible.is-open {
    display: flex;
}

.top-links-wrap-centered .top-links.menu-collapsible {
    left: 50%;
    transform: translateX(-50%);
}

.top-links a + a::before {
    content: "·";
    margin-right: 0.4rem;
}

.edition-line {
    margin: 0;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: left;
    line-height: 1.2;
}

.newsletter-signup {
    border: 1px solid #111;
    background: #fff;
    padding: 0.5rem 0.65rem;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.newsletter-signup-text {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.3;
    flex: 1 1 20rem;
}

.newsletter-signup-form {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: nowrap;
    margin: 0;
    flex: 0 1 auto;
}

.newsletter-signup-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.newsletter-signup-input {
    min-width: 13.5rem;
    border: 1px solid #111;
    border-radius: 0;
    padding: 0.32rem 0.5rem;
    height: 2rem;
    font: inherit;
    line-height: 1.2;
    color: var(--text);
    background: #fff;
}

.newsletter-signup-button {
    border: 1px solid #111;
    background: #111;
    color: #fff;
    border-radius: 0;
    padding: 0.28rem 0.72rem;
    height: 2rem;
    font: inherit;
    line-height: 1.1;
    cursor: pointer;
    white-space: nowrap;
}

.newsletter-signup-button:hover,
.newsletter-signup-button:focus-visible {
    background: #fff;
    color: #111;
}

.newsletter-signup-button:disabled {
    opacity: 0.7;
    cursor: default;
}

.newsletter-signup-message {
    margin: 0.15rem 0 0;
    font-size: 0.86rem;
    flex: 1 0 100%;
}

.newsletter-signup-message:empty {
    display: none;
}

.newsletter-signup-message.is-success {
    color: #0f6a0f;
}

.newsletter-signup-message.is-error {
    color: #8f1616;
}

.market-ticker {
    border: 1px solid #111;
    border-radius: 0;
    margin: 0 0 1.1rem;
    padding: 0.55rem 0.6rem 0.65rem;
    background: #fff;
}

.container-strip {
    display: flex;
    align-items: stretch;
    margin: -0.55rem -0.6rem 0.6rem;
}

.container-strip-label {
    display: inline-flex;
    align-items: center;
    background: #111;
    color: #fff;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.26rem 0.55rem;
}

.container-strip-spacer {
    flex: 1;
    background: #d9d9d9;
    border-left: 1px solid #bdbdbd;
}

.container-strip-toggle {
    width: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-left: 1px solid #bdbdbd;
    background: #d9d9d9;
    color: #111;
    cursor: pointer;
    padding: 0;
}

.container-strip-toggle:hover,
.container-strip-toggle:focus-visible {
    background: #cfcfcf;
}

.container-strip-icon {
    font-size: 0.92rem;
    line-height: 1;
}

.market-ticker-summary {
    border: 1px solid #d5d0c5;
    padding: 0.45rem 0.5rem;
    background: #fcfbf8;
}

.market-ticker-loading {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.market-ticker-details {
    margin-top: 0.5rem;
    border: 1px solid #d5d0c5;
    background: #fcfbf8;
    padding: 0.5rem;
}

.ticker-track {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.05rem;
    align-items: center;
    justify-content: flex-start;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.ticker-item strong {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
}

.ticker-value {
    font-variant-numeric: tabular-nums;
}

.ticker-arrow {
    font-weight: 700;
}

.ticker-item.is-up .ticker-arrow {
    color: #0f6a0f;
}

.ticker-item.is-down .ticker-arrow {
    color: #8f1616;
}

.ticker-item.is-flat .ticker-arrow {
    color: #555;
}

.market-ticker-updated {
    margin: 0 0 0.38rem;
    font-size: 0.82rem;
    color: #4a4a4a;
}

.market-ticker-table-wrap {
    overflow-x: auto;
}

.market-ticker-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
    background: #fff;
}

.market-ticker-table th,
.market-ticker-table td {
    border: 1px solid #d4cec2;
    padding: 0.34rem 0.4rem;
    text-align: left;
    vertical-align: middle;
    font-variant-numeric: tabular-nums;
}

.market-ticker-table th {
    background: #f2efe8;
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.market-ticker-note {
    margin: 0.42rem 0 0;
    font-size: 0.82rem;
    color: #4f4f4f;
    font-style: italic;
}

.video-of-day-summary {
    border: 0;
    padding: 0;
    background: transparent;
}

.video-of-day-title {
    margin: 0.3rem 0;
}

.video-of-day-details {
    margin-top: 0.35rem;
    border: 0;
    background: transparent;
    padding: 0;
}

.video-of-day-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #0f0f0f;
}

.video-of-day-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-of-day-meta {
    margin: 0.45rem 0 0;
    font-size: 0.84rem;
    color: #4f4f4f;
}

.video-of-day-link {
    margin: 0.34rem 0 0;
    font-size: 0.84rem;
}

.meal-of-day-summary {
    border: 0;
    padding: 0;
    background: transparent;
}

.meal-of-day-title {
    margin: 0.3rem 0;
}

.meal-of-day-details {
    margin-top: 0.35rem;
    border: 0;
    background: transparent;
    padding: 0;
}

.meal-of-day-image-wrap {
    margin: 0.1rem 0 0.6rem;
}

.meal-of-day-image {
    display: block;
    width: 100%;
    max-width: 680px;
    height: auto;
    border: 1px solid #d5d0c5;
    background: #fcfbf8;
}

.meal-of-day-subtitle {
    margin: 0.6rem 0 0.25rem;
    font-size: 1rem;
}

.meal-of-day-list {
    margin: 0.2rem 0 0.55rem;
    padding-left: 1.15rem;
}

.meal-of-day-list li {
    margin: 0.18rem 0;
}

.meal-of-day-link {
    margin: 0.4rem 0 0;
    font-size: 0.84rem;
}

.daily-brief-title {
    margin: 0.3rem 0;
    font-size: clamp(1.02rem, 2.8vw, 1.2rem);
    line-height: 1.4;
}

.category-block {
    margin: 1.5rem 0;
}

.category-filter {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    justify-self: auto;
    margin-left: auto;
}

.category-filter label {
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.category-filter select {
    min-width: 14rem;
    border: 1px solid #111;
    border-radius: 0;
    background: #fff;
    color: var(--text);
    font: inherit;
    padding: 0.42rem 0.5rem;
}

.category-block h2 {
    margin-bottom: 0.45rem;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 0.3rem;
    font-size: clamp(1.2rem, 3vw, 1.45rem);
}

.article-card {
    position: relative;
    border: 1px solid #111;
    border-radius: 0;
    padding: 0.95rem 1rem 0.85rem;
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.article-card .container-strip {
    margin: -0.95rem -1rem 0.7rem;
}

.category-chip {
    position: absolute;
    top: -1px;
    left: -1px;
    display: inline-block;
    background: #111;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
}

.position {
    margin: 0;
    font-weight: 700;
}

.article-card h3 {
    margin: 0.3rem 0;
    font-size: clamp(1.1rem, 3.2vw, 1.35rem);
    line-height: 1.4;
}

.meta,
.muted {
    color: var(--muted);
    margin: 0.3rem 0;
}

.article-meta-row {
    display: block;
    margin: 0.25rem 0 0.2rem;
}

.article-meta-row .meta {
    margin: 0;
    min-width: 0;
}

.article-content {
    margin-top: 0.2rem;
    white-space: normal;
}

.gibik-note {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-left: 3px solid currentColor;
    background: rgba(127, 127, 127, 0.08);
}

.gibik-note-icon {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    line-height: 1;
}

.gibik-note p {
    margin: 0;
}

.article-details {
    margin-top: 0.25rem;
}

.article-card.is-collapsed .article-details {
    display: none;
}

.article-footer {
    border-top: 1px solid #111;
    margin: 1rem 0 0;
    padding-top: 0.55rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
}
.links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.share-btn {
    appearance: none;
    border: 1px solid #111;
    background: #fff;
    color: #111;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font: inherit;
    line-height: 1.25;
    cursor: pointer;
}
.share-btn:hover,
.share-btn:focus-visible {
    background: #111;
    color: #fff;
}
.share-btn:disabled {
    opacity: 0.7;
    cursor: default;
}
.share-sheet-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    padding: 1rem;
}
.share-sheet-overlay[hidden] {
    display: none;
}
.share-sheet {
    width: min(520px, 100%);
    background: #fff;
    color: #111;
    border: 1px solid #111;
    border-radius: 14px;
    padding: 0.9rem;
}
.share-sheet-title {
    margin: 0 0 0.6rem;
    font-size: 1rem;
}
.share-sheet-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
}
.share-sheet-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.2rem;
    border: 1px solid #111;
    border-radius: 10px;
    background: #fff;
    color: #111;
    text-decoration: none;
    font: inherit;
    padding: 0.35rem 0.45rem;
    cursor: pointer;
}
.share-sheet-option:hover,
.share-sheet-option:focus-visible {
    background: #111;
    color: #fff;
}
.share-sheet-footer {
    margin-top: 0.65rem;
    display: flex;
    justify-content: flex-end;
}
.share-sheet-close {
    border: 1px solid #111;
    border-radius: 999px;
    background: transparent;
    color: #111;
    font: inherit;
    padding: 0.25rem 0.75rem;
    cursor: pointer;
}
.share-sheet-close:hover,
.share-sheet-close:focus-visible {
    background: #111;
    color: #fff;
}

.load-more-wrap {
    margin: 0.4rem 0 1rem;
    display: flex;
    justify-content: center;
}

.load-more-btn {
    appearance: none;
    border: 1px solid #111;
    background: #fff;
    color: #111;
    border-radius: 999px;
    padding: 0.4rem 0.95rem;
    font: inherit;
    line-height: 1.2;
    cursor: pointer;
}

.load-more-btn:hover,
.load-more-btn:focus-visible {
    background: #111;
    color: #fff;
}

.special-card .article-content {
    margin-top: 0.15rem;
}

.special-card {
    border-color: #b7975b;
    background: #fffdf7;
}

.special-card .container-strip-label {
    background: linear-gradient(90deg, #9a7841, #c89b52);
    color: #fff;
}

.special-card-image-wrap {
    margin: 0.35rem 0 0.15rem;
}

.special-card-image {
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto;
    border: 1px solid #d3cdbf;
    background: #f8f6f1;
}

.site-footer {
    margin: 1.25rem 0 0;
    padding: 0.7rem 0 0;
    border-top: 1px solid var(--rule);
    font-size: 0.88rem;
    color: var(--muted);
}

.site-footer p {
    margin: 0.2rem 0;
}

.site-freshness {
    font-variant-numeric: tabular-nums;
}

.site-footer-links a {
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

a {
    color: var(--link);
    text-underline-offset: 2px;
}

.archive-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.archive-list li {
    border-top: 1px solid #2a2a2a;
    padding: 0.55rem 0;
}

.full-article-text p {
    margin: 0 0 1rem;
}

.back-to-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 1px solid #111;
    border-radius: 999px;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
}

.back-to-top:hover,
.back-to-top:focus-visible {
    background: #fff;
    color: #111;
}

:root[data-theme="dark"] .logo-light {
    display: none;
}

:root[data-theme="dark"] .logo-dark {
    display: block;
}

:root[data-theme="dark"] .lang-pill {
    border-color: #666;
    background: #252627;
    color: #ececec;
}

:root[data-theme="dark"] .lang-pill.active {
    background: #ececec;
    color: #111;
}

:root[data-theme="dark"] .theme-toggle {
    border-color: #848484;
    background: #26282a;
}

:root[data-theme="dark"] .style-mode-toggle {
    border-color: #848484;
    background: #26282a;
    color: #ececec;
}

:root[data-theme="dark"] .theme-toggle-thumb {
    background: #dcdcdc;
}

:root[data-theme="dark"] .style-mode-toggle-label {
    background: #dcdcdc;
    color: #111;
}

:root[data-theme="dark"] .music-toggle {
    border-color: #666;
    background: #252627;
    color: #ececec;
}

:root[data-theme="dark"] .theme-toggle:hover,
:root[data-theme="dark"] .theme-toggle:focus-visible,
:root[data-theme="dark"] .style-mode-toggle:hover,
:root[data-theme="dark"] .style-mode-toggle:focus-visible {
    background: #323437;
}

:root[data-theme="dark"] .theme-toggle[aria-pressed="true"] {
    background: #ececec;
    border-color: #ececec;
}

:root[data-theme="dark"] .theme-toggle[aria-pressed="true"] .theme-toggle-thumb {
    background: #111;
}

:root[data-theme="dark"] .style-mode-toggle[aria-pressed="true"] {
    background: #ececec;
    border-color: #ececec;
    color: #111;
}

:root[data-theme="dark"] .style-mode-toggle[aria-pressed="true"] .style-mode-toggle-label {
    background: #111;
    color: #ececec;
}

:root[data-theme="dark"] .music-toggle:hover,
:root[data-theme="dark"] .music-toggle:focus-visible {
    background: #343638;
}

:root[data-theme="dark"] .top-menu-toggle {
    border-color: #666;
    background: #252627;
    color: #ececec;
}

:root[data-theme="dark"] .top-menu-toggle:hover,
:root[data-theme="dark"] .top-menu-toggle:focus-visible {
    background: #343638;
}

:root[data-theme="dark"] .top-links.menu-collapsible {
    border-color: #666;
    background: #202224;
}

:root[data-theme="dark"] .music-volume::-webkit-slider-runnable-track {
    background: #6f7377;
}

:root[data-theme="dark"] .music-volume::-webkit-slider-thumb {
    background: #ececec;
}

:root[data-theme="dark"] .music-volume::-moz-range-track {
    background: #6f7377;
}

:root[data-theme="dark"] .music-volume::-moz-range-thumb {
    background: #ececec;
}

:root[data-theme="dark"] .masthead-box,
:root[data-theme="dark"] .today-box,
:root[data-theme="dark"] .article-card,
:root[data-theme="dark"] .newsletter-signup,
:root[data-theme="dark"] .market-ticker,
:root[data-theme="dark"] .market-ticker-summary,
:root[data-theme="dark"] .market-ticker-details,
:root[data-theme="dark"] .video-of-day-summary,
:root[data-theme="dark"] .video-of-day-details,
:root[data-theme="dark"] .category-filter select,
:root[data-theme="dark"] .container-strip-toggle,
:root[data-theme="dark"] .container-strip-spacer {
    background: #202224;
    border-color: #555;
    color: #ececec;
}

:root[data-theme="dark"] .newsletter-signup-input {
    background: #181a1c;
    border-color: #676b70;
    color: #ececec;
}

:root[data-theme="dark"] .newsletter-signup-button {
    background: #ececec;
    color: #111;
    border-color: #777;
}

:root[data-theme="dark"] .newsletter-signup-button:hover,
:root[data-theme="dark"] .newsletter-signup-button:focus-visible {
    background: #2a2d30;
    color: #ececec;
}

:root[data-theme="dark"] .masthead-box {
    background: linear-gradient(rgba(32, 34, 36, 0.55), rgba(32, 34, 36, 0.55)), url("../img/cookie.png") center/cover no-repeat;
}

:root[data-theme="dark"] .today-box-title {
    border-color: #777;
    background: #151617;
    color: #ececec;
}

:root[data-theme="dark"] .container-strip-label {
    background: #ececec;
    color: #111;
}

:root[data-theme="dark"] .special-card {
    border-color: #8a7344;
    background: #252118;
}

:root[data-theme="dark"] .special-card .container-strip-label {
    background: linear-gradient(90deg, #7f6538, #a58146);
    color: #f7efe0;
}

:root[data-theme="dark"] .container-strip-toggle:hover,
:root[data-theme="dark"] .container-strip-toggle:focus-visible {
    background: #2a2d30;
}

:root[data-theme="dark"] .category-chip {
    background: #ececec;
    color: #111;
}

:root[data-theme="dark"] .market-ticker-table {
    background: #1c1e20;
}

:root[data-theme="dark"] .market-ticker-table th,
:root[data-theme="dark"] .market-ticker-table td {
    border-color: #4a4d50;
}

:root[data-theme="dark"] .market-ticker-table th {
    background: #2a2d30;
}

:root[data-theme="dark"] .meal-of-day-image {
    border-color: #4a4d50;
    background: #1c1e20;
}

:root[data-theme="dark"] .load-more-btn {
    border-color: #777;
    background: #202224;
    color: #ececec;
}

:root[data-theme="dark"] .load-more-btn:hover,
:root[data-theme="dark"] .load-more-btn:focus-visible {
    background: #ececec;
    color: #111;
}

:root[data-theme="dark"] .video-of-day-frame {
    background: #0a0a0a;
}

:root[data-theme="dark"] .video-of-day-summary,
:root[data-theme="dark"] .video-of-day-details {
    background: transparent;
    border-color: transparent;
}

:root[data-theme="dark"] .back-to-top {
    border-color: #777;
    background: #ececec;
    color: #111;
}

:root[data-theme="dark"] .back-to-top:hover,
:root[data-theme="dark"] .back-to-top:focus-visible {
    background: #2a2d30;
    color: #ececec;
}

:root[data-style-mode="modern"] {
    --bg: #eef4ff;
    --text: #0f172a;
    --muted: #475569;
    --rule: #b7c8ea;
    --link: #0b57d0;
}

:root[data-style-mode="modern"][data-theme="dark"] {
    --bg: #0b1220;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --rule: #32435f;
    --link: #93c5fd;
}

:root[data-style-mode="modern"] body {
    font-family: "Segoe UI", "Helvetica Neue", "Arial", sans-serif;
    line-height: 1.58;
}

:root[data-style-mode="modern"] .container {
    width: min(1080px, 100% - 2rem);
}

:root[data-style-mode="modern"] .site-header {
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    border-radius: 16px;
    padding: 1rem 1rem 0.85rem;
    background: rgba(255, 255, 255, 0.68);
}

:root[data-style-mode="modern"] .lang-pill,
:root[data-style-mode="modern"] .theme-toggle,
:root[data-style-mode="modern"] .style-mode-toggle,
:root[data-style-mode="modern"] .music-toggle,
:root[data-style-mode="modern"] .top-menu-toggle {
    border-color: #96acd7;
}

:root[data-style-mode="modern"] .theme-toggle[aria-pressed="true"],
:root[data-style-mode="modern"] .style-mode-toggle[aria-pressed="true"] {
    background: #0b57d0;
    border-color: #0b57d0;
    color: #fff;
}

:root[data-style-mode="modern"] .theme-toggle[aria-pressed="true"] .theme-toggle-thumb,
:root[data-style-mode="modern"] .style-mode-toggle[aria-pressed="true"] .style-mode-toggle-label {
    background: #fff;
    color: #0b57d0;
}

:root[data-style-mode="modern"] .masthead-box,
:root[data-style-mode="modern"] .today-box,
:root[data-style-mode="modern"] .article-card,
:root[data-style-mode="modern"] .newsletter-signup,
:root[data-style-mode="modern"] .market-ticker,
:root[data-style-mode="modern"] .market-ticker-summary,
:root[data-style-mode="modern"] .market-ticker-details,
:root[data-style-mode="modern"] .video-of-day-summary,
:root[data-style-mode="modern"] .video-of-day-details,
:root[data-style-mode="modern"] .category-filter select {
    border: 1px solid #d0dcf6;
    border-radius: 14px;
    background: #ffffff;
}

:root[data-style-mode="modern"] .container-strip-label {
    background: linear-gradient(90deg, #0ea5e9, #2563eb);
    color: #fff;
    border-top-left-radius: 12px;
}

:root[data-style-mode="modern"] .special-card {
    border-color: #e3b870;
    background: #fff8ec;
}

:root[data-style-mode="modern"] .special-card .container-strip-label {
    background: linear-gradient(90deg, #d2862b, #b45309);
    color: #fff8ef;
}

:root[data-style-mode="modern"] .special-card .container-strip-toggle,
:root[data-style-mode="modern"] .special-card .container-strip-spacer {
    background: #fdeed8;
    border-left-color: #e3b870;
}

:root[data-style-mode="modern"] .container-strip-toggle,
:root[data-style-mode="modern"] .container-strip-spacer {
    background: #eaf0fd;
    border-left-color: #d0dcf6;
}

:root[data-style-mode="modern"] .newsletter-signup-input,
:root[data-style-mode="modern"] .newsletter-signup-button,
:root[data-style-mode="modern"] .load-more-btn,
:root[data-style-mode="modern"] .top-menu-toggle,
:root[data-style-mode="modern"] .music-toggle,
:root[data-style-mode="modern"] .category-filter select {
    border-radius: 10px;
}

:root[data-style-mode="modern"] .newsletter-signup-button,
:root[data-style-mode="modern"] .load-more-btn {
    background: #0b57d0;
    color: #fff;
    border-color: #0b57d0;
}

:root[data-style-mode="modern"] .newsletter-signup-button:hover,
:root[data-style-mode="modern"] .newsletter-signup-button:focus-visible,
:root[data-style-mode="modern"] .load-more-btn:hover,
:root[data-style-mode="modern"] .load-more-btn:focus-visible {
    background: #0846a8;
    color: #fff;
}

:root[data-style-mode="modern"] .top-links.menu-collapsible {
    border: 1px solid #d0dcf6;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
}

:root[data-style-mode="modern"] .back-to-top {
    border-color: #0b57d0;
    background: #0b57d0;
    color: #fff;
}

:root[data-style-mode="modern"] .back-to-top:hover,
:root[data-style-mode="modern"] .back-to-top:focus-visible {
    background: #0846a8;
    color: #fff;
}

:root[data-style-mode="modern"] .meal-of-day-image {
    border-color: #d0dcf6;
    border-radius: 12px;
}

:root[data-style-mode="modern"][data-theme="dark"] .site-header {
    background: rgba(15, 23, 42, 0.7);
}

:root[data-style-mode="modern"][data-theme="dark"] .masthead-box,
:root[data-style-mode="modern"][data-theme="dark"] .today-box,
:root[data-style-mode="modern"][data-theme="dark"] .article-card,
:root[data-style-mode="modern"][data-theme="dark"] .newsletter-signup,
:root[data-style-mode="modern"][data-theme="dark"] .market-ticker,
:root[data-style-mode="modern"][data-theme="dark"] .market-ticker-summary,
:root[data-style-mode="modern"][data-theme="dark"] .market-ticker-details,
:root[data-style-mode="modern"][data-theme="dark"] .video-of-day-summary,
:root[data-style-mode="modern"][data-theme="dark"] .video-of-day-details,
:root[data-style-mode="modern"][data-theme="dark"] .category-filter select,
:root[data-style-mode="modern"][data-theme="dark"] .top-links.menu-collapsible {
    border-color: #32435f;
    background: #0f1a2e;
}

:root[data-style-mode="modern"][data-theme="dark"] .container-strip-toggle,
:root[data-style-mode="modern"][data-theme="dark"] .container-strip-spacer {
    background: #16243e;
    border-left-color: #32435f;
}

:root[data-style-mode="modern"][data-theme="dark"] .meal-of-day-image {
    border-color: #32435f;
    background: #0f1a2e;
}

:root[data-style-mode="modern"][data-theme="dark"] .special-card {
    border-color: #8a6931;
    background: #20170f;
}

:root[data-style-mode="modern"][data-theme="dark"] .special-card .container-strip-label {
    background: linear-gradient(90deg, #9a6322, #7c3f10);
    color: #ffe6c9;
}

:root[data-style-mode="modern"][data-theme="dark"] .special-card .container-strip-toggle,
:root[data-style-mode="modern"][data-theme="dark"] .special-card .container-strip-spacer {
    background: #2a1f14;
    border-left-color: #8a6931;
}

:root[data-style-mode="modern"][data-theme="dark"] .newsletter-signup-input {
    background: #0b1220;
    border-color: #32435f;
    color: #e2e8f0;
}

:root[data-style-mode="modern"][data-theme="dark"] .theme-toggle[aria-pressed="true"],
:root[data-style-mode="modern"][data-theme="dark"] .style-mode-toggle[aria-pressed="true"] {
    background: #2563eb;
    border-color: #2563eb;
}

:root[data-style-mode="modern"][data-theme="dark"] .theme-toggle[aria-pressed="true"] .theme-toggle-thumb,
:root[data-style-mode="modern"][data-theme="dark"] .style-mode-toggle[aria-pressed="true"] .style-mode-toggle-label {
    background: #fff;
    color: #1d4ed8;
}

:root[data-style-mode="modern"][data-theme="dark"] .newsletter-signup-button,
:root[data-style-mode="modern"][data-theme="dark"] .load-more-btn,
:root[data-style-mode="modern"][data-theme="dark"] .back-to-top {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}

:root[data-style-mode="modern"][data-theme="dark"] .newsletter-signup-button:hover,
:root[data-style-mode="modern"][data-theme="dark"] .newsletter-signup-button:focus-visible,
:root[data-style-mode="modern"][data-theme="dark"] .load-more-btn:hover,
:root[data-style-mode="modern"][data-theme="dark"] .load-more-btn:focus-visible,
:root[data-style-mode="modern"][data-theme="dark"] .back-to-top:hover,
:root[data-style-mode="modern"][data-theme="dark"] .back-to-top:focus-visible {
    background: #2563eb;
    color: #fff;
}

@media (max-width: 700px) {
    .container {
        width: calc(100% - 1.25rem);
    }

    .site-header {
        text-align: center;
    }

    .lang-switch {
        position: static;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        margin: 0 auto 0.7rem;
        width: 100%;
        gap: 0.45rem;
    }

    .masthead-row {
        grid-template-columns: 1fr;
        gap: 0.7rem;
        margin-top: 0;
    }

    .masthead-box {
        min-height: auto;
        padding: 0.75rem;
    }

    .today-box {
        text-align: center;
        align-items: center;
        padding: 0.55rem 0.6rem 0.62rem;
        min-height: auto;
    }

    .masthead-meta {
        margin-top: 0.45rem;
        justify-content: center;
        gap: 0.45rem;
    }

    .category-filter {
        justify-self: auto;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 0.35rem 0.45rem;
        margin-left: 0;
    }

    .category-filter select {
        min-width: 10.5rem;
        width: auto;
    }

    .market-ticker {
        padding: 0.5rem 0.45rem;
    }

    .newsletter-signup {
        padding: 0.5rem;
    }

    .newsletter-signup-form {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        flex: 1 1 100%;
        gap: 0.3rem;
    }

    .newsletter-signup-input,
    .newsletter-signup-button {
        width: 100%;
        min-width: 0;
        height: auto;
    }

    .music-controls {
        width: 100%;
        justify-content: center;
        padding-left: 0;
    }

    .container-strip {
        margin: -0.5rem -0.45rem 0.5rem;
    }

    .market-ticker-summary,
    .market-ticker-details,
    .video-of-day-summary,
    .video-of-day-details {
        padding: 0.42rem;
    }

    .ticker-track {
        gap: 0.45rem 0.7rem;
        justify-content: center;
    }

    .ticker-item {
        font-size: 0.84rem;
    }

    .article-card .container-strip {
        margin: -0.95rem -1rem 0.65rem;
    }

    .market-ticker-table {
        font-size: 0.8rem;
    }

    .market-ticker-table th,
    .market-ticker-table td {
        padding: 0.3rem 0.32rem;
    }

    .edition-line,
    .top-links-wrap {
        text-align: center;
    }

    .top-menu-toggle { margin: 0 auto; }

    .top-links {
        margin-top: 0;
        gap: 0.3rem;
    }

    .back-to-top {
        right: 0.6rem;
        bottom: 0.6rem;
        width: 2.7rem;
        height: 2.7rem;
        font-size: 1.2rem;
    }
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.8rem;
    margin: 1rem 0;
}

.metric-card {
    border: 1px solid currentColor;
    padding: 0.9rem;
    background: rgba(127, 127, 127, 0.05);
}

.metric-card strong {
    display: block;
    font-size: 1.4rem;
    margin-bottom: 0.35rem;
}

.metric-card span {
    display: block;
    font-size: 0.9rem;
}

.warning-note {
    border-left: 4px solid currentColor;
}

.language-badges span {
    display: inline-block;
    border: 1px solid currentColor;
    padding: 0.25rem 0.55rem;
    margin-right: 0.35rem;
    border-radius: 999px;
    font-size: 0.85rem;
}
