html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: #111111;
  font-family: "Times New Roman", "Noto Serif SC", "Songti SC", serif;
  font-size: 18px;
  line-height: 1.5;
}

a {
  color: #1a4fa3;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page {
  width: min(1160px, calc(100% - 48px));
  margin: 24px auto 48px;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 28px;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 700;
}

.hero-role {
  font-weight: 700;
}

.hero p {
  margin: 0 0 5px;
}

.hero-links {
  margin-top: 14px;
}

.hero-photo {
  width: 190px;
  flex: 0 0 190px;
}

.hero-photo img {
  display: block;
  width: 100%;
  border: 1px solid #d9d9d9;
}

section {
  margin-top: 20px;
}

section h2 {
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #9a9a9a;
  font-size: 20px;
  font-weight: 700;
}

section p {
  margin: 0 0 10px;
}

.news-list {
  margin: 0;
  padding-left: 24px;
  list-style-type: square;
}

.news-list li {
  margin: 0 0 8px;
}

.news-list span {
  font-weight: 700;
}

.target-list {
  margin: 0 0 14px 0;
  padding-left: 24px;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.focus-grid article {
  border: 1px solid #bdbdbd;
  padding: 12px 14px;
}

.focus-grid h3,
.record-item h3,
.simple-list h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.focus-grid p,
.record-item p,
.simple-list p {
  margin: 0 0 8px;
}

.record-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.record-item {
  padding: 0 0 12px;
  border-bottom: 1px solid #d0d0d0;
}

.record-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.record-links {
  margin-top: 4px;
}

.simple-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.simple-list article {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
}

.time {
  font-weight: 700;
}

.content {
  min-width: 0;
}

.site-card {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  width: 100%;
}

.site-card img {
  width: 62px;
  height: 62px;
  border: 1px solid #d0d0d0;
}

.site-card-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 14px;
}

.export-section {
  margin-bottom: 24px;
}

.pdf-button {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid #8f8f8f;
  background: #f5f5f5;
  color: #111111;
  font: inherit;
  cursor: pointer;
}

.pdf-button:hover {
  background: #ececec;
}

strong,
em {
  font-weight: 700;
}

.brief-only {
  display: none;
}

.brief-publication-list {
  margin: 0;
  padding-left: 22px;
}

.brief-publication-list li {
  margin: 0 0 8px;
}

.brief-education p {
  margin: 0 0 8px;
}

body.brief-view {
  font-size: 16px;
  line-height: 1.38;
}

.brief-view .page {
  width: min(1080px, calc(100% - 40px));
  margin-top: 18px;
  margin-bottom: 28px;
}

.brief-view .hero {
  gap: 24px;
  margin-bottom: 18px;
}

.brief-view .hero h1 {
  margin-bottom: 10px;
  font-size: 27px;
}

.brief-view .hero p {
  margin-bottom: 4px;
}

.brief-view .hero-photo {
  width: 170px;
  flex: 0 0 170px;
}

.brief-view section {
  margin-top: 14px;
}

.brief-view section h2 {
  margin-bottom: 7px;
  padding-bottom: 4px;
  font-size: 19px;
}

.brief-view section p {
  margin-bottom: 7px;
}

.brief-view .full-only {
  display: none !important;
}

.brief-view .brief-only {
  display: block;
}

.brief-view .site-card {
  margin-top: 12px;
  justify-content: flex-end;
  width: 100%;
}

.brief-view .site-card img {
  width: 52px;
  height: 52px;
}

.brief-view .site-card-text {
  font-size: 13px;
}

.brief-view #summary {
  display: none;
}

@media (max-width: 820px) {
  body {
    font-size: 17px;
  }

  .page {
    width: min(100% - 24px, 100%);
    margin-top: 16px;
  }

  .hero {
    flex-direction: column-reverse;
  }

  .hero-photo {
    width: 170px;
    flex-basis: auto;
  }

  .focus-grid {
    grid-template-columns: 1fr;
  }

  .simple-list article {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .site-card {
    justify-content: flex-start;
  }

  .site-card-text {
    align-items: flex-start;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 10mm;
  }

  .page {
    width: 100%;
    margin: 0;
  }

  .hero {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
  }

  .hero-text {
    flex: 1;
    min-width: 0;
  }

  .hero-photo {
    width: 165px;
    flex: 0 0 165px;
  }

  a {
    color: #1a4fa3;
    text-decoration: none;
  }

  body {
    background: #ffffff;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  p,
  li {
    orphans: 3;
    widows: 3;
  }

  .export-section,
  .pdf-button {
    display: none !important;
  }

  .hero,
  .record-item,
  .simple-list article,
  .focus-grid article {
    break-inside: avoid;
  }

  section {
    margin-top: 12px;
    break-inside: auto;
  }

  section h2 {
    break-after: avoid;
    margin-bottom: 8px;
  }

  .record-list,
  .simple-list {
    gap: 10px;
  }

  .record-item,
  .simple-list article,
  .focus-grid article {
    margin-bottom: 0;
  }

  .news-list li,
  .target-list li {
    break-inside: avoid;
  }

  body.brief-view {
    font-size: 13.7px;
    line-height: 1.24;
  }

  body.brief-view .page {
    width: 100%;
    margin: 0;
  }

  body.brief-view .hero {
    gap: 18px;
    margin-bottom: 10px;
  }

  body.brief-view .hero h1 {
    margin-bottom: 8px;
    font-size: 24px;
  }

  body.brief-view .hero p {
    margin-bottom: 3px;
  }

  body.brief-view .hero-photo {
    width: 136px;
    flex: 0 0 136px;
  }

  body.brief-view section {
    margin-top: 8px;
  }

  body.brief-view section h2 {
    margin-bottom: 4px;
    padding-bottom: 3px;
    font-size: 17px;
  }

  body.brief-view section p,
  body.brief-view .brief-publication-list li,
  body.brief-view .news-list li {
    margin-bottom: 4px;
  }

  body.brief-view .brief-publication-list {
    padding-left: 16px;
  }

  body.brief-view .site-card {
    margin-top: 8px;
    justify-content: flex-end;
    width: 100%;
  }

  body.brief-view .site-card img {
    width: 42px;
    height: 42px;
  }

  body.brief-view .hero,
  body.brief-view .site-card,
  body.brief-view .brief-education {
    break-inside: avoid;
  }
}
