/* WordPress: intentionally unlayered; sync copies this file unchanged. */
.kit-rail { --kit-width: 1220px; --kit-left: 220px; --kit-right: 264px; --kit-text: 640px; --kit-gap: var(--space-7, 48px); --kit-offset: 24px; display: grid; gap: var(--space-5, 32px); width: min(var(--kit-text), calc(100% - 36px)); margin-inline: auto; color: var(--color-text); font-family: var(--font-body); }
.kit-rail *, .kit-strip * { box-sizing: border-box; }
.kit-rail > * { min-width: 0; }
.kit-rail [hidden] { display: none !important; }
:is(.kit-toc, .kit-share, .kit-offers, .kit-author, .kit-strip, .kit-rail__back, .kit-rail__left) a { color: var(--color-text); text-underline-offset: .2em; }
/* Utility links keep their underline even when the host theme resets a { text-decoration: none } (school blog on GeneratePress, live 18.10). */
:is(a[data-kit-event="author"], a[data-kit-event="top"]) { text-decoration-line: underline; }
.kit-rail a:hover, .kit-rail button:hover { color: var(--color-accent); }
.kit-rail :focus-visible { outline: 3px solid var(--color-focus, var(--color-accent)); outline-offset: 3px; }
.kit-rail :is(h1,h2,h3) { scroll-margin-top: 56px; }
.kit-rail h1 { font-family: var(--font-heading); text-wrap: balance; }
/* No single word left on the last line of a paragraph or list item (owner, 18.10: polish). */
.kit-rail__body :is(p, li) { text-wrap: pretty; }
.kit-icon { flex: none; vertical-align: middle; }
.kit-in { font: bold 20px/1 Arial, sans-serif; }
.kit-sr { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.kit-toc, .kit-share, .kit-vote, .kit-offers, .kit-author, .kit-meta, .kit-strip {
  font: 400 16px/1.5 var(--font-body); text-transform: none; letter-spacing: normal;
  margin: 0; padding: 0; background: transparent; border: 0; color: var(--color-text);
}
.kit-label { font: 600 12px/1.5 var(--font-body); text-transform: uppercase; letter-spacing: .06em; text-align: left; margin: 0 0 var(--space-3, 16px); padding: 0; background: transparent; border: 0; color: var(--color-text); list-style: none; }
.kit-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; color: var(--color-muted); font-size: 12px; }
.kit-meta > * + *::before { content: "·"; margin-right: 8px; }
.kit-author { display: flex; align-items: start; gap: var(--space-3, 16px); font-size: 13px; }
.kit-author img { flex: none; border-radius: 50%; object-fit: cover; }
.kit-author p { margin: 0 0 8px; }
.kit-author ul { padding-left: 18px; margin: 0 0 8px; }
.kit-author__name { font: 600 20px/1.3 var(--font-heading); }
.kit-author--top { border: 1px solid var(--color-line); border-radius: var(--radius-control); padding: var(--space-3, 16px); }
/* Photo and name share a row; facts take the card's full width instead of a narrow column beside the photo. */
.kit-author--top { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; }
.kit-author--top > div { display: contents; }
.kit-author--top img { grid-row: span 2; }
.kit-author--top > div > p { grid-column: 2; margin: 0; }
.kit-author--top > div > :is(ul, a) { grid-column: 1 / -1; justify-self: start; }
/* A zero-width marker instead of none keeps list semantics in Safari/VoiceOver. */
.kit-author--top ul { margin: 8px 0; padding: 0; list-style-type: "\200B"; }
.kit-author--top li { text-wrap: balance; }
.kit-author--top li + li { margin-top: 4px; }
.kit-author--meta { align-items: center; gap: 8px; }
.kit-author--meta .kit-author__name { font: inherit; font-weight: 600; }
.kit-author--meta p { margin: 0; }
.kit-author--meta ul { list-style: none; padding: 0; margin: 0; text-wrap: balance; }
.kit-rail__head .kit-author--meta { margin-bottom: 8px; }
.kit-author--meta a { display: none; }
.kit-toc { font-size: 13px; }
.kit-toc summary { cursor: pointer; padding-block: 14px; margin: 0; list-style: revert; }
.kit-toc--inline { border-block: 1px solid var(--color-line); margin-bottom: var(--space-4, 24px); }
.kit-toc__list, .kit-offers ul { font: 400 13px/1.5 var(--font-body); text-transform: none; letter-spacing: normal; list-style: none; padding: 0; margin: 0; background: transparent; border: 0; color: var(--color-text); }
.kit-toc__list > li, .kit-offers li { font: inherit; text-transform: none; letter-spacing: normal; list-style: none; margin: 0; padding: 0; background: transparent; border: 0; color: var(--color-text); }
.kit-toc__list a { display: block; padding: 8px 10px; border-left: 3px solid transparent; color: var(--color-muted); text-decoration: none; overflow-wrap: anywhere; }
.kit-toc__list > .kit-toc__h3 { padding-left: var(--space-3, 16px); }
.kit-toc__list a[aria-current="location"] { border-color: var(--color-accent); color: var(--color-text); font-weight: 600; }
.kit-progress { height: 3px; background: var(--color-line); overflow: hidden; pointer-events: none; }
.kit-progress span { display: block; height: 100%; background: var(--color-accent); transform-origin: left; transform: scaleX(0); }
.kit-strip { position: fixed; inset: 0 0 auto; z-index: 20; height: 44px; display: flex; align-items: center; background: var(--color-bg); border-bottom: 1px solid var(--color-line); font: 600 13px/1.2 var(--font-body); }
.kit-strip button, .kit-strip > a { display: inline-flex; align-items: center; justify-content: center; flex: none; gap: 4px; min-width: 44px; height: 44px; padding: 0 8px; margin: 0; border: 0; border-radius: 0; color: var(--color-text); background: transparent; font: 600 13px/1.2 var(--font-body); text-transform: none; letter-spacing: normal; box-shadow: none; appearance: none; text-decoration: none; }
.kit-strip__current { position: relative; flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--color-muted); }
.kit-strip__current > [aria-hidden="true"] { display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.kit-strip__menu { position: absolute; inset: 44px 0 auto; max-height: 60vh; overflow-y: auto; background: var(--color-bg); border-bottom: 1px solid var(--color-line); padding: var(--space-3, 16px); }
.kit-strip .kit-progress { position: absolute; inset: auto 0 0; }
.kit-strip__share { position: relative; display: flex; flex: none; width: 44px; height: 44px; }
.kit-strip [data-strip-share] { position: relative; width: 44px; min-width: 44px; max-width: 44px; padding: 0; }
.kit-strip__status { position: absolute; top: 0; right: 100%; height: 44px; max-width: 12em; margin: 0; padding: 0 8px; display: flex; align-items: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; background: var(--color-bg); color: var(--color-text); pointer-events: none; }
.kit-strip__status:empty { clip-path: inset(50%); width: 1px; height: 1px; padding: 0; overflow: hidden; background: transparent; }
.kit-share { margin-block: var(--space-4, 24px); }
.kit-share__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.kit-share__actions > :is(button, a), .kit-vote button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 8px; border: 1px solid var(--color-line); border-radius: var(--radius-control); color: var(--color-text); background: transparent; font: 400 14px/1.5 var(--font-body); text-transform: none; letter-spacing: normal; margin: 0; box-shadow: none; appearance: none; cursor: pointer; text-decoration: none; }
.kit-share__actions > :is(button, a):is(:hover, :focus, :active), .kit-vote button:is(:hover, :focus, :active), .kit-strip button:is(:hover, :focus, :active) { background: transparent; box-shadow: none; color: var(--color-text); }
.kit-share__actions > :is(button, a):hover, .kit-vote button:hover, .kit-strip button:hover { color: var(--color-accent); }
.kit-share [role="status"], .kit-vote [role="status"] { font: 400 14px/1.5 var(--font-body); margin: 8px 0 0; padding: 0; color: var(--color-text); }
.kit-share input { max-width: 100%; width: 100%; font: inherit; }
.kit-share__fallback { font-size: 12px; margin-top: 8px; }
.kit-share [role="status"]:empty { display: none; }
.kit-share .kit-only-desktop { display: none; }
.kit-share .kit-only-touch { display: none; }
@media (any-pointer: coarse) { .kit-share .kit-only-touch { display: inline-flex; } }
.kit-vote { border: 0; border-block: 1px solid var(--color-line); padding: var(--space-3, 16px) 0; margin: 0; min-width: 0; }
.kit-vote legend { font: 600 16px/1.5 var(--font-body); text-transform: none; letter-spacing: normal; margin: 0; padding: 0; border: 0; background: transparent; color: var(--color-text); }
/* A floated full-width legend keeps the fieldset's top rule whole instead of a line running out of the question. */
.kit-vote legend { float: left; width: 100%; }
.kit-vote legend + * { clear: both; }
.kit-vote button { margin: 8px 8px 0 0; }
.kit-vote [aria-pressed="true"] { border-color: var(--color-accent); font-weight: 600; }
.kit-vote [disabled] { cursor: default; }
.kit-vote__reasons { margin-top: 8px; }
.kit-vote__why { font: 400 14px/1.5 var(--font-body); text-transform: none; letter-spacing: normal; margin: 0 0 8px; padding: 0; border: 0; background: transparent; color: var(--color-text); }
.kit-offers { border-top: 3px solid var(--color-accent); padding-top: var(--space-3, 16px); }
.kit-offers section + section { margin-top: var(--space-5, 32px); }
.kit-offers li { padding-block: 12px; border-bottom: 1px solid var(--color-line); }
.kit-offers li:last-child { border-bottom: 0; padding-bottom: 0; }
.kit-offers .kit-offers__link { font: 600 17px/1.3 var(--font-heading); text-transform: none; letter-spacing: normal; color: var(--color-text); margin: 0; padding: 0; border: 0; background: transparent; text-decoration: none; }
.kit-offers p { color: var(--color-muted); margin: 6px 0 0; font-size: 13px; }
.kit-offers li > .kit-label { font: 600 12px/1.5 var(--font-body); text-transform: uppercase; letter-spacing: .06em; color: var(--color-text); margin: 0 0 4px; }
.kit-offers .kit-offers__note { font: 400 12px/1.5 var(--font-body); text-transform: none; letter-spacing: normal; color: var(--color-muted); margin: 4px 0 0; padding: 0; border: 0; background: transparent; }
.kit-rail__left, .kit-rail__author, .kit-only-wide { display: none; }
.kit-rail__right { display: contents; }
.kit-rail__right > * { min-width: 0; }
.kit-rail__back a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
@media (min-width: 1024px) {
  .kit-offers .kit-offers__link { font-size: 18px; }
  .kit-rail { width: min(var(--kit-width), calc(100% - 64px)); grid-template-columns: var(--kit-left) minmax(0, var(--kit-text)); column-gap: var(--kit-gap); }
  .kit-rail__head { grid-column: 2; grid-row: 1; }
  .kit-rail__left { display: block; grid-column: 1; grid-row: 1 / 3; }
  .kit-rail__left > .kit-fits { position: sticky; top: var(--kit-offset); }
  /* Item text lines up with the section label; the current-section bar hangs in the gutter. */
  .kit-rail__left .kit-toc__list { margin-left: -13px; }
  .kit-rail__left a[data-kit-event="top"] { display: inline-flex; align-items: center; gap: 6px; }
  .kit-rail__left .kit-progress { position: absolute; top: calc(-1 * var(--kit-offset)); width: min(var(--kit-width), calc(100vw - 64px)); }
  .kit-rail__body { grid-column: 2; grid-row: 2; }
  .kit-rail__tail { grid-column: 2; grid-row: 3; }
  .kit-rail__offers { grid-column: 2; grid-row: 4; }
  .kit-toc--inline, .kit-strip, .kit-share--band, .kit-rail__back { display: none; }
  .kit-toc__list--long { max-height: calc(100vh - 8.75rem); overflow-y: auto; }  /* rail TOC uses the viewport below the site bar; 55vh cut a 12-item list (TDA 18.10) */
  .kit-share__actions > :is(button, a) { min-width: 40px; min-height: 40px; }
  .kit-share .kit-only-desktop { display: inline-flex; }
  .kit-share .kit-only-mobile, .kit-share .kit-only-touch, .kit-share [data-share="native"] { display: none; }
}
@media (min-width: 1280px) {
  .kit-rail { grid-template-columns: var(--kit-left) minmax(0, var(--kit-text)) var(--kit-right); grid-template-rows: auto auto auto; }
  /* -1 counts explicit rows only. The three rows are the header, the text and the tail. */
  .kit-rail__head { align-self: start; }
  .kit-rail__right { display: flex; flex-direction: column; gap: var(--space-5, 32px); grid-column: 3; grid-row: 1 / -1; }
  /* flex:1 gives the sticky offers a containing block as tall as the column. */
  .kit-rail__offers { flex: 1; }
  .kit-rail__author { display: block; }
  .kit-offers.kit-fits { position: sticky; top: var(--kit-offset); }
  .kit-author--meta { display: none; }
  .kit-only-wide { display: list-item; }
}
@media (any-pointer: coarse) { .kit-share__actions > :is(button, a) { min-width: 44px; min-height: 44px; } }
@media (prefers-reduced-motion: no-preference) {
  .kit-rail :is(a,button) { transition: color 150ms; }
  .kit-scroll { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  .kit-scroll { scroll-behavior: auto; }
  .kit-rail *, .kit-rail *::before, .kit-rail *::after { transition: none; animation: none; }
}
