
/* ================================================================
   Local reset + isolation — keeps the widget and the site apart
   ================================================================ */
.pjhcd,
.pjhcd *,
.pjhcd *::before,
.pjhcd *::after { box-sizing: border-box; }

.pjhcd {
  --pjhcd-teal: #0e7d70;
  --pjhcd-teal-soft: #3fa89b;
  --pjhcd-teal-deep: #0a5f55;
  --pjhcd-teal-night: #06332e;
  --pjhcd-teal-tint: #e7f3f1;
  --pjhcd-ink: #1f2a2c;
  --pjhcd-body: #5c6b70;
  --pjhcd-muted: #6b7280;
  --pjhcd-strong: #3f4a4d;
  --pjhcd-line: #e6e9e8;
  --pjhcd-soft: #f5f8f7;
  --pjhcd-card: #ffffff;
  --pjhcd-warn: #b45e4c;
  --pjhcd-warn-soft: #ce8979;
  --pjhcd-warn-chip: #ebd0c8;
  --pjhcd-warn-chip-text: #843d2f;
  --pjhcd-warn-tint: #f9ece7;
  --pjhcd-mint: #8fe0d3;
  --pjhcd-warn-grad: linear-gradient(135deg, #ce7563 0%, #b05545 100%);
  --pjhcd-teal-grad: linear-gradient(135deg, #3fa89b 0%, #0e7d70 100%);
  --pjhcd-mint-grad: linear-gradient(90deg, #3fa89b 0%, #8fe0d3 100%);
  --pjhcd-bar-iht: linear-gradient(90deg, #cc7462 0%, #e09476 100%);
  --pjhcd-bar-inc: linear-gradient(90deg, #e8b36c 0%, #f0ce82 100%);
  --pjhcd-bar-fam: linear-gradient(90deg, #5bb89a 0%, #0e7d70 100%);
  --pjhcd-max: 1140px;
  --pjhcd-shadow: 0 24px 50px -24px rgba(6, 51, 46, 0.65);

  position: relative;
  isolation: isolate;
  contain: layout;
  display: block;
  width: 100%;
  margin: 0;
  padding: 56px 24px;
  background: transparent;
  font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--pjhcd-body);
  text-align: left;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
.pjhcd p { margin: 0; }
.pjhcd__inner { max-width: var(--pjhcd-max); margin: 0 auto; }
.pjhcd__sr {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Stacked: intro on top, panel underneath -------------------- */
.pjhcd__split {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3.5vw, 44px);
}

/* ---- "confirmed" badge above the heading ---------------------- */
.pjhcd__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--pjhcd-teal-tint);
  box-shadow: inset 0 0 0 1px rgba(14, 125, 112, 0.18);
  color: var(--pjhcd-teal-deep);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.pjhcd__badge-dot {
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pjhcd-teal);
  box-shadow: 0 0 0 3px rgba(14, 125, 112, 0.18);
}

/* ---- Top: intro ------------------------------------------------- */
.pjhcd__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  min-width: 0;
  text-align: center;
}

.pjhcd__heading {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
  font-weight: 700;
  color: var(--pjhcd-ink);
  text-wrap: balance;
}
.pjhcd__heading::after {
  content: "";
  display: block;
  width: 46px; height: 3px;
  margin: 16px auto 0;
  border-radius: 2px;
  background: var(--pjhcd-teal);
}
.pjhcd__desc {
  max-width: 72ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--pjhcd-body);
  text-wrap: balance;
}

/* ================================================================
   Below: full-width rule-change panel (glass)
   countdown + key figures on the left, tabs on the right
   ================================================================ */
.pjhcd__change {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  grid-template-areas:
    "head  tabs"
    "stats tabs";
  gap: 18px;
  min-width: 0;
  padding: 20px;
  font-size: 16px;
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 24px;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 4px 14px -9px rgba(20, 30, 28, 0.18);
}

/* ---- 1. Countdown ------------------------------------------------- */
.pjhcd__head {
  grid-area: head;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;   /* spread to match the tabs' height */
  gap: 26px;
  padding: 32px 32px 30px;
  border-radius: 20px;
  color: #ffffff;
  background:
    radial-gradient(120% 140% at 0% 0%, var(--pjhcd-teal) 0%, var(--pjhcd-teal-deep) 50%, var(--pjhcd-teal-night) 100%);
  box-shadow: var(--pjhcd-shadow);
}
/* slow drifting glow for a little life */
.pjhcd__head::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 320px; height: 320px;
  left: -80px; bottom: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 168, 155, 0.55) 0%, rgba(63, 168, 155, 0) 70%);
  animation: pjhcd-drift 14s ease-in-out infinite alternate;
  pointer-events: none;
}
.pjhcd__head > * { position: relative; z-index: 1; }
@keyframes pjhcd-drift {
  from { transform: translate(0, 0); }
  to   { transform: translate(260px, -60px); }
}

