:root {
  --ink: #171b21;
  --ink-muted: #303943;
  --navy: #0c3459;
  --navy-deep: #072640;
  --blue: #075e9e;
  --blue-soft: #e9f2f8;
  --gold: #b17a16;
  --gold-pale: #fff3d8;
  --red: #9f2424;
  --red-pale: #fff1ed;
  --paper: #ffffff;
  --canvas: #f3f0e8;
  --line: #9ba7b1;
  --line-light: #d5dce1;
  --serif: "Songti TC", "Noto Serif TC", "PMingLiU", serif;
  --sans: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
  --shadow: 0 16px 38px rgb(6 32 54 / 10%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent, rgb(177 122 22 / 4%) 50%, transparent),
    var(--canvas);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: #005b9f;
  font-weight: 700;
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

a:hover {
  color: #8a4900;
  text-decoration-thickness: 3px;
}

a:focus-visible,
input:focus-visible {
  outline: 4px solid #e5a51d;
  outline-offset: 4px;
}

strong {
  color: var(--navy-deep);
  font-weight: 800;
}

h1,
h2,
h3,
p,
li,
td,
th,
blockquote {
  overflow-wrap: anywhere;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.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: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  min-height: 48px;
  padding: 8px 18px;
  color: #fff;
  background: var(--navy-deep);
  border: 3px solid #fff;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  color: #fff;
  background:
    linear-gradient(128deg, rgb(255 255 255 / 5%) 0 32%, transparent 32%),
    repeating-linear-gradient(90deg, transparent 0 94px, rgb(255 255 255 / 3%) 94px 95px),
    var(--navy-deep);
  border-top: 8px solid var(--gold);
}

.header-grid {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  min-height: 480px;
  padding-block: 66px 72px;
}

.draft-mark {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 24px;
  color: #fff;
  border: 6px double #e7b54d;
  outline: 2px solid rgb(255 255 255 / 42%);
  outline-offset: 8px;
  font-family: var(--serif);
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  transform: rotate(-3deg);
}

.draft-mark span:first-child {
  font-size: 48px;
  letter-spacing: 0.12em;
}

.draft-mark span:last-child {
  font-family: var(--sans);
  font-size: 22px;
  letter-spacing: 0.18em;
}

.eyebrow {
  margin: 0 0 18px;
  color: #f1c86f;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

h1 {
  max-width: 850px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 5.2vw, 68px);
  font-weight: 800;
  letter-spacing: 0.025em;
  line-height: 1.3;
}

.subtitle {
  max-width: 840px;
  margin: 30px 0 0;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(21px, 2.1vw, 27px);
  font-weight: 700;
  line-height: 1.7;
}

.provider {
  margin: 20px 0 0;
  color: #fff5d6;
  font-size: 18px;
  font-weight: 700;
}

.draft-alert {
  color: #661111;
  background: var(--red-pale);
  border-block: 3px solid #bd3b2d;
}

.draft-alert p,
.update-band p {
  margin-block: 0;
  padding-block: 14px;
  text-align: center;
}

.draft-alert p {
  font-size: 21px;
  letter-spacing: 0.04em;
}

.draft-alert strong {
  color: #661111;
}

.update-band {
  color: #171b21;
  background: #f8df9d;
  border-bottom: 2px solid #b17a16;
}

.update-band p {
  font-size: 17px;
  font-weight: 800;
}

.introduction {
  margin: 72px 0 40px;
  padding: 34px 40px;
  color: var(--navy-deep);
  background: var(--paper);
  border-left: 8px solid var(--gold);
  box-shadow: var(--shadow);
}

.introduction p {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.9;
}

.contents {
  margin-bottom: 112px;
  padding: 34px 40px 40px;
  color: var(--ink);
  background: #fdfcf8;
  border: 2px solid var(--navy);
  box-shadow: 8px 8px 0 #d8bd82;
}

.contents-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--navy);
}

.contents-title p,
.contents-title span {
  margin: 0;
  color: var(--navy-deep);
  font-weight: 800;
}

.contents-title p {
  font-family: var(--serif);
  font-size: 28px;
}

.contents-title span {
  font-size: 17px;
}

.contents ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 38px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.contents a {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 56px;
  padding: 6px 0;
  color: var(--navy-deep);
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  text-decoration: underline;
}

.contents a span {
  color: #734a00;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.topic-section {
  margin-bottom: 124px;
  scroll-margin-top: 32px;
}

