.policy-reader-page {
  max-width: 1220px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.policy-reader-hero {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 36px 40px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #eef5ff 100%);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-hero);
  box-shadow: var(--shadow-sm);
}

.policy-reader-kicker {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  font-size: 13px;
  font-weight: 700;
}

.policy-reader-hero h1 {
  font-size: 34px;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.policy-reader-hero p {
  max-width: 680px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.policy-reader-stats {
  width: 280px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  flex-shrink: 0;
}

.policy-reader-stats div {
  padding: 20px;
  border: 1px solid var(--border-default);
  border-radius: 16px;
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow-sm);
}

.policy-reader-stats strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  color: var(--brand-primary);
  margin-bottom: 8px;
}

.policy-reader-stats span {
  color: var(--text-secondary);
  font-size: 13px;
}

.policy-reader-toolbar {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.policy-reader-workspace {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.policy-reader-main {
  min-width: 0;
}

.policy-reader-nav-wrap {
  min-width: 0;
}

.policy-reader-nav-title {
  margin-bottom: 12px;
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 900;
}

.policy-reader-nav {
  display: grid;
  gap: 14px;
}

.policy-reader-nav-group {
  display: grid;
  gap: 8px;
}

.policy-reader-nav-group-title {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 900;
}

.policy-reader-nav-buttons {
  display: grid;
  gap: 8px;
}

.policy-reader-nav-buttons button {
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border-default);
  border-radius: 10px;
  background: #FFFFFF;
  color: var(--text-secondary);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.policy-reader-nav-buttons button:hover {
  border-color: var(--brand-primary-pale);
  background: #F8FAFC;
  color: var(--text-primary);
}

.policy-reader-nav-buttons button.active {
  border-color: var(--brand-primary);
  background: var(--brand-primary-light);
  color: var(--brand-primary);
}

.policy-reader-nav-buttons button em {
  color: inherit;
  opacity: .72;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.policy-reader-actions {
  display: grid;
}

.policy-reader-select-wrap {
  display: grid;
  gap: 8px;
  min-width: 360px;
}

.policy-reader-select-wrap label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}

.policy-reader-select-wrap select {
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border-default);
  border-radius: 12px;
  background: #fff;
  color: var(--text-primary);
  font: inherit;
}

.policy-reader-actions {
  display: flex;
  gap: 10px;
}

.policy-related-guide {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  margin: -6px 0 20px;
  border: 1px solid var(--border-default);
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.policy-related-guide.show {
  display: flex;
}

.policy-related-guide strong {
  margin-right: 4px;
  color: var(--text-primary);
  font-size: 14px;
}

.policy-related-guide a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--border-default);
  border-radius: 999px;
  background: #F8FAFC;
  color: var(--brand-primary);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.policy-reader-card {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.policy-reader-titlebar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 4px 4px 20px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 18px;
}

.policy-reader-topic {
  color: var(--brand-primary);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.policy-reader-titlebar h2 {
  font-size: 24px;
  line-height: 1.35;
  color: var(--text-primary);
}

.policy-reader-hint {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

.policy-reader-content {
  position: relative;
  padding-right: 292px;
}

.policy-reader-loading,
.policy-reader-error {
  padding: 56px 24px;
  text-align: center;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  border-radius: 16px;
}

.reader-row {
  display: block;
  max-width: 730px;
  margin: 2px 0;
}

.reader-row.has-note {
  margin: 10px 0 14px;
}

.reader-left {
  min-width: 0;
  padding: 7px 0;
}

.reader-row.has-note .reader-left {
  padding-bottom: 14px;
}

.reader-left h3,
.reader-left h4 {
  margin: 22px 0 10px;
  color: var(--text-primary);
  line-height: 1.35;
}

.reader-left h3 {
  font-size: 22px;
}

.reader-left h4 {
  font-size: 18px;
}

.reader-left p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-primary);
}

.reader-mark {
  color: #dc2626;
  font-weight: 700;
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-color: #ef4444;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.reader-ref {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  margin-right: 5px;
  transform: translateY(-1px);
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  vertical-align: baseline;
}

.reader-arrow {
  position: absolute;
  left: -18px;
  top: 12px;
  color: #ef4444;
  font-size: 14px;
  line-height: 1;
  text-align: center;
}

.reader-note-layer {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
}

.reader-note-group {
  position: absolute;
  left: 0;
  right: 0;
}

.reader-notes {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.note-card {
  padding: 9px 11px;
  border: 1px solid #fecaca;
  border-left: 3px solid #ef4444;
  border-radius: 12px;
  background: #fff7f7;
  box-shadow: var(--shadow-sm);
}

.note-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.note-badge {
  display: inline-flex;
  height: 17px;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: #fee2e2;
  color: #dc2626;
  font-size: 10px;
  font-weight: 700;
}

.note-type {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  background: #F8FAFC;
  color: #6B7280;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.note-type-time { color: #2563EB; background: #EFF6FF; }
.note-type-condition { color: #B45309; background: #FFFBEB; }
.note-type-review { color: #047857; background: #ECFDF5; }
.note-type-exam { color: #7C3AED; background: #F5F3FF; }
.note-type-job { color: #0F766E; background: #F0FDFA; }
.note-type-default { color: #6B7280; background: #F3F4F6; }

.note-card h3 {
  font-size: 13px;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 0;
}

.note-summary {
  display: none;
}

.note-more {
  margin-top: 5px;
}

.note-more summary {
  cursor: pointer;
  color: var(--brand-primary);
  font-size: 11px;
  font-weight: 700;
}

.note-full-summary {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.6;
}

.note-more ul {
  margin: 8px 0 0 16px;
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.5;
}

.note-warning {
  margin-top: 8px;
  padding: 7px 9px;
  border: 1px solid #fca5a5;
  border-radius: 10px;
  background: #fff;
  color: #b91c1c;
  font-size: 11px;
  line-height: 1.55;
  font-weight: 600;
}

@media (max-width: 1100px) {
  .policy-reader-workspace {
    grid-template-columns: 1fr;
  }

  .policy-reader-toolbar {
    position: static;
  }

  .policy-reader-content {
    padding-right: 0;
  }

  .reader-arrow {
    display: none;
  }

  .reader-note-layer {
    position: static;
    width: auto;
    display: grid;
    gap: 12px;
    margin-top: 16px;
  }

  .reader-note-group {
    position: static;
  }

  .reader-notes {
    margin-bottom: 12px;
  }
}

@media (max-width: 768px) {
  .policy-reader-page {
    padding: 20px 14px 48px;
  }

  .policy-reader-hero,
  .policy-reader-titlebar {
    flex-direction: column;
    align-items: stretch;
  }

  .policy-reader-hero {
    padding: 28px 22px;
  }

  .policy-reader-stats,
  .policy-reader-select-wrap {
    width: 100%;
    min-width: 0;
  }

  .reader-left p {
    font-size: 15px;
  }
}
