/* secnews-list-gcu — single stylesheet, no external fonts or JS */
:root {
  --bg: #f4f1ea;
  --bg-elev: #fffcf7;
  --bg-mute: #ebe6db;
  --text: #1c1915;
  --muted: #5c564c;
  --border: #ddd6c8;
  --accent: #1f3d5a;
  --link: #1a4f86;
  --link-hover: #0f3a66;
  --critical: #b42318;
  --critical-bg: #fdecea;
  --critical-bar: #b42318;
  --high: #b54708;
  --high-bg: #fef4e6;
  --high-bar: #b54708;
  --info: #3d4a57;
  --info-bg: #eef2f5;
  --info-bar: #5b6b7a;
  --latest: #0f6b5c;
  --latest-bg: #e6f5f1;
  --shadow: 0 1px 2px rgba(28, 25, 21, 0.04), 0 8px 24px rgba(28, 25, 21, 0.06);
  --radius: 12px;
  --mono: "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono", ui-monospace, monospace;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic",
           "Noto Sans JP", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC",
           "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121417;
    --bg-elev: #1b1e23;
    --bg-mute: #24282f;
    --text: #ece7de;
    --muted: #b0a89c;
    --border: #2f343c;
    --accent: #d7dee8;
    --link: #8ec8f6;
    --link-hover: #c5e3fb;
    --critical: #f27d73;
    --critical-bg: #2c1716;
    --critical-bar: #e85a4f;
    --high: #f0a35a;
    --high-bg: #2a1d12;
    --high-bar: #e08a3c;
    --info: #c5d0db;
    --info-bg: #1b2229;
    --info-bar: #8b9aaa;
    --latest: #5ee0c7;
    --latest-bg: #12332c;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.28);
  }
}

* { box-sizing: border-box; }
html { color-scheme: light dark; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
a:hover { color: var(--link-hover); }
a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.inner {
  width: min(780px, calc(100% - 2.2rem));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  flex-wrap: wrap;
  padding: 0.65rem 0;
}
.site-title {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: baseline;
  min-width: 0;
  flex: 1 1 auto;
}
.site-title:hover { color: var(--link-hover); }
.site-title .sep {
  color: var(--muted);
  font-weight: 400;
  opacity: 0.7;
}
.site-title .zh { font-weight: 650; }

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 0.7rem;
  margin-left: auto;
  flex: 0 1 auto;
  flex-wrap: wrap;
}

.date-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  position: relative;
}
.pager-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  border: 1px solid transparent;
}
.pager-link:hover {
  background: var(--bg-mute);
  color: var(--link-hover);
}
.pager-link.disabled {
  color: var(--muted);
  opacity: 0.4;
  pointer-events: none;
}

.date-picker {
  position: relative;
}
.date-picker summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  background: var(--bg);
  font-weight: 650;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1.4;
  user-select: none;
}
.date-picker summary::-webkit-details-marker,
.date-picker summary::marker { display: none; content: ""; }
.date-picker summary::after {
  content: "▾";
  font-size: 0.75em;
  color: var(--muted);
  margin-left: 0.1rem;
}
.date-picker[open] summary::after { content: "▴"; }
.date-picker summary:hover { border-color: color-mix(in srgb, var(--link) 40%, var(--border)); }
.date-picker summary:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}
.date-summary-label { white-space: nowrap; }
.date-picker summary .counts { font-weight: 500; }

.date-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: max(16.5rem, 100%);
  width: max(18rem, 100%);
  max-width: min(22rem, calc(100vw - 1.5rem));
  max-height: min(70vh, 28rem);
  overflow: auto;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 30;
  padding: 0.35rem;
}
.date-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.date-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.15rem 0.7rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
}
.date-item:hover { background: var(--bg-mute); color: var(--text); }
.date-item.is-current {
  background: var(--latest-bg);
  font-weight: 650;
}
.date-item-label { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem; }
.date-item .counts { font-size: 0.82rem; }

.badge-latest {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--latest);
  background: var(--latest-bg);
  border-radius: 999px;
  padding: 0.08rem 0.45rem;
  vertical-align: middle;
}
.date-item.is-current .badge-latest,
.date-picker summary .badge-latest {
  background: var(--bg-elev);
}

