/* ===========================================================================
   Mekozza · PAW ID — the scan page and the registration form

   Read this before changing anything: the page this styles is opened by
   somebody standing in a road, on a phone, on mobile data, often at night,
   sometimes next to an animal that needs help. Every decision below follows
   from that.

     · no web font — the system font renders immediately and a street dog's
       vaccination status is not improved by Poppins
     · no icon font — the eight icons are CSS masks over inline SVG, which
       costs zero requests instead of the 30-odd kilobytes and the
       render-blocking stylesheet a font would need
     · tap targets at 44px and over, because this is being used one-handed
     · the form is one column at every width; a two-column form on a phone
       is how people miss a field
     · it works in full on a dark screen outdoors, which is why the contrast
       is higher than the rest of the site rather than matching it

   Separate from pet-id.css and pet-tag.css on purpose. Those style the
   engraved collar tag somebody buys for their own pet, which is a different
   product with a different audience, and the two should be free to diverge.
   ======================================================================== */

.pw {
  --ink:   #14202c;
  --soft:  #5b6b7c;
  --dim:   #8a949e;
  --line:  #e4ded5;
  --sand:  #faf7f2;
  --card:  #ffffff;
  --brand: #ff5a1f;
  --brand2:#ff8c42;
  --good:  #0a7c3f;
  --warn:  #a85b00;
  --bad:   #c0392b;

  margin: 0;
  padding: 0;
  background: var(--sand);
  color: var(--ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
.pw *, .pw *::before, .pw *::after { box-sizing: border-box; }

/* The `hidden` attribute hides an element only because the browser's own
   stylesheet says `display: none`, and any `display` an author writes beats
   it — so a rule like `.pw__picked { display: block }` silently un-hides
   every hidden element it matches. That is exactly what happened: the
   "photo added" confirmation rendered as an empty green bar before a photo
   had been chosen. One rule, stated once, rather than remembering it at
   every call site. */
.pw [hidden] { display: none !important; }


/* ---- icons ---------------------------------------------------------------
   Masks rather than background images, so each one takes the colour of the
   text around it and a single definition works on an orange button and on a
   grey caption. */
.pw-i {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  vertical-align: -0.125em;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
}
.pw-i--paw {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='6.2' cy='10' r='2.5'/%3E%3Ccircle cx='10' cy='6.4' r='2.5'/%3E%3Ccircle cx='14' cy='6.4' r='2.5'/%3E%3Ccircle cx='17.8' cy='10' r='2.5'/%3E%3Cellipse cx='12' cy='16.6' rx='5.2' ry='4.2'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='6.2' cy='10' r='2.5'/%3E%3Ccircle cx='10' cy='6.4' r='2.5'/%3E%3Ccircle cx='14' cy='6.4' r='2.5'/%3E%3Ccircle cx='17.8' cy='10' r='2.5'/%3E%3Cellipse cx='12' cy='16.6' rx='5.2' ry='4.2'/%3E%3C/svg%3E");
}
.pw-i--cam {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5A2 2 0 0 1 5 6.5h2.2L8.6 4h6.8l1.4 2.5H19a2 2 0 0 1 2 2V18a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Ccircle cx='12' cy='13' r='3.4'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5A2 2 0 0 1 5 6.5h2.2L8.6 4h6.8l1.4 2.5H19a2 2 0 0 1 2 2V18a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Ccircle cx='12' cy='13' r='3.4'/%3E%3C/svg%3E");
}
.pw-i--info {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5'/%3E%3Cpath d='M12 7.6v.1'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5'/%3E%3Cpath d='M12 7.6v.1'/%3E%3C/svg%3E");
}
.pw-i--off {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M5.8 5.8l12.4 12.4'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M5.8 5.8l12.4 12.4'/%3E%3C/svg%3E");
}
.pw-i--q {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.4 9.2a2.7 2.7 0 1 1 3.9 2.4c-.8.5-1.3 1-1.3 1.9'/%3E%3Cpath d='M12 16.6v.1'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.4 9.2a2.7 2.7 0 1 1 3.9 2.4c-.8.5-1.3 1-1.3 1.9'/%3E%3Cpath d='M12 16.6v.1'/%3E%3C/svg%3E");
}
.pw-i--tick {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.8l4.8 4.7L19.5 7'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.8l4.8 4.7L19.5 7'/%3E%3C/svg%3E");
}
.pw-i--pin {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s6.5-6.1 6.5-10.5a6.5 6.5 0 1 0-13 0C5.5 14.9 12 21 12 21z'/%3E%3Ccircle cx='12' cy='10.3' r='2.4'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s6.5-6.1 6.5-10.5a6.5 6.5 0 1 0-13 0C5.5 14.9 12 21 12 21z'/%3E%3Ccircle cx='12' cy='10.3' r='2.4'/%3E%3C/svg%3E");
}
.pw-i--tel {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 16.9v2.6a1.7 1.7 0 0 1-1.9 1.7 16.8 16.8 0 0 1-7.3-2.6 16.5 16.5 0 0 1-5.1-5.1A16.8 16.8 0 0 1 4.1 6.2 1.7 1.7 0 0 1 5.8 4.3h2.6a1.7 1.7 0 0 1 1.7 1.5c.1.9.3 1.7.6 2.5a1.7 1.7 0 0 1-.4 1.8l-1.1 1.1a13.6 13.6 0 0 0 5.1 5.1l1.1-1.1a1.7 1.7 0 0 1 1.8-.4c.8.3 1.6.5 2.5.6a1.7 1.7 0 0 1 1.5 1.7z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 16.9v2.6a1.7 1.7 0 0 1-1.9 1.7 16.8 16.8 0 0 1-7.3-2.6 16.5 16.5 0 0 1-5.1-5.1A16.8 16.8 0 0 1 4.1 6.2 1.7 1.7 0 0 1 5.8 4.3h2.6a1.7 1.7 0 0 1 1.7 1.5c.1.9.3 1.7.6 2.5a1.7 1.7 0 0 1-.4 1.8l-1.1 1.1a13.6 13.6 0 0 0 5.1 5.1l1.1-1.1a1.7 1.7 0 0 1 1.8-.4c.8.3 1.6.5 2.5.6a1.7 1.7 0 0 1 1.5 1.7z'/%3E%3C/svg%3E");
}


/* ---- the one bar at the top --------------------------------------------- */
.pw__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}
.pw__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.pw__brand img { border-radius: 6px; display: block; }
.pw__bartag {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  background: #fff3ec;
  border: 1px solid #ffddc9;
  border-radius: 999px;
  padding: 4px 10px;
}

.pw__main {
  width: min(100% - 24px, 640px);
  margin: 0 auto;
  padding: 16px 0 36px;
}

.pw__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 20px 16px 30px;
  font-size: 13px;
  color: var(--dim);
}
.pw__foot a { color: var(--soft); text-decoration: none; }


