:root {
  --primary: #17694f;
  --primary-dark: #104d3a;
  --background: #f7f8f4;
  --surface: #ffffff;
  --text: #192c27;
  --muted: #596b63;
  --border: #dfe5df;
  --success: #17694f;
  --error: #ae302b;
  --warning: #815714;
  --radius: 18px;
  --space: 1rem;
  --shadow: 0 10px 35px rgb(25 44 39 / 5%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}

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

button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}

a:hover {
  text-decoration: underline;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: 0.55;
}

:focus-visible {
  outline: 3px solid #238767;
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(2.3rem, 4.5vw, 3.7rem);
  font-weight: 720;
}

h2 {
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
}

h3 {
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.container {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 100;
  background: white;
  padding: 1rem;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.nav {
  min-height: 83px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  color: var(--text);
  font-weight: 750;
  letter-spacing: -0.8px;
  white-space: nowrap;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  background: var(--primary);
  color: #fff;
  border-radius: 11px;
}

.brand small {
  color: var(--primary);
  font-size: inherit;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 550;
}

.nav-note {
  color: var(--primary);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.icon {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  padding: 65px 0 46px;
  align-items: center;
}

.eyebrow,
.result-eyebrow {
  color: var(--primary);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  margin-bottom: 18px;
}

.eyebrow {
  display: flex;
  gap: 8px;
  align-items: center;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
}

.hero h1 {
  margin-bottom: 23px;
}

.hero h1 span {
  color: var(--primary);
}

.lead {
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 46px;
  padding: 11px 21px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}

.button:hover {
  text-decoration: none;
}

.primary {
  background: var(--primary);
  color: white;
}

.primary:hover {
  background: var(--primary-dark);
}

.secondary {
  color: var(--text);
  background: #fff;
  border-color: var(--border);
}

.secondary:hover {
  background: #f2f5f1;
}

.hero-footnote {
  display: flex;
  gap: 20px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 12px;
}

.hero-footnote span::before {
  content: "✓";
  color: var(--primary);
  margin-right: 6px;
}

.hero-art {
  position: relative;
  padding: 30px;
  background: #eaf0e5;
  border-radius: 28px;
}

.art-card {
  background: white;
  border: 1px solid #d4ded3;
  padding: 27px;
  border-radius: 15px;
  box-shadow: 8px 12px 0 #dce5d8;
  transform: rotate(-2deg);
}

.art-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.art-top small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1px;
}

.art-card h2 {
  font-size: 22px;
  margin: 20px 0;
}

.art-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #eef0ed;
  padding: 12px 0;
  font-size: 13px;
}

.art-tick {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--primary);
  background: #e9f5eb;
  font-size: 12px;
}

.art-item small {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}

.art-caption {
  margin: 18px 0 0;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}

.trust-strip {
  padding: 22px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.trust-item .icon {
  color: var(--primary);
}

.trust-item strong {
  font-size: 13px;
  display: block;
}

.trust-item small {
  font-size: 12px;
  color: var(--muted);
}

.directory {
  padding: 46px 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin-bottom: 8px;
}

.section-heading p {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}

.search-wrap {
  position: relative;
  min-width: 265px;
}

.search-wrap .icon {
  position: absolute;
  top: 13px;
  left: 14px;
  width: 18px;
  color: var(--muted);
}

.search-wrap input {
  padding-left: 41px;
}

.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter,
.tab {
  min-height: 42px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 8px;
  padding: 8px 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.filter[aria-pressed="true"],
.tab[aria-pressed="true"] {
  background: var(--text);
  border-color: var(--text);
  color: white;
}

.group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 29px 0 16px;
}

.group-title h3 {
  font-size: 13px;
  letter-spacing: 0;
  margin: 0;
  font-weight: 650;
}

.group-title span {
  color: var(--muted);
  font-size: 11px;
}

.group-title::after {
  content: "";
  height: 1px;
  background: var(--border);
  flex: 1;
}

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

.tool-card {
  display: flex;
  flex-direction: column;
  background: white;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.tool-card:hover {
  border-color: #91b5a5;
  box-shadow: var(--shadow);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 21px;
}

.icon-box {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: #edf4ed;
  border-radius: 12px;
}

[data-category="Preparation"] .icon-box {
  background: #eef0fa;
  color: #535d96;
}

[data-category="Career"] .icon-box {
  background: #fbf1e4;
  color: #986325;
}

.tag {
  font-size: 10px;
  color: var(--muted);
  background: #f5f7f3;
  border: 1px solid #ebeee7;
  padding: 3px 8px;
  border-radius: 5px;
}

.tool-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.tool-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

.card-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #edf0ea;
  font-size: 12px;
  font-weight: 700;
}

.home-note {
  background: #edf2e9;
  border: 1px solid #dde6d7;
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 0 42px;
}

.home-note h2 {
  font-size: 19px;
  margin-bottom: 7px;
}

.home-note p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumbs {
  padding-top: 25px;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.tool-heading {
  padding: 30px 0 25px;
}

.tool-heading h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  margin: 10px 0 14px;
}

.tool-heading .lead {
  max-width: 720px;
  margin-bottom: 0;
}

.tool-heading .eyebrow {
  margin-bottom: 0;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 24px;
  align-items: start;
}

.panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.panel-head {
  padding: 19px 25px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-head h2 {
  font-size: 16px;
  letter-spacing: -0.02em;
  margin: 0;
}

.step-number {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  background: #edf4ed;
  padding: 3px 9px;
  border-radius: 5px;
}

.panel-body {
  padding: 25px;
}

.result-panel {
  background: #f0f5ed;
}

.result-panel .panel-head {
  border-bottom-color: #dde6d7;
}

.empty-result {
  text-align: center;
  padding: 58px 26px;
  color: var(--muted);
}

.empty-result h3 {
  color: var(--text);
}

.empty-result p {
  font-size: 13px;
}

.empty-symbol {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: #e1eadc;
  border-radius: 16px;
  color: var(--primary);
  font-size: 28px;
  margin: 0 auto 20px;
}

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

.field {
  min-width: 0;
  margin-bottom: 15px;
}

.form-grid .field {
  margin-bottom: 0;
}

.field label,
.typing-label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  margin-bottom: 7px;
}

.optional {
  color: var(--muted);
  font-weight: 400;
  font-size: 10px;
}

input,
select,
textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid #ced8ce;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 10px 12px;
  font-size: 14px;
}

