:root {
  --ucle-ink: #0d2b45;
  --ucle-muted: #5f7180;
  --ucle-green: #079b83;
  --ucle-green-dark: #047764;
  --ucle-pale: #eef9f6;
  --ucle-line: #dce6eb;
  --ucle-card: #ffffff;
  --ucle-shadow: 0 18px 45px rgba(13, 43, 69, .10);
}

.ucle-theme-page-title {
  display: none !important;
}

.ucle-calculator-page,
.ucle-state-page,
.ucle-directory,
.ucle-home-expansion {
  color: var(--ucle-ink);
  font-family: inherit;
}

.ucle-calculator-page,
.ucle-state-page,
.ucle-directory {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 72px;
}

.ucle-home-expansion {
  padding: 72px max(24px, calc((100% - 1180px) / 2));
  background: #f7fafb;
  border-top: 1px solid var(--ucle-line);
}

.ucle-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 36px;
  color: var(--ucle-muted);
  font-size: 14px;
}

.ucle-breadcrumb a {
  color: var(--ucle-green-dark);
  text-decoration: none;
}

.ucle-page-header {
  max-width: 860px;
  margin-bottom: 42px;
}

.ucle-eyebrow,
.ucle-card-label,
.ucle-mini-label {
  color: var(--ucle-green-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ucle-page-header h1,
.ucle-directory h1 {
  margin: 12px 0 15px;
  color: var(--ucle-ink);
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.ucle-page-header > p,
.ucle-lead {
  color: var(--ucle-muted);
  font-size: 19px;
  line-height: 1.7;
}

.ucle-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
  color: #405766;
  font-size: 14px;
  font-weight: 700;
}

.ucle-trust-row span::first-letter {
  color: var(--ucle-green);
}

.ucle-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 34px;
  align-items: start;
}

.ucle-calculator-box {
  padding: 30px;
  background: var(--ucle-card);
  border: 1px solid var(--ucle-line);
  border-radius: 22px;
  box-shadow: var(--ucle-shadow);
}

.ucle-calculator-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.ucle-calculator-heading h2 {
  margin: 7px 0 0;
  color: var(--ucle-ink);
  font-size: 28px;
}

.ucle-live {
  flex: none;
  padding: 8px 12px;
  color: var(--ucle-green-dark);
  background: var(--ucle-pale);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

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

.ucle-fields label {
  display: block;
  color: #3d5261;
  font-size: 14px;
  font-weight: 750;
}

.ucle-input-wrap {
  display: flex;
  align-items: center;
  margin-top: 8px;
  overflow: hidden;
  background: #fbfcfd;
  border: 1px solid #ccd9df;
  border-radius: 12px;
}

.ucle-input-wrap:focus-within {
  border-color: var(--ucle-green);
  box-shadow: 0 0 0 3px rgba(7, 155, 131, .12);
}

.ucle-input-wrap input {
  width: 100%;
  min-width: 0;
  padding: 14px 14px;
  color: var(--ucle-ink);
  background: transparent;
  border: 0 !important;
  box-shadow: none !important;
  font: inherit;
  font-size: 16px;
  outline: 0;
}

.ucle-input-wrap small {
  flex: none;
  padding: 0 13px 0 5px;
  color: var(--ucle-muted);
  font-size: 12px;
  font-weight: 700;
}

.ucle-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.ucle-result-card {
  min-width: 0;
  padding: 18px;
  background: var(--ucle-pale);
  border: 1px solid #cdebe4;
  border-radius: 14px;
}

.ucle-result-card span {
  display: block;
  min-height: 34px;
  color: #526b78;
  font-size: 12px;
  font-weight: 700;
}

.ucle-result-card strong {
  display: block;
  margin-top: 7px;
  overflow-wrap: anywhere;
  color: var(--ucle-green-dark);
  font-size: clamp(20px, 3vw, 29px);
  line-height: 1.15;
}

.ucle-formula {
  margin-top: 18px;
  padding: 14px 16px;
  color: #4e6370;
  background: #f6f8f9;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.55;
}

.ucle-content-section {
  margin-top: 34px;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--ucle-line);
  border-radius: 18px;
}

.ucle-content-section h2,
.ucle-directory-group h2,
.ucle-home-expansion h2 {
  margin: 34px 0 14px;
  color: var(--ucle-ink);
  font-size: 28px;
  line-height: 1.2;
}

.ucle-content-section h2:first-child,
.ucle-directory-group h2:first-child {
  margin-top: 0;
}

.ucle-content-section p,
.ucle-content-section li,
.ucle-home-expansion > p {
  color: #4c626f;
  font-size: 16px;
  line-height: 1.75;
}

.ucle-example,
.ucle-source-box {
  margin: 24px 0;
  padding: 19px 21px;
  background: var(--ucle-pale);
  border-left: 4px solid var(--ucle-green);
  border-radius: 10px;
}

.ucle-example p,
.ucle-source-box p {
  margin: 5px 0 0;
}

.ucle-source-box a {
  display: inline-block;
  margin-top: 8px;
  color: var(--ucle-green-dark);
  font-weight: 800;
}

.ucle-tips {
  display: grid;
  gap: 12px;
  padding-left: 24px;
}

.ucle-faq details {
  border-top: 1px solid var(--ucle-line);
}

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

.ucle-faq summary {
  padding: 17px 3px;
  color: var(--ucle-ink);
  cursor: pointer;
  font-weight: 800;
}

.ucle-faq details p {
  margin: 0 0 18px;
}

.ucle-sidebar {
  position: sticky;
  top: 28px;
  display: grid;
  gap: 18px;
}

.admin-bar .ucle-sidebar {
  top: 60px;
}

.ucle-sidebar-card {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--ucle-line);
  border-radius: 16px;
}

