:root { --ink: #263647; --muted: #64768a; --accent: #32689a; --paper: #f5f8fc; --line: #a9bfd5; --cool: #e8f0f8; }
.view-nav { background: var(--accent); border-block: 1px solid #285780; color: #fff; }
.view-nav .container { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-block: 10px; font-size: 12px; }
.view-nav a:hover { color: #ffdf78; }
.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 #285780; background: var(--accent); color: #fff; }
.section-heading h2 { font-size: 15px; margin: 0; overflow-wrap: anywhere; }
.section-heading h2 a { color: inherit; font-size: inherit; }
.section-heading a, .section-heading span { font-size: 11px; white-space: nowrap; color: #eaf4ff; }
.compact-article { padding: 5px 8px; background: #fff; border-inline: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.compact-article time { font-size: 11px; color: var(--muted); }
.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, .ranking-articles .source-info { color: #858b87; font-size: 11px; line-height: 1.4; margin: 0 0 3px; overflow-wrap: anywhere; }
.rank-list .source-info { color: #858b87; 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; }
.rank-list li { border-inline: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; padding: 8px 9px; line-height: 1.55; overflow-wrap: anywhere; }
.rank-list li:nth-child(even) { background: #f2f6fb; }
.rank-list li span { color: var(--muted); margin-left: 10px; }
.no-rank { list-style: none; color: var(--muted); }
.section-more { display: block; font-size: 12px; margin-top: 16px; }
.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: #fff; }
.topic-list li:nth-child(even) { background: #f2f6fb; }
.topic-list a { overflow-wrap: anywhere; min-width: 0; }
.topic-list span { white-space: nowrap; color: var(--muted); font-size: 11px; }
.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: #fff; }
.source-directory-list li:nth-child(even) { background: #f2f6fb; }
.source-directory-list a { font-weight: bold; overflow-wrap: anywhere; }
.source-directory-list span { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.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); }
.ranking-articles li { display: grid; grid-template-columns: 40px minmax(0, 1fr) 50px; align-items: center; gap: 20px; border: 1px solid var(--line); border-top: 0; background: #fff; padding: 10px; }
.ranking-articles h2 { font-size: 16px; line-height: 1.6; margin: 0; overflow-wrap: anywhere; }
.rank-position { font: 24px Georgia, serif; color: #e45c50; }
.rank-score { font-size: 14px; text-align: right; }
.trends-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.admin-header { background: #fff; border-top: 5px solid var(--ink); 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; }
.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]), .edit-form select { 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: #fff; min-width: 100px; }
.login-panel { max-width: 460px; padding-block: 80px; }
.ad-slot { min-height: 90px; padding: 12px 16px; border: 1px solid #e7bd55; background: #fff6d9; color: #67521c; display: flex; flex-direction: column; justify-content: center; gap: 5px; font-size: 11px; }
.ad-slot-label { color: #ad642c; font-size: 10px; font-weight: bold; }
.ad-slot-placeholder { color: #78683e; }
.ad-slot--infeed { min-height: 72px; margin: 10px 0; }
.text-ad { color: #345f91; font-size: 13px; font-weight: bold; overflow-wrap: anywhere; }
.ad-slot--sidebar { margin-top: 24px; }
.rank-sidebar > .ad-slot--sidebar { margin: 0 0 16px; }
.ad-slot--sidebar-bottom { margin-top: 20px; }
.ad-slot--footer-banner { margin-top: 20px; }
@media (max-width: 700px) { .home-layout, .trends-layout, .form-grid { grid-template-columns: 1fr; gap: 20px; } .ranking-articles li { gap: 12px; grid-template-columns: 30px minmax(0,1fr) 35px; } .ranking-articles h2 { font-size: 15px; } }
* { 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 { outline: 2px solid var(--accent); outline-offset: 4px; }
button, input, select { font: inherit; }
button { cursor: pointer; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 3px; padding: 8px 12px; white-space: nowrap; }
input, select { border: 1px solid var(--line); background: #fff; border-radius: 3px; padding: 9px 12px; min-width: 0; }
.container { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.masthead { background: #fff; border-top: 5px solid var(--ink); }
.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 > .ad-slot { flex: 0 1 468px; width: 468px; max-width: 100%; min-width: 0; min-height: 60px; }
.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; }
.category-nav { border-block: 1px solid var(--line); background: #fff; }
.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 #285780; background: var(--accent); color: #fff; }
.page-heading .eyebrow { font-size: 10px; font-weight: bold; color: #ffdf78; margin: 0 0 3px; }
.page-heading h1 { color: inherit; font-size: 22px; line-height: 1.4; }
.page-heading .count { color: #eaf4ff; }
.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: #fff; font-size: 11px; margin: 0; align-self: flex-end; }
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); align-items: center; gap: 16px; padding: 10px 12px; border-inline: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.article-row:nth-of-type(even) { background: #f2f6fb; }
.row-date { font-size: 11px; color: var(--muted); padding-top: 0; display: flex; flex-direction: column; gap: 6px; }
.row-number { font-family: Georgia, serif; font-size: 18px; color: #e45c50; }
.source-label { font-size: 11px; color: #3d7560; }
.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-origin { font-size: 13px; color: var(--muted); }
.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: #fff; 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 > .ad-slot { 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); gap: 8px 10px; padding: 9px; }
  .row-date { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; gap: 10px; }
  .row-number { font-size: 15px; }
  .row-body h2 { font-size: 14px; }
  .compact-article h3 { font-size: 13px; }
  .compact-article { padding: 5px 7px; }
  .rank-list li { padding: 8px; }
  .source-directory-list li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .ad-slot { min-height: 64px; padding: 9px 12px; }
  .footer .container { flex-direction: column; align-items: start; gap: 0; }
}