.pjhcd__head-title {
  font-size: clamp(21px, 2.1vw, 27px);
  font-weight: 600;
  line-height: 1.25;
}

/* the clock: days as a full-width hero, then hours / mins / secs */
.pjhcd__clock {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.pjhcd__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 22px 8px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.06) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  overflow: hidden;
}
.pjhcd__unit--days {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: baseline;
  gap: 14px;
  padding: 22px 24px;
  background: #ffffff;
  border-color: #ffffff;
  color: var(--pjhcd-teal-night);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.5);
}
.pjhcd__num {
  display: block;
  font-size: clamp(34px, 3.6vw, 48px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.pjhcd__unit--days .pjhcd__num {
  font-size: clamp(56px, 6.2vw, 84px);
  background: var(--pjhcd-teal-grad);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--pjhcd-teal);
}
.pjhcd__lbl {
  font-size: 14px;
  font-weight: 500;
  opacity: .85;
}
.pjhcd__unit--days .pjhcd__lbl { color: var(--pjhcd-teal); opacity: 1; font-size: 20px; font-weight: 600; }
.pjhcd__num.is-tick { animation: pjhcd-tick .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes pjhcd-tick {
  from { transform: translateY(-40%); opacity: 0; filter: blur(2px); }
  to   { transform: none;             opacity: 1; filter: none; }
}
/* after the date passes the clock collapses to a single message */
.pjhcd.is-live .pjhcd__clock { grid-template-columns: 1fr; }
.pjhcd.is-live .pjhcd__unit:not(.pjhcd__unit--days) { display: none; }

/* progress through the lead-in period */
.pjhcd__progress { display: flex; flex-direction: column; gap: 10px; }
.pjhcd__track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.pjhcd__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--pjhcd-mint-grad);
  box-shadow: 0 0 12px rgba(143, 224, 211, 0.55);
  transition: width 1.4s cubic-bezier(.2, .8, .2, 1);
}
.pjhcd__progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  line-height: 1.35;
  opacity: .9;
}
.pjhcd__progress-meta strong { color: var(--pjhcd-mint); font-weight: 700; }

/* ---- Tabbed card -------------------------------------------------- */
.pjhcd__tabs {
  grid-area: tabs;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 22px;
  padding: 10px 24px 26px;
  background: var(--pjhcd-card);
  border: 1px solid var(--pjhcd-line);
  border-radius: 20px;
  box-shadow: 0 10px 30px -22px rgba(20, 30, 28, 0.35);
}
/* segmented control */
.pjhcd__tablist {
  display: flex;
  gap: 4px;
  margin: 0 -14px;
  padding: 4px;
  border-radius: 14px;
  background: var(--pjhcd-soft);
  border: 1px solid var(--pjhcd-line);
}
.pjhcd__tab {
  -webkit-appearance: none; appearance: none;
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  margin: 0 !important;
  padding: 11px 6px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  box-shadow: none !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  text-align: center;
  white-space: normal !important;
  overflow-wrap: anywhere;
  color: var(--pjhcd-muted) !important;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.pjhcd__tab-short { display: none; }
.pjhcd__tab:hover { color: var(--pjhcd-ink) !important; }
.pjhcd__tab.is-on {
  background: var(--pjhcd-card) !important;
  color: var(--pjhcd-teal) !important;
  box-shadow: 0 1px 2px rgba(20, 30, 28, 0.08), 0 4px 12px -6px rgba(14, 125, 112, 0.35) !important;
}
.pjhcd__tab:focus-visible { outline: 3px solid var(--pjhcd-teal); outline-offset: 1px; }

/* All panels share one grid cell, so the card is always as tall as the
   tallest panel and switching tabs never changes the layout around it.
   (On phones this is switched off – see the 760px block.) */
.pjhcd__panel {
  grid-row: 2;
  grid-column: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
.pjhcd__panel:not([hidden]) { animation: pjhcd-fade .35s ease; }
/* hidden panels keep their space but nothing inside them can show
   (children such as the caption set their own visibility, so force it) */
.pjhcd__panel[hidden] { display: flex !important; opacity: 0; pointer-events: none; }
.pjhcd__panel[hidden],
.pjhcd__panel[hidden] * { visibility: hidden !important; }
@keyframes pjhcd-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pjhcd__block-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pjhcd .pjhcd__h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--pjhcd-ink);
}
.pjhcd__lead { margin-top: 4px !important; color: var(--pjhcd-body); }

