:root {
  --bg: #f1f5fb;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-solid: #ffffff;
  --surface-soft: #f8fafc;
  --line: #e5e9f0;
  --line-strong: #d8dee8;
  --text: #344054;
  --text-strong: #172033;
  --muted: #667085;
  --muted-soft: #98a2b3;
  --brand: #2f6bff;
  --brand-deep: #304166;
  --brand-soft: #eaf1ff;
  --accent: #ee4932;
  --sunny: #ffd76a;
  --mint: #65d6a5;
  --violet: #9b8cff;
  --link: #2759cd;
  --radius: 8px;
  --shadow: 0 18px 44px rgba(16, 24, 40, 0.08);
  --shadow-soft: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 22px rgba(16, 24, 40, 0.04);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 1180px;
  color: var(--text);
  background:
    linear-gradient(180deg, #f6f9fd 0%, var(--bg) 260px, #eef3f9 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  color: #fff;
  background: var(--brand);
}

a {
  color: inherit;
  text-decoration: none;
}

.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;
}

.topbar {
  height: 52px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(216, 222, 232, 0.72);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.82) inset,
    0 8px 22px rgba(16, 24, 40, 0.045),
    0 1px 3px rgba(16, 24, 40, 0.035);
  backdrop-filter: saturate(180%) blur(18px);
}

.topnav {
  width: min(1600px, calc(100% - 56px));
  height: 52px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
  overflow: hidden;
}

.topnav-brand {
  width: 138px;
  height: 52px;
  margin-right: 6px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  align-self: stretch;
  line-height: 0;
}

.topnav-brand img {
  display: block;
  width: 126px;
  height: auto;
  max-height: 34px;
  object-fit: contain;
}

.topnav-link {
  height: 52px;
  display: inline-flex;
  align-items: center;
  color: #344054;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  position: relative;
  white-space: nowrap;
}

.topnav-link:hover {
  color: var(--text-strong);
}

.topnav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand);
}

.shell {
  width: min(1600px, calc(100% - 56px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 22px;
  padding: 32px 0 48px;
}

.sidebar {
  position: sticky;
  top: 72px;
  align-self: start;
  max-height: calc(100vh - 88px);
  margin-top: 154px;
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 17px;
  color: #667085;
  overflow-y: auto;
  scrollbar-width: none;
}

.sidebar::-webkit-scrollbar {
  display: none;
}

.sidebar a {
  display: flex;
  align-items: center;
  min-height: 17px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.18s ease, transform 0.18s ease;
}

.sidebar a:hover {
  color: var(--text-strong);
  transform: translateX(1px);
}

.sidebar a.selected,
.sidebar a[aria-current="true"] {
  color: var(--brand);
  font-weight: 700;
  position: relative;
  padding-left: 18px;
}

.sidebar a.selected::before,
.sidebar a[aria-current="true"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 2px;
  transform: translateY(-50%);
  background: var(--brand);
  border-radius: 999px;
}

.page {
  min-width: 0;
}

.hero {
  height: 132px;
  display: grid;
  grid-template-columns: 220px 640px;
  column-gap: 80px;
  align-items: start;
}

.brand-block h1 {
  margin: 16px 0 0;
  line-height: 0;
}

.brand-logo-image {
  display: block;
  width: 210px;
  height: auto;
}

.search-area {
  margin-top: 16px;
  width: 640px;
}

.search-tabs {
  width: 640px;
  height: 26px;
  display: flex;
  box-sizing: border-box;
  align-items: flex-start;
  gap: 34px;
  padding-left: 34px;
  color: var(--muted-soft);
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.search-tabs button {
  position: relative;
  padding-bottom: 8px;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
  transition: color 0.16s ease;
}

.search-tabs button:hover {
  color: var(--text-strong);
}

.search-tabs button.active {
  color: var(--text-strong);
  font-weight: 700;
}

.search-tabs button.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 8px;
  height: 3px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--brand);
}

.search-box {
  width: 640px;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 15px 0 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(216, 222, 232, 0.95);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 10px 28px rgba(16, 24, 40, 0.05);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.search-box:focus-within {
  background: #fff;
  border-color: rgba(39, 89, 205, 0.46);
  box-shadow: 0 0 0 4px rgba(39, 89, 205, 0.08), 0 14px 34px rgba(16, 24, 40, 0.08);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  box-shadow: none;
  color: var(--text-strong);
  font: inherit;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
}

.search-box input::placeholder {
  color: var(--muted-soft);
}

.search-box input:focus,
.search-box input:focus-visible {
  outline: 0;
  box-shadow: none;
}

.search-box input::-webkit-search-decoration,
.search-box input::-webkit-search-cancel-button,
.search-box input::-webkit-search-results-button,
.search-box input::-webkit-search-results-decoration {
  display: none;
}

.search-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--brand);
}

.search-submit {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: var(--brand);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.search-submit:hover {
  color: rgb(255 97 84 / 1);
  background: #f3f5f8;
}

.notice-strip {
  height: 31px;
  margin: -14px 0 9px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  border: 1px solid rgba(216, 222, 232, 0.76);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.56);
  color: #7d899e;
  overflow: hidden;
  box-shadow: none;
}

.notice-strip span {
  min-width: 0;
  padding: 0 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-right: 1px solid rgba(189, 209, 255, 0.36);
}

.notice-strip span:last-child {
  border-right: 0;
}

.notice-strip strong {
  margin-right: 6px;
  color: var(--brand-deep);
  font-weight: 700;
}

.buddy-today {
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 18px;
  border: 1px solid rgba(187, 209, 255, 0.82);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(241, 246, 255, 0.86)),
    linear-gradient(135deg, rgba(255, 215, 106, 0.16), rgba(47, 107, 255, 0.06));
  box-shadow: 0 8px 24px rgba(47, 107, 255, 0.06);
}

.buddy-copy {
  min-width: 0;
  position: relative;
  padding-left: 44px;
}

.buddy-copy::before {
  content: "学";
  position: absolute;
  left: 0;
  top: 50%;
  width: 30px;
  height: 30px;
  transform: translateY(-50%) rotate(-4deg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 215, 106, 0.8);
  border-radius: 10px;
  color: #8a5b00;
  background: #fff5c7;
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 4px 10px rgba(255, 215, 106, 0.2);
}

.buddy-copy span {
  display: block;
  margin-bottom: 5px;
  color: var(--brand);
  font-size: 12px;
  line-height: 1;
  font-weight: 820;
}

.buddy-copy strong {
  display: block;
  color: var(--text-strong);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 850;
}

.buddy-copy p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.buddy-action {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.buddy-action a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 13px;
  border: 1px solid rgba(187, 209, 255, 0.9);
  border-radius: 999px;
  color: var(--brand);
  background: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 760;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.buddy-action a:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 6px 16px rgba(47, 107, 255, 0.1);
}

