:root {
  color-scheme: light;
  --ink: #182b25;
  --muted: #52655e;
  --deep: #102a22;
  --accent: #006044;
  --line: #dce5df;
  --paper: #fff;
  --canvas: #f4f7f5;
  --tint: #e8f4ed;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #003b2a; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #188963; outline-offset: 3px; }
h1, h2, h3, p, dl, dd { margin: 0; }
.shell { width: min(1320px, 100% - 96px); margin-inline: auto; }

.masthead { background: var(--deep); color: #f4fbf7; border-top: 4px solid #76bf9c; }
.topbar {
  min-height: 62px; display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid #395147;
}
.brand {
  font-family: Georgia, "Songti SC", serif; font-size: 1.55rem; font-weight: 700;
  letter-spacing: -.035em; text-decoration: none; color: inherit;
}
.top-link {
  color: #d4ecde; font-size: .875rem; font-weight: 550;
  padding: 7px 12px; border: 1px solid #5c796a; border-radius: 5px; text-decoration: none;
}
.brand:hover, .top-link:hover { color: #fff; }
.top-link:hover { background: #274438; }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 31px 34px; }
.hero h1 { font-size: clamp(2.3rem, 4vw, 3.25rem); letter-spacing: -.055em; line-height: 1.2; }
.hero p { margin-top: 8px; color: #bed3c8; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(94px, 1fr)); }
.metric { display: flex; flex-direction: column; gap: 4px; border-left: 1px solid #49675a; padding-inline: 20px 16px; }
.metric dt { color: #c5d9d0; font-size: .875rem; }
.metric dd { order: -1; font-size: 1.8rem; font-weight: 620; font-variant-numeric: tabular-nums; }

.workspace { display: grid; grid-template-columns: minmax(224px, 278px) minmax(0, 1fr); gap: 24px; align-items: start; padding-block: 28px 48px; }
.company-list, .company-profile, .archive, .calendar {
  background: var(--paper); border: 1px solid var(--line); border-radius: 9px; min-width: 0;
}
.list-head { padding: 18px 17px 13px; }
.list-head h2, .section-title { font-size: 1.04rem; }
.field { display: block; margin-top: 14px; }
.field input {
  background: var(--canvas); color: var(--ink); border: 1px solid var(--line); border-radius: 5px;
  width: 100%; font-size: .9rem; padding: 9px 10px;
}
.company-list nav { padding: 0 8px 9px; }
.company-link {
  position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center;
  gap: 10px; padding: 10px 8px; color: var(--ink); border: 1px solid transparent;
  border-radius: 6px; text-decoration: none; min-height: 59px;
}
.company-link:hover { background: var(--canvas); }
.company-link[aria-current="true"] { border-color: #c6e5d4; background: var(--tint); color: #004f37; }
.monogram {
  display: grid; place-items: center; height: 34px; border-radius: 5px; background: #eef2ef;
  color: #294b3e; font-size: .875rem; font-weight: 700;
}
.company-link[aria-current="true"] .monogram { background: #d3e9dc; }
.company-link strong { display: block; font-size: .94rem; line-height: 1.32; overflow-wrap: anywhere; }
.company-link small { display: block; margin-top: 3px; font-size: .82rem; color: var(--muted); }

.company-profile { padding: 20px 22px 18px; }
.profile-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.profile-head h2 { font-size: clamp(1.55rem, 3vw, 2.05rem); letter-spacing: -.035em; line-height: 1.2; }
.byline { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: .875rem; }
.pill { display: inline-block; border-radius: 4px; padding: 3px 7px; background: #eef2ef; color: #3f5650; font-size: .82rem; font-weight: 550; }
.pill.active { background: var(--tint); color: #155a40; }
.profile-link { white-space: nowrap; font-size: .875rem; font-weight: 600; padding-block: 5px; }
.profile-desc { margin-top: 12px; line-height: 1.55; font-size: .96rem; }
.focus { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; row-gap: 5px; margin-top: 13px; font-size: .875rem; }
.focus strong { font-size: .875rem; margin-right: 3px; }
.focus span { background: var(--canvas); border: 1px solid var(--line); border-radius: 4px; padding: 3px 7px; color: #37554a; }

.details-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(215px, 260px); gap: 16px; margin-top: 16px; align-items: start; }
.section-title { padding: 16px 16px 0; }
.filters { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding: 8px 12px 0; gap: 6px; }
.filter {
  color: var(--muted); background: transparent; padding: 8px 6px 9px; border: 0; margin-bottom: -1px;
  border-bottom: 2px solid transparent; font-size: .875rem; cursor: pointer;
}
.filter:hover { color: var(--accent); }
.filter[aria-pressed="true"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 650; }
.filter small { font-size: .81rem; padding-left: 3px; }
.archive-list, .event-list, .source-list { list-style: none; padding: 0; margin: 0; }
.archive-row { padding: 11px 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
.archive-row + .archive-row { border-top: 1px solid var(--line); }
.item-title { display: block; width: fit-content; font-size: .95rem; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; text-decoration: none; }
.item-title:hover { text-decoration: underline; }
.item-details { font-size: .82rem; color: var(--muted); margin-top: 3px; display: flex; flex-wrap: wrap; gap: 5px 8px; }
.item-date { color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; white-space: nowrap; padding-top: 3px; }
.calendar .section-title { padding-bottom: 5px; }
.event-list { padding-inline: 16px; }
.event { padding: 9px 0; }
.event + .event { border-top: 1px solid var(--line); }
.event-title { font-size: .9rem; font-weight: 620; line-height: 1.4; }
.event-info { color: var(--muted); margin-top: 4px; font-size: .82rem; line-height: 1.45; }
.event-info time { color: var(--ink); font-variant-numeric: tabular-nums; }
.calendar-sources { margin-top: 6px; padding: 12px 16px 14px; border-top: 1px solid var(--line); }
.calendar-sources h4 { margin: 0 0 6px; font-size: .86rem; }
.source-list { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .82rem; }
.empty { padding: 14px 16px; color: var(--muted); font-size: .91rem; line-height: 1.5; }
.sr-only { clip-path: inset(50%); position: absolute; width: 1px; height: 1px; overflow: hidden; }

.report { max-width: 1100px; margin: 24px auto 52px; padding: 26px clamp(16px, 4vw, 48px); background: var(--paper); line-height: 1.68; }
.report h1, .report h2, .report h3 { margin-block: 1.1em .5em; line-height: 1.35; letter-spacing: -.02em; }
.report h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
.report p, .report ul, .report ol, .report blockquote { margin-block: .85em; }
.report blockquote { margin-inline: 0; padding: .2em 1em; border-left: 3px solid #76bf9c; background: var(--canvas); }
.report .table-wrap { overflow-x: auto; }
.report table { border-collapse: collapse; width: 100%; font-size: .88rem; }
.report th, .report td { border: 1px solid var(--line); padding: 6px 8px; text-align: start; min-width: 6em; }
.report th { background: var(--tint); }
.report pre { overflow: auto; }
.report code { overflow-wrap: anywhere; }
.report img { max-width: 100%; }
.report a { overflow-wrap: anywhere; }

@media (max-width: 980px) {
  .shell { width: calc(100% - 52px); }
  .workspace { grid-template-columns: minmax(190px, 220px) minmax(0, 1fr); gap: 16px; }
  .details-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 690px) {
  .shell { width: calc(100% - 32px); }
  .hero { display: block; padding-block: 22px; }
  .metrics { width: 100%; margin-top: 20px; }
  .metric { padding-inline: 10px; }
  .metric:first-child { padding-left: 0; border-left: 0; }
  .workspace { display: block; padding-top: 16px; }
  .company-list { margin-bottom: 14px; }
  .company-list nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 4px; }
  .company-profile { padding: 16px 14px; }
  .archive-row { grid-template-columns: minmax(0, 1fr); gap: 1px; padding-inline: 13px; }
  .item-date { padding-top: 0; }
}