/* ---- the explainer / error states --------------------------------------- */
.pw__hero {
  text-align: center;
  padding: 20px 18px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.pw__hero h1 {
  margin: 12px 0 0;
  font-size: clamp(21px, 5.6vw, 26px);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.2;
}
.pw__hero p {
  margin: 9px auto 0;
  max-width: 34em;
  font-size: 14.8px;
  color: var(--soft);
}
.pw__heroicon {
  width: 54px;
  height: 54px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand2), var(--brand));
  box-shadow: 0 5px 16px rgba(255, 90, 31, 0.28);
}
.pw__hero--quiet .pw__heroicon {
  background: #eef0f2;
  color: var(--dim);
  box-shadow: none;
}

.pw__out {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand2), var(--brand));
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}
.pw__out:active { transform: translateY(1px); }

.pw__lookup { margin: 18px auto 0; max-width: 20em; text-align: left; }


/* ---- notices ------------------------------------------------------------ */
.pw__alert {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff5f4;
  border: 1px solid #f7d4cf;
  color: #8c2f22;
  font-size: 14.2px;
  font-weight: 600;
}
.pw__alert--quiet {
  background: #f4f6f8;
  border-color: #e2e7ec;
  color: var(--soft);
  font-weight: 500;
}
.pw__note {
  display: flex;
  gap: 9px;
  margin: 10px 0 0;
  padding: 11px 13px;
  border-radius: 11px;
  background: #f4f7fb;
  border: 1px solid #dfe7f0;
  color: #3c4b5a;
  font-size: 13.4px;
}
.pw__note .pw-i { margin-top: 2px; color: #6b7c8d; }

.pw__done {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 16px;
  padding: 14px 15px;
  border-radius: 15px;
  background: #effaf3;
  border: 1.5px solid #bfe6cd;
}
.pw__done .pw-i {
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 50%;
  background-color: #0a7c3f;
  color: #fff;
  font-size: 15px;
  box-sizing: border-box;
}
.pw__done b { display: block; font-size: 15.4px; color: #0a5c31; line-height: 1.35; }
.pw__done small { display: block; margin-top: 3px; font-size: 13px; color: #3d6b51; }


/* =========================================================================
   the registration form
   ========================================================================= */
.pw__form { margin-top: 16px; }

.pw__set {
  margin: 0 0 14px;
  padding: 15px 15px 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}
.pw__set > legend {
  padding: 0 7px;
  margin-left: -4px;
  font-size: 15.6px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.pw__set > legend small {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--dim);
}
.pw__req {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand);
  background: #fff3ec;
  border-radius: 999px;
  padding: 2px 7px;
  vertical-align: 1px;
}
.pw__hint {
  margin: 4px 0 12px;
  font-size: 13.4px;
  line-height: 1.45;
  color: var(--soft);
}

.pw__field { display: block; margin: 0 0 14px; }
.pw__field:last-child { margin-bottom: 0; }
.pw__field > span {
  display: block;
  margin-bottom: 6px;
  font-size: 13.8px;
  font-weight: 700;
  color: #2f3d4b;
}
.pw__field > span small { font-weight: 600; color: var(--dim); }
.pw__field small.pw__hint { margin: 6px 0 0; display: block; }

/* Scoped, and !important, because this page is reached from a QR code and
   has to look the same whatever else a visitor's browser has cached. 16px
   is the floor: anything smaller makes iOS Safari zoom the whole page the
   moment a field is focused, which on a form this long loses your place. */
.pw .pw__field input[type="text"],
.pw .pw__field input[type="tel"],
.pw .pw__field select,
.pw .pw__field textarea {
  width: 100% !important;
  min-height: 48px;
  padding: 12px 13px !important;
  border: 1.5px solid #d9d2c7 !important;
  border-radius: 11px !important;
  background: #fff !important;
  color: var(--ink) !important;
  font: inherit !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}
.pw .pw__field textarea { min-height: 86px; resize: vertical; }
.pw .pw__field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5l5-5' fill='none' stroke='%235b6b7c' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 13px center !important;
  background-size: 12px 8px !important;
  padding-right: 36px !important;
}
.pw .pw__field input:focus,
.pw .pw__field select:focus,
.pw .pw__field textarea:focus {
  outline: none;
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.16);
}