.exam-status {
  margin: 0 0 15px;
  display: grid;
  grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.exam-timeline {
  margin: 0 0 14px;
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1fr 1fr;
  gap: 10px;
}

.timeline-item {
  min-width: 0;
  padding: 11px 14px 10px;
  border: 1px solid rgba(216, 222, 232, 0.82);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

.timeline-item.primary {
  border-color: rgba(189, 209, 255, 0.92);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(232, 238, 252, 0.72));
}

.timeline-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted-soft);
  font-size: 12px;
  line-height: 1;
  font-weight: 720;
}

.timeline-item strong {
  display: block;
  color: var(--text-strong);
  font-size: 14px;
  line-height: 1.1;
  font-weight: 820;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-item.primary strong {
  color: var(--brand);
}

.timeline-item p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.starter-strip {
  min-height: 48px;
  margin: 0 0 15px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px dashed rgba(47, 107, 255, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.64);
}

.starter-strip div {
  min-width: 198px;
  margin-right: 2px;
}

.starter-strip span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted-soft);
  font-size: 12px;
  line-height: 1;
  font-weight: 720;
}

.starter-strip strong {
  display: block;
  color: var(--text-strong);
  font-size: 13px;
  line-height: 1;
  font-weight: 820;
}

.starter-strip a {
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(216, 222, 232, 0.78);
  border-radius: 999px;
  color: #475467;
  background: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 720;
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.starter-strip a:hover {
  color: var(--brand);
  border-color: rgba(187, 209, 255, 0.92);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(47, 107, 255, 0.08);
}

.status-card {
  min-width: 0;
  min-height: 92px;
  position: relative;
  padding: 15px 16px 14px;
  border: 1px solid rgba(216, 222, 232, 0.88);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
}

.status-card::before {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(39, 89, 205, 0.34);
  box-shadow: 0 0 0 4px rgba(39, 89, 205, 0.07);
}

.status-card.primary::before {
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
}

.status-card:hover {
  transform: translateY(-1px);
  border-color: rgba(189, 209, 255, 0.9);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.07);
}

.status-card.primary {
  color: #fff;
  border-color: transparent;
  background:
    linear-gradient(135deg, rgba(39, 89, 205, 0.96), rgba(48, 65, 102, 0.98));
  box-shadow: 0 18px 34px rgba(39, 89, 205, 0.18);
}

.status-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 760;
  line-height: 1;
}

.status-card.primary .status-kicker {
  color: rgba(255, 255, 255, 0.78);
}

.status-card strong {
  display: block;
  color: var(--text-strong);
  font-size: 14px;
  line-height: 1.15;
  font-weight: 820;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-card.primary strong {
  color: #fff;
}

.status-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.status-card.primary p {
  color: rgba(255, 255, 255, 0.78);
}

.panel {
  margin-bottom: 13px;
  background: var(--surface-solid);
  border: 1px solid rgba(229, 233, 240, 0.92);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.panel-head {
  height: 40px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(229, 233, 240, 0.86);
  background: #fff;
}

.panel-head h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0;
  color: var(--text-strong);
  font-size: 16px;
  line-height: 1;
  font-weight: 800;
}

.panel-head h2::before {
  display: none;
}

.panel-icon {
  display: none;
}

.panel-meta {
  display: none;
}

.panel-head a,
.panel-more {
  margin-left: auto;
  color: var(--link);
  font-size: 12.5px;
  font-weight: 650;
  white-space: nowrap;
  transition: color 0.18s ease, transform 0.18s ease;
}

.panel-head a:hover {
  color: var(--text-strong);
  transform: translateX(1px);
}

.panel-more {
  color: var(--muted-soft);
}

.subject-tabs {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px;
  border: 1px solid rgba(229, 233, 240, 0.92);
  border-radius: 999px;
  background: #f8fafc;
}

.subject-tabs button {
  height: 24px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  color: #667085;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.subject-tabs button:hover {
  color: var(--brand-deep);
  background: rgba(232, 238, 252, 0.8);
}

.subject-tabs button.active {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 4px 10px rgba(39, 89, 205, 0.16);
}

#subjects .panel-head a {
  margin-left: 0;
}

.resource-grid {
  padding: 16px 18px 18px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: 14px;
  row-gap: 10px;
}

.grouped-resources {
  padding: 17px 22px 19px;
}

.resource-group + .resource-group {
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid rgba(229, 233, 240, 0.82);
}

.grouped-resources .resource-grid {
  padding: 0;
}

.group-title {
  width: fit-content;
  margin: 0 0 12px;
  padding: 0 0 0 10px;
  border: 0;
  border-radius: 0;
  color: #475467;
  background: transparent;
  font-size: 12px;
  line-height: 1;
  font-weight: 760;
  position: relative;
  box-shadow: none;
}

.group-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--brand);
}

.resource-item {
  min-width: 0;
  min-height: 78px;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: start;
  position: relative;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.resource-item:hover {
  background: #f3f5f8;
  border-color: transparent;
}

.resource-item:active {
  background: #eceff3;
}

.resource-item:hover h3 {
  color: rgb(255 97 84 / 1);
}

.resource-item:hover p {
  color: #98a2b3;
}

.resource-item > div {
  min-width: 0;
}

.resource-item[data-tag] > div {
  padding-right: 0;
}

.resource-item[data-tag]::after {
  display: none;
}

.resource-item:hover[data-tag]::after {
  display: none;
}

.resource-item[data-tag="官方"]::after,
.resource-item[data-tag="推荐"]::after {
  color: var(--brand);
  border-color: rgba(189, 209, 255, 0.8);
  background: rgba(232, 238, 252, 0.86);
}

.icon {
  --icon-color: var(--brand);
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--icon-color) 18%, transparent);
  border-radius: 7px;
  color: var(--icon-color);
  background: color-mix(in srgb, var(--icon-color) 8%, white);
  font-size: 12px;
  font-weight: 760;
  line-height: 1;
  box-shadow: none;
}

.site-icon {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  box-shadow: none;
}

.site-icon.is-low-res {
  width: var(--site-icon-native-size, 16px);
  height: var(--site-icon-native-size, 16px);
  margin: calc((26px - var(--site-icon-native-size, 16px)) / 2);
}

.panel:not(#entry):not(#subjects) .resource-item {
  grid-template-columns: 30px 1fr;
  gap: 10px;
}