.section-header {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: stretch;
  margin-bottom: 46px;
  color: #fff;
  background: var(--navy-deep);
  border-bottom: 7px solid var(--gold);
}

.section-header p {
  display: grid;
  place-items: center;
  margin: 0;
  padding: 24px 20px;
  color: #1b1b1b;
  background: #e4b85f;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.section-header h2 {
  margin: 0;
  padding: 22px 30px 24px;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 47px);
  font-weight: 800;
  line-height: 1.35;
}

.issue-card {
  margin-bottom: 42px;
  background: var(--paper);
  border: 1px solid #aab5be;
  border-top: 5px solid var(--navy);
  box-shadow: var(--shadow);
  scroll-margin-top: 32px;
}

.issue-heading {
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr);
  align-items: stretch;
  min-height: 116px;
  border-bottom: 2px solid var(--line-light);
}

.issue-number {
  display: grid;
  place-items: center;
  color: #1c1609;
  background: #e8c473;
  font-family: Georgia, var(--serif);
  font-size: 45px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.issue-heading h3 {
  align-self: center;
  margin: 0;
  padding: 24px 30px;
  color: var(--navy-deep);
  font-family: var(--serif);
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 800;
  line-height: 1.55;
}

.issue-content {
  padding: 30px 40px 38px;
}

.issue-content p,
.issue-content li {
  font-size: 18px;
  line-height: 1.8;
}

.issue-content p {
  margin: 0 0 18px;
}

.issue-content p:last-child {
  margin-bottom: 0;
  padding: 22px 24px;
  background: var(--blue-soft);
  border-left: 6px solid var(--blue);
}

.issue-content ul {
  margin: -2px 0 22px;
  padding-left: 1.55em;
}

.issue-content li {
  margin-bottom: 10px;
  padding-left: 5px;
}

.issue-content a,
.source-table a {
  display: inline-block;
  min-width: 44px;
  min-height: 44px;
  padding: 4px 3px;
  vertical-align: middle;
}

.core-issue {
  border-top-color: var(--red);
}

.core-issue .issue-number {
  color: #fff;
  background: var(--red);
}

.meeting-issue {
  border: 3px solid var(--gold);
  border-top-width: 7px;
}

.reference-section {
  margin-bottom: 118px;
  scroll-margin-top: 32px;
}

.reference-heading {
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 5px solid var(--gold);
}

.reference-heading p {
  margin: 0 0 4px;
  color: #684400;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.reference-heading h2 {
  margin: 0;
  color: var(--navy-deep);
  font-family: var(--serif);
  font-size: clamp(33px, 4vw, 48px);
  line-height: 1.4;
}

.checklist-section {
  padding: 46px;
  background: #fffdf7;
  border: 2px solid var(--navy);
  box-shadow: 10px 10px 0 #d8bd82;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 34px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: checks;
}

.checklist li {
  counter-increment: checks;
  border-bottom: 1px solid var(--line);
}

.checklist label {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  min-height: 82px;
  padding: 15px 0;
  cursor: pointer;
}

.checklist label::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  color: #5b420f;
  content: counter(checks, decimal-leading-zero);
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: 800;
}

.checklist input {
  width: 36px;
  height: 36px;
  margin: 5px 0 0;
  accent-color: var(--navy);
  cursor: pointer;
}

.checklist span {
  padding-right: 32px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.75;
}

.table-wrap {
  background: var(--paper);
  border: 2px solid var(--navy-deep);
  box-shadow: var(--shadow);
}

.source-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

  .source-table th,
  .source-table td {
  padding: 17px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  line-height: 1.7;
  text-align: left;
  vertical-align: top;
}

.source-table th:last-child,
.source-table td:last-child {
  border-right: 0;
}

.source-table th {
  color: #fff;
  background: var(--navy-deep);
  font-size: 18px;
  font-weight: 800;
}

.source-table th:nth-child(1) { width: 22%; }
.source-table th:nth-child(2) { width: 22%; }
.source-table th:nth-child(3) { width: 34%; }
.source-table th:nth-child(4) { width: 22%; }

.source-table tbody tr:nth-child(even) {
  background: #f4f7f9;
}

.source-table td:first-child {
  color: var(--navy-deep);
  font-weight: 800;
}

.site-footer {
  padding: 66px 0 96px;
  color: #fff;
  background: var(--navy-deep);
  border-top: 8px solid var(--gold);
}

