/* Session tools hub. Brand: kennypt.com (Nunito Sans, deep teal, aqua pill buttons).
   Accent colors from the APTA Private Practice 2026 session legend. */
@font-face { font-family: "Nunito Sans"; src: url("/fonts/nunito-sans-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("/fonts/nunito-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("/fonts/nunito-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("/fonts/nunito-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("/fonts/nunito-sans-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  /* kennypt.com */
  --page: #F7F7F7;
  --paper: #FFFFFF;
  --ink: #323232;
  --body: #424242;
  --muted: #6B6B6B;
  --line: #DCE3E3;
  --wash: #F3F6F6;
  --teal: #0F4544;
  --teal-2: #1C5E5C;
  --aqua: #BDF4FC;
  --aqua-wash: #EBFCFE;
  --navy: #33568B;
  --orange: #ED9951;
  /* APTA Private Practice session accents */
  --required: #7C3995;
  --required-tint: #F1EAF4;
  --best: #00B9D8;
  --budget: #007D93;
  --optional: #DFE3E6;
  --flag: #F89753;
  --flare: linear-gradient(90deg, #7C3995 0%, #7C3995 34%, #00B9D8 34%, #00B9D8 67%, #007D93 67%, #007D93 100%);
  --measure: 68ch;
  --step--1: 0.9rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.875rem;
  --step-3: 2.5rem;
  --step-4: 3.4rem;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito Sans", Helvetica, Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--body);
  background: var(--page);
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--best); outline-offset: 3px; border-radius: 4px; }
b, strong { font-weight: 700; color: var(--ink); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--paper); padding: 8px 12px; z-index: 10; }

/* Masthead */
.masthead { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; }
.masthead::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; background: var(--flare); }
.masthead .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.masthead .home { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.masthead .logo { height: 46px; width: auto; display: block; }
.foot-mark { width: 40px; height: 40px; border-radius: 6px; margin-bottom: 14px; display: block; }
.mark { width: 40px; height: 40px; border-radius: 8px; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.wordmark { display: flex; flex-direction: column; line-height: 1.05; }
.wordmark span:first-child { font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.wordmark span:last-child { font-weight: 800; font-size: 0.82rem; letter-spacing: 0.08em; color: var(--teal); }
.masthead .event { color: var(--muted); font-size: var(--step--1); }
.masthead .event b { color: var(--required); font-weight: 700; }

/* Page heading */
.intro { padding: 56px 0 40px; }
.intro .back { display: inline-block; font-size: var(--step--1); margin-bottom: 24px; color: var(--muted); }
.eyebrow { display: block; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--required); margin: 0 0 10px; }
h1 { font-size: var(--step-4); line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 16px; max-width: 20ch; font-weight: 300; color: var(--ink); }
.intro .sub { font-size: var(--step-1); line-height: 1.4; margin: 0 0 20px; max-width: 46ch; color: var(--muted); font-weight: 400; }
.intro p { max-width: var(--measure); }
.when { font-size: var(--step--1); color: var(--muted); margin: 0; }
h2 { font-size: var(--step-2); line-height: 1.2; margin: 0 0 12px; font-weight: 300; color: var(--ink); }
h3 { font-size: var(--step-1); line-height: 1.3; margin: 0 0 8px; font-weight: 700; color: var(--ink); }
section { padding: 44px 0; }
section + section { border-top: 1px solid var(--line); }
.lede { max-width: var(--measure); margin: 0 0 28px; color: var(--muted); }

/* Home: session doors */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 56px; }
.door {
  display: grid; grid-template-rows: auto 1fr auto; text-decoration: none; color: var(--body);
  border: 1px solid var(--line); border-top: 10px solid var(--door, var(--teal)); border-radius: var(--radius);
  padding: 28px 28px 24px; background: var(--paper); min-height: 340px;
}
.door:hover { border-color: var(--door); box-shadow: 0 8px 24px rgba(15, 69, 68, 0.08); }
.door:hover .door-cta { text-decoration-thickness: 2px; }
.door h2 { font-size: var(--step-3); line-height: 1.08; margin: 0 0 10px; }
.door .door-sub { color: var(--muted); margin: 0 0 20px; max-width: 34ch; }
.door ul { list-style: none; margin: 0 0 24px; padding: 0; }
.door li { padding: 7px 0; border-top: 1px solid var(--line); }
.door li:last-child { border-bottom: 1px solid var(--line); }
.door-meta { font-size: var(--step--1); color: var(--muted); margin: 0 0 12px; }
.door-cta { font-weight: 700; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.door.hitech { --door: var(--required); }
.door.emr { --door: var(--flag); }

/* Tier key */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr) 1.15fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 8px 0 0; background: var(--paper); }
.tier { padding: 18px 18px 20px; border-right: 1px solid var(--line); }
.tier:last-child { border-right: 0; }
.pill { display: inline-block; font-weight: 800; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 12px; border-radius: 999px; margin-bottom: 10px; white-space: nowrap; }
.pill.required { background: var(--required); color: #fff; }
.pill.best { background: var(--best); color: #0B2E33; }
.pill.optional { background: var(--optional); color: #4A4C4D; }
.pill.budget { background: var(--budget); color: #fff; }
.tier p { margin: 0; font-size: var(--step--1); line-height: 1.5; }
.tier.note { background: var(--wash); }

/* Callout */
.callout { display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-left: 8px solid var(--required); border-radius: var(--radius); padding: 22px 24px; margin-top: 28px; }
.callout p { margin: 0; max-width: 60ch; }
.callout strong { display: block; font-size: var(--step-1); margin-bottom: 4px; }

/* EMR phase track */
.track { margin-top: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 20px 20px 16px; overflow-x: auto; }
.track-grid { display: grid; grid-template-columns: repeat(7, minmax(92px, 1fr)); column-gap: 6px; row-gap: 10px; min-width: 680px; }
.phase { border-top: 4px solid var(--teal); padding-top: 8px; font-size: var(--step--1); line-height: 1.3; }
.phase b { display: block; font-size: var(--step-0); }
.phase.pre { border-top-color: var(--muted); }
.gate { grid-row: 1; font-size: 0.75rem; color: var(--muted); align-self: start; }
.bar { font-size: var(--step--1); font-weight: 700; padding: 6px 10px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.bar.sc { grid-column: 2 / 4; background: var(--teal); color: #fff; }
.bar.tl { grid-column: 1 / 7; background: var(--aqua); color: var(--ink); }
.bar.au { grid-column: 7 / 8; background: var(--flag); color: var(--ink); }
.track-list { display: none; list-style: none; margin: 0; padding: 0; }
.track-list li { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); font-size: var(--step--1); }
.track-list li:first-child { border-top: 0; padding-top: 0; }
.sw { flex: 0 0 14px; height: 14px; border-radius: 3px; transform: translateY(2px); }
.sw.sc { background: var(--teal); } .sw.tl { background: var(--aqua); } .sw.au { background: var(--flag); }
.track-legend { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: var(--step--1); color: var(--muted); margin: 14px 0 0; min-width: 680px; }

/* Tool entries */
.tool { display: grid; grid-template-columns: 300px 1fr; gap: 32px; padding: 32px 0; border-top: 1px solid var(--line); }
.tool:first-of-type { border-top: 0; padding-top: 8px; }
.thumb { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.thumb img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: top left; }
.tool .what { margin: 0 0 14px; max-width: 62ch; }
.tool .fmt { font-size: var(--step--1); color: var(--muted); margin: 0 0 16px; }
.tabs { font-size: var(--step--1); color: var(--muted); margin: 0 0 18px; max-width: 62ch; }
.tabs b { font-weight: 700; }
.dl { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }

/* Buttons: kennypt.com pill style */
.btn {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 1px; text-decoration: none; padding: 11px 22px 10px;
  border: 1.5px solid var(--teal); border-radius: 30px; background: var(--paper); color: var(--teal); line-height: 1.2; min-width: 168px;
  font: inherit; font-weight: 700; cursor: pointer; text-align: left;
}
.btn span { font-size: 0.8125rem; color: var(--muted); font-weight: 400; }
.btn.primary { background: var(--aqua); border-color: var(--aqua); color: #000; }
.btn.primary span { color: #2E4B4E; }
.btn.dark { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn.dark span { color: #CFE7E6; }
.btn:hover { background: var(--aqua-wash); }
.btn.primary:hover { background: #A6EEF8; border-color: #A6EEF8; }
.btn.dark:hover { background: var(--teal-2); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.callout .btn.primary { background: var(--required); border-color: var(--required); color: #fff; }
.callout .btn.primary span { color: #E9DCEF; }
.callout .btn.primary:hover { background: #6A2F80; }

/* Reference link lists */
.refs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.refs li { padding: 16px 0; border-top: 1px solid var(--line); }
.refs a { font-weight: 700; }
.refs p { margin: 4px 0 0; font-size: var(--step--1); color: var(--muted); max-width: 52ch; }
.aside { max-width: var(--measure); background: var(--aqua-wash); border-radius: var(--radius); padding: 20px 22px; margin-top: 28px; }
.aside p { margin: 0; }
.aside p + p { margin-top: 10px; }

.related { display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; align-items: center; }
.related p { margin: 0; max-width: 60ch; color: var(--muted); }

/* People */
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.people h3 { margin-bottom: 2px; }
.people p { margin: 0; color: var(--muted); font-size: var(--step--1); }
.people a { font-size: var(--step-0); }

/* Footer */
footer { background: var(--teal); color: #D7E8E7; margin-top: 24px; position: relative; }
footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--flare); }
footer .wrap { padding-top: 32px; padding-bottom: 40px; font-size: var(--step--1); }
footer p { margin: 0 0 8px; max-width: 80ch; }
footer a { color: #fff; }

@media (max-width: 860px) {
  :root { --step-4: 2.5rem; --step-3: 2rem; }
  .doors { grid-template-columns: 1fr; }
  .door { min-height: 0; }
  .tiers { grid-template-columns: 1fr 1fr; }
  .tier:nth-child(2) { border-right: 0; }
  .tier:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .tool { grid-template-columns: 1fr; gap: 18px; }
  .thumb { max-width: 420px; }
  .refs { grid-template-columns: 1fr; }
  .callout, .related { grid-template-columns: 1fr; }
  .people { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 18px; }
  .intro { padding: 36px 0 28px; }
  .tiers { grid-template-columns: 1fr; }
  .tier { border-right: 0; border-bottom: 1px solid var(--line); }
  .tier:last-child { border-bottom: 0; }
  .dl li { flex: 1 1 100%; }
  .btn { width: 100%; }
  .thumb { display: none; }
  .track-grid { display: none; }
  .track-list { display: block; }
  .track-legend { min-width: 0; display: block; }
  .track-legend span { display: block; margin-top: 6px; }
  h1 { font-size: 2.3rem; }
  .masthead .event { display: none; }
  .masthead .logo { height: 38px; }
}
@media print {
  .masthead, footer .wrap > p:last-child, .skip { display: none; }
  .btn { border-width: 1px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
