.resource-page {
  background: #f5f8fc;
}

.resource-hero {
  padding: clamp(3rem, 7vw, 6.5rem) 0;
  background: radial-gradient(ellipse at 95% 15%, #214d79, transparent 57%), #101f35;
  color: #fff;
}

.resource-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(1.75rem, 5vw, 5rem);
  align-items: end;
}

.resource-kicker {
  margin: 0 0 .7rem;
  color: #a8c9ff;
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .06em;
}

.resource-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.25rem);
  font-weight: 750;
  line-height: 1.13;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.resource-hero h1 + p {
  max-width: 35em;
  margin: 1.25rem 0 0;
  color: #c5d6ed;
  line-height: 1.75;
}

.resource-shortcuts {
  display: grid;
  gap: .65rem;
}

.resource-shortcuts a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .9rem 1.1rem;
  border: 1px solid #6387b965;
  border-radius: .65rem;
  background: #ffffff0d;
  color: #fff;
  font-weight: 650;
  text-decoration: none;
}

.resource-shortcuts a:hover,
.resource-shortcuts a:focus-visible {
  background: #ffffff20;
  border-color: #8bb5f0;
}

.resource-shortcuts small {
  display: block;
  margin-top: .18rem;
  color: #bbcee9;
  font-weight: 400;
}

.toolkit {
  padding-block: clamp(2rem, 5vw, 4.5rem);
}

.tool-local-note {
  margin: 0 0 2.5rem;
  padding: .85rem 1.05rem;
  border-left: 3px solid #246bfd;
  border-radius: .25rem;
  background: #e7effe;
  color: #243d60;
  font-size: .92rem;
  line-height: 1.65;
}

.tool-section {
  scroll-margin-top: 7rem;
  margin-bottom: 3.75rem;
}

.tool-section:last-child {
  margin-bottom: .25rem;
}

.resource-section-intro {
  margin-bottom: 1.2rem;
}

.resource-section-intro h2 {
  margin: 0;
  color: #142238;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -.03em;
}

.resource-section-intro p {
  margin: .55rem 0 0;
  color: #4e6078;
}

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

.tool-panel {
  display: grid;
  align-content: start;
  gap: 1.1rem;
  min-width: 0;
  padding: clamp(1rem, 2.5vw, 1.65rem);
  border: 1px solid #dbe4f0;
  border-radius: .9rem;
  background: #fff;
}

.tool-panel fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.tool-panel legend,
.tool-field,
.tool-result > label {
  color: #172943;
  font-weight: 650;
}

.tool-hint,
.tool-panel legend span,
.tool-field span {
  margin: .15rem 0 .45rem;
  color: #536781;
  font-size: .86rem;
  font-weight: 400;
}

.tool-options {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .65rem;
  margin-top: .55rem;
}

.tool-options label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .6rem;
  border: 1px solid #dbe4f0;
  border-radius: .4rem;
  color: #2e415d;
  cursor: pointer;
  font-size: .88rem;
}

.tool-options label:has(:checked) {
  border-color: #9bbcf5;
  background: #ecf4ff;
}

.tool-options input {
  margin: 0;
  accent-color: #1758de;
}

.tool-field select,
.tool-field textarea,
.tool-result textarea {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-top: .45rem;
  padding: .65rem .72rem;
  border: 1px solid #c3d0e2;
  border-radius: .45rem;
  background: #fff;
  color: #172943;
  font: 400 1rem/1.5 var(--font, system-ui);
}

.tool-panel textarea {
  resize: vertical;
}

.tool-result textarea {
  min-height: 16rem;
  margin-top: 0;
  background: #f5f8fd;
}

.tool-actions,
.resource-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem .9rem;
}

.tool-panel > .button {
  justify-self: start;
}

.tool-panel button:disabled {
  pointer-events: none;
  opacity: .48;
}

.tool-feedback {
  min-height: 1.4em;
  margin: 0;
  color: #315172;
  font-size: .88rem;
}

.tool-feedback[data-error] {
  color: #a12730;
}

.resource-links {
  margin-top: 1rem;
}

.resource-links a {
  color: #1758de;
  font-weight: 650;
}

.guide-hub {
  padding: clamp(2.4rem, 6vw, 5rem) 0;
}

.guide-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.guide-tile {
  padding: clamp(1.15rem, 3vw, 2rem);
  border: 1px solid #dbe4f0;
  border-radius: .9rem;
  background: #fff;
}

.guide-tile h3 {
  margin: .55rem 0 .65rem;
  color: #142238;
  font-size: clamp(1.15rem, 2.3vw, 1.55rem);
  line-height: 1.35;
}

.guide-topic {
  margin: 0;
  color: #1758de;
  font-size: .84rem;
  font-weight: 700;
}

.guide-tile > p:not(.guide-topic) {
  min-height: 3.2em;
  margin: 0 0 1rem;
  color: #4e6078;
}

.guide-tile .text-link {
  color: #1758de;
}

.resource-back {
  display: inline-block;
  margin-bottom: 1.4rem;
  color: #b9d7ff;
  font-weight: 650;
}

.resource-article .article-body h2 {
  scroll-margin-top: 7rem;
}

.resource-article .article-body ul {
  padding-left: 1.35em;
}

.resource-article .article-body li + li {
  margin-top: .4rem;
}

.resource-article .article-body {
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .resource-hero-inner,
  .tool-grid,
  .guide-tiles {
    grid-template-columns: minmax(0, 1fr);
  }

  .resource-shortcuts {
    max-width: 36rem;
  }

  .resource-hero .wide-break {
    display: none;
  }

  .guide-tile > p:not(.guide-topic) {
    min-height: 0;
  }
}
