/* EndSoreFeet / EndSoreKnees — shared stylesheet
   Design language: podiatric/orthopedic reference manual.
   Mono type is reserved for verifiable measured data. Never use it decoratively. */

:root {
  --paper:      #f4f7f7;
  --card:       #ffffff;
  --ink:        #14232b;
  --ink-mid:    #4d5f69;
  --ink-soft:   #75858d;
  --teal:       #0f4c5c;
  --teal-deep:  #0a3541;
  --teal-wash:  #e6eef0;
  --rule:       #dbe3e5;
  --zone-1:     #4a9ba5;  /* pressure map: low  */
  --zone-2:     #e0a33e;  /* pressure map: mid  */
  --zone-3:     #cf5138;  /* pressure map: high */
  --warn-bg:    #fdf3ec;
  --maxw:       68rem;
  --measure:    38rem;
  --radius:     3px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: Bitter, Georgia, "Times New Roman", serif;
  color: var(--teal-deep);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(1.85rem, 4.4vw, 2.85rem); font-weight: 700; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); font-weight: 600; margin-top: 2.4rem; }
h3 { font-size: 1.15rem; font-weight: 600; margin-top: 1.8rem; }

p, li { max-width: var(--measure); }
p { margin: 0 0 1.1rem; }

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--zone-3); }
:focus-visible { outline: 2px solid var(--zone-1); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.skip {
  position: absolute; left: -999px; top: 0; background: var(--teal-deep);
  color: #fff; padding: .6rem 1rem; z-index: 50;
}
.skip:focus { left: 0; }

/* ── Masthead ─────────────────────────────────────────── */
.masthead { background: var(--teal-deep); color: #dbe8ea; }
.masthead .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; padding-block: .85rem;
}
.brand {
  font-family: Bitter, Georgia, serif; font-weight: 700; font-size: 1.2rem;
  color: #fff; text-decoration: none; letter-spacing: -0.02em;
}
.brand span { color: var(--zone-2); }
.nav { display: flex; gap: 1.15rem; flex-wrap: wrap; }
.nav a {
  color: #c3d6d9; text-decoration: none; font-size: .875rem;
  font-weight: 500; padding-block: .2rem;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--zone-2); }

/* ── Standing disclosure bar (renders above all affiliate links) ── */
.disclosure-bar {
  background: var(--warn-bg);
  border-bottom: 1px solid #f0d9c6;
  font-size: .8125rem; line-height: 1.5; color: #6b4a32;
}
.disclosure-bar .wrap { padding-block: .55rem; }
.disclosure-bar p { max-width: none; margin: 0; }
.disclosure-bar a { color: #8a4b26; }

/* ── Page furniture ───────────────────────────────────── */
main { padding-block: 2.5rem 4rem; }
.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .6875rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 .7rem;
}
.lede { font-size: 1.1875rem; color: var(--ink-mid); max-width: 40rem; }
.crumbs {
  font-size: .8125rem; color: var(--ink-soft); margin-bottom: 1.4rem;
}
.crumbs a { color: var(--ink-mid); }

.layout { display: grid; gap: 3rem; }
@media (min-width: 62rem) {
  .layout { grid-template-columns: minmax(0,1fr) 15rem; align-items: start; }
}
.toc {
  position: sticky; top: 1.5rem; font-size: .875rem;
  border-left: 2px solid var(--rule); padding-left: 1rem;
}
.toc p { font-family: "IBM Plex Mono", monospace; font-size: .6875rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .6rem; }
.toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.toc a { text-decoration: none; color: var(--ink-mid); }
.toc a:hover { color: var(--teal); }
@media (max-width: 61.99rem) { .toc { display: none; } }

/* ── Answer block: the extractable 2–3 sentence direct answer ── */
.answer {
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--zone-1);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin: 0 0 1.6rem;
}
.answer p:last-child { margin-bottom: 0; }
.answer p { max-width: none; }