select {
  text-overflow: ellipsis;
}

textarea {
  resize: vertical;
  min-height: 155px;
}

small,
.helper {
  color: var(--muted);
}

.field small,
.field-error {
  display: block;
  font-size: 11px;
  line-height: 1.5;
  margin-top: 5px;
}

.field-error,
.form-error {
  color: var(--error);
}

.field-error:empty,
.form-error:empty,
small:empty {
  display: none;
}

[aria-invalid="true"] {
  border-color: var(--error);
}

.form-error {
  font-size: 13px;
  margin: 16px 0 0;
}

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

.compact {
  margin: 10px 0 20px;
}

.compact .button {
  font-size: 12px;
  min-height: 42px;
  padding: 9px 12px;
}

.notice {
  background: #f5f5eb;
  border: 1px solid #e7e7d4;
  color: #62572c;
  border-radius: 9px;
  padding: 12px 14px;
  font-size: 12px;
  margin-bottom: 20px;
}

.warning {
  color: var(--warning);
  background: #fcf3df;
}

.helper,
.privacy-note,
.result-note {
  font-size: 12px;
  line-height: 1.65;
  margin: 16px 0 0;
}

.privacy-note {
  padding-top: 16px;
  color: var(--muted);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 15px 0;
}

.metric {
  padding: 14px;
  border: 1px solid #dae4d7;
  background: rgb(255 255 255 / 70%);
  border-radius: 10px;
  min-width: 0;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 7px;
}

.metric strong {
  display: block;
  font-size: 21px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.big-result {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -1.5px;
  font-weight: 750;
  color: var(--primary);
  overflow-wrap: anywhere;
}

.big-result small {
  font-size: 20px;
  font-weight: 400;
}

.check-row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dce5d8;
  padding: 13px 0;
  font-size: 12px;
}

.check-row strong {
  text-transform: capitalize;
}

.check-row small {
  display: block;
  margin-top: 3px;
}

.status {
  display: inline-block;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  white-space: nowrap;
}

.pass {
  color: var(--success);
  background: #deedde;
}

.fail {
  color: var(--error);
  background: #fae4df;
}

.neutral {
  color: var(--muted);
  background: #e9eee6;
}

.upload-zone {
  padding: 24px;
  background: #f8faf5;
  border: 1.5px dashed #aac2ae;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 22px;
}

.upload-zone label {
  display: block;
  color: var(--primary);
  font-weight: 650;
  cursor: pointer;
  margin: 8px 0 4px;
}

.upload-zone p {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 16px;
}

.upload-symbol {
  font-size: 30px;
  color: var(--primary);
}

.upload-zone input {
  font-size: 12px;
  background: white;
  padding: 6px;
}

input::file-selector-button {
  padding: 7px 10px;
  border: 0;
  border-radius: 5px;
  background: #e6eee1;
  color: var(--primary);
  margin-right: 8px;
}