.site-footer blockquote {
  margin: 0;
  padding: 30px 34px;
  color: #fff;
  background: rgb(255 255 255 / 7%);
  border: 2px solid #d9b25f;
  font-size: 18px;
  font-style: normal;
  font-weight: 650;
  line-height: 1.85;
}

.back-to-top {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 132px;
  min-height: 58px;
  padding: 10px 18px;
  color: #fff;
  background: var(--navy-deep);
  border: 3px solid #e8c473;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 28%);
  font-size: 18px;
  text-decoration: underline;
}

.back-to-top:hover {
  color: #171b21;
  background: #f2cf80;
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 32px, 1180px);
  }

  .header-grid {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 34px;
    min-height: 420px;
  }

  .draft-mark span:first-child {
    font-size: 36px;
  }

  .contents ol,
  .checklist {
    grid-template-columns: 1fr;
  }

  .source-table,
  .source-table tbody,
  .source-table tr,
  .source-table td {
    display: block;
    width: 100%;
  }

  .source-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .source-table tr {
    padding: 12px 16px;
    border-bottom: 5px solid var(--navy);
  }

  .source-table td {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 14px;
    padding: 12px 4px;
    border-right: 0;
    font-size: 18px;
  }

  .source-table td::before {
    color: #5c3b00;
    content: attr(data-label);
    font-weight: 900;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 24px, 1180px);
  }

  .header-grid {
    display: block;
    min-height: 0;
    padding-block: 46px 50px;
  }

  .draft-mark {
    width: 146px;
    margin: 0 auto 42px;
  }

  .draft-mark span:first-child {
    font-size: 34px;
  }

  .draft-mark span:last-child {
    font-size: 18px;
  }

  .header-copy {
    text-align: center;
  }

  h1 {
    font-size: 37px;
    line-height: 1.35;
  }

  .eyebrow,
  .provider {
    font-size: 17px;
  }

  .draft-alert p {
    font-size: 19px;
  }

  .update-band p {
    font-size: 18px;
    line-height: 1.7;
  }

  .introduction {
    margin-top: 46px;
    padding: 26px 22px;
  }

  .introduction p {
    font-size: 20px;
  }

  .contents {
    margin-bottom: 80px;
    padding: 26px 20px 28px;
    box-shadow: 5px 5px 0 #d8bd82;
  }

  .contents-title {
    display: block;
  }

  .contents-title span {
    display: block;
    margin-top: 4px;
  }

  .contents a {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
  }

  .topic-section,
  .reference-section {
    margin-bottom: 84px;
  }

  .section-header {
    display: block;
    margin-bottom: 32px;
  }

  .section-header p {
    display: block;
    padding: 12px 18px;
    text-align: left;
  }

  .section-header h2 {
    padding: 18px 20px 22px;
    font-size: 32px;
  }

  .issue-card {
    margin-bottom: 32px;
  }

  .issue-heading {
    display: block;
    min-height: 0;
  }

  .issue-number {
    display: flex;
    width: 82px;
    min-height: 58px;
    justify-content: center;
    align-items: center;
    font-size: 34px;
  }

  .issue-heading h3 {
    padding: 20px;
    font-size: 24px;
  }

  .issue-content {
    padding: 24px 20px 28px;
  }

  .issue-content p:last-child {
    padding: 18px;
  }

  .issue-content ul {
    padding-left: 1.3em;
  }

  .checklist-section {
    padding: 28px 20px;
    box-shadow: 5px 5px 0 #d8bd82;
  }

  .checklist label {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
  }

  .source-table td {
    grid-template-columns: 1fr;
    gap: 2px;
    font-size: 18px;
  }

  .source-table td::before {
    font-size: 16px;
  }

  .site-footer {
    padding: 48px 0 108px;
  }

  .site-footer blockquote {
    padding: 24px 20px;
  }

  .back-to-top {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    min-width: 122px;
    min-height: 56px;
    padding-inline: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  body {
    background: #fff;
  }

  .back-to-top,
  .skip-link,
  .contents {
    display: none;
  }

  .site-header,
  .site-footer,
  .section-header,
  .source-table th {
    color: #000;
    background: #fff;
  }

  .issue-card,
  .table-wrap,
  .checklist-section {
    break-inside: avoid;
    box-shadow: none;
  }

  a {
    color: #000;
  }
}