/* ── Pressure-map anatomy selector (signature element) ── */
.pressure {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: grid; gap: 2rem;
}
@media (min-width: 48rem) {
  .pressure { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); align-items: center; }
}
.pressure svg { width: 100%; height: auto; display: block; }
.zone { cursor: pointer; transition: opacity .18s ease; }
.zone:hover .zone-fill, .zone:focus-visible .zone-fill { opacity: .95; }
.zone-fill { opacity: .55; transition: opacity .18s ease; }
.zone-label {
  font-family: "IBM Plex Mono", monospace; font-size: 9px;
  fill: var(--teal-deep); letter-spacing: .04em;
}
.zone-outline { fill: none; stroke: var(--teal-deep); stroke-width: 1.4; }
.zone-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.zone-list li { border-bottom: 1px solid var(--rule); max-width: none; }
.zone-list li:last-child { border-bottom: 0; }
.zone-list a {
  display: grid; grid-template-columns: 1.6rem 1fr; gap: .75rem;
  padding: .7rem .25rem; text-decoration: none; color: var(--ink);
  align-items: baseline;
}
.zone-list a:hover { background: var(--teal-wash); }
.zone-list .key {
  font-family: "IBM Plex Mono", monospace; font-size: .75rem; color: var(--ink-soft);
}
.zone-list strong { display: block; font-weight: 600; font-size: .975rem; }
.zone-list em {
  display: block; font-style: normal; font-size: .8125rem; color: var(--ink-mid);
}

/* ── Spec comparison table: mono = measured, verifiable data ── */
.table-scroll { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); }
table.specs { border-collapse: collapse; width: 100%; font-size: .9375rem; min-width: 40rem; }
table.specs caption {
  caption-side: top; text-align: left; padding: .9rem 1rem;
  font-size: .8125rem; color: var(--ink-mid); border-bottom: 1px solid var(--rule);
}
table.specs th, table.specs td {
  text-align: left; padding: .7rem 1rem; border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
table.specs thead th {
  font-family: "IBM Plex Mono", monospace; font-size: .6875rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft);
  font-weight: 500; background: var(--teal-wash);
}
table.specs tbody th { font-weight: 600; color: var(--teal-deep); }
table.specs td { font-family: "IBM Plex Mono", monospace; font-size: .8125rem; color: var(--ink-mid); }
table.specs tr:last-child th, table.specs tr:last-child td { border-bottom: 0; }
.unverified { color: var(--zone-3); font-style: normal; }

/* ── Cards / grids ────────────────────────────────────── */
.grid { display: grid; gap: 1.1rem; margin: 1.75rem 0; }
@media (min-width: 40rem) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 1.25rem; display: block; text-decoration: none; color: inherit;
}
.card:hover { border-color: var(--zone-1); }
.card h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.card p { font-size: .9rem; color: var(--ink-mid); margin: 0; max-width: none; }

/* ── Callouts ─────────────────────────────────────────── */
.callout {
  border: 1px solid var(--rule); border-left: 3px solid var(--zone-2);
  background: var(--card); border-radius: var(--radius);
  padding: 1.1rem 1.25rem; margin: 1.75rem 0;
}
.callout.red { border-left-color: var(--zone-3); background: var(--warn-bg); }
.callout h3 { margin-top: 0; font-size: 1rem; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout p, .callout li { max-width: none; }

/* ── Sources ──────────────────────────────────────────── */
.sources { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.sources ol { font-size: .875rem; color: var(--ink-mid); padding-left: 1.2rem; }
.sources li { margin-bottom: .5rem; max-width: 42rem; }

.meta {
  font-family: "IBM Plex Mono", monospace; font-size: .75rem;
  color: var(--ink-soft); margin-bottom: 1.5rem;
}

/* ── Footer ───────────────────────────────────────────── */
.foot {
  background: var(--teal-deep); color: #a9c2c6;
  font-size: .875rem; padding-block: 2.5rem 3rem; margin-top: 4rem;
}
.foot h4 { color: #fff; font-size: .9rem; margin-bottom: .7rem; }
.foot a { color: #cfe0e2; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; gap: 2rem; }
@media (min-width: 46rem) { .foot-grid { grid-template-columns: repeat(3, 1fr); } }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.foot p { max-width: 34rem; }
.foot .fine {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #17495a;
  font-size: .8125rem; color: #86a4a9;
}
.sister {
  display: inline-block; border: 1px solid #2a6577; border-radius: var(--radius);
  padding: .5rem .8rem; margin-top: .5rem; text-decoration: none;
}
.sister:hover { border-color: var(--zone-2); }

/* ── Ad slots (AdSense) — reserved space to avoid layout shift ── */
.adslot { margin: 2.25rem 0; min-height: 100px; text-align: center; }
.adslot::before {
  content: "Advertisement"; display: block;
  font-family: "IBM Plex Mono", monospace; font-size: .625rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: .4rem;
}
