@font-face {
  font-family: Utility;
  src: local("Segoe UI");
}
* {
  box-sizing: border-box;
}
html {
  color-scheme: light;
  background: #f5f6f2;
}
body {
  margin: 0;
  font:
    17px/1.6 Utility,
    system-ui,
    -apple-system,
    sans-serif;
  color: #243b3a;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: #126b65;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  min-height: 48px;
  border: 1px solid #c7d4ce;
  border-radius: 10px;
  color: #234a46;
  background: #fff;
  text-decoration: none;
  font-weight: 650;
  cursor: pointer;
  line-height: 1.4;
}
button:hover,
.button:hover {
  background: #eaf2eb;
  border-color: #749d89;
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.primary {
  background: #125c52;
  color: white;
  border-color: #125c52;
}
.primary:hover {
  background: #0b443c;
  color: #fff;
}
.danger {
  color: #a13729;
}
.quiet {
  background: transparent;
}
button:focus-visible,
a:focus-visible,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid #b17a17;
  outline-offset: 3px;
}
.top {
  min-height: 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 16px 36px;
  background: #fff;
  border-bottom: 1px solid #dbe3dc;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: #203f3b;
  font-weight: 750;
  font-size: 19px;
  line-height: 1.4;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  color: #60746d;
  font-weight: 600;
}
.brandmark {
  background: #15574e;
  color: white;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  font-size: 32px;
  font-family: Georgia, serif;
}
.top nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.layout {
  max-width: 1580px;
  margin: auto;
  display: grid;
  grid-template-columns: 234px minmax(0, 1fr);
}
.sidebar {
  padding: 32px 20px;
  border-right: 1px solid #dce4dc;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 1.6px;
  color: #52655a;
  margin: 0 0 10px;
}
.sidebar nav {
  display: grid;
  gap: 5px;
}
.sidebar a {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: #536760;
  padding: 11px 12px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 600;
  min-height: 46px;
}
.sidebar a.active {
  background: #dfece1;
  color: #164b3c;
}
.sidebar a:hover {
  background: #e8eee6;
}
.icon {
  width: 23px;
  height: 23px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.side-note {
  margin-top: 38px;
  padding: 20px 12px;
  border-top: 1px solid #d5dfd3;
  font-size: 13px;
  color: #647568;
}
.side-note strong {
  display: block;
  color: #395c4b;
}
.side-note p {
  margin: 5px 0;
}
.small-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #769951;
  margin-bottom: 10px;
}
main {
  padding: 34px 42px 50px;
  min-width: 0;
  min-height: calc(100vh - 176px);
}
.intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 26px;
}
.intro h1 {
  font:
    500 clamp(32px, 3vw, 43px) / 1.16 Georgia,
    serif;
  color: #153f39;
  margin: 7px 0 12px;
  letter-spacing: -1px;
}
.intro p {
  margin: 0;
  color: #5a6c63;
  max-width: 640px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #cddfd0;
  border-radius: 30px;
  padding: 6px 12px;
  white-space: nowrap;
  background: #ebf3e8;
  color: #375b3b;
  font-size: 12px;
  font-weight: 700;
}
.badge.amber {
  color: #81591e;
  background: #fff5dc;
  border-color: #ecd6a6;
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr);
  gap: 22px;
  align-items: start;
}
.card {
  background: #fff;
  border: 1px solid #d7e1d8;
  border-radius: 17px;
  padding: 26px;
  box-shadow: 0 3px 14px #193b2a03;
  min-width: 0;
}
.card.soft {
  background: #eaf0e5;
}
.card h2 {
  font-size: 21px;
  margin: 0 0 10px;
  letter-spacing: -0.3px;
}
.card h3 {
  font-size: 17px;
  margin: 22px 0 8px;
}
.card p {
  margin: 8px 0 18px;
}
.muted,
.hint {
  color: #52655a;
}
.hint {
  font-size: 14px;
  line-height: 1.5;
  margin: 7px 0 0;
}
.small {
  font-size: 14px;
}
.stepper {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 0;
  margin: 0 0 25px;
  list-style: none;
  font-size: 13px;
  color: #647267;
}
.stepper li {
  display: flex;
  align-items: center;
  gap: 7px;
}
.stepper b {
  display: grid;
  place-items: center;
  border: 1px solid #becdbf;
  border-radius: 50%;
  width: 27px;
  height: 27px;
}
.stepper .current {
  color: #165a42;
  font-weight: 700;
}
.stepper .current b {
  background: #165a42;
  color: white;
}
.stack {
  display: grid;
  gap: 18px;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.actions button {
  flex-shrink: 0;
}
label {
  display: block;
  font-weight: 650;
  margin: 15px 0 6px;
  font-size: 15px;
}
input:not([type="checkbox"]):not([type="range"]),
select,
textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #b9c9be;
  border-radius: 9px;
  background: #fff;
  color: #243b3a;
  min-height: 48px;
}
textarea {
  resize: vertical;
  min-height: 130px;
}
input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #165c4e;
  flex-shrink: 0;
}
.check-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px 2px;
  border-bottom: 1px solid #e7ece5;
  margin: 0;
  font-weight: 500;
}
.check-row span {
  flex: 1;
}
.check-row small {
  display: block;
  font-weight: 400;
  color: #67796d;
  font-size: 13px;
}
.info {
  padding: 15px 17px;
  border: 1px solid #d3e0da;
  border-radius: 10px;
  background: #f1f6f0;
  font-size: 14px;
  margin: 18px 0;
  color: #365a48;
}
.warning {
  background: #fff7e7;
  border-color: #e6c98d;
  color: #795420;
}
.error {
  background: #fff0eb;
  border-color: #dfac9e;
  color: #9b3828;
}
.success {
  background: #eaf5e7;
  border-color: #a9cba4;
  color: #285534;
}
.empty {
  padding: 24px;
  border: 1px dashed #c3d0c4;
  border-radius: 12px;
  text-align: center;
  color: #627567;
}
.empty .icon {
  width: 42px;
  height: 42px;
  margin-bottom: 9px;
}
.empty h3 {
  margin: 0;
  color: #355648;
}
.empty p {
  font-size: 14px;
  margin: 6px 0;
}
.rule {
  border: 0;
  border-top: 1px solid #dbe4d9;
  margin: 22px 0;
}
.facts {
  list-style: none;
  margin: 0;
  padding: 0;
}
.facts li {
  position: relative;
  padding: 10px 0 10px 25px;
  font-size: 15px;
}
.facts li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #43804e;
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.tool-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.15s;
}
.tool-card:hover {
  transform: translateY(-3px);
  border-color: #719984;
}
.tool-card .icon {
  width: 33px;
  height: 33px;
  margin-bottom: 25px;
  color: #3e795c;
}
.tool-card h2 {
  color: #214f42;
}
.tool-card p {
  font-size: 15px;
  color: #5b7064;
  flex: 1;
}
.tool-card .go {
  font-weight: 700;
  color: #256344;
  font-size: 14px;
}
.lead-card {
  background: #e4eddd;
  margin-bottom: 26px;
  border: 1px solid #cbdcc3;
  border-radius: 18px;
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.lead-card h2 {
  font:
    30px Georgia,
    serif;
  margin: 0 0 8px;
  color: #284e39;
}
.lead-card p {
  margin: 0;
  max-width: 620px;
  color: #52694f;
}
.notice-inline {
  font-size: 13px;
  color: #617267;
  margin: 23px 0 0;
}
.result {
  font:
    600 40px/1.2 Georgia,
    serif;
  color: #1a5c49;
  margin: 16px 0;
}
.result small {
  font: 400 16px system-ui;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.list-item {
  border: 1px solid #d9e3d8;
  border-radius: 12px;
  padding: 17px;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.list-item h3 {
  margin: 0 0 4px;
}
.list-item p {
  margin: 6px 0;
}
.list-item img {
  max-width: 100%;
  max-height: 180px;
  border-radius: 8px;
  object-fit: contain;
}
.list-item .actions {
  margin-top: 12px;
}
.text-button {
  padding: 5px 3px;
  border: 0;
  background: transparent;
  min-height: 44px;
  color: #4a6758;
  text-decoration: underline;
  font-size: 13px;
}
footer {
  border-top: 1px solid #d9e2d6;
  padding: 18px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  font-size: 12px;
  color: #637565;
}
footer div {
  display: flex;
  gap: 16px;
}
dialog {
  padding: 30px;
  border: 1px solid #c9d8ca;
  border-radius: 18px;
  max-width: 660px;
  width: calc(100% - 28px);
  max-height: 85vh;
  box-shadow: 0 20px 70px #112b2540;
  color: #254238;
}
dialog::backdrop {
  background: #172e2966;
}
dialog h2 {
  font:
    30px Georgia,
    serif;
  margin-top: 0;
  padding-right: 25px;
}
dialog h3 {
  font-size: 19px;
}
dialog li {
  margin: 10px 0;
}
.close {
  float: right;
  border: 0;
  font-size: 26px;
  margin: -18px -15px 0 0;
}
#notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #193f34;
  color: white;
  border-radius: 10px;
  padding: 12px 22px;
  z-index: 20;
  box-shadow: 0 5px 20px #15322c30;
  max-width: 90%;
  display: none;
}
progress {
  width: 100%;
  height: 18px;
  accent-color: #367a59;
}
.skip {
  position: fixed;
  left: 10px;
  top: -100px;
  z-index: 99;
  background: #fff;
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
.inline-icon {
  background: #e8f0e3;
  border-radius: 12px;
  padding: 15px;
  display: inline-flex;
  margin-bottom: 18px;
}
.inline-icon .icon {
  width: 32px;
  height: 32px;
}
audio {
  width: 100%;
  margin: 12px 0;
}
.meter {
  font:
    500 50px Georgia,
    serif;
  letter-spacing: 2px;
  text-align: center;
  margin: 28px 0;
}
.record-button {
  width: 100%;
  min-height: 62px;
  background: #9b3f31;
  color: #fff;
  border-color: #9b3f31;
}
.record-button:hover {
  background: #793023;
  color: #fff;
}
.record-dot {
  width: 12px;
  height: 12px;
  background: currentColor;
  border-radius: 50%;
}
.compass {
  width: min(100%, 300px);
  aspect-ratio: 1;
  position: relative;
  border: 2px solid #aebfad;
  border-radius: 50%;
  margin: 24px auto;
  background: repeating-conic-gradient(
    from -1deg,
    #e1e9dc 0deg 1deg,
    transparent 1deg 30deg
  );
}
.compass:before {
  content: "N";
  position: absolute;
  top: 9px;
  left: calc(50% - 7px);
  color: #9b4933;
  font-weight: 800;
}
.needle {
  position: absolute;
  left: calc(50% - 12px);
  top: 20%;
  height: 60%;
  width: 24px;
  background: linear-gradient(#a64a34 50%, #436c57 50%);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  transform: rotate(0deg);
}
.compass-center {
  position: absolute;
  inset: 45%;
  border: 4px solid white;
  border-radius: 50%;
  background: #305b44;
}
.screen-light {
  position: fixed;
  inset: 0;
  background: white;
  z-index: 100;
  display: grid;
  place-items: end center;
  padding: 40px;
}
.thumbs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.thumbs img {
  width: 100px;
  height: 130px;
  object-fit: contain;
  background: #eff2ec;
  border: 1px solid #ccd6c8;
}
.preview-img {
  max-width: 100%;
  max-height: 350px;
  object-fit: contain;
}
.print-only {
  display: none;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1100px) {
  main {
    padding: 28px;
  }
  .layout {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .sidebar {
    padding: 28px 12px;
  }
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .intro {
    flex-wrap: wrap;
  }
}
@media (max-width: 700px) {
  body {
    font-size: 16px;
  }
  .top {
    padding: 15px 18px;
    gap: 15px;
    align-items: start;
    flex-wrap: wrap;
  }
  .brand {
    font-size: 18px;
  }
  .top nav {
    width: 100%;
    display: grid;
    grid-template-columns: auto auto 1fr;
  }
  .top nav button,
  .top nav a {
    padding: 9px 10px;
    font-size: 13px;
  }
  .layout {
    display: block;
  }
  .sidebar {
    display: none;
  }
  main {
    padding: 25px 18px 35px;
  }
  .intro {
    gap: 14px;
    margin-bottom: 22px;
  }
  .intro h1 {
    font-size: 35px;
  }
  .intro p {
    font-size: 16px;
  }
  .card {
    padding: 22px 19px;
  }
  .tool-grid {
    grid-template-columns: 1fr;
  }
  .lead-card {
    padding: 23px;
    align-items: start;
    flex-direction: column;
  }
  .lead-card h2 {
    font-size: 27px;
  }
  .actions button,
  .actions .button {
    flex: 1;
  }
  .actions {
    gap: 8px;
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
  footer {
    padding: 17px 18px;
    align-items: start;
    flex-direction: column;
    gap: 0;
  }
  .result {
    font-size: 34px;
  }
  .stepper {
    font-size: 12px;
    gap: 9px;
  }
  .stepper b {
    width: 24px;
    height: 24px;
  }
  .badge {
    font-size: 11px;
  }
  dialog {
    padding: 26px 22px;
  }
  .list-item {
    padding: 14px;
  }
}
@media print {
  .top,
  .sidebar,
  footer,
  .actions,
  button,
  .no-print,
  #notice {
    display: none !important;
  }
  .layout {
    display: block;
  }
  main {
    padding: 0;
    min-height: 0;
  }
  body,
  html,
  .card {
    background: white;
    color: black;
  }
  .card {
    box-shadow: none;
    border: 1px solid #999;
    break-inside: avoid;
  }
  .print-only {
    display: block;
  }
  .two-col {
    display: block;
  }
  .card {
    margin-bottom: 16px;
  }
  .intro h1 {
    color: black;
  }
  .badge {
    display: none;
  }
  textarea {
    height: auto;
  }
  a {
    color: black;
  }
  .tool-grid {
    display: block;
  }
}

.skip {
  top: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip:focus {
  width: auto;
  height: auto;
  padding: 12px;
  clip-path: none;
}

.actions label.button {
  margin: 0;
}

.compass:before {
  content: "TOP OF PHONE";
  font-size: 10px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  color: #617568;
}
.compass .needle:after {
  content: "";
}
#answers .text-button {
  display: flex;
  text-align: left;
  margin-top: 3px;
}
summary {
  cursor: pointer;
  font-weight: 650;
  min-height: 44px;
  padding: 8px 0;
}

[role="tab"][aria-selected="true"] {
  background: #155c50;
  color: white;
  border-color: #155c50;
}
@media (max-width: 700px) {
  .actions button,
  .actions .button {
    flex: 1 1 120px;
    overflow-wrap: normal;
  }
  .actions .record-button {
    flex-basis: 100%;
  }
}

.card-detail {
  border-bottom: 1px solid #e0e7da;
  padding: 13px 0;
}
.card-detail p {
  margin: 2px 0;
}
.card-detail .eyebrow {
  font-size: 11px;
  color: #597360;
}
@media print {
  body[data-tool="emergency"] .intro {
    display: none;
  }
  body[data-tool="emergency"] .two-col > aside {
    display: block;
  }
  #card-preview {
    max-width: 650px;
    border: 2px solid #355b4a;
    padding: 24px;
  }
  .card-detail {
    break-inside: avoid;
  }
}

@media (max-width: 700px) {
  body.has-emergency-card .two-col > aside {
    order: -1;
  }
}

@media (max-width: 700px) {
  body.has-supplies .two-col > aside {
    order: -1;
  }
  body.has-supplies .two-col > aside > section:first-child {
    order: 1;
  }
}
.equivalents {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.equivalents th,
.equivalents td {
  text-align: left;
  padding: 10px 0;
  border-bottom: 1px solid #e2e8df;
}
.equivalents td {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.result {
  overflow-wrap: anywhere;
}
.result-label {
  font-size: 14px;
  color: #587060;
}