.image-preview {
  display: block;
  max-width: 100%;
  max-height: 280px;
  object-fit: contain;
  margin: 20px auto;
}

.crop-preview {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 16px auto;
  touch-action: none;
  cursor: crosshair;
  background: #e8ece6;
}

.crop-details {
  margin: 15px 0 24px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 9px;
}

.crop-details summary {
  margin-bottom: 12px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin-top: 18px;
}

.checkbox input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--primary);
}

.download {
  margin-top: 16px;
  width: 100%;
}

.tool-tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.tab {
  padding: 8px 11px;
}

#standard-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.typing-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 24px 0 12px;
  font-size: 12px;
}

#timer {
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  color: var(--primary);
}

.passage {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8f9f5;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 15px;
  line-height: 1.9;
  max-height: 230px;
  overflow-y: auto;
  margin-bottom: 20px;
  white-space: pre-wrap;
}

.typed-correct {
  color: var(--primary);
  background: #e2eee1;
}

.typed-wrong {
  color: #a41f1f;
  background: #ffdedb;
}

.typing-caret {
  border-bottom: 2px solid var(--primary);
}

#typing-help {
  display: block;
  font-size: 11px;
  margin-top: 7px;
}

progress {
  width: 100%;
  height: 7px;
  border: 0;
  border-radius: 6px;
  accent-color: var(--primary);
  margin: 18px 0;
}

.text-button {
  border: 0;
  padding: 10px 0;
  color: var(--primary);
  background: transparent;
  min-height: 44px;
  font-size: 12px;
}

.salary-bar {
  height: 9px;
  border-radius: 9px;
  overflow: hidden;
  background: #d4ddcd;
  margin: 20px 0;
}

.salary-bar span {
  display: block;
  height: 100%;
  background: var(--primary);
}

.about-tool {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 44px 0;
}

.about-tool h2 {
  font-size: 19px;
}

.about-tool p {
  color: var(--muted);
  font-size: 13px;
}

details summary {
  cursor: pointer;
  min-height: 44px;
  padding: 10px 0;
  font-weight: 600;
  font-size: 13px;
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq details p {
  margin: 6px 0 16px;
}

.related-section {
  padding: 28px 0 44px;
  border-top: 1px solid var(--border);
}

.related-section h2 {
  font-size: 20px;
  margin-bottom: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: white;
  padding: 30px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: start;
}

.footer-inner p {
  font-size: 12px;
  color: var(--muted);
  max-width: 510px;
  margin: 12px 0 0;
}

.footer-side {
  text-align: right;
}

.footer-side p {
  font-size: 11px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 960px) {
  .hero {
    gap: 30px;
  }
  .nav-note {
    display: none;
  }
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .workspace {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 16px;
  }
  .panel-body {
    padding: 20px;
  }
  .metric strong {
    font-size: 18px;
  }
  .art-card {
    padding: 20px;
  }
  .art-item small {
    display: none;
  }
}

@media (max-width: 700px) {
  .container {
    width: calc(100% - 32px);
  }
  .nav {
    min-height: 76px;
    gap: 15px;
    flex-wrap: wrap;
    padding: 17px 0;
  }
  .brand {
    font-size: 20px;
  }
  .nav-links {
    gap: 15px;
  }
  .nav-links a {
    font-size: 12px;
  }
  .nav-links a:last-child {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 37px 0 30px;
  }
  .hero h1 {
    font-size: 40px;
  }
  .hero-art {
    display: none;
  }
  .hero-footnote {
    gap: 14px;
  }
  .trust-strip {
    gap: 14px;
  }
  .trust-item {
    flex-direction: column;
    align-items: start;
    gap: 7px;
  }
  .trust-item small {
    display: none;
  }
  .trust-item strong {
    font-size: 11px;
  }
  .directory {
    padding-top: 30px;
  }
  .section-heading {
    flex-direction: column;
    align-items: stretch;
  }
  .search-wrap {
    min-width: 0;
  }
  .tool-grid {
    grid-template-columns: 1fr;
  }
  .tool-card {
    padding: 21px;
  }
  .card-top {
    margin-bottom: 16px;
  }
  .home-note {
    padding: 22px;
    gap: 14px;
    align-items: start;
  }
  .workspace,
  .about-tool {
    grid-template-columns: 1fr;
  }
  .about-tool {
    gap: 20px;
    padding: 32px 0;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    gap: 10px;
  }
  .footer-side {
    text-align: left;
  }
  .empty-result {
    padding: 30px 20px;
  }
  .check-row {
    gap: 8px;
  }
  .form-grid,
  #standard-fields {
    grid-template-columns: 1fr;
  }
  .panel-head {
    padding: 17px 20px;
  }
}