.pw__field.is-bad > span { color: var(--bad); }
.pw .pw__field.is-bad input,
.pw .pw__field.is-bad select,
.pw .pw__field.is-bad textarea { border-color: #e6a39a !important; }

.pw__bad {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bad);
}

.pw__row { display: grid; gap: 12px; }
@media (min-width: 460px) { .pw__row { grid-template-columns: 1fr 1fr; } }


/* ---- the photo box ------------------------------------------------------
   A file input styled as a target you cannot miss. The real input is inside
   the label and visually hidden, so the whole panel is the tap area and the
   browser's own picker still opens. */
.pw__file {
  position: relative;
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 118px;
  padding: 18px;
  border: 2px dashed #d7cfc2;
  border-radius: 14px;
  background: #fcfaf7;
  text-align: center;
  cursor: pointer;
}
.pw__file .pw-i { font-size: 26px; color: var(--brand); }
.pw__file b { font-size: 15.4px; font-weight: 800; }
.pw__file small { font-size: 12.8px; color: var(--soft); }
.pw__file input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.pw__file.is-bad { border-color: #e6a39a; background: #fffaf9; }
.pw__picked {
  display: block;
  margin-top: 9px;
  padding: 8px 11px;
  border-radius: 9px;
  background: #effaf3;
  border: 1px solid #bfe6cd;
  font-size: 13px;
  font-weight: 650;
  color: #0a5c31;
  word-break: break-all;
}


/* ---- pill radios -------------------------------------------------------- */
.pw__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pw__pill { position: relative; }
.pw__pill input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.pw__pill span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 15px;
  border: 1.5px solid #ded7cc;
  border-radius: 999px;
  background: #fff;
  font-size: 14.2px;
  font-weight: 650;
  color: #3c4b5a;
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.pw__pill input:checked + span {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.pw__pill input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.3);
}

