.story-content {
  --story-ink: #20211f;
  --story-accent: #c54816;
  color: var(--story-ink);
}
.story-content [hidden] {
  display: none !important;
}
.story-mobile-nav {
  display: none;
}
.story-content mark[data-story-reading-highlight] {
  color: #20211f;
  background: #ffdfa5;
  border-radius: 3px;
  padding: 0.08em 0.12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.story-page .reading-layout {
  grid-template-columns: minmax(0, 1fr) 200px;
}
.story-page .article-body {
  min-width: 0;
  max-width: none;
}
.story-page .entry-heading {
  border-bottom: 0;
  padding-bottom: 0;
}
.story-page .entry-category {
  color: var(--story-accent);
}
.story-page .entry-heading h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -0.045em;
}
.story-intro {
  max-width: 68ch;
}
.story-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 18px 0 0;
  font-size: 0.9rem;
}
.story-jump a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  color: #a33b10;
  text-underline-offset: 4px;
}
.story-intro > p:first-child {
  font-size: 1.2rem;
  line-height: 1.65;
}
.story-current {
  border-left: 4px solid var(--story-accent);
  padding: 20px 24px;
  background: #f1ece3;
  margin: 32px 0 44px;
}
.story-current .small-label {
  margin: 0 0 8px;
}
.story-current h2 {
  font-size: 1.1rem;
  margin: 0 0 10px;
}
.story-current p:last-child {
  margin: 0;
  line-height: 1.65;
}
.story-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}
.story-section-heading .small-label {
  margin: 0 0 8px;
  color: var(--story-accent);
}
.story-section-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0;
}
.story-period {
  flex-shrink: 0;
  font-size: 0.9rem;
  color: #5d5b54;
}
.story-counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 28px 0 16px;
  border-top: 1px solid #d4cfc5;
  border-bottom: 1px solid #d4cfc5;
}
.story-counts > div {
  padding: 18px 12px 18px 0;
  display: flex;
  flex-direction: column-reverse;
  gap: 5px;
}
.story-counts dd {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.story-counts dt {
  font-size: 0.8rem;
  color: #55534d;
  line-height: 1.35;
}
.story-coverage,
.story-chart-note {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #58564f;
}
.story-workload {
  margin: 0 0 44px;
  padding-bottom: 30px;
  border-bottom: 1px solid #c7beb0;
}
.story-workload > .small-label {
  color: var(--story-accent);
}
.story-workload h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 10px 0;
}
.story-workload-period {
  font-size: 0.85rem;
  color: #58564f;
}
.story-workload-counts dd {
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: #a33b10;
}
.story-count-method {
  font-size: 0.9rem;
  line-height: 1.6;
}
.story-count-method summary {
  cursor: pointer;
  min-height: 44px;
  padding: 10px 0;
  font-weight: 650;
}
.story-count-method dl > div {
  padding: 12px 0;
  border-top: 1px solid #ded7cc;
}
.story-count-method dt {
  font-weight: 650;
}
.story-count-method dd {
  margin: 4px 0 0;
  color: #58564f;
}
.story-controls {
  margin: 28px 0 16px;
}
.story-view-switch {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #d4cfc5;
  margin-bottom: 16px;
}
.story-view-switch button {
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #55534d;
  border-radius: 0;
  padding: 12px 14px;
  font-size: 1rem;
  min-height: 46px;
}
.story-view-switch button[aria-pressed="true"] {
  color: #9c350c;
  border-color: var(--story-accent);
  font-weight: 700;
}
.story-controls label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}
.story-controls select {
  width: auto;
  max-width: 100%;
  min-height: 44px;
  background: #fffdf8;
}
.story-filter-result {
  font-size: 0.85rem;
  color: #58564f;
  margin: 12px 0;
}
.story-visual {
  border: 1px solid #d4cfc5;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 30px;
  background: #fffdf8;
}
.story-visual > summary {
  min-height: 32px;
  font-weight: 650;
  cursor: pointer;
}
.story-visual > summary span {
  font-size: 0.8rem;
  font-weight: 400;
  margin-left: 10px;
  color: #5d5b54;
}
.story-chart-controls {
  display: flex;
  gap: 8px;
  margin: 16px 0 10px;
}
.story-chart-controls button {
  background: transparent;
  border: 1px solid #b6aea1;
  border-radius: 4px;
  color: #302f2b;
  min-height: 44px;
  min-width: 44px;
  padding: 6px 12px;
  font-size: 1rem;
}
.story-chart {
  width: 100%;
  overflow: hidden;
  min-height: 210px;
}
.story-chart .vis-timeline {
  border: 0;
  font-family: inherit;
  font-size: 13px;
}
.story-chart .vis-item {
  color: #252623;
  background: #f8e0cf;
  border-color: #a84419;
}
.story-chart .vis-item.category-scan {
  background: #e8e9e2;
  border-color: #686c57;
}
.story-chart .vis-item.category-test {
  background: #e7e2ee;
  border-color: #6b5979;
}
.story-chart .vis-item.category-appointment {
  background: #e0ebeb;
  border-color: #476e70;
}
.story-chart .vis-item.category-research {
  background: #f1ead8;
  border-color: #7b682f;
}
.story-chart .vis-item.vis-selected {
  border-color: #242521;
  background: #ffd2af;
}
.story-chart .vis-item.date-imprecise {
  border-style: dashed;
}
.story-chart .vis-item.vis-range .vis-item-overflow {
  overflow: visible;
}
.story-milestones,
.story-activity-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 25px;
}
.story-event {
  position: relative;
  padding: 0 0 30px 26px;
  border-left: 1px solid #c7beb0;
  margin: 0;
  scroll-margin-top: 100px;
}
.story-event::before {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  background: var(--story-accent);
  border: 3px solid #f9f6ef;
  border-radius: 50%;
  left: -7px;
  top: 3px;
}
.story-event.category-scan::before {
  background: #686c57;
}
.story-event.category-test::before {
  background: #6b5979;
}
.story-event.category-appointment::before {
  background: #476e70;
}
.story-event.category-research::before {
  background: #7b682f;
}
.story-event:last-child {
  border-left-color: transparent;
}
.story-event-date {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 12px;
  font-size: 0.84rem;
  color: #58564f;
  line-height: 1.5;
  margin-bottom: 7px;
}
.story-event-date time {
  color: #9c350c;
  font-weight: 600;
}
.story-event-date > span {
  font-size: 0.75rem;
}
.story-event h3,
.story-event-title {
  display: block;
  margin: 0 0 8px;
  font-size: 1.15rem;
  line-height: 1.4;
  font-weight: 650;
  letter-spacing: -0.015em;
}
.story-event p {
  font-size: 1rem;
  line-height: 1.7;
  margin: 10px 0;
  max-width: 66ch;
}
.story-status {
  display: inline-block;
  color: #5c5548;
  font-size: 0.74rem;
  background: #eee8dd;
  padding: 2px 7px;
  border-radius: 3px;
}
.story-event-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  font-size: 0.85rem;
}
.story-event-links a {
  text-underline-offset: 3px;
}
.story-all > summary {
  padding: 14px 0;
  cursor: pointer;
  font-weight: 600;
}
.story-all > ol {
  margin-top: 20px;
}
.story-activity-list .story-event {
  padding-bottom: 23px;
}
.story-activity-list summary {
  cursor: pointer;
  list-style: disclosure-closed;
}
.story-activity-list details[open] > summary {
  list-style: disclosure-open;
}
.story-activity-list summary::marker {
  color: #8a5a3b;
}
.story-chapters {
  margin-top: 36px;
}
.story-guide-ctas {
  margin: 24px 0 32px;
  border: 1px solid #d7b89c;
  border-radius: 7px;
  background: #fffaf2;
}
.story-guide-ctas .story-guide-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 14px 18px;
  border-bottom: 1px solid #e5d4c4;
  color: #20211f;
  line-height: 1.4;
  text-decoration: none;
}
.story-guide-cta:first-child {
  border-radius: 6px 6px 0 0;
}
.story-guide-ctas .story-guide-cta:last-child {
  border-bottom: 0;
  border-radius: 0 0 6px 6px;
}
.story-guide-ctas .story-guide-cta:only-child {
  border-radius: 6px;
}
.story-guide-cta-title {
  font-size: 1rem;
  font-weight: 650;
}
.story-guide-cta-action {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #a33b10;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.story-guide-cta-action > span {
  font-size: 1.15rem;
}
.story-guide-ctas .story-guide-cta:hover {
  background: #ffeedb;
}
.story-guide-cta:hover .story-guide-cta-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.story-guide-ctas .story-guide-cta:focus-visible {
  outline: 3px solid #a33b10;
  outline-offset: 3px;
}
@media (max-width: 600px) {
  .story-guide-ctas .story-guide-cta {
    padding: 13px 14px;
    gap: 12px;
  }
  .story-guide-cta-title {
    font-size: 0.95rem;
  }
  .story-guide-cta-action {
    gap: 6px;
    font-size: 0.75rem;
  }
}
.story-chapters h2 {
  padding-top: 24px;
  border-top: 1px solid #d4cfc5;
  scroll-margin-top: 100px;
}
.story-chapters blockquote {
  margin: 28px 0;
  padding: 10px 22px;
  border-left: 4px solid var(--story-accent);
  background: #f1ece3;
}
.story-content button:focus-visible,
.story-content select:focus-visible,
.story-content summary:focus-visible,
.story-content a:focus-visible {
  outline: 3px solid #a23a10;
  outline-offset: 4px;
}
@media (max-width: 900px) {
  .story-page .reading-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .story-page .entry-sidebar {
    display: none;
  }
  .story-mobile-nav {
    display: block;
    position: relative;
    top: 0;
    z-index: 20;
    background: #faf8f3;
    margin: 0 0 24px;
    border: 1px solid #d4cfc5;
    border-radius: 6px;
    box-shadow: 0 3px 10px #20211f0d;
  }
  .story-content[data-story-enhanced] .story-mobile-nav {
    position: sticky;
  }
  .story-mobile-nav > details > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    min-height: 48px;
    padding: 12px 16px;
    margin: 0;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 650;
  }
  .story-mobile-nav summary::-webkit-details-marker {
    display: none;
  }
  .story-mobile-nav details[open] > summary {
    border-bottom: 1px solid #d4cfc5;
  }
  .story-mobile-sections {
    max-height: 60dvh;
    overflow-y: auto;
    padding: 6px 0;
  }
  .story-mobile-sections a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 16px;
    line-height: 1.4;
    font-size: 0.9rem;
    color: #302f2b;
    text-decoration: none;
  }
  .story-mobile-sections a:hover,
  .story-mobile-sections a:focus-visible {
    background: #f1ece3;
  }
  .story-content h2[id],
  .story-content h3[id] {
    scroll-margin-top: 82px;
  }
}
@media (max-width: 600px) {
  .story-counts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .story-counts > div:nth-child(-n + 2) {
    border-bottom: 1px solid #ded7cc;
  }
  .story-section-heading {
    display: block;
  }
  .story-period {
    display: block;
    margin-top: 12px;
  }
  .story-current {
    padding: 18px;
  }
  .story-view-switch button {
    padding: 10px 9px;
    font-size: 0.89rem;
  }
  .story-visual {
    padding: 12px;
  }
  .story-visual > summary span {
    display: block;
    margin: 4px 0 0 16px;
  }
  .story-milestones,
  .story-activity-list {
    padding-left: 8px;
  }
  .story-event {
    padding-left: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .story-content * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