/* ---- 2. before / after -------------------------------------------- */
.pjhcd__switch {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border-radius: 999px;
  background: var(--pjhcd-teal-tint);
}
.pjhcd__switch-btn {
  -webkit-appearance: none; appearance: none;
  margin: 0 !important;
  padding: 8px 16px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  color: var(--pjhcd-teal-deep) !important;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .25s ease, color .25s ease;
}
.pjhcd__switch-btn.is-on { background: var(--pjhcd-teal) !important; color: #ffffff !important; }
.pjhcd.is-after .pjhcd__switch-btn.is-on { background: var(--pjhcd-warn) !important; }
.pjhcd__switch-btn:focus-visible { outline: 3px solid var(--pjhcd-teal); outline-offset: 2px; }

.pjhcd__estate {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pjhcd__asset {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 14px;
  margin: 0 !important;
  padding: 10px 14px 10px 10px !important;
  border-radius: 14px;
  border: 1px solid rgba(180, 94, 76, 0.16);
  background: var(--pjhcd-warn-tint);
  color: var(--pjhcd-ink);
  font-weight: 600;
  line-height: 1.3;
  transition: background-color .35s ease, border-color .35s ease, transform .35s ease, box-shadow .35s ease;
}
.pjhcd__asset-name { min-width: 0; }
/* small second line under a row name (e.g. what "possessions" covers) */
.pjhcd__asset-sub {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 500;
  color: var(--pjhcd-body);
}
/* icon tiles, drawn in CSS */
.pjhcd__asset-ico {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(180, 94, 76, 0.14), 0 4px 10px -6px rgba(20, 30, 28, 0.35);
  color: var(--pjhcd-warn);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  transition: color .35s ease;
}
/* line icons: a currentColor block masked by an inline SVG, so the
   icon picks up the tile's colour (red when taxed, teal when not) */
.pjhcd__asset-ico::before,
.pjhcd__pt-icon::before {
  content: "";
  display: block;
  width: 22px; height: 22px;
  background: currentColor;
  -webkit-mask: var(--pjhcd-ico) center / contain no-repeat;
          mask: var(--pjhcd-ico) center / contain no-repeat;
}
.pjhcd__pt-icon::before { width: 21px; height: 21px; }
.pjhcd__ico-home { --pjhcd-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 9v11a1 1 0 0 0 1 1h4v-6h4v6h4a1 1 0 0 0 1-1V9'/%3E%3C/svg%3E"); }
.pjhcd__ico-coin { --pjhcd-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M14.5 9a2.5 2.5 0 0 0-4.5 1.5V16M8.5 12.5h4M8.5 16h7'/%3E%3C/svg%3E"); }
.pjhcd__ico-gem { --pjhcd-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12l4 6-10 12L2 9z'/%3E%3Cpath d='M2 9h20M11 3 8 9l4 12 4-12-3-6'/%3E%3C/svg%3E"); }
.pjhcd__ico-shield { --pjhcd-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4 6v6c0 5 3.5 8 8 9 4.5-1 8-4 8-9V6z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.pjhcd__ico-pot { --pjhcd-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h6v3H9z'/%3E%3Cpath d='M8.5 6h7l2 3.5c.3.6.5 1.3.5 2V19a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2v-7.5c0-.7.2-1.4.5-2z'/%3E%3Ccircle cx='12' cy='15' r='2.5'/%3E%3C/svg%3E"); }
.pjhcd__ico-pie { --pjhcd-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12A9 9 0 1 1 12 3v9z'/%3E%3Cpath d='M15.5 3.7A9 9 0 0 1 20.3 8.5H15.5z'/%3E%3C/svg%3E"); }
.pjhcd__ico-clip { --pjhcd-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='2' width='8' height='4' rx='1'/%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3Cpath d='m9 14 2 2 4-4'/%3E%3C/svg%3E"); }
.pjhcd__ico-gift { --pjhcd-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='4' rx='1'/%3E%3Cpath d='M12 8v13M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7'/%3E%3Cpath d='M7.5 8a2.5 2.5 0 0 1 0-5C10 3 12 8 12 8s2-5 4.5-5a2.5 2.5 0 0 1 0 5'/%3E%3C/svg%3E"); }
.pjhcd__chip {
  flex: none;
  display: inline-grid;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .01em;
}
.pjhcd__chip--taxed { background: var(--pjhcd-warn-chip); color: var(--pjhcd-warn-chip-text); }

/* pension row: "today" look by default … */
.pjhcd__asset--pension {
  background: var(--pjhcd-teal-tint);
  border: 1px dashed rgba(14, 125, 112, .4);
}
.pjhcd__asset--pension .pjhcd__asset-ico { color: var(--pjhcd-teal); box-shadow: inset 0 0 0 1px rgba(14, 125, 112, 0.18), 0 4px 10px -6px rgba(20, 30, 28, 0.35); }
.pjhcd.is-after .pjhcd__asset--pension .pjhcd__asset-ico { box-shadow: inset 0 0 0 1px rgba(180, 94, 76, 0.14), 0 4px 10px -6px rgba(20, 30, 28, 0.35); }
.pjhcd__chip--flip { background: var(--pjhcd-teal-grad); color: #ffffff; }
.pjhcd__chip--flip > span { grid-area: 1 / 1; text-align: center; transition: opacity .25s ease; }
.pjhcd__chip-after { opacity: 0; }

/* … and the "from April 2027" look */
.pjhcd.is-after .pjhcd__asset--pension {
  background: var(--pjhcd-warn-tint);
  border: 1px solid var(--pjhcd-warn-soft);
  transform: scale(1.02);
  box-shadow: 0 12px 24px -16px rgba(180, 94, 76, 0.5);
}
.pjhcd.is-after .pjhcd__asset--pension .pjhcd__asset-ico { color: var(--pjhcd-warn); }
.pjhcd.is-after .pjhcd__chip--flip { background: var(--pjhcd-warn-chip); color: var(--pjhcd-warn-chip-text); }
.pjhcd.is-after .pjhcd__chip-today { opacity: 0; }
.pjhcd.is-after .pjhcd__chip-after { opacity: 1; }

/* estate meter + caption */
.pjhcd__meter {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--pjhcd-soft);
}
.pjhcd__meter-bar { display: flex; gap: 6px; height: 8px; }
.pjhcd__meter-seg {
  flex: 1 1 0;
  border-radius: 999px;
  background: var(--pjhcd-line);
  transition: background-color .4s ease;
}
.pjhcd__meter-seg.is-on { background: var(--pjhcd-warn-soft); }
.pjhcd__meter-seg--pension { background: repeating-linear-gradient(45deg, #cfe6e2 0 6px, #e7f3f1 6px 12px); }
.pjhcd.is-after .pjhcd__meter-seg--pension { background: var(--pjhcd-warn-soft); }

.pjhcd__caption { display: grid; color: var(--pjhcd-strong); font-size: 15px; line-height: 1.55; }
.pjhcd__caption > span { grid-area: 1 / 1; transition: opacity .3s ease; }
.pjhcd__caption strong { color: var(--pjhcd-ink); }
.pjhcd.is-after .pjhcd__caption strong { color: var(--pjhcd-warn); }
.pjhcd__cap-after { opacity: 0; visibility: hidden; }
.pjhcd.is-after .pjhcd__cap-today { opacity: 0; visibility: hidden; }
.pjhcd.is-after .pjhcd__cap-after { opacity: 1; visibility: visible; } .pjhcd__cap-today, .pjhcd__cap-after { transition: none !important; animation: none !important; }

/* ---- 3. what it means --------------------------------------------- */
.pjhcd__points {
  flex: 1 0 auto;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pjhcd__points li {
  flex: 1 0 auto;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: center;
  margin: 0 !important;
  padding: 14px 16px !important;
  border-radius: 14px;
  background: var(--pjhcd-soft);
  border: 1px solid var(--pjhcd-line);
  color: var(--pjhcd-body);
  font-size: 15px;
  line-height: 1.55;
}
.pjhcd__points strong { display: block; color: var(--pjhcd-ink); font-weight: 600; font-size: 16px; margin-bottom: 2px; }
.pjhcd__pt-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--pjhcd-teal-grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 16px -10px rgba(14, 125, 112, 0.8);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
}

/* ---- 4. example --------------------------------------------------- */
.pjhcd__keeps {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--pjhcd-teal-tint);
}
.pjhcd__keeps-num {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--pjhcd-teal);
  font-variant-numeric: tabular-nums;
}
.pjhcd__keeps-text { color: var(--pjhcd-strong); font-size: 15px; line-height: 1.45; }
.pjhcd__keeps-text strong { color: var(--pjhcd-ink); }

.pjhcd__bar {
  display: flex;
  gap: 4px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
}
.pjhcd__seg {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transform-origin: left center;
}
/* grows in each time the Example tab is opened */
.pjhcd__panel:not([hidden]) .pjhcd__seg { animation: pjhcd-grow .8s cubic-bezier(.2, .8, .2, 1) both; }
.pjhcd__seg--iht { color: #4f2a22; text-shadow: none; }
.pjhcd__seg--inc { color: #5a3a08; text-shadow: none; }
.pjhcd__panel:not([hidden]) .pjhcd__seg--inc { animation-delay: .12s; }
.pjhcd__panel:not([hidden]) .pjhcd__seg--fam { animation-delay: .24s; }
@keyframes pjhcd-grow { from { transform: scaleX(0); opacity: 0; } to { transform: none; opacity: 1; } }
.pjhcd__seg--iht, .pjhcd__key--iht { background: var(--pjhcd-bar-iht); }
.pjhcd__seg--inc, .pjhcd__key--inc { background: var(--pjhcd-bar-inc); }
.pjhcd__seg--fam, .pjhcd__key--fam { background: var(--pjhcd-bar-fam); }

.pjhcd__legend {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.pjhcd__legend li {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 0 !important;
  padding: 10px 0 !important;
  border-bottom: 1px solid var(--pjhcd-line);
  color: var(--pjhcd-strong);
}
.pjhcd__legend li:last-child { border-bottom: 0; padding-bottom: 0 !important; }
.pjhcd__legend li:last-child span:nth-child(2),
.pjhcd__legend li:last-child strong { color: var(--pjhcd-teal); font-weight: 700; }
.pjhcd__legend strong { color: var(--pjhcd-ink); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pjhcd__key { width: 12px; height: 12px; border-radius: 4px; }
.pjhcd__note { font-size: 13px; line-height: 1.5; color: var(--pjhcd-muted); }

/* ---- 5. key figures ----------------------------------------------- */
.pjhcd__statbox {
  grid-area: stats;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.pjhcd__footnote {
  margin: 0;
  border-radius: 14px;
  background: var(--pjhcd-card);
  box-shadow: inset 0 0 0 1px var(--pjhcd-line);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--pjhcd-body);
}
.pjhcd__fn-sum {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--pjhcd-warn-chip-text);
  cursor: pointer;
  user-select: none;
}
.pjhcd__fn-sum::-webkit-details-marker { display: none; }
.pjhcd__fn-sum::marker { content: ""; }
.pjhcd__fn-sum:hover { background: var(--pjhcd-warn-tint); }
.pjhcd__fn-sum:focus-visible { outline: 3px solid var(--pjhcd-teal); outline-offset: 2px; }
.pjhcd__fn-chev {
  flex: none;
  width: 9px; height: 9px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .25s ease, margin .25s ease;
}
.pjhcd__footnote[open] .pjhcd__fn-chev { transform: rotate(225deg); margin-top: 4px; }
.pjhcd__fn-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 2px 16px 16px;
  animation: pjhcd-fade .3s ease;
}
.pjhcd__fn-body p { margin: 0; }
.pjhcd__fn-steps {
  list-style: none !important;
  margin: 0 !important;
  padding: 4px 14px !important;
  border-radius: 12px;
  background: var(--pjhcd-warn-tint);
}
.pjhcd__fn-steps li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 !important;
  padding: 7px 0 !important;
  border-bottom: 1px solid rgba(180, 94, 76, 0.14);
  color: var(--pjhcd-strong);
}
.pjhcd__fn-steps li:last-child { border-bottom: 0; }
.pjhcd__fn-steps strong { color: var(--pjhcd-ink); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pjhcd__fn-steps li:last-child span,
.pjhcd__fn-steps li:last-child strong { color: var(--pjhcd-teal); font-weight: 700; }

.pjhcd__stats {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.pjhcd__stat {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  margin: 0 !important;
  padding: 22px 12px 18px !important;
  border: 0;
  border-radius: 18px;
  text-align: center;
  background: linear-gradient(160deg, #f1f8f6 0%, var(--pjhcd-teal-tint) 100%);
  box-shadow: inset 0 0 0 1px rgba(14, 125, 112, 0.10);
  transition: transform .25s ease, box-shadow .25s ease;
}
/* soft decorative circle in the corner */
.pjhcd__stat::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 110px; height: 110px;
  right: -40px; bottom: -50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 168, 155, 0.22) 0%, rgba(63, 168, 155, 0) 70%);
}
.pjhcd__stat:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(14, 125, 112, 0.18), 0 12px 24px -16px rgba(14, 125, 112, 0.45);
}
.pjhcd__stat--warn {
  background: linear-gradient(160deg, #fcf4f1 0%, var(--pjhcd-warn-tint) 100%);
  box-shadow: inset 0 0 0 1px rgba(180, 94, 76, 0.14);
}
.pjhcd__stat--warn::after {
  background: radial-gradient(circle, rgba(206, 117, 99, 0.24) 0%, rgba(206, 117, 99, 0) 70%);
}
.pjhcd__stat--warn:hover {
  box-shadow: inset 0 0 0 1px rgba(180, 94, 76, 0.22), 0 12px 24px -16px rgba(180, 94, 76, 0.45);
}

/* the figure sits in a white pill */
.pjhcd__stat-num {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 6px 14px -10px rgba(20, 30, 28, 0.35);
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.01em;
  white-space: nowrap;
  color: var(--pjhcd-teal);
  font-variant-numeric: tabular-nums;
}
.pjhcd__stat--warn .pjhcd__stat-num { color: var(--pjhcd-warn); }
.pjhcd__stat-label {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--pjhcd-strong);
}
.pjhcd__stat--warn .pjhcd__stat-label { color: var(--pjhcd-warn-chip-text); }

/* ---- Mid widths: keep the countdown comfortable ------------------ */
@media (max-width: 1000px) and (min-width: 901px) {
  .pjhcd__head { padding: 26px 24px 24px; }
  .pjhcd__clock { gap: 10px; }
  .pjhcd__progress-meta { flex-direction: column; gap: 2px; }
}

/* ---- Desktop: the 67% dropdown floats upwards over the figures,
        so opening it never moves anything else ------------------- */
@media (min-width: 901px) {
  .pjhcd__footnote { position: relative; z-index: 5; }
  .pjhcd__fn-chev { margin-top: 4px; transform: rotate(225deg); }
  .pjhcd__footnote[open] .pjhcd__fn-chev { margin-top: -4px; transform: rotate(45deg); }
  .pjhcd__footnote[open] .pjhcd__fn-sum { background: var(--pjhcd-warn-tint); }
  .pjhcd__fn-body {
    position: absolute;
    left: 0; right: 0;
    bottom: calc(100% + 8px);
    padding: 16px;
    border-radius: 16px;
    background: var(--pjhcd-card);
    box-shadow: 0 0 0 1px var(--pjhcd-line), 0 24px 48px -20px rgba(6, 51, 46, 0.45);
  }
}

/* ---- Panel inside stacks below 900px ----------------------------- */
@media (max-width: 900px) {
  .pjhcd__change {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "head" "tabs" "stats";
  }
}

/* ---- Phone tweaks below 760px ------------------------------------ */
@media (max-width: 760px) {
  .pjhcd { padding: 40px 16px; }
  .pjhcd__split { gap: 24px; }
  .pjhcd__change { padding: 12px; gap: 14px; }
  .pjhcd__head { padding: 20px 18px; gap: 16px; }
  .pjhcd__tabs { padding: 8px 16px 20px; gap: 16px; grid-template-rows: auto auto; }
  .pjhcd__tablist { margin: 0 -8px; }
  .pjhcd__tab { font-size: 13px !important; padding: 10px 4px !important; }

  /* key figures: still three across, slightly tighter */
  .pjhcd__stats { gap: 10px; }
  .pjhcd__stat { padding: 18px 10px 16px !important; gap: 8px; }
  .pjhcd__stat-num { padding: 5px 12px; font-size: 24px; }
  .pjhcd__stat-label { font-size: 13px; }

  /* each tab is only as tall as its own content (no stretched gaps) */
  .pjhcd__panel { justify-content: flex-start; gap: 14px; }
  .pjhcd__panel[hidden] { display: none !important; }
  .pjhcd__points,
  .pjhcd__points li { flex: 0 0 auto; }

  /* centred headings */
  .pjhcd__block-top {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
  }
  .pjhcd .pjhcd__h3 { font-size: 17px; text-align: center; }
  .pjhcd__lead { text-align: center; }

  /* tighter "What's changing" content */
  .pjhcd__estate { gap: 8px; }
  .pjhcd__asset { padding: 9px 12px 9px 10px !important; }
  .pjhcd__asset-sub { font-size: 12px; }
  .pjhcd__meter { padding: 12px 14px; gap: 10px; }
  .pjhcd__caption { font-size: 14px; line-height: 1.5; }
}

/* ---- Phones below 560px: key figures become full-width rows,
        figure + label always on ONE line ---------------------------- */
@media (max-width: 560px) {
  .pjhcd__stats { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .pjhcd__stat {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 12px;
    padding: 10px 14px 10px 10px !important;
    border-radius: 16px;
    text-align: left;
  }
  .pjhcd__stat::after { width: 90px; height: 90px; right: -30px; bottom: -45px; }
  .pjhcd__stat:hover { transform: none; }
  .pjhcd__stat-num {
    flex: none;
    min-width: 84px;
    padding: 6px 10px;
    font-size: 21px;
    text-align: center;
  }
  .pjhcd__stat-label {
    flex: 1 1 auto;
    min-width: 0;
    font-size: clamp(11px, 3.6vw, 15px);   /* shrinks with the screen so it fits */
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -.005em;
    white-space: nowrap;                   /* never wraps */
    overflow: hidden;
    text-overflow: ellipsis;               /* safety net on very narrow screens */
  }
  .pjhcd__stat-label br { display: none; }
}

@media (max-width: 480px) {
  .pjhcd__clock { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .pjhcd__unit--days { grid-column: 1 / -1; flex-direction: row; gap: 12px; padding: 14px; }
  .pjhcd__unit { padding: 12px 4px 10px; }
  .pjhcd__progress-meta { flex-direction: column; gap: 2px; }
  .pjhcd__switch { display: flex; width: 100%; }
  .pjhcd__switch-btn { flex: 1 1 0; min-width: 0; padding: 8px 10px !important; }
  .pjhcd__tab-long { display: none; }
  .pjhcd__tab-short { display: inline; }
  .pjhcd__asset { grid-template-columns: 34px 1fr auto; gap: 10px; font-size: 15px; }
  .pjhcd__asset-ico { width: 34px; height: 34px; border-radius: 10px; }
  .pjhcd__asset-ico::before { width: 19px; height: 19px; }
  .pjhcd__chip { padding: 4px 11px; font-size: 12px; }
  .pjhcd__stat { gap: 10px; padding: 9px 12px 9px 9px !important; }
  .pjhcd__stat-num { min-width: 74px; padding: 5px 8px; font-size: 19px; }
}

/* ---- Reduced motion ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .pjhcd__switch-btn, .pjhcd__asset, .pjhcd__chip--flip, .pjhcd__chip--flip > span,
  .pjhcd__caption > span, .pjhcd__tab, .pjhcd__fill, .pjhcd__fn-chev, .pjhcd__meter-seg, .pjhcd__stat { transition: none; }
  .pjhcd__panel:not([hidden]), .pjhcd__panel:not([hidden]) .pjhcd__seg, .pjhcd__num.is-tick, .pjhcd__fn-body,
  .pjhcd__head::before { animation: none; }
  .pjhcd.is-after .pjhcd__asset--pension, .pjhcd__stat:hover { transform: none; }
}