.panel:not(#entry):not(#subjects) .icon,
.panel:not(#entry):not(#subjects) .site-icon,
.panel:not(#entry):not(#subjects) .site-icon.is-low-res,
.panel:not(#entry):not(#subjects) .tool-icon,
.panel:not(#entry):not(#subjects) .link-icon {
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
}

.panel:not(#entry):not(#subjects) .icon {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

.panel:not(#entry):not(#subjects) .tool-svg,
.panel:not(#entry):not(#subjects) .link-svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.9;
}

.subject-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  color: #2a2a2a;
  background: transparent;
  box-shadow: none;
}

.subject-svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#subjects .resource-item {
  grid-template-columns: 44px 1fr;
  gap: 10px;
  min-height: 86px;
}

#subjects .resource-item.is-hidden {
  display: none;
}

.tool-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(42, 42, 42, 0.08);
  border-radius: 50%;
  color: #2a2a2a;
  background: rgba(42, 42, 42, 0.025);
  box-shadow: none;
}

.tool-svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(42, 42, 42, 0.08);
  border-radius: 10px;
  color: #2a2a2a;
  background: rgba(42, 42, 42, 0.025);
  box-shadow: none;
}

.link-svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#tools .resource-item {
  grid-template-columns: 30px 1fr;
}

.tool-card-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 16px 16px;
}

.home-tool-card {
  min-width: 0;
  min-height: 126px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto;
  column-gap: 10px;
  align-items: start;
  padding: 14px 12px 12px;
  border: 1px solid rgba(216, 222, 232, 0.86);
  border-radius: 8px;
  background: #fff;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.home-tool-card:hover {
  border-color: rgba(189, 209, 255, 0.95);
  background: #f8fbff;
  box-shadow: 0 10px 24px rgba(39, 89, 205, 0.08);
  transform: translateY(-1px);
}

.home-tool-card:hover strong {
  color: rgb(255, 97, 84);
}

.tool-card-icon {
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2a2a2a;
}

.tool-card-icon .tool-svg {
  width: 28px;
  height: 28px;
  stroke-width: 2;
}

.home-tool-card strong {
  min-width: 0;
  margin-top: 1px;
  color: #344054;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 800;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  transition: color 0.18s ease;
}

