:root { color-scheme: light; --ink: #263647; --muted: #64768a; --accent: #32689a; --accent-fill: #32689a; --accent-strong: #285780; --paper: #f5f8fc; --surface: #fff; --surface-alt: #f2f6fb; --line: #a9bfd5; --cool: #e8f0f8; --source: #858b87; --on-accent: #fff; --on-accent-muted: #eaf4ff; --highlight: #ffdf78; --rank: #e45c50; --ad-line: #e7bd55; --ad-bg: #fff6d9; --ad-ink: #67521c; --ad-label: #ad642c; --ad-placeholder: #78683e; --text-ad: #345f91; --error: #b3261e; --error-line: #e6a5a0; --error-bg: #fdf1f0; --label-green: #3d7560; --stripe: #263647; --shadow: rgba(38, 54, 71, .3); --shelf-band: #131921; --shelf-orange: #ff9900; --shelf-paper: #fff; --shelf-ink: #131921; --shelf-muted: #565959; --shelf-note: #6b6b6b; --shelf-line: #e3e6e6; --shelf-control: #c8cccc; --shelf-alert: #cc0c39; }
:root[data-theme="dark"] { color-scheme: dark; --ink: #dbe4ee; --muted: #98a8b9; --accent: #82b3e2; --accent-fill: #2d5a85; --accent-strong: #21435f; --paper: #11171e; --surface: #19212a; --surface-alt: #1e2833; --line: #34465a; --cool: #232f3c; --source: #97a29e; --on-accent: #fff; --on-accent-muted: #d6e6f7; --highlight: #ffdf78; --rank: #ff7f73; --ad-line: #6b5a2a; --ad-bg: #29231a; --ad-ink: #e6d6a8; --ad-label: #e3a874; --ad-placeholder: #c9b886; --text-ad: #8fbbe9; --error: #ff8a80; --error-line: #7a3a35; --error-bg: #2d1b1a; --label-green: #7cc4a4; --stripe: #2d5a85; --shadow: rgba(0, 0, 0, .5); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; --ink: #dbe4ee; --muted: #98a8b9; --accent: #82b3e2; --accent-fill: #2d5a85; --accent-strong: #21435f; --paper: #11171e; --surface: #19212a; --surface-alt: #1e2833; --line: #34465a; --cool: #232f3c; --source: #97a29e; --on-accent: #fff; --on-accent-muted: #d6e6f7; --highlight: #ffdf78; --rank: #ff7f73; --ad-line: #6b5a2a; --ad-bg: #29231a; --ad-ink: #e6d6a8; --ad-label: #e3a874; --ad-placeholder: #c9b886; --text-ad: #8fbbe9; --error: #ff8a80; --error-line: #7a3a35; --error-bg: #2d1b1a; --label-green: #7cc4a4; --stripe: #2d5a85; --shadow: rgba(0, 0, 0, .5); } }
.view-nav { background: var(--accent-fill); border-block: 1px solid var(--accent-strong); color: var(--on-accent); }
.view-nav .container { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-block: 10px; font-size: 12px; }
.view-nav a:hover { color: var(--highlight); }
.home-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 20px; margin-top: 16px; }
.home-content { min-width: 0; }
.home-popular { margin-top: 20px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 10px; border: 1px solid var(--accent-strong); background: var(--accent-fill); color: var(--on-accent); }
.section-heading h2 { display: flex; align-items: center; gap: 6px; font-size: 15px; margin: 0; overflow-wrap: anywhere; }
.heading-icon { flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.section-heading h2 a { color: inherit; font-size: inherit; }
.section-heading a, .section-heading span { font-size: 11px; white-space: nowrap; color: var(--on-accent-muted); }
.rss-link { display: inline-flex; flex: none; align-items: center; line-height: 0; }
.rss-link:hover, .rss-link:focus-visible { opacity: .75; }
.heading-side { display: inline-flex; align-items: center; gap: 8px; }
.heading-tools { display: flex; flex: none; align-items: center; gap: 10px; margin-left: auto; }
.compact-article { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 10px; padding: 5px 8px; background: var(--surface); border-inline: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.compact-article time { font-size: 11px; color: var(--muted); }
.article-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 1ch; }
.article-meta .source-info { color: var(--source); font-size: 11px; overflow-wrap: anywhere; }
.compact-article .article-meta .source-info { margin: 0; }
.compact-article h3 { font-size: 14px; line-height: 1.4; margin: 0; overflow-wrap: anywhere; }
.compact-article p { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 0; overflow-wrap: anywhere; }
.compact-article .source-info, .row-body .source-info { color: var(--source); font-size: 11px; line-height: 1.4; margin: 0 0 3px; overflow-wrap: anywhere; }
.rank-list .source-info { color: var(--source); font-size: 11px; line-height: 1.5; margin: 3px 0 0; overflow-wrap: anywhere; }
.rank-list { margin: 0; padding: 0; list-style-position: inside; font-size: 13px; }
.home-popular .rank-list { list-style: none; }
.rank-list.latest-fallback-list { list-style: none; }
.rank-list li { border-inline: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); padding: 8px 9px; line-height: 1.55; overflow-wrap: anywhere; }
.rank-list li:nth-child(even) { background: var(--surface-alt); }
.rank-list li span { color: var(--muted); margin-left: 10px; }
.rank-list .popular-article-meta { display: flex; justify-content: space-between; align-items: baseline; }
.rank-list .popular-article-meta .source-info { margin: 0; }
.rank-list .popular-article h3 { font-size: inherit; font-weight: bold; line-height: 1.4; margin: 2px 0 0; }
.rank-list .popular-article-meta .rank-score { margin-left: 10px; }
.home-popular .popular-article, .ranking-articles .popular-article { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 10px; }
.home-popular .popular-article .row-good, .ranking-articles .popular-article .row-good { grid-column: 2; grid-row: 1 / span 2; }
.rank-list .good-button span { margin-left: 0; color: inherit; }
.no-rank { list-style: none; color: var(--muted); }
.section-more { display: flex; align-items: center; gap: 6px; width: fit-content; margin: 0 0 0 auto; padding: 6px 8px 6px 12px; text-align: right; font-size: 13px; font-weight: bold; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-top: 0; }
.section-more:hover { background: var(--cool); }
.section-more-icon { flex: none; fill: var(--accent); }
.topic-list { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.topic-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px; border-inline: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.topic-list li:nth-child(even) { background: var(--surface-alt); }
.topic-list a { overflow-wrap: anywhere; min-width: 0; }
.topic-list span { white-space: nowrap; color: var(--muted); font-size: 11px; }
.sidebar-search-form { display: flex; gap: 6px; padding: 10px; border-inline: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.sidebar-search-form input { flex: 1; width: 100%; padding: 7px 10px; font-size: 13px; }
.sidebar-search-form button { padding: 7px 12px; font-size: 13px; }
.source-directory-list { list-style: none; padding: 0; margin: 0; }
.source-directory-list li { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr); gap: 16px; padding: 10px 12px; border: 1px solid var(--line); border-top: 0; background: var(--surface); }
.source-directory-list li:nth-child(even) { background: var(--surface-alt); }
.source-directory-list a { overflow-wrap: anywhere; }
.source-directory-name { font-weight: bold; }
.source-directory-list .source-directory-url { color: var(--muted); font-size: 11px; }
.muted { color: var(--muted); }
.asof { font-size: 11px; }
.ranking-articles { padding: 0; margin: 0; list-style: none; }
.infinite-scroll { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; min-height: 48px; padding: 12px 0; font-size: 12px; }
.infinite-scroll [role=status] { color: var(--muted); }
[data-infinite-continuation] { margin-top: 20px; }
.spot--infinite { margin: 20px 0; }
.ranking-articles > .infinite-extra { margin: 0; padding: 0; border: 0; }
.ranking-articles li { display: block; }
.ranking-articles .popular-article-meta { display: flex; justify-content: space-between; align-items: baseline; }
.ranking-articles .popular-article-meta .source-info { margin: 0; }
.rank-position { font: 24px Georgia, serif; color: var(--rank); }
.rank-score { font-size: 14px; text-align: right; }
.trends-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.admin-header { background: var(--surface); border-top: 5px solid var(--stripe); padding: 24px 0; }
.admin-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.admin-header .brand { font-size: 23px; }
.admin-header .brand span { font-size: 12px; color: var(--muted); }
.admin-main { padding-bottom: 60px; }
.admin-banner-current { margin: 0 0 12px; }
.admin-banner-current img { display: block; max-width: min(100%, 320px); max-height: 320px; width: auto; height: auto; border: 1px solid var(--line); }
.admin-preview-notice { padding: 10px 0; background: var(--accent-fill); color: var(--on-accent); font-size: 12px; }
.admin-preview-notice a { margin-left: 12px; color: inherit; text-decoration: underline; }
.admin-preview-filler { min-height: 240px; padding: 12px; border: 1px solid var(--line); border-top: 0; background: var(--surface); color: var(--muted); font-size: 12px; }
.table-scroll { max-width: 100%; overflow-x: auto; margin: 26px 0; }
table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
th { color: var(--muted); background: var(--cool); font-weight: normal; }
td, th { padding: 14px 12px; border-bottom: 1px solid var(--line); }
.edit-form { max-width: 800px; padding: 26px 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.edit-form label:not(.check-label) { display: flex; flex-direction: column; gap: 10px; font-size: 13px; min-width: 0; }
.edit-form input:not([type=checkbox]):not([type=radio]), .edit-form select, .edit-form textarea { width: 100%; }
.edit-form fieldset { border: 0; border-top: 1px solid var(--line); margin: 26px 0; padding: 20px 0; }
.edit-form legend { padding-right: 16px; font-size: 14px; }
.check-label { display: flex; gap: 10px; align-items: center; margin: 18px 0; font-size: 13px; }
.form-subheading { font-size: 15px; margin: 24px 0; }
.save-button { background: var(--ink); color: var(--on-accent); min-width: 100px; }
.login-panel { max-width: 460px; padding-block: 80px; }
.spot { min-height: 90px; padding: 12px 16px; border: 1px solid var(--ad-line); background: var(--ad-bg); color: var(--ad-ink); display: flex; flex-direction: column; justify-content: center; gap: 5px; font-size: 11px; }
.spot-label { color: var(--ad-label); font-size: 10px; font-weight: bold; }
/* Image banners show only the creative, with the ad disclosure overlaid on its bottom-right corner. */
.spot.spot--image { min-height: 0; padding: 0; border: 0; background: none; }
.spot--image a { position: relative; display: block; width: fit-content; max-width: 100%; }
.spot--image img { display: block; max-width: 100%; height: auto; }
.spot--image .spot-label { position: absolute; right: 0; bottom: 0; padding: 1px 6px; background: rgba(255, 255, 255, .85); color: #6b6b6b; line-height: 1.5; }
/* Keep square or tall creatives from stretching the header; the ratio is preserved. */
.masthead-inner > .spot--image img { width: auto; max-height: 120px; }
.spot-placeholder { color: var(--ad-placeholder); }
.spot--infeed { min-height: 72px; margin: 10px 0; }
.text-ad { color: var(--text-ad); font-size: 13px; font-weight: bold; overflow-wrap: anywhere; }
.spot--sidebar { margin-top: 24px; }
.rank-sidebar > .spot--sidebar { margin: 0 0 16px; }
.spot--sidebar-bottom { margin-top: 20px; }
.spot--footer-banner { margin-top: 20px; }
@media (max-width: 700px) { .home-layout, .trends-layout, .form-grid { grid-template-columns: 1fr; gap: 20px; } .ranking-articles .popular-article h3 { font-size: 13px; } }
* { box-sizing: border-box; }
html { color: var(--ink); background: var(--paper); font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; letter-spacing: 0; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button, input, select { font: inherit; }
button { cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 3px; padding: 8px 12px; white-space: nowrap; }
input, select, textarea { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 3px; padding: 9px 12px; min-width: 0; }
.container { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.masthead { background: var(--surface); border-top: 5px solid var(--stripe); }
.masthead-inner { width: min(1120px, calc(100% - 64px)); margin: auto; min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.masthead-inner > .spot { flex: 0 1 468px; width: 468px; max-width: 100%; min-width: 0; min-height: 60px; }
.spot.spot--admax { padding: 0; border: 0; background: none; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; color-scheme: light; }
.masthead-inner > .spot--admax { flex: none; width: 100%; }
/* From 1124px the logo and the banner share the header half and half; below that both stack at full width. */
@media (min-width: 1124px) { .masthead-inner:has(> .spot--admax) > .brand, .masthead-inner > .spot--admax { flex: 1 1 0; width: auto; } }
@media (max-width: 1123px) { .masthead-inner:has(> .spot--admax) { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 0; } .masthead-inner:has(> .spot--admax) > .brand { flex: none; width: 100%; } }
.brand { display: flex; align-items: center; gap: 13px; font-size: 30px; font-weight: 800; overflow-wrap: anywhere; min-width: 0; }
.brand img { flex: 0 0 36px; }
.masthead .brand { display: block; flex: 1 1 620px; }
.masthead .brand img { display: block; width: 100%; height: auto; aspect-ratio: 2172 / 312; object-fit: contain; }
/* The top page wraps the logo in its h1; it must look exactly like the plain logo link. */
.masthead .brand-heading { margin: 0; font-size: inherit; line-height: inherit; }
.masthead .brand-heading > a { display: block; color: inherit; }
.category-nav { border-block: 1px solid var(--line); background: var(--surface); }
.category-nav .container { display: flex; flex-wrap: wrap; gap: 0 28px; }
.category-nav a { padding: 16px 0; font-size: 13px; border-bottom: 2px solid transparent; }
.category-nav a[aria-current] { border-color: var(--accent); font-weight: bold; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 14px; border: 1px solid var(--accent-strong); background: var(--accent-fill); color: var(--on-accent); }
.list-heading { margin-top: 16px; }
.page-heading .eyebrow { font-size: 10px; font-weight: bold; color: var(--highlight); margin: 0 0 3px; }
.page-heading h1 { color: inherit; font-size: 22px; line-height: 1.4; }
.page-heading .count { color: var(--on-accent-muted); }
.page-heading .list-tools { flex: 0 1 auto; min-width: 0; gap: 10px; }
.page-heading .list-tools form { flex-wrap: wrap; justify-content: flex-end; }
.page-heading .list-tools select, .page-heading .list-tools button { min-height: 34px; }
.ranking-heading { align-items: flex-end; }
.ranking-heading .ranking-asof { color: var(--on-accent); font-size: 11px; margin: 0; align-self: flex-end; }
.ranking-heading .heading-tools { align-self: flex-end; }
.heading-tools .ranking-asof { align-self: center; }
h1 { font-size: 28px; line-height: 1.5; margin: 0; overflow-wrap: anywhere; }
.list-tools, .list-tools form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.list-tools { gap: 22px; flex-shrink: 0; font-size: 12px; }
.count { color: var(--muted); white-space: nowrap; }
.query-label { margin: 12px 0 0; overflow-wrap: anywhere; }
.article-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 10px 12px; border-inline: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.article-row:nth-of-type(even), .news-stream > .article-even { background: var(--surface-alt); }
.row-date { font-size: 11px; color: var(--muted); padding-top: 0; display: flex; flex-direction: column; gap: 6px; }
.all-articles-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
.all-articles-row .row-good, .compact-article .row-good { grid-column: 2; grid-row: 1 / span 2; }
/* Ads have no Good column, so their title must not flow into it. */
.all-articles-row.affiliate-article > *, .compact-article.affiliate-article > *, .popular-article.affiliate-article > * { grid-column: 1 / -1; }
.all-articles-row .article-meta { flex-direction: row; justify-content: flex-start; gap: 4px 1ch; }
.category-articles > .article-row { padding: 5px 8px; }
.source-label { font-size: 11px; color: var(--label-green); }
.row-body { min-width: 0; }
.row-body h2 { font-size: 15px; line-height: 1.5; margin: 0; overflow-wrap: anywhere; }
.row-body p { font-size: 12px; line-height: 1.5; color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.empty-state, .ranking-articles .empty-state { display: block; padding: 40px 16px; text-align: center; border: 1px solid var(--accent); background: var(--cool); color: var(--ink); overflow-wrap: anywhere; }
.empty-rule { display: block; width: 30px; height: 3px; background: var(--accent); margin: 0 auto 20px; }
.empty-state h2 { font-size: 18px; font-weight: normal; }
.source-profile { border: 1px solid var(--line); background: var(--surface); padding: 12px 16px; margin: 0 0 14px; font-size: 13px; }
.source-profile dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0; }
.source-profile dt { color: var(--muted); }
.source-profile dd { margin: 0; overflow-wrap: anywhere; }
.source-profile dd a { color: var(--accent); }
.source-category { display: inline-block; margin-right: 8px; padding: 0 8px; background: var(--cool); border-radius: 3px; }
.frequency-meter { display: inline-flex; gap: 3px; vertical-align: -1px; margin-right: 4px; }
.frequency-step { width: 14px; height: 10px; border-radius: 2px; background: var(--cool); border: 1px solid var(--line); }
.frequency-step.is-on { background: var(--accent); border-color: var(--accent); }
.frequency-note { color: var(--muted); font-size: 12px; margin-left: 4px; }
.page-tools { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 20; display: flex; flex-direction: column; gap: 10px; }
.page-tool { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: var(--accent); color: var(--on-accent); box-shadow: 0 2px 8px var(--shadow); cursor: pointer; opacity: .92; }
.page-tool[hidden] { display: none; }
.page-tool svg { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.page-tool { -webkit-tap-highlight-color: transparent; }
.page-tool.is-pressed { animation: page-tool-pop .24s ease-out; }
.back-to-top { overflow: hidden; }
.back-to-top.is-scrolling svg { animation: page-tool-rise .6s ease-in infinite; }
.page-reload.is-loading svg { animation: page-tool-spin .8s linear infinite; }
@keyframes page-tool-pop { 0% { transform: scale(1); } 40% { transform: scale(1.2); } 100% { transform: scale(1); } }
@keyframes page-tool-rise { 0% { transform: translateY(14px); opacity: 0; } 30% { opacity: 1; } 70% { opacity: 1; } 100% { transform: translateY(-14px); opacity: 0; } }
@keyframes page-tool-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .page-tool.is-pressed, .back-to-top.is-scrolling svg, .page-reload.is-loading svg { animation: none; } }
.row-thumb { display: none; }
.view-switch { display: inline-flex; flex: none; align-self: center; border: 1px solid var(--on-accent-muted); border-radius: 4px; overflow: hidden; }
.view-switch[hidden] { display: none; }
.view-switch button { border: 0; border-radius: 0; background: transparent; color: var(--on-accent); padding: 4px 12px; font-size: 12px; }
.view-switch button + button { border-left: 1px solid var(--on-accent-muted); }
.view-switch button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: bold; }
:root[data-view="card"] .article-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
:root[data-view="card"] .article-list > :not(.article-row) { grid-column: 1 / -1; margin: 0; }
:root[data-view="card"] .article-list > .article-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "thumb thumb" "body body" "date good"; align-content: start; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 1px 3px var(--shadow); }
:root[data-view="card"] .article-row .row-thumb { grid-area: thumb; position: relative; display: block; aspect-ratio: 2 / 1; overflow: hidden; background: var(--cool); }
:root[data-view="card"] .row-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
:root[data-view="card"] .row-thumb-source { display: none; }
:root[data-view="card"] .row-thumb.is-empty img { display: none; }
:root[data-view="card"] .row-thumb.is-empty .row-thumb-source { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 12px; color: var(--muted); font-size: 13px; font-weight: bold; text-align: center; overflow-wrap: anywhere; }
:root[data-view="card"] .article-row .row-body { grid-area: body; }
:root[data-view="card"] .article-row .row-body h2 { font-size: 17px; line-height: 1.55; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
:root[data-view="card"] .article-row .row-body h2 a { color: var(--accent); }
:root[data-view="card"] .article-row .row-date { grid-area: date; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; }
:root[data-view="card"] .article-row .row-good { grid-area: good; }
.view-nav .container { align-items: center; }
.theme-toggle { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; padding: 2px 10px; border: 1px solid var(--on-accent-muted); border-radius: 999px; background: transparent; color: var(--on-accent); font-size: 12px; line-height: 1.6; }
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { color: var(--highlight); border-color: var(--highlight); }
.theme-toggle svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .theme-icon-sun, :root[data-theme="dark"] .theme-toggle .theme-icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .theme-icon-sun { display: block; }
:root[data-theme="dark"] .masthead .brand img { border-radius: 4px; }
.good-button { display: inline-flex; align-items: center; gap: 4px; min-width: 44px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font: inherit; font-size: 12px; line-height: 1.6; cursor: pointer; }
.good-button svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.good-button:hover { border-color: var(--accent); color: var(--accent); }
.good-button[aria-pressed="true"] { border-color: var(--accent-fill); background: var(--accent-fill); color: var(--on-accent); }
.good-button[aria-pressed="true"] svg { fill: currentColor; fill-opacity: .25; }
.good-button:disabled { opacity: .6; cursor: wait; }
.bookmark-button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 44px; height: 25.2px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font: inherit; font-size: 12px; line-height: 1.6; cursor: pointer; vertical-align: middle; }
.row-good { display: flex; align-items: flex-start; gap: 4px; }
.bookmark-button svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.bookmark-button:hover { border-color: var(--accent); color: var(--accent); }
.bookmark-button[aria-pressed="true"] { border-color: var(--accent-fill); background: var(--accent-fill); color: var(--on-accent); }
.bookmark-button[aria-pressed="true"] svg { fill: currentColor; fill-opacity: .25; }
.row-good:has(.bookmark-button) { white-space: nowrap; }
.bookmarks-page { margin-top: 12px; }
.bookmark-note { margin: 0 0 12px; font-size: 13px; }
.bookmark-items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); font-size: 14px; }
.bookmark-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 10px 12px; border-inline: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.bookmark-item:nth-child(even) { background: var(--surface-alt); }
.bookmark-title { margin: 0; font-size: inherit; font-weight: bold; line-height: 1.5; overflow-wrap: anywhere; }
.bookmark-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.bookmark-meta .source-info { color: var(--source); overflow-wrap: anywhere; }
.bookmark-remove, .bookmark-clear { padding: 3px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.bookmark-remove:hover, .bookmark-clear:hover { border-color: var(--error); color: var(--error); }
.bookmark-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.bookmark-empty[hidden], .bookmark-clear[hidden] { display: none; }
a[data-article-click]:visited { color: var(--muted); }
:root[data-view="card"] .article-row .row-body h2 a:visited { color: var(--muted); }
.bookmark-title a:visited { color: var(--muted); }
.good-total { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; }
.good-total svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.footer { border-top: 1px solid var(--line); margin-top: 50px; padding: 26px 0; background: var(--cool); font-size: 12px; }
.footer .container { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.footer p { color: var(--muted); }
.error-state { padding: 70px 0; }
.error-state a { display: inline-block; margin-top: 24px; font-size: 14px; }
.visually-hidden { 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: absolute; top: -100px; background: var(--surface); padding: 12px; z-index: 10; }
.skip-link:focus { top: 0; }
@media (max-width: 700px) {
  .container, .masthead-inner { width: calc(100% - 24px); }
  .masthead-inner { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 0; }
  .masthead-inner > .spot { flex: none; width: 100%; }
  .masthead .brand { flex: none; width: 100%; }
  .brand { font-size: 26px; }
  .view-nav .container { gap: 8px 14px; padding-block: 8px; }
  .category-nav .container { gap: 0 16px; }
  .page-heading { align-items: stretch; flex-direction: column; gap: 10px; padding: 10px 12px; }
  .page-heading h1 { font-size: 20px; }
  .page-heading .list-tools { width: 100%; justify-content: flex-start; }
  .page-heading .list-tools form { justify-content: flex-start; }
  .page-heading .list-tools select { max-width: 100%; }
  h1 { font-size: 24px; }
  .article-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; padding: 9px; }
  .row-date { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; gap: 10px; }
  .all-articles-row .row-date { grid-column: 1; }
  .row-body h2 { font-size: 14px; }
  .compact-article h3 { font-size: 13px; }
  .compact-article { padding: 5px 7px; }
  .category-articles > .article-row { padding: 5px 7px; }
  .rank-list li { padding: 8px; }
  .source-directory-list li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .spot { min-height: 64px; padding: 9px 12px; }
  .footer .container { flex-direction: column; align-items: start; gap: 0; }
  .source-profile { padding: 10px 12px; }
  :root[data-view="card"] .article-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  :root[data-view="card"] .article-list > .article-row { padding: 10px; }
  :root[data-view="card"] .article-row .row-body h2 { font-size: 16px; }
  .page-heading .view-switch { align-self: flex-start; }
  .page-heading > .rss-link, .page-heading > .heading-tools { align-self: flex-end; }
}
.static-page { max-width: 800px; padding: 10px 0 0; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.static-page h2 { font-size: 16px; margin: 26px 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.static-page ul { padding-left: 1.4em; }
.static-page a { color: var(--accent); text-decoration: underline; }
.contact-form { padding-top: 6px; display: flex; flex-direction: column; gap: 16px; }
.contact-form .contact-kind { margin: 0; padding: 0; border: 0; }
.contact-form .contact-kind .check-label { margin: 8px 0; }
.contact-form textarea { font: inherit; resize: vertical; }
.contact-form button { align-self: flex-start; }
.contact-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field-error { color: var(--error); font-size: 12px; margin: -8px 0 0; }
.form-alert { color: var(--error); border: 1px solid var(--error-line); background: var(--error-bg); padding: 10px 12px; }
.form-notice { border: 1px solid var(--line); background: var(--cool); padding: 10px 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.contact-filter { padding-bottom: 0; }
.contact-table .contact-body { white-space: pre-wrap; min-width: 240px; }
.contact-table .contact-unread td { font-weight: bold; }
.contact-table form + form { margin-top: 6px; }
/* Text logo for sites whose profile has no header images yet. */
.masthead .brand.brand-text { display: flex; align-items: center; color: var(--ink); font-size: clamp(26px, 4vw, 40px); letter-spacing: .02em; line-height: 1.2; }
.masthead .brand.brand-text::before { content: ""; flex: none; width: 8px; align-self: stretch; margin-right: 14px; border-radius: 2px; background: var(--accent-fill); }
/* Age confirmation for adult site profiles; the page stays in the markup for crawlers. */
body:has(.age-gate) { overflow: hidden; }
.age-gate { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: var(--paper); overflow-y: auto; }
.age-gate-panel { width: min(480px, 100%); padding: 28px 24px; border: 1px solid var(--line); border-top: 5px solid var(--accent-fill); border-radius: 6px; background: var(--surface); color: var(--ink); text-align: center; box-shadow: 0 8px 28px var(--shadow); }
.age-gate-mark { display: inline-grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 8px; border: 3px solid var(--accent); border-radius: 50%; color: var(--accent); font-size: 20px; font-weight: 800; }
.age-gate h2 { margin: 0 0 12px; font-size: 20px; }
.age-gate p { margin: 0 0 12px; font-size: 14px; line-height: 1.7; text-align: left; }
.age-gate .age-gate-question { font-weight: 700; text-align: center; }
.age-gate-actions { display: grid; gap: 10px; margin-top: 18px; }
.age-gate-actions a { display: block; padding: 12px; border-radius: 4px; font-weight: 700; text-decoration: none; }
.age-gate-yes { background: var(--accent-fill); color: var(--on-accent); }
.age-gate-yes:hover { background: var(--accent-strong); color: var(--on-accent); }
.age-gate-no { border: 1px solid var(--line); color: var(--muted); }
.admin-site-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.admin-site-tabs a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 4px; font-size: 13px; }
.admin-site-tabs a[aria-current="page"] { background: var(--accent-fill); border-color: var(--accent-strong); color: var(--on-accent); }
.admin-site-bar { background: var(--surface-alt); border-top: 1px solid var(--line); }
.admin-site-bar .container { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-block: 10px; }
.admin-site-bar .admin-site-tabs { margin: 0; }
.admin-site-bar-label { font-size: 12px; color: var(--muted); }
.admin-site-name { margin-left: 12px; font-size: 14px; font-weight: 600; color: var(--muted); }
.site-intro { margin-top: 20px; }
.site-intro-body { padding: 12px 16px; border: 1px solid var(--line); border-top: 0; background: var(--surface); font-size: 13px; line-height: 1.8; }
.site-intro-body p { margin: 0; overflow-wrap: anywhere; }
.site-intro-categories { margin-top: 10px; }
.site-intro-categories h3 { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.site-intro-categories ul { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 0; padding: 0; list-style: none; }
.site-intro-categories a { color: var(--accent); }
/* Amazon sale group: a black heading band drawn in HTML/CSS over white shelves of product covers.
   Like other ad creatives it keeps its own light colours in the dark theme. Covers are scaled with
   their aspect ratio kept and are never cropped. These rules come after the image banner rules,
   because a group can replace a blocked AdMax tag inside a slot that then becomes .spot--image. */
.spot.spot--shelf { min-height: 0; padding: 0; border: 0; background: none; display: block; color-scheme: light; }
.shelf { position: relative; overflow: hidden; border-radius: 10px; background: var(--shelf-paper); color: var(--shelf-ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .18); font-size: 12px; line-height: 1.45; text-align: left; }
.shelf a { position: static; display: block; width: auto; max-width: none; color: inherit; }
.shelf a:hover { color: inherit; }
.shelf a.shelf-head, .shelf div.shelf-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 16px 12px; background: var(--shelf-band); color: var(--shelf-paper); }
.shelf-title { display: inline-flex; flex-direction: column; min-width: 0; }
.shelf-heading { font-size: 22px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.shelf-smile { display: block; width: 100%; height: 10px; margin-top: 1px; fill: none; stroke: var(--shelf-orange); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.shelf-pill { padding: 2px 14px; border-radius: 999px; background: var(--shelf-orange); color: var(--shelf-ink); font-size: 17px; font-weight: 800; white-space: nowrap; }
.shelf-limited { margin-left: auto; color: var(--shelf-orange); font-size: 13px; font-weight: bold; white-space: nowrap; display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 2px 8px; }
.shelf-ends { color: var(--shelf-paper); font-size: 12px; font-weight: normal; }
.shelf-countdown { padding: 2px 10px; border-radius: 4px; background: var(--shelf-alert); color: var(--shelf-paper); font-size: 15px; font-weight: 800; animation: shelf-pulse 1.6s ease-in-out infinite; }
@keyframes shelf-pulse { 50% { transform: scale(1.06); } }
.shelf-view { position: relative; }
.shelf-track { display: flex; gap: 12px; margin: 0; padding: 12px 16px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.shelf-track::-webkit-scrollbar { display: none; }
.shelf-item { flex: 0 0 96px; min-width: 0; text-align: center; }
.shelf-cover { display: flex; align-items: center; justify-content: center; width: 96px; height: 128px; margin-inline: auto; }
.shelf .shelf-cover img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .2s ease; }
.shelf a:hover .shelf-cover img, .shelf a:focus-visible .shelf-cover img { transform: scale(1.08); }
@media (prefers-reduced-motion: reduce) { .shelf .shelf-cover img { transition: none; } .shelf-countdown { animation: none; } }
.shelf-name, .shelf-caption { display: block; }
.shelf-name { margin-top: 5px; font-size: 12px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shelf-caption { color: var(--shelf-muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shelf--horizontal .shelf-view::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 64px; background: linear-gradient(to right, transparent, var(--shelf-paper) 85%); pointer-events: none; }
.shelf .shelf-next { position: absolute; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--shelf-control); border-radius: 50%; background: var(--shelf-paper); color: var(--shelf-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.shelf .shelf-next[hidden] { display: none; }
.shelf-next svg { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.shelf--horizontal .shelf-next { top: 76px; right: 8px; transform: translateY(-50%); }
.shelf-note { display: flex; align-items: baseline; gap: 6px; margin: 0; padding: 6px 16px 9px; border-top: 1px solid var(--shelf-line); color: var(--shelf-note); font-size: 11px; }
.shelf-label { flex: none; padding: 0 4px; border: 1px solid var(--shelf-control); border-radius: 2px; font-size: 10px; }
.shelf--vertical { max-width: 420px; margin-inline: auto; }
.shelf--vertical .shelf-title { flex-basis: 100%; }
.shelf--vertical .shelf-heading { font-size: 26px; }
.shelf--vertical .shelf-track { flex-direction: column; gap: 14px; max-height: 540px; padding: 14px 16px 44px; overflow: hidden auto; }
.shelf--vertical .shelf-item { flex: none; }
.shelf--vertical .shelf-cover { width: 170px; height: 220px; }
.shelf--vertical .shelf-name { margin-top: 6px; font-size: 15px; white-space: normal; }
.shelf--vertical .shelf-caption { font-size: 12px; white-space: normal; }
.shelf.is-still .shelf-view::after { display: none; }
.shelf--vertical .shelf-view::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 90px; background: linear-gradient(to bottom, transparent, var(--shelf-paper) 80%); pointer-events: none; }
.shelf--vertical .shelf-next { bottom: 10px; left: 50%; transform: translateX(-50%); }
@media (max-width: 700px) { .shelf-heading { font-size: 19px; } .shelf-pill { font-size: 15px; } .shelf--vertical .shelf-heading { font-size: 22px; } }
.inline-form { display: inline-block; }
.group-item-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px dashed var(--line); }
.group-item-thumb { display: flex; align-items: center; justify-content: center; width: 72px; height: 96px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.group-item-row .field-note { display: block; color: var(--error); font-size: 12px; font-weight: normal; }
.group-item-row .field-note:empty { display: none; }
.group-item-thumb img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; }
.group-preview { padding-block: 24px 60px; }
.group-preview-heading { margin: 28px 0 12px; color: var(--muted); font-size: 14px; font-weight: normal; }
.group-preview-narrow { max-width: 480px; margin-bottom: 20px; }
.group-preview-sidebar { max-width: 340px; }
.group-preview-empty { padding: 40px 0; color: var(--muted); }
.primary-link { flex: none; display: inline-flex; align-items: center; padding: 7px 16px; border: 1px solid var(--surface); border-radius: 3px; background: var(--surface); color: var(--accent); font-size: 13px; font-weight: bold; white-space: nowrap; }
.primary-link:hover { background: var(--cool); color: var(--accent); }
.action-link, .secondary-link { display: inline-flex; align-items: center; padding: 4px 10px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); color: var(--ink); font-size: 12px; white-space: nowrap; }
.action-link:hover, .secondary-link:hover { background: var(--cool); color: var(--ink); }
.secondary-link { padding: 8px 14px; font-size: 13px; }
.row-actions { white-space: nowrap; }
.row-actions > * + * { margin-left: 6px; }
.row-actions .inline-form { margin-left: 6px; }
.add-button { margin-top: 18px; border-style: dashed; color: var(--accent); font-weight: bold; }
.add-button:disabled { cursor: not-allowed; opacity: .5; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
