.toolkit-home,
.tool-page { color: #182840; }
.toolkit-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 44px;
  align-items: center;
  padding: clamp(32px, 5vw, 68px);
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 85% 22%, rgba(65,184,167,.38), transparent 27%),
    linear-gradient(135deg, #182840, #253d62 64%, #305385);
  border-radius: 25px;
  box-shadow: 0 24px 58px rgba(24,40,64,.2);
}
.toolkit-hero h1 { max-width: 780px; margin: 8px 0 16px; color: white; font-size: clamp(42px, 5.5vw, 74px); line-height: .98; }
.toolkit-hero p:not(.eyebrow) { max-width: 760px; color: #dbe8f3; font-size: 19px; line-height: 1.6; }
.toolkit-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 25px; }
.button.light { color: white; border-color: rgba(255,255,255,.52); }
.button.light:hover { background: rgba(255,255,255,.1); }
.toolkit-hero aside { display: grid; grid-template-columns: auto 1fr; gap: 3px 11px; padding: 22px; background: rgba(11,27,48,.38); border: 1px solid rgba(255,255,255,.16); border-radius: 18px; backdrop-filter: blur(10px); }
.toolkit-hero aside > span { grid-column: 1 / -1; margin-bottom: 14px; color: #75b6e7; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.toolkit-hero aside strong { color: white; font-family: Georgia, serif; font-size: 40px; line-height: 1; }
.toolkit-hero aside small { align-self: center; color: #dbe8f3; }
.toolkit-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 20px 0; overflow: hidden; background: #d0dbe5; border: 1px solid #d0dbe5; border-radius: 15px; }
.toolkit-stats div { display: flex; gap: 9px; align-items: baseline; padding: 17px 20px; background: white; }
.toolkit-stats strong { color: #146f69; font-size: 27px; }
.toolkit-stats span { color: #5c6a7c; font-size: 13px; }
.toolkit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.toolkit-grid article { display: flex; flex-direction: column; min-height: 300px; padding: 25px; background: white; border: 1px solid #d2dce5; border-radius: 17px; box-shadow: 0 12px 28px rgba(24,40,64,.06); }
.toolkit-grid article:hover { transform: translateY(-2px); box-shadow: 0 17px 34px rgba(24,40,64,.1); transition: .2s ease; }
.toolkit-grid .answer-key-card { background: #f7f4ec; border-style: dashed; }
.toolkit-icon { display: grid; place-items: center; width: 47px; height: 47px; margin-bottom: 20px; color: white; background: #253d62; border-radius: 13px; font-size: 12px; font-weight: 900; }
.toolkit-grid h2 { margin: 4px 0 9px; font-size: 27px; }
.toolkit-grid article > p:not(.eyebrow) { color: #5d6b7e; line-height: 1.55; }
.toolkit-grid article > a { margin-top: auto; color: #305385; font-weight: 900; }
.toolkit-principle { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; align-items: center; margin-top: 20px; padding: 30px; color: white; background: #146f69; border-radius: 17px; }
.toolkit-principle h2,
.toolkit-principle p { color: white; }
.toolkit-principle h2 { margin: 5px 0 0; }
.toolkit-principle > p { font-size: 17px; line-height: 1.55; }

.tool-page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 35px;
  align-items: end;
  padding: 34px;
  color: white;
  background: linear-gradient(135deg, #182840, #253d62);
  border-radius: 20px;
}
.tool-page-head h1 { margin: 7px 0 10px; color: white; font-size: clamp(36px, 4vw, 58px); }
.tool-page-head p:not(.eyebrow) { max-width: 780px; margin: 0; color: #dce8f4; font-size: 17px; line-height: 1.55; }
.tool-page-head a { color: #a9d9ed; font-weight: 800; }
.tool-count-badge { min-width: 115px; padding: 16px; text-align: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; }
.tool-count-badge strong,
.tool-count-badge span { display: block; }
.tool-count-badge strong { color: white; font-family: Georgia, serif; font-size: 39px; }
.tool-count-badge span { color: #bdd5e8; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.tool-notice { margin: 15px 0; padding: 14px 18px; color: #5b4a23; background: #fff6df; border: 1px solid #ead39d; border-radius: 11px; font-size: 14px; line-height: 1.5; }
.tool-workspace { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 16px; align-items: start; }
.tool-sidebar { position: sticky; top: 88px; padding: 15px; background: white; border: 1px solid #d3dde6; border-radius: 15px; }
.tool-search { width: 100%; padding: 11px 12px; color: #182840; background: #f7f9fb; border: 1px solid #b9c6d1; border-radius: 9px; font: inherit; }
.tool-filter { width: 100%; margin-top: 9px; padding: 10px; color: #182840; background: white; border: 1px solid #b9c6d1; border-radius: 9px; }
.tool-nav-list { display: grid; gap: 5px; max-height: 68vh; margin-top: 12px; overflow: auto; }
.tool-nav-list button { width: 100%; padding: 10px 11px; text-align: left; color: #4f5f73; background: transparent; border: 0; border-radius: 8px; font: inherit; font-size: 13px; cursor: pointer; }
.tool-nav-list button:hover { background: #eef4f8; }
.tool-nav-list button.active { color: white; background: #305385; }
.tool-nav-list button small { display: block; margin-top: 3px; opacity: .75; }
.tool-detail { min-width: 0; padding: clamp(22px, 4vw, 42px); background: white; border: 1px solid #d3dde6; border-radius: 16px; box-shadow: 0 12px 28px rgba(24,40,64,.06); }
.tool-detail-head { display: flex; justify-content: space-between; gap: 20px; align-items: start; padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid #d8e1e8; }
.tool-detail-head h2 { max-width: 780px; margin: 5px 0 0; font-size: clamp(27px, 3vw, 39px); line-height: 1.12; }
.tool-detail-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tool-detail-actions .button-outline { color: #253d62; background: #fff; border-color: #7891ad; }
.tool-detail-actions .button-outline:hover,
.tool-detail-actions .button-outline:focus-visible { color: #fff; background: #253d62; border-color: #253d62; filter: none; }
.tool-detail .markdown-body { color: #35465a; line-height: 1.65; }
.tool-detail .markdown-body > p,
.tool-detail .markdown-body > ul,
.tool-detail .markdown-body > ol,
.tool-detail .markdown-body > table { color: #35465a; }
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 { margin-top: 1.5em; color: #182840; }
.markdown-body h3 { font-size: 23px; }
.markdown-body blockquote { margin: 16px 0; padding: 18px 20px; color: #dce8f4; background: #253d62; border-left: 6px solid #41b8a7; border-radius: 9px; }
.markdown-body blockquote p,
.markdown-body blockquote li { color: #dce8f4; }
.markdown-body blockquote p { margin: 7px 0; }
.markdown-body code { padding: 2px 5px; background: #eef2f6; border-radius: 4px; }
.markdown-body pre { padding: 18px; overflow: auto; color: #dce8f4; background: #182840; border-radius: 10px; white-space: pre-wrap; }
.markdown-body table { width: 100%; margin: 17px 0; border-collapse: collapse; font-size: 14px; }
.markdown-body th,
.markdown-body td { padding: 10px 11px; text-align: left; vertical-align: top; border: 1px solid #d5dee6; }
.markdown-body th { color: #253d62; background: #edf4f9; }
.markdown-body li { margin: 7px 0; }
.live-check { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; margin: 7px 0; background: #f8fafb; border: 1px solid #d9e1e8; border-radius: 9px; cursor: pointer; }
.live-check input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 3px; accent-color: #146f69; }
.classic-red-flag { padding: 15px; color: #7e2f2f; background: #fff1f0; border: 1px solid #ebbbb6; border-left: 6px solid #a33b3b; border-radius: 9px; }
.copy-feedback { color: #146f69; font-weight: 800; }

.mistake-toolbar { display: grid; grid-template-columns: minmax(220px,1fr) 250px; gap: 10px; margin: 16px 0; }
.mistake-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.mistake-card { overflow: hidden; background: white; border: 1px solid #d3dde6; border-radius: 14px; }
.mistake-card[open] { border-color: #aac4d8; box-shadow: 0 12px 27px rgba(24,40,64,.08); }
.mistake-card summary { padding: 19px; cursor: pointer; list-style: none; }
.mistake-card summary::-webkit-details-marker { display: none; }
.mistake-card summary span { display: inline-block; margin-bottom: 7px; color: #9b6615; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.mistake-card summary h2 { margin: 0; font-size: 21px; }
.mistake-card .markdown-body { padding: 0 19px 19px; color: #4c5c70; }
.mistake-card.highlighted { outline: 3px solid #41b8a7; outline-offset: 2px; }

.reference-tabs { display: flex; gap: 8px; margin: 16px 0; }
.reference-tabs button { padding: 10px 15px; color: #526176; background: white; border: 1px solid #c1ccd6; border-radius: 9px; font-weight: 800; cursor: pointer; }
.reference-tabs button.active { color: white; background: #253d62; border-color: #253d62; }
.reference-panel { display: none; }
.reference-panel.active { display: block; }
.reference-search { width: 100%; max-width: 600px; padding: 12px 14px; margin-bottom: 14px; background: white; border: 1px solid #b7c4d0; border-radius: 9px; font: inherit; }
.account-table-wrap { overflow: auto; background: white; border: 1px solid #d2dce5; border-radius: 14px; }
.account-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.account-table th,
.account-table td { padding: 11px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid #dfe5eb; }
.account-table th { position: sticky; top: 0; color: white; background: #253d62; }
.account-table td:first-child { color: #146f69; font-weight: 900; }
.glossary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.glossary-grid article { padding: 17px; background: white; border: 1px solid #d3dde6; border-radius: 12px; }
.glossary-grid h2 { margin: 0 0 6px; color: #305385; font-size: 18px; }
.glossary-grid p { margin: 0; color: #56667a; line-height: 1.5; }
.technical-currency { display: flex; gap: 15px; align-items: center; margin: 16px 0; padding: 14px 17px; color: #5e4a23; background: #fff7e5; border: 1px solid #e7d19f; border-radius: 11px; }
.technical-currency strong { white-space: nowrap; }

@media (max-width: 980px) {
  .toolkit-grid { grid-template-columns: 1fr 1fr; }
  .tool-workspace { grid-template-columns: 235px minmax(0,1fr); }
}
@media (max-width: 760px) {
  .toolkit-hero,
  .tool-page-head { grid-template-columns: 1fr; }
  .toolkit-hero aside { max-width: 260px; }
  .toolkit-stats { grid-template-columns: 1fr 1fr; }
  .toolkit-grid,
  .toolkit-principle { grid-template-columns: 1fr; }
  .tool-workspace { display: block; }
  .tool-sidebar { position: static; margin-bottom: 12px; }
  .tool-nav-list { display: flex; max-height: none; overflow-x: auto; }
  .tool-nav-list button { flex: 0 0 210px; }
  .tool-detail-head { display: block; }
  .tool-detail-actions { margin-top: 13px; }
  .mistake-grid,
  .glossary-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .toolkit-hero { padding: 27px 22px; }
  .toolkit-hero h1 { font-size: 41px; }
  .toolkit-stats { display: flex; overflow-x: auto; }
  .toolkit-stats div { flex: 0 0 160px; }
  .toolkit-grid { grid-template-columns: 1fr; }
  .tool-page-head { padding: 25px 21px; }
  .mistake-toolbar { grid-template-columns: 1fr; }
}