.home-tool-card p {
  grid-column: 2;
  margin: 3px 0 0;
  color: #98a2b3;
  font-size: 12px;
  line-height: 1.45;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tool-card-action {
  grid-column: 1 / -1;
  align-self: end;
  justify-self: stretch;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  border: 1px solid rgba(216, 222, 232, 0.92);
  border-radius: 7px;
  color: #667085;
  background: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.home-tool-card.calculator .tool-card-action {
  color: #315ee8;
  border-color: rgba(189, 209, 255, 0.95);
  background: #f5f8ff;
}

.resource-item h3 {
  margin: 3px 0 3px;
  color: #444;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 700;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.resource-item h3 em {
  margin-left: 6px;
  padding: 1px 5px;
  border: 1px solid rgba(216, 222, 232, 0.92);
  border-radius: 999px;
  color: #475467;
  background: #f8fafc;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  vertical-align: 1px;
}

.resource-item p {
  margin: 0;
  padding-right: 0;
  color: #98a2b3;
  font-size: 12px;
  line-height: 1.5;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.key-entry-grid {
  padding: 22px 20px 20px;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  column-gap: 10px;
  row-gap: 18px;
}

.key-entry-grid .resource-item {
  min-height: 86px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 0 4px;
  text-align: center;
  border-radius: 8px;
}

.key-entry-grid .resource-item:hover {
  background: #f3f5f8;
  border-color: transparent;
}

.key-entry-grid .resource-item:hover h3 {
  color: rgb(255 97 84 / 1);
}

.key-entry-grid .resource-item[data-tag]::after {
  display: none;
}

.key-entry-grid .resource-item > div {
  width: 100%;
}

.quick-icon {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.key-entry-grid .site-icon {
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  box-shadow: none;
}

.quick-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--qi-color, #2f6bff);
  background: transparent;
  line-height: 1;
  transition: color 0.16s ease, transform 0.16s ease;
}

.quick-svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.key-entry-grid .resource-item:hover .quick-icon {
  color: color-mix(in srgb, var(--qi-color, #2f6bff) 82%, #111827);
  transform: translateY(-1px);
}

.qi-official { --qi-color: #2759cd; }
.qi-sign { --qi-color: #2f6bff; }
.qi-ticket { --qi-color: #0e9384; }
.qi-score { --qi-color: #ee4932; }
.qi-cert { --qi-color: #b96b00; }
.qi-plan { --qi-color: #6941c6; }
.qi-mock { --qi-color: #304166; }
.qi-contact { --qi-color: #087ea4; }
.qi-guide { --qi-color: #178a5f; }
.qi-book { --qi-color: #c2410c; }
.qi-line { --qi-color: #c11574; }
.qi-time { --qi-color: #475467; }
.qi-news { --qi-color: #ee4932; }
.qi-intro { --qi-color: #2759cd; }
.qi-policy { --qi-color: #304166; }
.qi-qa { --qi-color: #0e9384; }
.qi-sample { --qi-color: #b96b00; }

.key-entry-grid .resource-item h3 {
  margin: 0;
  color: #3f4858;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 500;
  -webkit-line-clamp: 2;
}

.key-entry-grid .resource-item h3:empty {
  display: none;
}

.key-entry-grid .resource-item p {
  display: none;
}

.blue { --icon-color: #2759cd; }
.green { --icon-color: #178a5f; }
.red { --icon-color: #d92d20; }
.cyan { --icon-color: #087ea4; }
.amber { --icon-color: #b96b00; }
.purple { --icon-color: #6941c6; }
.teal { --icon-color: #0e9384; }
.rose { --icon-color: #c11574; }
.navy { --icon-color: #304166; }
.lime { --icon-color: #4f7a21; }
.orange { --icon-color: #c2410c; }
.black { --icon-color: #344054; }

a:focus-visible,
input:focus-visible:not(.search-box input) {
  outline: 2px solid rgba(39, 89, 205, 0.36);
  outline-offset: 3px;
}

.search-box input:focus-visible {
  outline: 0;
  box-shadow: none;
}

.site-footer {
  width: 100%;
  margin: 0;
  padding: 28px 0 30px;
  background: #fff;
  border-top: 1px solid rgba(216, 222, 232, 0.82);
  color: var(--muted);
}

.footer-inner {
  width: min(1600px, calc(100% - 56px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand img {
  display: block;
  width: 130px;
  height: auto;
}

.footer-brand p {
  max-width: 460px;
  margin: 8px 0 0;
  color: #98a2b3;
  font-size: 12px;
  line-height: 1.6;
}

.footer-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.footer-links a {
  color: #98a2b3;
  font-size: 12px;
  line-height: 1.2;
  transition: color 0.18s ease;
}

.footer-links a:hover {
  color: var(--brand);
}

.footer-side p {
  margin: 0;
  color: var(--muted-soft);
  font-size: 12px;
  line-height: 1.6;
}

.subject-detail-page {
  min-width: 0;
}

.subject-detail {
  width: min(1180px, calc(100% - 56px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 16px;
  color: var(--muted-soft);
  font-size: 12px;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.subject-hero {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 22px;
  align-items: stretch;
  margin-bottom: 16px;
  padding: 28px 30px;
  border: 1px solid rgba(216, 222, 232, 0.88);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.subject-kicker {
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

.subject-hero h1 {
  margin: 0 0 12px;
  color: var(--text-strong);
  font-size: 34px;
  line-height: 1.18;
  font-weight: 850;
}

.subject-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.subject-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.subject-actions a {
  height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(216, 222, 232, 0.92);
  border-radius: 999px;
  color: #344054;
  background: #fff;
  font-size: 13px;
  font-weight: 750;
}

.subject-actions a:hover {
  color: var(--accent);
  background: #f8fafc;
}

.subject-score-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  border: 1px solid rgba(189, 209, 255, 0.86);
  border-radius: 12px;
  background: #f7faff;
}

.subject-score-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.subject-score-card strong {
  margin: 8px 0 10px;
  color: var(--brand);
  font-size: 24px;
  letter-spacing: 1px;
}

.subject-score-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.subject-panel {
  margin-top: 16px;
  border: 1px solid rgba(216, 222, 232, 0.88);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.subject-panel > h2,
.subject-panel-head {
  margin: 0;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(229, 233, 240, 0.9);
}

.subject-panel > h2,
.subject-panel-head h2 {
  color: var(--text-strong);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 850;
}

.subject-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.subject-panel-head h2,
.subject-panel-head p {
  margin: 0;
}

.subject-panel-head p {
  margin-top: 6px;
  color: var(--muted-soft);
  font-size: 12px;
}

.subject-panel-head > span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.compare-table-wrap {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: transparent;
}

.compare-table th,
.compare-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(229, 233, 240, 0.86);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
  line-height: 1.7;
}

.compare-table thead th {
  color: #3f3f3f;
  background: transparent;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0.8px;
}

.compare-table tbody th {
  width: 150px;
  color: #3f3f3f;
  font-weight: 820;
}

.compare-table tbody td {
  color: #3f3f3f;
}

.compare-table tbody td:nth-child(2) {
  color: #3f3f3f;
  font-weight: 650;
}

.compare-table tr:last-child th,
.compare-table tr:last-child td {
  border-bottom: 0;
}

.subject-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.subject-list {
  margin: 0;
  padding: 18px 22px 20px 38px;
  color: #475467;
  font-size: 13px;
  line-height: 1.85;
}

.subject-list li + li {
  margin-top: 8px;
}

.decision-grid,
.mini-compare-grid {
  padding: 18px 22px 20px;
  display: grid;
  gap: 12px;
}

.decision-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mini-compare-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.decision-grid article,
.mini-compare-grid article {
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid rgba(229, 233, 240, 0.92);
  border-radius: 10px;
  background: #fff;
}

.decision-grid strong,
.mini-compare-grid h3 {
  display: block;
  margin: 0 0 8px;
  color: var(--text-strong);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 850;
}

.decision-grid p,
.mini-compare-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.subject-faq {
  padding: 8px 22px 16px;
}

.subject-faq details {
  border-bottom: 1px solid rgba(229, 233, 240, 0.86);
}

.subject-faq details:last-child {
  border-bottom: 0;
}

.subject-faq summary {
  padding: 14px 0;
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 820;
  cursor: pointer;
}

.subject-faq p {
  margin: -2px 0 15px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.subject-link-grid {
  padding: 18px 22px 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.subject-link-grid a {
  min-height: 76px;
  padding: 13px 14px;
  border: 1px solid rgba(229, 233, 240, 0.92);
  border-radius: 10px;
  background: #fff;
}

.subject-link-grid a:hover {
  background: #f8fafc;
}

.subject-link-grid strong,
.subject-link-grid span {
  display: block;
}

.subject-link-grid strong {
  margin-bottom: 7px;
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 820;
}

.subject-link-grid a:hover strong {
  color: var(--accent);
}

.subject-link-grid span {
  color: var(--muted-soft);
  font-size: 12px;
  line-height: 1.55;
}

.subject-hero-readable {
  margin-bottom: 18px;
}

.subject-summary-tags {
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.subject-byline {
  margin: -2px 0 14px !important;
  color: var(--muted-soft) !important;
  font-size: 13px !important;
  line-height: 1.8 !important;
  letter-spacing: 0.2px;
}

.subject-summary-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(216, 222, 232, 0.86);
  border-radius: 999px;
  color: #3f3f3f;
  background: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1;
  font-weight: 650;
  white-space: nowrap;
}

.subject-summary-tags b {
  margin-right: 6px;
  color: var(--muted-soft);
  font-weight: 700;
}

.subject-update-note {
  margin-top: 13px !important;
  color: var(--muted) !important;
  font-size: 13px !important;
  line-height: 1.8 !important;
}

.guide-comparison-page .subject-hero-readable {
  grid-template-columns: minmax(0, 1fr) 220px;
  padding: 22px 26px;
  margin-bottom: 14px;
}

.guide-comparison-page .subject-hero h1 {
  margin-bottom: 10px;
  font-size: 31px;
}

.guide-comparison-page .subject-hero p {
  max-width: 860px;
  line-height: 1.75;
}

.guide-comparison-page .subject-summary-tags {
  margin-top: 14px;
}

.guide-comparison-page .subject-update-note,
.guide-comparison-page .subject-actions {
  display: none;
}

.guide-comparison-page .subject-score-card {
  padding: 18px;
}

.guide-comparison-panel {
  margin: 0 0 18px;
  padding: 24px;
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.055);
}

.guide-comparison-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
}

.guide-comparison-head span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 13px;
  line-height: 1;
  font-weight: 820;
}

.guide-comparison-head h2,
.guide-comparison-head p {
  margin: 0;
}

.guide-comparison-head h2 {
  color: #202939;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 860;
}

.guide-comparison-head p {
  color: #475467;
  font-size: 14px;
  line-height: 1.8;
}

.guide-choice-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.guide-choice-cards article {
  min-width: 0;
  padding: 18px 18px 17px;
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: 12px;
  background: #fff;
}

.guide-choice-cards article:first-child {
  border-color: rgba(39, 89, 205, 0.2);
  background: linear-gradient(180deg, rgba(239, 245, 252, 0.92), #fff 72%);
}

.guide-choice-cards span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #2759cd;
  background: rgba(39, 89, 205, 0.08);
  font-size: 12px;
  line-height: 1;
  font-weight: 820;
}

.guide-choice-cards h2 {
  margin: 0 0 8px;
  color: #202939;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 850;
}

.guide-choice-cards p {
  margin: 0 0 12px;
  color: #475467;
  font-size: 14px;
  line-height: 1.75;
}

.guide-choice-cards ul,
.guide-choice-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-choice-cards li {
  position: relative;
  padding-left: 14px;
  color: #3f3f3f;
  font-size: 14px;
  line-height: 1.75;
}

.guide-choice-cards li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #2759cd;
}

.guide-decision-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.72fr);
  gap: 16px;
  align-items: stretch;
}

.guide-compare-table {
  overflow-x: auto;
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: 12px;
  background: #fff;
}

.guide-compare-table table {
  width: 100%;
  border-collapse: collapse;
}

.guide-compare-table th,
.guide-compare-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(229, 233, 240, 0.88);
  text-align: left;
  color: #3f3f3f;
  font-size: 14px;
  line-height: 1.65;
}

.guide-compare-table th {
  color: #202939;
  background: #f8fafc;
  font-weight: 820;
}

.guide-compare-table tr:last-child td {
  border-bottom: 0;
}

.guide-compare-table td:nth-child(2) {
  color: #2759cd;
  font-weight: 820;
  white-space: nowrap;
}

.guide-choice-list {
  padding: 18px;
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: 12px;
  background: #f8fafc;
}

.guide-choice-list h3 {
  margin: 0 0 12px;
  color: #202939;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 850;
}

.guide-choice-list li {
  padding: 12px 0;
  border-top: 1px solid rgba(229, 233, 240, 0.92);
}

.guide-choice-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.guide-choice-list strong {
  display: block;
  margin-bottom: 5px;
  color: #202939;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 850;
}

.guide-choice-list span {
  display: block;
  color: #667085;
  font-size: 13px;
  line-height: 1.7;
}

.guide-buyer-panel {
  padding: 26px;
}

.guide-difference-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.guide-difference-strip article {
  min-width: 0;
  padding: 14px 14px 13px;
  border: 1px solid rgba(216, 222, 232, 0.86);
  border-radius: 12px;
  background: #f8fafc;
}

.guide-difference-strip span,
.guide-spec-title span {
  display: block;
  margin-bottom: 7px;
  color: #667085;
  font-size: 12px;
  line-height: 1;
  font-weight: 760;
}

.guide-difference-strip strong {
  display: block;
  margin-bottom: 6px;
  color: #2759cd;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 880;
}

.guide-difference-strip p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.55;
}

.guide-product-cards {
  margin-bottom: 18px;
}

.guide-product-cards article {
  padding: 20px 20px 18px;
}

.guide-product-cards article:first-child {
  border-color: rgba(39, 89, 205, 0.28);
}

.guide-product-cards article:nth-child(2) {
  border-color: rgba(255, 97, 84, 0.2);
  background: linear-gradient(180deg, rgba(255, 247, 245, 0.82), #fff 72%);
}

.guide-product-cards article:nth-child(2) span {
  color: rgb(255 97 84);
  background: rgba(255, 97, 84, 0.09);
}

.guide-spec-panel,
.guide-decision-helper {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: 13px;
  background: #fff;
}

.guide-spec-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.guide-spec-title h3 {
  margin: 0;
  color: #202939;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 860;
}

.guide-param-table {
  border-radius: 10px;
}

.guide-param-table th,
.guide-param-table td {
  font-size: 13px;
  line-height: 1.62;
  vertical-align: top;
}

.guide-param-table td:first-child {
  color: #202939;
  font-weight: 820;
  white-space: nowrap;
}

.guide-param-table td:nth-child(2) {
  color: #2759cd;
  font-weight: 780;
}

.guide-param-table td:nth-child(3) {
  color: rgb(255 97 84);
  font-weight: 780;
}

.guide-decision-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.guide-decision-cards article {
  display: flex;
  min-height: 168px;
  flex-direction: column;
  padding: 16px;
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: 12px;
  background: #f8fafc;
}

.guide-decision-cards strong {
  margin-bottom: 8px;
  color: #202939;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 880;
}

.guide-decision-cards p {
  margin: 0;
  color: #475467;
  font-size: 13px;
  line-height: 1.7;
}

.guide-decision-cards a {
  display: inline-flex;
  width: fit-content;
  margin-top: auto;
  color: #2759cd;
  font-size: 13px;
  line-height: 1;
  font-weight: 820;
  text-decoration: none;
}

.subject-study-layout {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.subject-anchor {
  position: sticky;
  top: 76px;
  padding: 14px 0;
  border: 1px solid rgba(216, 222, 232, 0.88);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.subject-anchor strong {
  display: block;
  padding: 0 16px 10px;
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 850;
}

.subject-anchor a {
  display: block;
  padding: 9px 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
}

.subject-anchor a:hover {
  color: var(--accent);
  background: #f8fafc;
}

.subject-study-main {
  min-width: 0;
  display: grid;
  gap: 0;
  padding: 28px 34px 34px;
  border: 1px solid rgba(216, 222, 232, 0.86);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.055);
}

.subject-section {
  padding: 0 15px 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.subject-section + .subject-section {
  padding-top: 20px;
  border-top: 1px solid rgba(229, 233, 240, 0.82);
}

.evm-formula-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 12px;
}

.evm-formula-grid article {
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: 12px;
  background: #fff;
}

.evm-formula-grid span {
  display: block;
  margin-bottom: 7px;
  color: #667085;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 780;
}

.evm-formula-grid strong {
  display: block;
  margin-bottom: 7px;
  color: #2759cd;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 860;
}

.evm-formula-grid p {
  margin: 0;
  color: #475467;
  font-size: 13px;
  line-height: 1.65;
}

.evm-example {
  display: grid;
  gap: 14px;
}

.evm-example .primary {
  padding: 16px;
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: 12px;
  background: #f8fafc;
}

.evm-example .primary strong {
  display: block;
  margin-bottom: 8px;
  color: #202939;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 850;
}

.evm-example .primary p {
  margin: 0;
  color: #475467;
  font-size: 14px;
  line-height: 1.85;
}

.section-title {
  padding: 10px 0 28px;
  display: flex;
  gap: 14px;
  align-items: baseline;
  border-bottom: 0;
}

.section-title > span {
  width: auto;
  height: auto;
  display: inline;
  border-radius: 0;
  color: #3f3f3f;
  background: transparent;
  font-size: 32px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: 1px;
  flex: 0 0 auto;
}

.section-title h2,
.section-title p {
  margin: 0;
}

.section-title h2 {
  color: #3f3f3f;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 850;
  letter-spacing: 1px;
}

.section-title p {
  margin-top: 12px;
  color: #666;
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.8px;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

.decision-summary {
  padding: 0;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 14px;
}

.decision-summary article {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.decision-summary article.primary {
  padding-right: 8px;
  border-color: transparent;
  background: transparent;
}

.decision-summary strong {
  display: block;
  margin-bottom: 12px;
  color: #3f3f3f;
  font-size: 15px;
  line-height: 1.8;
  font-weight: 850;
  letter-spacing: 0.8px;
}

.decision-summary strong::before {
  content: "▷ ";
  color: var(--brand);
}

.decision-summary p,
.decision-summary li {
  color: #3f3f3f;
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.8px;
}

.decision-summary p,
.decision-summary ul {
  margin: 0;
}

.decision-summary ul {
  padding-left: 18px;
}

.decision-summary li + li {
  margin-top: 10px;
}

.readable-table th,
.readable-table td {
  padding: 14px 15px;
  color: #3f3f3f;
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.5px;
}

.readable-table tbody th {
  width: 126px;
}

.choice-list {
  padding: 0;
}

.scope-grid,
.plan-variants {
  display: grid;
  gap: 20px;
}

.scope-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plan-variants {
  margin-top: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.scope-grid article,
.plan-variants article {
  min-width: 0;
}

.scope-grid strong,
.plan-variants strong {
  display: block;
  margin: 0 0 10px;
  color: #3f3f3f;
  font-size: 15px;
  line-height: 1.8;
  font-weight: 850;
  letter-spacing: 0.8px;
}

.scope-grid strong::before,
.plan-variants strong::before {
  content: "▷ ";
  color: var(--brand);
}

.scope-grid p,
.plan-variants p {
  margin: 0;
  color: #3f3f3f;
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.8px;
}

.subject-matrix-wrap {
  margin-bottom: 28px;
}

.subject-matrix th,
.subject-matrix td {
  padding: 12px 13px;
  color: #3f3f3f;
  font-size: 14px;
  line-height: 1.85;
  letter-spacing: 0.4px;
}

.choice-list article {
  padding: 0 0 26px;
  border-bottom: 0;
}

.choice-list article:last-child {
  border-bottom: 0;
}

.choice-list h3 {
  margin: 0 0 12px;
  color: #3f3f3f;
  font-size: 15px;
  line-height: 1.8;
  font-weight: 850;
  letter-spacing: 0.8px;
}

.choice-list h3::before {
  content: "▷ ";
  color: var(--brand);
}

.choice-list p {
  margin: 0;
  color: #3f3f3f;
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.8px;
}

.study-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  counter-reset: study-step;
}

.study-steps li {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  counter-increment: study-step;
}

.study-steps li::before {
  content: counter(study-step);
  margin-bottom: 12px;
  display: block;
  color: #3f3f3f;
  background: transparent;
  font-size: 32px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: 1px;
}

.study-steps strong,
.study-steps span {
  display: block;
}

.study-steps strong {
  margin-bottom: 10px;
  color: #3f3f3f;
  font-size: 15px;
  line-height: 1.8;
  font-weight: 850;
  letter-spacing: 0.8px;
}

.study-steps span {
  color: #3f3f3f;
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.8px;
}

.readable-faq {
  padding: 0;
}

.readable-faq summary {
  color: #3f3f3f;
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.8px;
}

.readable-faq summary::marker {
  color: var(--brand);
}

.readable-faq p {
  color: #3f3f3f;
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.8px;
}

.readable-links {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.source-note {
  color: #3f3f3f;
}

.source-note p {
  margin: 0 0 16px;
  color: #3f3f3f;
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.8px;
}

.source-note strong {
  font-weight: 850;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.source-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: 999px;
  color: var(--brand);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}

.source-links a:hover {
  color: var(--accent);
  border-color: rgba(255, 97, 84, 0.28);
  background: #fff7f6;
}

.tool-detail-page {
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.tool-detail {
  width: min(1180px, calc(100% - 56px));
  margin: 0 auto;
  padding: 28px 0 46px;
  flex: 1 0 auto;
}

.tool-detail-page .site-footer {
  flex-shrink: 0;
}

.tool-hero {
  margin-bottom: 18px;
  padding: 28px 32px;
  border: 1px solid rgba(216, 222, 232, 0.86);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
}

.tool-hero h1 {
  margin: 8px 0 12px;
  color: var(--text-strong);
  font-size: 34px;
  line-height: 1.18;
  font-weight: 850;
}

.tool-hero p {
  max-width: 780px;
  margin: 0;
  color: #3f3f3f;
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.5px;
}

.tool-workbench {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
  margin-bottom: 18px;
}

.tool-card,
.tool-content article {
  border: 1px solid rgba(216, 222, 232, 0.86);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
}

.tool-card {
  padding: 24px;
}

.tool-card h2,
.tool-content h2 {
  margin: 0 0 18px;
  color: var(--text-strong);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 850;
}

.tool-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tool-form-grid.one-field {
  grid-template-columns: minmax(0, 1fr);
}

.tool-form-grid label {
  display: grid;
  gap: 8px;
}

.tool-form-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.tool-form-grid input,
.tool-form-grid select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(216, 222, 232, 0.95);
  border-radius: 10px;
  color: var(--text-strong);
  background: #fff;
  font-size: 15px;
  outline: none;
}

.tool-form-grid select {
  cursor: pointer;
}

.tool-form-grid input:focus,
.tool-form-grid select:focus {
  border-color: rgba(47, 107, 255, 0.48);
  box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.1);
}

.tool-textarea {
  width: 100%;
  min-height: 168px;
  padding: 13px 14px;
  border: 1px solid rgba(216, 222, 232, 0.95);
  border-radius: 12px;
  color: var(--text-strong);
  background: #fff;
  font: 14px/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  resize: vertical;
  outline: none;
}

.tool-textarea:focus {
  border-color: rgba(47, 107, 255, 0.48);
  box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.1);
}

.tool-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tool-presets button,
.tool-mini-table button {
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: 999px;
  color: var(--text-strong);
  background: #fff;
  font: inherit;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.tool-presets button {
  height: 32px;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 700;
}

.tool-presets button:hover,
.tool-mini-table button:hover {
  color: rgb(255, 97, 84);
  border-color: rgba(255, 97, 84, 0.24);
  background: #fff7f6;
  transform: translateY(-1px);
}

.tool-formula-line {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(189, 209, 255, 0.86);
  border-radius: 12px;
  color: var(--brand);
  background: #f7faff;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 850;
  letter-spacing: 0.2px;
}

.tool-formula-stack {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.tool-formula-stack .tool-formula-line {
  margin-top: 0;
}

.tool-formula-line.subtle {
  color: #475467;
  border-color: rgba(229, 233, 240, 0.95);
  background: #f8fafc;
  font-size: 15px;
  font-weight: 760;
}

.tool-hint,
.tool-warning {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.tool-warning {
  color: var(--accent);
}

.tool-answer-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(189, 209, 255, 0.86);
  border-radius: 12px;
  color: #304166;
  background: #f7faff;
  font-size: 14px;
  line-height: 1.8;
  font-weight: 700;
}

.tool-status-good {
  color: #138a5b;
}

.tool-status-warn {
  color: rgb(255, 97, 84);
}

.tool-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tool-results div {
  min-height: 78px;
  padding: 14px;
  border: 1px solid rgba(229, 233, 240, 0.9);
  border-radius: 12px;
  background: #f8fafc;
}

.tool-results span,
.tool-results strong {
  display: block;
}

.tool-results span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.tool-results strong {
  margin-top: 8px;
  color: var(--brand);
  font-size: 26px;
  line-height: 1;
  font-weight: 850;
}

.tool-result-table {
  width: 100%;
  margin-top: 14px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid rgba(229, 233, 240, 0.95);
  border-radius: 12px;
  background: #fff;
  font-size: 13px;
}

.tool-result-table th,
.tool-result-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(229, 233, 240, 0.78);
  color: #475467;
  text-align: left;
  white-space: nowrap;
}

.tool-result-table th {
  color: var(--text-strong);
  background: #f8fafc;
  font-weight: 850;
}

.tool-result-table tr:last-child td {
  border-bottom: 0;
}

.tool-result-table .critical-row td {
  color: #2759cd;
  background: #f7faff;
  font-weight: 760;
}

.tool-generated-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.tool-generated-list li {
  padding: 12px 14px;
  border: 1px solid rgba(229, 233, 240, 0.9);
  border-radius: 12px;
  color: #475467;
  background: #f8fafc;
  font-size: 14px;
  line-height: 1.75;
}

.tool-generated-list strong {
  color: var(--text-strong);
}

.tool-checklist {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.tool-checklist label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(229, 233, 240, 0.9);
  border-radius: 12px;
  color: #475467;
  background: #fff;
  font-size: 14px;
  line-height: 1.65;
}

.tool-checklist input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--brand);
}

.tool-progress {
  height: 10px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f8;
}

.tool-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #6aa2ff);
  transition: width 0.18s ease;
}

.tool-output-box {
  min-height: 160px;
  padding: 14px;
  border: 1px solid rgba(229, 233, 240, 0.95);
  border-radius: 12px;
  color: #344054;
  background: #f8fafc;
  font-size: 14px;
  line-height: 1.85;
  white-space: pre-wrap;
}

.tool-copy-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.tool-compare-section {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.tool-compare-result {
  min-height: 130px;
  padding: 18px;
  border: 1px solid rgba(189, 209, 255, 0.86);
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.tool-compare-result strong,
.tool-compare-result span {
  display: block;
}

.tool-compare-result strong {
  color: var(--brand);
  font-size: 42px;
  line-height: 1;
  font-weight: 850;
}

.tool-compare-result span {
  margin-top: 14px;
  color: #3f3f3f;
  font-size: 15px;
  line-height: 1.9;
}

.tool-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tool-content article {
  padding: 24px;
}

.tool-content p {
  margin: 0 0 14px;
  color: #3f3f3f;
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.5px;
}

.tool-content p:last-child {
  margin-bottom: 0;
}

.tool-decision-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tool-decision-grid article {
  min-height: 126px;
  padding: 16px;
  border: 1px solid rgba(229, 233, 240, 0.92);
  border-radius: 12px;
  background: #f8fafc;
}

.tool-decision-grid strong,
.tool-decision-grid p {
  display: block;
  margin: 0;
}

.tool-decision-grid strong {
  color: var(--text-strong);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 850;
}

.tool-decision-grid p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.tool-quick-reference {
  margin-top: 18px;
}

.tool-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.tool-section-heading h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 850;
}

.tool-section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.tool-mini-table {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.tool-mini-table button {
  min-height: 54px;
  padding: 10px 12px;
  border-radius: 12px;
  text-align: left;
}

.tool-mini-table span,
.tool-mini-table strong {
  display: block;
}

.tool-mini-table span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.tool-mini-table strong {
  margin-top: 3px;
  color: var(--text-strong);
  font-size: 17px;
  font-weight: 850;
}

.tool-mini-table button:hover strong {
  color: rgb(255, 97, 84);
}

.tool-faq {
  margin-top: 18px;
}

.tool-faq h2 {
  margin: 0 0 8px;
  color: var(--text-strong);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 850;
}

.tool-faq details {
  border-bottom: 1px solid rgba(229, 233, 240, 0.86);
}

.tool-faq details:last-child {
  border-bottom: 0;
}

.tool-faq summary {
  padding: 14px 0;
  color: var(--text-strong);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 800;
  cursor: pointer;
}

.tool-faq summary::marker {
  color: var(--brand);
}

.tool-faq p {
  margin: -2px 0 15px;
  color: #3f3f3f;
  font-size: 14px;
  line-height: 1.9;
}

@media (max-width: 980px) {
  .subject-detail-page .topnav {
    width: calc(100% - 24px);
    gap: 18px;
  }

  .subject-detail {
    width: calc(100% - 24px);
    padding: 18px 0 40px;
  }

  .subject-hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .guide-comparison-page .subject-hero-readable,
  .guide-comparison-head,
  .guide-choice-cards,
  .guide-decision-grid,
  .guide-difference-strip,
  .guide-decision-cards {
    grid-template-columns: 1fr;
  }

  .guide-comparison-panel {
    padding: 18px;
  }

  .guide-comparison-head {
    gap: 10px;
  }

  .guide-comparison-head h2 {
    font-size: 20px;
  }

  .guide-buyer-panel {
    padding: 18px;
  }

  .guide-spec-title {
    display: block;
  }

  .guide-decision-cards article {
    min-height: 0;
  }

  .subject-hero h1 {
    font-size: 28px;
  }

  .subject-study-layout {
    grid-template-columns: 1fr;
  }

  .subject-study-main {
    padding: 24px 18px 28px;
    border-radius: 12px;
  }

  .subject-anchor {
    position: static;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    padding: 10px;
  }

  .subject-anchor strong,
  .subject-anchor a {
    flex: 0 0 auto;
    padding: 8px 10px;
  }

  .decision-summary,
  .study-steps,
  .scope-grid,
  .plan-variants,
  .readable-links,
  .tool-workbench,
  .tool-content,
  .tool-form-grid,
  .tool-results,
  .tool-decision-grid {
    grid-template-columns: 1fr;
  }

  .tool-section-heading {
    display: block;
  }

  .tool-section-heading p {
    margin-top: 8px;
  }

  .tool-mini-table {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-detail {
    width: calc(100% - 24px);
    padding: 18px 0 40px;
  }

  .tool-hero,
  .tool-card,
  .tool-content article {
    padding: 22px;
  }

  .tool-hero h1 {
    font-size: 28px;
  }

  .mini-compare-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1500px) {
  .resource-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    column-gap: 14px;
  }

  .key-entry-grid {
    grid-template-columns: repeat(11, minmax(0, 1fr));
    column-gap: 10px;
  }

  .tool-card-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  body {
    min-width: 0;
    overflow-x: hidden;
  }

  .topnav,
  .shell {
    width: 100%;
  }

  .topnav {
    padding: 0 14px;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .topnav::-webkit-scrollbar {
    display: none;
  }

  .topnav-brand {
    width: 126px;
    margin-right: 2px;
  }

  .topnav-brand img {
    width: 116px;
  }

  .shell {
    display: block;
    padding: 22px 12px 34px;
  }

  .sidebar {
    position: sticky;
    top: 52px;
    z-index: 5;
    margin: 0 -12px 16px;
    padding: 10px 12px;
    flex-direction: row;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    background: rgba(241, 245, 251, 0.96);
    backdrop-filter: blur(16px);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar a.selected,
  .sidebar a[aria-current="true"] {
    padding-left: 0;
  }

  .sidebar a.selected::before,
  .sidebar a[aria-current="true"]::before {
    display: none;
  }

  .hero {
    height: auto;
    grid-template-columns: 1fr;
    gap: 18px;
    padding-bottom: 20px;
    min-width: 0;
  }

  .brand-block h1 {
    margin-top: 4px;
    font-size: 38px;
  }

  .search-area {
    margin-top: 0;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .search-tabs {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    gap: 24px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .search-tabs::-webkit-scrollbar {
    display: none;
  }

  .search-box {
    width: 100%;
  }

  .notice-strip {
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 6px 0;
    gap: 4px;
  }

  .notice-strip span {
    padding: 3px 12px;
  }

  .buddy-today {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .buddy-action {
    width: 100%;
  }

  .buddy-action a {
    flex: 1;
  }

  .exam-status {
    margin: 0 0 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .exam-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .starter-strip {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .starter-strip div {
    width: 100%;
    min-width: 0;
  }

  .status-card.primary {
    grid-column: 1 / -1;
  }

  .resource-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 12px;
  }

  .grouped-resources .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .key-entry-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 16px;
  }

  .tool-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .resource-item {
    min-width: 0;
  }

  .site-footer {
    width: 100%;
    margin-top: 0;
    padding: 24px 12px 28px;
  }

  .footer-inner {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .footer-side {
    align-items: flex-start;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .topbar,
  .topnav,
  .topnav-brand,
  .topnav-link {
    height: 40px;
  }

  .topnav-brand {
    width: 104px;
    margin-right: 0;
  }

  .topnav-brand img {
    width: 96px;
  }

  .topnav {
    gap: 16px;
    padding: 0 10px;
  }

  .topnav-link {
    font-size: 12px;
  }

  .shell {
    padding: 18px 10px 28px;
  }

  .sidebar {
    margin: 0 -10px 14px;
    padding: 10px;
  }

  .brand-block h1 {
    font-size: 34px;
  }

  .hero {
    gap: 14px;
  }

  .brand-block h1 {
    margin: 0;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .brand-logo-image {
    width: 190px;
    max-width: 70vw;
  }

  .search-area {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .search-tabs {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    font-size: 13px;
    gap: 18px;
    padding-left: 2px;
  }

  .search-box {
    height: 42px;
    border-radius: 999px;
  }

  .search-box input {
    height: 40px;
    padding-left: 14px;
    font-size: 13px;
  }

  .search-submit {
    width: 42px;
    height: 42px;
  }

  .notice-strip {
    font-size: 12px;
  }

  .buddy-copy {
    padding-left: 40px;
  }

  .buddy-copy strong {
    font-size: 15px;
  }

  .notice-strip,
  .exam-timeline,
  .exam-status {
    grid-template-columns: 1fr;
  }

  .resource-grid,
  .grouped-resources .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
  }

  .home-tool-card {
    min-height: 118px;
    padding: 12px 10px 10px;
  }

  .key-entry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .status-card.primary {
    grid-column: auto;
  }

  .panel-head {
    min-height: 44px;
    padding: 0 14px;
  }

  .panel-head h2 {
    font-size: 15px;
  }

  .panel-meta {
    display: none;
  }

  .resource-grid {
    padding: 14px;
    gap: 12px;
  }

  .resource-item {
    min-height: 58px;
    gap: 9px;
  }

  .resource-item h3 {
    max-width: 100%;
    font-size: 13px;
  }

  .resource-item p {
    font-size: 11px;
    line-height: 1.5;
  }

  .resource-item .site-icon,
  .link-icon,
  .tool-icon {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  .subject-icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .quick-icon {
    width: 40px;
    height: 40px;
  }

  .quick-svg {
    width: 34px;
    height: 34px;
  }

  .group-title {
    padding: 10px 14px 0;
  }

  .footer-brand img {
    width: 118px;
  }

  .footer-links {
    gap: 10px 14px;
  }

  .subject-detail,
  .tool-detail {
    width: calc(100% - 20px);
    padding: 14px 0 28px;
  }

  .breadcrumb {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .breadcrumb::-webkit-scrollbar {
    display: none;
  }

  .subject-hero,
  .tool-hero {
    padding: 18px;
    border-radius: 12px;
  }

  .subject-hero h1,
  .tool-hero h1 {
    font-size: 24px;
    line-height: 1.25;
  }

  .subject-hero p,
  .tool-hero p {
    font-size: 14px;
    line-height: 1.85;
  }

  .subject-summary-tags {
    gap: 8px;
  }

  .subject-summary-tags span {
    width: 100%;
  }

  .subject-study-main {
    padding: 18px 12px 22px;
    min-width: 0;
    max-width: 100%;
  }

  .subject-section {
    padding: 0 4px 22px;
    min-width: 0;
    max-width: 100%;
  }

  .section-title {
    gap: 10px;
    padding: 8px 0 20px;
  }

  .section-title > span {
    font-size: 24px;
  }

  .section-title h2 {
    font-size: 17px;
    letter-spacing: 0.5px;
  }

  .section-title p {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.8;
    letter-spacing: 0.3px;
  }

  .compare-table-wrap,
  .tool-card div[style*="overflow:auto"] {
    margin: 0 -2px;
    width: calc(100% + 4px);
    min-width: 0;
    max-width: calc(100% + 4px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .compare-table,
  .tool-result-table {
    min-width: 620px;
  }

  .evm-formula-grid {
    grid-template-columns: 1fr;
  }

  .tool-workbench,
  .tool-content,
  .tool-form-grid,
  .tool-results,
  .tool-decision-grid {
    grid-template-columns: 1fr;
  }

  .tool-hero,
  .tool-card,
  .tool-content article {
    padding: 18px;
  }

  .tool-card h2,
  .tool-content h2 {
    font-size: 17px;
  }

  .tool-formula-line {
    font-size: 15px;
    word-break: break-word;
  }

  .tool-results strong {
    font-size: 23px;
  }

  .tool-mini-table {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-textarea {
    min-height: 150px;
    font-size: 13px;
  }
}

@media (max-width: 430px) {
  .resource-grid,
  .grouped-resources .resource-grid {
    grid-template-columns: 1fr;
  }

  .tool-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-tool-card {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .tool-card-icon {
    width: 30px;
    height: 30px;
  }

  .tool-card-icon .tool-svg {
    width: 24px;
    height: 24px;
  }

  .key-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .key-entry-grid .resource-item {
    justify-items: center;
    text-align: center;
  }

  .key-entry-grid .resource-item p {
    display: none;
  }
}
