/* Half-marathon workspace. Hero, article and metadata remain shared-owned. */
.tn-hmp-page[data-tn-fixed-partials="character-counter"] {
  --hmp-ink: #1a1208;
  --hmp-muted: #5a4a30;
  --hmp-line: #b8a888;
  --hmp-soft: #ddd4be;
  --hmp-paper: #faf6ee;
  --hmp-surface: #fffdf7;
  --hmp-wash: #f5efdf;
  --hmp-accent: #c44a00;
  --hmp-button: #ede6d4;
  --hmp-hover: #dfd4bb;
  --hmp-primary: #1a1208;
  --hmp-primary-text: #faf6ee;
  --hmp-error: #9c3020;
  --hmp-scheme: light;
  --hmp-num: -apple-system, BlinkMacSystemFont, "Pretendard", "Segoe UI", system-ui, sans-serif;
  --hmp-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  box-sizing: border-box !important;
  width: min(1180px, 100%) !important;
  max-width: 1180px !important;
  margin: 0 auto 56px !important;
  padding: 0 !important;
}
.tn-hmp-page .tn-hmp-tool,
.tn-hmp-page .tn-hmp-tool * { box-sizing: border-box !important; min-width: 0; }
.tn-hmp-page[data-tn-fixed-partials] .tn-hmp-tool {
  width: 100% !important;
  max-width: 1040px !important;
  margin: 0 auto !important;
  padding: 18px !important;
  border: 1px solid var(--hmp-line) !important;
  border-radius: 0 !important;
  background: var(--hmp-paper) !important;
  box-shadow: none !important;
  color: var(--hmp-ink) !important;
  -webkit-text-fill-color: var(--hmp-ink) !important;
  font-family: var(--hmp-num) !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  color-scheme: var(--hmp-scheme);
}
.tn-hmp-page .tn-hmp-tool :is(p, h2, fieldset, legend) { margin: 0 !important; padding: 0; }
.tn-hmp-page .tn-hmp-tool :is(code, pre, kbd, samp) {
  padding: 0 !important; border: 0 !important; border-radius: 0 !important;
  background: transparent !important; color: inherit !important; -webkit-text-fill-color: inherit !important;
}
.tn-hmp-page .tn-hmp-tool [hidden] { display: none !important; }
.tn-hmp-page .tn-hmp-panels { display: grid !important; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px; }
.tn-hmp-page .tn-hmp-pane { display: grid !important; align-content: start; gap: 15px; }
.tn-hmp-page[data-tn-fixed-partials] .tn-hmp-tool .tn-hmp-pane-label {
  padding-bottom: 9px !important; border-bottom: 3px double var(--hmp-line);
  color: var(--hmp-muted) !important; -webkit-text-fill-color: var(--hmp-muted) !important;
  font-size: 12px !important; font-weight: 700 !important; letter-spacing: .04em;
}
.tn-hmp-page .tn-hmp-distance-field { border: 0 !important; }
.tn-hmp-page .tn-hmp-tool :is(legend, .tn-hmp-field-label) { margin-bottom: 7px !important; font-size: 13px !important; font-weight: 700; }
.tn-hmp-page .tn-hmp-distance-row { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tn-hmp-page .tn-hmp-distance { position: relative; display: block; margin: 0 !important; cursor: pointer; }
.tn-hmp-page .tn-hmp-distance input { position: absolute; width: 1px; height: 1px; padding: 0; opacity: 0; }
.tn-hmp-page[data-tn-fixed-partials] .tn-hmp-tool .tn-hmp-distance span {
  display: grid !important; place-items: center; height: 36px; border: 1px solid var(--hmp-line);
  background: var(--hmp-surface) !important; color: var(--hmp-ink) !important; -webkit-text-fill-color: var(--hmp-ink) !important;
  font: 700 14px/1 var(--hmp-num);
}
.tn-hmp-page[data-tn-fixed-partials] .tn-hmp-tool .tn-hmp-distance input:checked + span { background: var(--hmp-wash) !important; border-color: var(--hmp-accent); box-shadow: inset 0 -2px var(--hmp-accent); }
.tn-hmp-page .tn-hmp-time-row { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tn-hmp-page .tn-hmp-time-field { display: grid !important; gap: 4px; margin: 0 !important; }
.tn-hmp-page .tn-hmp-time-field > span:first-child { font-size: 12px; }
.tn-hmp-page .tn-hmp-tool .tn-hmp-time-control { display: flex !important; align-items: stretch !important; height: 44px; }
.tn-hmp-page[data-tn-fixed-partials] .tn-hmp-tool .tn-hmp-time-control input {
  flex: 1 1 auto !important; width: 0 !important; height: 44px !important; min-height: 44px !important;
  margin: 0 !important; padding: 8px !important; border: 1px solid var(--hmp-line) !important;
  border-radius: 0 !important; background: var(--hmp-surface) !important;
  color: var(--hmp-ink) !important; -webkit-text-fill-color: var(--hmp-ink) !important;
  font: 600 20px/1 var(--hmp-num) !important; font-variant-numeric: lining-nums tabular-nums !important;
  text-align: center; box-shadow: none !important;
}
.tn-hmp-page[data-tn-fixed-partials] .tn-hmp-tool input::placeholder { color: var(--hmp-ink) !important; -webkit-text-fill-color: var(--hmp-ink) !important; font-weight: 400 !important; opacity: .35 !important; }
.tn-hmp-page[data-tn-fixed-partials] .tn-hmp-tool .tn-hmp-time-control b {
  display: flex !important; align-items: center; justify-content: center; flex: 0 0 27px;
  border: 1px solid var(--hmp-line) !important; border-left: 0 !important;
  background: var(--hmp-wash) !important; color: var(--hmp-muted) !important; -webkit-text-fill-color: var(--hmp-muted) !important;
  font-size: 12px; font-weight: 500;
}
.tn-hmp-page[data-tn-fixed-partials] .tn-hmp-tool input[aria-invalid="true"] { border-color: var(--hmp-error) !important; }
.tn-hmp-page[data-tn-fixed-partials] .tn-hmp-tool :is(.tn-hmp-hint, .tn-hmp-status, .tn-hmp-copy-status, .tn-hmp-goal-note, .tn-hmp-disclaimer) {
  color: var(--hmp-muted) !important; -webkit-text-fill-color: var(--hmp-muted) !important;
  font-size: 12px !important; line-height: 1.65 !important; word-break: keep-all; overflow-wrap: anywhere;
}
.tn-hmp-page[data-tn-fixed-partials] .tn-hmp-tool[data-state="invalid"] .tn-hmp-status { color: var(--hmp-error) !important; -webkit-text-fill-color: var(--hmp-error) !important; }
.tn-hmp-page .tn-hmp-copy-status:empty { display: none; }
.tn-hmp-page .tn-hmp-actions { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tn-hmp-page[data-tn-fixed-partials] .tn-hmp-tool button {
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  height: 36px !important; min-height: 36px !important; margin: 0 !important; padding: 0 10px !important;
  border: 1px solid var(--hmp-line) !important; border-radius: 0 !important;
  background: var(--hmp-button) !important; color: var(--hmp-ink) !important; -webkit-text-fill-color: var(--hmp-ink) !important;
  font: 700 12px/1 var(--hmp-mono) !important; letter-spacing: 0 !important;
  text-transform: none !important; white-space: nowrap; box-shadow: none !important; outline: none !important; cursor: pointer;
}
.tn-hmp-page[data-tn-fixed-partials] .tn-hmp-tool button:hover:not(:disabled) { background: var(--hmp-hover) !important; }
.tn-hmp-page[data-tn-fixed-partials] .tn-hmp-tool :is(#hmpSample, button[aria-pressed="true"]) {
  background: var(--hmp-primary) !important; color: var(--hmp-primary-text) !important; -webkit-text-fill-color: var(--hmp-primary-text) !important;
}
.tn-hmp-page[data-tn-fixed-partials] .tn-hmp-tool :is(#hmpSample, button[aria-pressed="true"]):hover { background: var(--hmp-accent) !important; }
.tn-hmp-page[data-tn-fixed-partials] .tn-hmp-tool button:disabled { opacity: .45; cursor: not-allowed; }
.tn-hmp-page[data-tn-fixed-partials] .tn-hmp-tool :is(button, input):focus-visible,
.tn-hmp-page[data-tn-fixed-partials] .tn-hmp-tool .tn-hmp-distance input:focus-visible + span { outline: 2px solid var(--hmp-accent) !important; outline-offset: 2px !important; }
.tn-hmp-page .tn-hmp-results { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tn-hmp-page .tn-hmp-result-card { padding: 13px; border: 1px solid var(--hmp-soft); background: var(--hmp-surface) !important; }
.tn-hmp-page .tn-hmp-result-head { display: grid !important; gap: 2px; }
.tn-hmp-page .tn-hmp-tool .tn-hmp-result-head h2 { font: 700 14px/1.4 var(--hmp-num) !important; }
.tn-hmp-page .tn-hmp-result-head > span { font: 400 11px/1.4 var(--hmp-num); }
.tn-hmp-page[data-tn-fixed-partials] .tn-hmp-tool .tn-hmp-result-time {
  display: block !important; margin: 12px 0 16px; color: var(--hmp-ink) !important; -webkit-text-fill-color: var(--hmp-ink) !important;
  font: 800 clamp(25px, 3vw, 38px)/1.15 var(--hmp-num) !important; letter-spacing: -.04em; font-variant-numeric: lining-nums tabular-nums !important;
  overflow-wrap: anywhere;
}
.tn-hmp-page .tn-hmp-result-detail { display: grid !important; gap: 3px; padding-top: 9px; margin-top: 9px; border-top: 1px solid var(--hmp-soft); }
.tn-hmp-page .tn-hmp-result-detail > span { font-size: 11px; }
.tn-hmp-page[data-tn-fixed-partials] .tn-hmp-tool .tn-hmp-result-detail strong { font: 800 13px/1.5 var(--hmp-num) !important; font-variant-numeric: lining-nums tabular-nums !important; overflow-wrap: anywhere; word-break: keep-all; }
.tn-hmp-page .tn-hmp-lower { display: grid !important; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 24px; border-top: 3px double var(--hmp-line); margin-top: 22px; padding-top: 18px; }
.tn-hmp-page .tn-hmp-section-head { display: flex !important; align-items: center; justify-content: space-between; gap: 10px; }
.tn-hmp-page .tn-hmp-tool :is(.tn-hmp-section-head, .tn-hmp-goals) h2 { font: 800 16px/1.5 var(--hmp-num) !important; }
.tn-hmp-page[data-tn-fixed-partials] .tn-hmp-tool .tn-hmp-kicker { color: var(--hmp-muted) !important; -webkit-text-fill-color: var(--hmp-muted) !important; font-size: 11px; }
.tn-hmp-page .tn-hmp-table-modes { display: flex !important; gap: 4px; }
.tn-hmp-page .tn-hmp-tool :is(.tn-hmp-splits, .tn-hmp-goals) > .tn-hmp-hint { margin-top: 9px !important; }
.tn-hmp-page .tn-hmp-table-wrap { max-height: 370px; overflow: auto; margin-top: 12px; border: 1px solid var(--hmp-soft); }
.tn-hmp-page .tn-hmp-table-wrap:focus-visible { outline: 2px solid var(--hmp-accent); outline-offset: 2px; }
.tn-hmp-page .tn-hmp-tool .tn-hmp-table { width: 100% !important; table-layout: fixed; margin: 0 !important; border: 0 !important; border-collapse: collapse !important; background: transparent !important; }
.tn-hmp-page .tn-hmp-table caption { padding: 8px; text-align: left; background: var(--hmp-wash) !important; font-size: 11px; }
.tn-hmp-page[data-tn-fixed-partials] .tn-hmp-tool .tn-hmp-table :is(th, td) {
  padding: 9px 5px !important; border: 0 !important; border-bottom: 1px solid var(--hmp-soft) !important;
  background: var(--hmp-surface) !important; color: var(--hmp-ink) !important; -webkit-text-fill-color: var(--hmp-ink) !important;
  text-align: right; vertical-align: middle; font: 800 12px/1.5 var(--hmp-num) !important;
  font-variant-numeric: lining-nums tabular-nums !important; overflow-wrap: anywhere;
}
.tn-hmp-page .tn-hmp-tool .tn-hmp-table tr > :first-child { text-align: left; width: 29%; }
.tn-hmp-page[data-tn-fixed-partials] .tn-hmp-tool .tn-hmp-table thead th { position: sticky; top: 0; background: var(--hmp-wash) !important; font-size: 11px !important; font-weight: 600 !important; }
.tn-hmp-page[data-tn-fixed-partials] .tn-hmp-tool .tn-hmp-table tbody tr:last-child > * { background: var(--hmp-wash) !important; }
.tn-hmp-page .tn-hmp-goal-list { margin: 14px 0; border-top: 1px solid var(--hmp-soft); }
.tn-hmp-page .tn-hmp-goal-list > div { display: flex !important; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--hmp-soft); }
.tn-hmp-page .tn-hmp-goal-list > div > span { font-size: 13px; font-weight: 700; }
.tn-hmp-page .tn-hmp-goal-list span small { display: block; font-size: 11px; font-weight: 400; margin-top: 3px; }
.tn-hmp-page[data-tn-fixed-partials] .tn-hmp-tool .tn-hmp-goal-list strong { color: var(--hmp-accent) !important; -webkit-text-fill-color: var(--hmp-accent) !important; font: 800 30px/1.2 var(--hmp-num) !important; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums !important; }
.tn-hmp-page .tn-hmp-goal-list strong small { font-size: 12px; margin-left: 3px; }
.tn-hmp-page .tn-hmp-tool > .tn-hmp-disclaimer { margin-top: 18px !important; padding-top: 12px !important; border-top: 1px solid var(--hmp-soft); }
.tn-hmp-page .tn-hmp-ad { width: 100%; max-width: 900px; margin-inline: auto; background: transparent !important; border: 0 !important; box-shadow: none !important; }
.tn-hmp-page .tn-hmp-ad--top { min-height: 90px; }
.tn-hmp-page .tn-hmp-ad--bottom { min-height: 250px; }

body:is([data-scheme="dark"], [data-scheme="inverse"], [data-scheme="auto"][data-l="dark"], [data-scheme="auto"][data-d="dark"]) .tn-hmp-page[data-tn-fixed-partials],
html[data-scheme="dark"] body:not([data-scheme="light"]) .tn-hmp-page[data-tn-fixed-partials] {
  --hmp-ink: #f7ead1; --hmp-muted: #d5c3a5; --hmp-line: #826744; --hmp-soft: #53432e;
  --hmp-paper: #201a13; --hmp-surface: #251e15; --hmp-wash: #30261a;
  --hmp-accent: #f4aa70; --hmp-button: #2f2115; --hmp-hover: #3a2a1b;
  --hmp-primary: #6a3b1f; --hmp-primary-text: #f7ead1; --hmp-error: #ffb6a5; --hmp-scheme: dark;
}
body:is([data-scheme="dark"], [data-scheme="inverse"], [data-scheme="auto"][data-l="dark"], [data-scheme="auto"][data-d="dark"]) .tn-hmp-page .tn-hmp-tool :is(#hmpSample, button[aria-pressed="true"]):hover,
html[data-scheme="dark"] body:not([data-scheme="light"]) .tn-hmp-page .tn-hmp-tool :is(#hmpSample, button[aria-pressed="true"]):hover { background: #824826 !important; }
@media (prefers-color-scheme: dark) {
  body[data-scheme="auto"] .tn-hmp-page[data-tn-fixed-partials] {
    --hmp-ink: #f7ead1; --hmp-muted: #d5c3a5; --hmp-line: #826744; --hmp-soft: #53432e;
    --hmp-paper: #201a13; --hmp-surface: #251e15; --hmp-wash: #30261a;
    --hmp-accent: #f4aa70; --hmp-button: #2f2115; --hmp-hover: #3a2a1b;
    --hmp-primary: #6a3b1f; --hmp-primary-text: #f7ead1; --hmp-error: #ffb6a5; --hmp-scheme: dark;
  }
  body[data-scheme="auto"] .tn-hmp-page .tn-hmp-tool :is(#hmpSample, button[aria-pressed="true"]):hover { background: #824826 !important; }
}
@media (max-width: 720px) {
  .tn-hmp-page[data-tn-fixed-partials] .tn-hmp-tool { padding: 12px !important; }
  .tn-hmp-page .tn-hmp-panels, .tn-hmp-page .tn-hmp-lower { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .tn-hmp-page .tn-hmp-pane { gap: 12px; }
  .tn-hmp-page .tn-hmp-result-card { padding: 10px; }
  .tn-hmp-page[data-tn-fixed-partials] .tn-hmp-tool .tn-hmp-result-time { font-size: 29px !important; }
  .tn-hmp-page .tn-hmp-results { gap: 8px; }
  .tn-hmp-page .tn-hmp-table-wrap { max-height: 350px; }
  .tn-hmp-page .tn-hmp-goals { padding-top: 16px; border-top: 1px solid var(--hmp-soft); }
}
@media (max-width: 380px) {
  .tn-hmp-page[data-tn-fixed-partials] .tn-hmp-tool { padding: 10px !important; }
  .tn-hmp-page[data-tn-fixed-partials] .tn-hmp-tool .tn-hmp-result-time { font-size: 26px !important; }
  .tn-hmp-page[data-tn-fixed-partials] .tn-hmp-tool .tn-hmp-table :is(th, td) { padding-inline: 4px !important; font-size: 11px !important; }
  .tn-hmp-page .tn-hmp-tool .tn-hmp-section-head h2 { font-size: 15px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .tn-hmp-page .tn-hmp-tool *, .tn-hmp-page .tn-hmp-tool *::before, .tn-hmp-page .tn-hmp-tool *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