.ucle-sidebar-card > a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  color: var(--ucle-ink);
  border-bottom: 1px solid var(--ucle-line);
  text-decoration: none;
  font-size: 14px;
}

.ucle-sidebar-card > a:last-child {
  border-bottom: 0;
}

.ucle-sidebar-card > a:hover {
  color: var(--ucle-green-dark);
}

.ucle-subtle {
  background: #f5f9fa;
}

.ucle-subtle h3 {
  margin: 10px 0 7px;
}

.ucle-subtle p {
  margin: 0;
  color: var(--ucle-muted);
  line-height: 1.6;
}

.ucle-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 28px 0 45px;
}

.ucle-category-nav a {
  padding: 10px 14px;
  color: var(--ucle-green-dark);
  background: var(--ucle-pale);
  border: 1px solid #cce8e2;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.ucle-directory-group {
  padding-top: 18px;
  scroll-margin-top: 35px;
}

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

.ucle-tool-card {
  display: block;
  padding: 23px;
  color: inherit;
  background: #fff;
  border: 1px solid var(--ucle-line);
  border-radius: 16px;
  text-decoration: none !important;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.ucle-tool-card:hover {
  transform: translateY(-3px);
  border-color: #9edbd0;
  box-shadow: 0 16px 36px rgba(13, 43, 69, .09);
}

.ucle-tool-card h3 {
  margin: 10px 0 8px;
  color: var(--ucle-ink);
  font-size: 20px;
  line-height: 1.25;
}

.ucle-tool-card p {
  margin: 0;
  color: var(--ucle-muted);
  font-size: 14px;
  line-height: 1.6;
}

.ucle-card-link {
  display: block;
  margin-top: 18px;
  color: var(--ucle-green-dark);
  font-size: 13px;
  font-weight: 850;
}

.ucle-state-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0;
}

.ucle-state-card {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 3px 10px;
  align-items: center;
  padding: 15px;
  color: var(--ucle-ink);
  background: #fff;
  border: 1px solid var(--ucle-line);
  border-radius: 12px;
  text-decoration: none !important;
}

.ucle-state-card > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--ucle-green-dark);
  background: var(--ucle-pale);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 850;
}

.ucle-state-card strong {
  font-size: 14px;
}

.ucle-state-card b {
  color: var(--ucle-green-dark);
  font-size: 13px;
}

.ucle-check-list {
  padding-left: 20px;
}

.ucle-button {
  display: inline-block;
  padding: 14px 20px;
  color: #fff !important;
  background: var(--ucle-green);
  border-radius: 10px;
  text-decoration: none !important;
  font-weight: 800;
}

.ucle-button:hover {
  background: var(--ucle-green-dark);
}

.ucle-center {
  margin-top: 28px !important;
  text-align: center;
}

.ucle-latest-guides {
  width: min(100% - 40px, 1180px);
  margin: 72px auto;
}

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

.ucle-section-heading h2 {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--ucle-ink);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}

.ucle-section-heading > a {
  flex: 0 0 auto;
  color: var(--ucle-green-dark);
  font-weight: 800;
  text-decoration: none;
}

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

.ucle-guide-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--ucle-line);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(13, 43, 69, .05);
}

.ucle-guide-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ucle-pale);
}