.pw__check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 4px;
  padding: 12px 13px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fcfaf7;
  cursor: pointer;
}
.pw__check input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  flex: 0 0 auto;
  accent-color: var(--brand);
}
.pw__check span { font-size: 14px; font-weight: 650; color: #2f3d4b; }
.pw__check small {
  display: block;
  margin-top: 3px;
  font-size: 12.8px;
  font-weight: 500;
  color: var(--soft);
}

.pw__go {
  display: block;
  width: 100%;
  min-height: 54px;
  margin: 18px 0 0;
  padding: 15px 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand2), var(--brand));
  color: #fff;
  font: inherit;
  font-size: 16.4px;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(255, 90, 31, 0.3);
}
.pw__go:active { transform: translateY(1px); }
.pw__go:disabled {
  background: #c9c2b8;
  box-shadow: none;
  cursor: default;
  transform: none;
}

.pw__fine {
  margin: 11px 0 0;
  font-size: 12.4px;
  line-height: 1.5;
  color: var(--dim);
  text-align: center;
}


/* =========================================================================
   the profile
   ========================================================================= */
.pw__card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(20, 32, 44, 0.07);
}
.pw__card.is-off { opacity: 0.97; }

.pw__shot {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f0ece6;
}
.pw__shot > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pw__noshot {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 52px;
  color: #cdc4b7;
}
.pw__flag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(20, 32, 44, 0.84);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.pw__body { padding: 18px 17px 20px; }

.pw__name {
  margin: 0;
  font-size: clamp(22px, 5.8vw, 29px);
  font-weight: 800;
  letter-spacing: -0.024em;
  line-height: 1.14;
}

/* The ID is what somebody writes on a vaccination card, so it is set in a
   monospace face at a size you can read at arm's length in bad light. */
.pw__id {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 11px 0 0;
}
.pw__id > span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(17px, 4.6vw, 21px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand);
  background: #fff3ec;
  border: 1px solid #ffddc9;
  border-radius: 10px;
  padding: 7px 12px;
}
.pw__copy {
  min-height: 36px;
  padding: 8px 13px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--soft);
  cursor: pointer;
}

.pw__where {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 15px 0 0;
  font-size: 14.6px;
  line-height: 1.45;
  color: var(--soft);
}
.pw__where .pw-i { margin-top: 3px; color: var(--brand); font-size: 17px; }
.pw__where b { color: var(--ink); font-weight: 700; }

/* ---- the four clinical facts -------------------------------------------
   Two columns even on the narrowest phone. These are the facts somebody
   came here for and they should all be visible without scrolling. */
.pw__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 17px 0 0;
}
.pw__fact {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fcfaf7;
}
.pw__fact dt {
  margin: 0;
  font-size: 11.4px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
}
.pw__fact dd {
  margin: 4px 0 0;
  font-size: 14.6px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.pw__fact.is-good { background: #f2fbf6; border-color: #c6e7d3; }
.pw__fact.is-good dd { color: var(--good); }
.pw__fact.is-warn { background: #fff9f1; border-color: #f0dcbd; }
.pw__fact.is-warn dd { color: var(--warn); }
.pw__fact.is-dim dd { color: var(--dim); font-weight: 650; }

.pw__block {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid #efeae3;
}
.pw__block h2 {
  margin: 0 0 7px;
  font-size: 12.6px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
}
.pw__block p { margin: 0; font-size: 14.6px; line-height: 1.55; color: #2f3d4b; }
.pw__dimtext { color: var(--soft) !important; }

.pw__carename { font-weight: 700; font-size: 15.4px !important; }
.pw__call {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--good);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.pw__call:active { transform: translateY(1px); }
/* The note under the call button is a <small>, so it is inline by default
   and flowed itself around the button instead of sitting under it. */
.pw__care .pw__hint { display: block; margin-top: 8px; }

.pw__help { }
.pw__help .pw__out { margin-top: 12px; width: 100%; }


/* ---- wider screens -----------------------------------------------------
   The profile becomes two columns; the form never does. */
@media (min-width: 680px) {
  .pw__card { display: grid; grid-template-columns: 1.02fr 1fr; }
  .pw__shot { aspect-ratio: auto; height: 100%; min-height: 400px; }
  .pw__body { padding: 22px 22px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .pw__go:active, .pw__out:active, .pw__call:active { transform: none; }
  .pw__pill span { transition: none; }
}