.counts {
  color: var(--muted);
  font-size: 0.86rem;
}
.count.critical { color: var(--critical); font-weight: 650; }
.count.high { color: var(--high); font-weight: 650; }
.count.info { color: var(--info); }
.dot { margin: 0 0.1rem; color: var(--muted); }

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.88rem;
  background: var(--bg-elev);
  flex: 0 0 auto;
}
.lang-toggle a,
.lang-toggle .current {
  padding: 0.2rem 0.8rem;
  text-decoration: none;
  line-height: 1.4;
}
.lang-toggle .current {
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
}
@media (prefers-color-scheme: dark) {
  .lang-toggle .current {
    color: #121417;
    background: var(--accent);
  }
}

main {
  padding: 1.6rem 0 3rem;
}

article h1, .article-title {
  margin: 0 0 0.5rem;
  font-size: 1.45rem;
  line-height: 1.35;
}
.subject {
  margin: 0 0 1rem;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.45;
}
.lead {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1.05rem;
  margin: 0 0 1.6rem;
  color: var(--muted);
  font-size: 0.96rem;
}
.lead p { margin: 0.25rem 0; }
.period {
  margin: 0 0 1.3rem;
  color: var(--muted);
  font-size: 0.96rem;
}

section.sev {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.2rem 1.15rem 1rem;
  margin: 0 0 1.2rem;
  border-left-width: 5px;
}
section.sev.critical { border-left-color: var(--critical-bar); }
section.sev.high { border-left-color: var(--high-bar); }
section.sev.info { border-left-color: var(--info-bar); }
.sev-heading {
  margin: 0.85rem 0 0.6rem;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
section.sev.critical .sev-heading { color: var(--critical); }
section.sev.high .sev-heading { color: var(--high); }
section.sev.info .sev-heading { color: var(--info); }

ol.items {
  margin: 0;
  padding: 0 0 0 1.4rem;
}
ol.items > li {
  margin: 0 0 1.05rem;
  padding: 0 0 1.05rem;
  border-bottom: 1px dashed var(--border);
}
ol.items > li:last-child {
  margin-bottom: 0.2rem;
  padding-bottom: 0.2rem;
  border-bottom: 0;
}
ol.items h3 {
  margin: 0 0 0.25rem;
  font-size: 1.02rem;
  line-height: 1.45;
  font-weight: 700;
}
ol.items p { margin: 0.2rem 0 0.35rem; }
ol.items.zh-items > li {
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
}

ul.refs {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}
ul.refs a {
  display: inline-block;
  max-width: 100%;
  font-size: 0.86rem;
  font-family: var(--mono);
  word-break: break-all;
  line-height: 1.45;
}

.stack-flag {
  margin-right: 0.15rem;
}

.disclaimers {
  margin: 1.6rem 0 0;
  padding: 0.9rem 0 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}
.disclaimers p { margin: 0.2rem 0; }

.notes {
  margin: 1.6rem 0 0;
  padding: 0.95rem 1.05rem;
  background: var(--bg-mute);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.92rem;
}
.notes p { margin: 0.4rem 0; }
.notes p:first-child { margin-top: 0; }
.notes p:last-child { margin-bottom: 0; }

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--bg-mute);
  border-radius: 4px;
  padding: 0.05em 0.35em;
  word-break: break-all;
}

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

@media (max-width: 640px) {
  .site-title.lang-ja .sep,
  .site-title.lang-ja .zh,
  .site-title.lang-zh .sep,
  .site-title.lang-zh .ja { display: none; }
  .date-picker summary .counts { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  article h1, .article-title { font-size: 1.28rem; }
  .inner { width: min(780px, calc(100% - 1.5rem)); }
  section.sev, .lead { padding-left: 0.9rem; padding-right: 0.9rem; }
  .header-bar { padding: 0.55rem 0; }
  .header-tools { width: 100%; }
  .date-menu {
    right: 0;
    left: auto;
    max-width: calc(100vw - 1.5rem);
  }
}

@media print {
  .site-header { position: static; }
  .header-tools, .site-footer { display: none; }
  body { background: white; color: black; }
  section.sev, .lead { box-shadow: none; }
  a { color: black; }
  ul.refs a::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}