.ucle-guide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ucle-guide-card-body { padding: 23px; }
.ucle-guide-card h3 { margin: 10px 0 10px; font-size: 21px; line-height: 1.3; }
.ucle-guide-card h3 a { color: var(--ucle-ink); text-decoration: none; }
.ucle-guide-card p { margin: 0; color: var(--ucle-muted); line-height: 1.65; }

.ucle-guide-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--ucle-line);
  color: var(--ucle-muted);
  font-size: 13px;
}

.ucle-guide-meta a { color: var(--ucle-green-dark); font-weight: 800; text-decoration: none; }

.ucle-empty-guides {
  padding: 34px;
  background: var(--ucle-pale);
  border: 1px solid #cce8e2;
  border-radius: 16px;
  text-align: center;
}

.ucle-empty-guides h2, .ucle-empty-guides h3 { margin-top: 0; color: var(--ucle-ink); }
.ucle-empty-guides p { margin-bottom: 0; color: var(--ucle-muted); }
.ucle-pagination { margin-top: 38px; text-align: center; }
.ucle-pagination .page-numbers { display: inline-block; margin: 3px; padding: 9px 13px; border-radius: 8px; background: var(--ucle-pale); color: var(--ucle-green-dark); text-decoration: none; }
.ucle-pagination .current { background: var(--ucle-green); color: #fff; }

.ucle-article-table-wrap { overflow-x: auto; margin: 26px 0; }
.ucle-article-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; }
.ucle-article-table th { padding: 13px 15px; background: var(--ucle-green-dark); color: #fff; text-align: left; }
.ucle-article-table td { padding: 13px 15px; border: 1px solid var(--ucle-line); vertical-align: top; }
.ucle-article-table tr:nth-child(even) td { background: #f7faf9; }
.ucle-article-intro { padding: 24px; margin-bottom: 30px; background: var(--ucle-pale); border-left: 5px solid var(--ucle-green); border-radius: 10px; }
.ucle-article-intro p:first-child { margin-top: 0; color: var(--ucle-green-dark); font-size: 14px; }
.ucle-article-intro p:last-child { margin-bottom: 0; }

.ucle-author-box { display: grid; grid-template-columns: 58px 1fr; gap: 20px; align-items: start; margin: 38px 0; padding: 25px; background: #f7faf9; border: 1px solid var(--ucle-line); border-radius: 16px; }
.ucle-author-mark { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--ucle-green); color: #fff; font-size: 26px; font-weight: 900; }
.ucle-author-box h2 { margin: 5px 0 8px; font-size: 22px; }
.ucle-author-box h2 a { color: var(--ucle-ink); text-decoration: none; }
.ucle-author-box p { margin: 0 0 10px; color: var(--ucle-muted); }
.ucle-author-box > div > a { color: var(--ucle-green-dark); font-weight: 800; text-decoration: none; }
.ucle-policy-page, .ucle-editorial-profile { max-width: 900px; }
.ucle-policy-page h2, .ucle-editorial-profile h2 { margin-top: 38px; }
.ucle-profile-lead { font-size: 20px; line-height: 1.7; }
.ucle-profile-expertise { padding-left: 22px; }
.ucle-profile-expertise li { margin-bottom: 12px; }
.ucle-button-secondary { margin-left: 8px; background: var(--ucle-ink); }

@media (max-width: 960px) {
  .ucle-layout {
    grid-template-columns: 1fr;
  }

  .ucle-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

@media (max-width: 680px) {
  .ucle-calculator-page,
  .ucle-state-page,
  .ucle-directory {
    width: min(100% - 24px, 1180px);
    padding-top: 22px;
  }

  .ucle-page-header h1,
  .ucle-directory h1 {
    font-size: 38px;
  }

  .ucle-page-header > p,
  .ucle-lead {
    font-size: 17px;
  }

  .ucle-calculator-box,
  .ucle-content-section {
    padding: 20px;
  }

  .ucle-calculator-heading {
    display: block;
  }

  .ucle-live {
    display: inline-block;
    margin-top: 12px;
  }

  .ucle-fields,
  .ucle-results,
  .ucle-card-grid,
  .ucle-state-grid,
  .ucle-sidebar,
  .ucle-guides-grid {
    grid-template-columns: 1fr;
  }

  .ucle-latest-guides { width: min(100% - 24px, 1180px); margin: 52px auto; }
  .ucle-section-heading { display: block; }
  .ucle-section-heading > a { display: inline-block; margin-top: 16px; }
  .ucle-author-box { grid-template-columns: 1fr; }
  .ucle-button-secondary { margin: 10px 0 0; }

  .ucle-result-card span {
    min-height: 0;
  }
}
