/* Method notes belong to the project's existing reading sequence. */
.project-method {
  --method-rule: #393939;
  --method-muted: #a6a6a6;
  --method-accent: #ff4237;
  border-top: 1px solid var(--method-rule);
  padding-top: 32px;
  color: inherit;
  font-family: inherit;
  line-height: 1.7;
  scroll-margin-top: 90px;
  min-width: 0;
}
.project-method:focus { outline: none; }
.project-method .method-kicker { color: var(--method-accent); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 18px; }
.project-method h2 { font-size: clamp(25px, 3vw, 38px); font-weight: 400; line-height: 1.2; margin: 0 0 22px; letter-spacing: -.025em; }
.project-method .method-lead { max-width: 66ch; font-size: 15px; margin: 0 0 38px; }
.project-method .method-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin: 0 0 36px; }
.project-method .method-facts > div { border-top: 1px solid var(--method-rule); padding-top: 14px; }
.project-method dt { color: var(--method-accent); font-size: 10px; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 12px; }
.project-method dd { margin: 0; font-size: 12px; color: var(--method-muted); }
.project-method a { color: inherit; text-underline-offset: 4px; }
.project-method a:hover { color: var(--method-accent); }
.project-method .method-links { display: flex; gap: 12px 24px; flex-wrap: wrap; font-size: 11px; margin: 26px 0 34px; }
.project-method .method-links a { text-decoration: none; border-bottom: 1px solid var(--method-rule); padding-bottom: 5px; }
.project-method .method-details { border-top: 1px solid var(--method-rule); }
.project-method details { border-bottom: 1px solid var(--method-rule); padding: 16px 0; margin: 0; font-size: 12px; }
.project-method summary { cursor: pointer; font-size: 13px; list-style-position: outside; margin-left: 16px; padding-right: 16px; }
.project-method details p { max-width: 85ch; color: var(--method-muted); margin: 18px 0 0; }
.project-method code { font-size: .95em; overflow-wrap: anywhere; }
.project-method .method-end { margin-top: 32px; font-size: 10px; color: var(--method-muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 15px; }
.project-method :focus-visible, .method-jump:focus-visible { outline: 2px solid var(--method-accent, #ff4237); outline-offset: 5px; }
.method-jump { display: inline-block; padding: 10px 12px; border: 1px solid currentColor; text-align: center; text-decoration: none; font-size: 11px; line-height: 1.4; }
html { scroll-behavior: smooth; }

/* Pulse keeps its fixed rail and authored media composition. */
#pulse-method { display: none; order: 6; width: min(calc(100vw - 380px), 1280px); margin: 40px 0 0 340px; box-sizing: border-box; pointer-events: auto; }
body.project-open #pulse-info-panel.active ~ #pulse-method { display: block; }
body.project-open #pulse-actions .method-jump { width: 160px; box-sizing: border-box; background: transparent; box-shadow: none; color: #bbb; border: 1px solid #555; padding: 9px 8px; font-size: .58rem; }
body.project-open #pulse-actions .method-jump:hover { color: #ff4237; border-color: currentColor; }

/* Adaptive continues its white editorial sections. */
#adaptive-method { --method-rule: #d9d9d6; --method-muted: #696969; --method-accent: #a61f2b; padding-top: clamp(60px, 7vw, 112px); }
#adaptive-method h2 { font-size: clamp(32px, 4vw, 56px); }
#adaptive-method .method-lead { font-size: clamp(18px, 2vw, 24px); }
#adaptive-method dd, #adaptive-method details { font-size: 14px; }
#adaptive-method summary { font-size: 16px; }
#adaptive-method .study-panel { background: transparent; border: 0; border-top: 1px solid var(--method-rule); padding: 30px 0 0; margin-top: 40px; font-family: inherit; }
#adaptive-method .study-panel h3 { font-weight: 400; font-size: 24px; }
#adaptive-method .study-panel input { display: block; max-width: 100%; margin-top: 10px; }
#adaptive-method .study-panel table { width: 100%; table-layout: fixed; overflow-wrap: anywhere; }
#adaptive-method .study-panel th, #adaptive-method .study-panel td { padding: 12px 8px 12px 0; }
#adaptive-method .study-panel button { background: white; border: 1px solid #aaa; color: inherit; font: inherit; }
.mobile-menu .method-nav-link { font-weight: 700; }

/* The coastal section follows the last drawing, before the existing credits. */
#coast-method { margin: 90px 14px 0; }
.project-rail .method-jump { display: block; margin-top: 12px; width: min(100%, 200px); box-sizing: border-box; color: #aaa; border-color: #555; }
.project-rail .method-jump:hover { color: var(--red); border-color: currentColor; }
@media(max-width: 900px) { .project-method .method-facts { gap: 22px; } }
@media(max-width: 768px) {
  .project-method { scroll-margin-top: 28px; padding-top: 26px; }
  .project-method .method-facts { grid-template-columns: 1fr; gap: 23px; }
  .project-method .method-lead { font-size: 14px; margin-bottom: 28px; }
  .project-method dd { font-size: 12px; }
  #pulse-method { width: calc(100% - 28px); margin: 28px 14px 0; }
  body.project-open.method-reading .project-side-panel { visibility: hidden; pointer-events: none; }
  body.project-open #pulse-actions .method-jump { width: 100%; font-size: clamp(7px, 1.9vw, 9.5px); padding: 9px 5px; min-height: 38px; }
  #coast-method { grid-column: 1/-1; grid-row: 5; margin: 60px 14px 0; }
  body:has(#coast-method) .project-footer { grid-row: 6; }
  .project-rail .method-jump { width: 100%; font-size: clamp(8px, 1.9vw, 10px); }
  #adaptive-method { scroll-margin-top: 82px; }
  #adaptive-method .study-panel { font-size: 12px; }
}
@media(prefers-reduced-motion: reduce) { html { scroll-behavior: auto !important; } }

/* Numbered vector figures use the project's own palette and reading width. */
.project-method .method-figure { margin: 0 0 44px; padding: 18px 0 22px; border-top: 1px solid var(--method-rule); border-bottom: 1px solid var(--method-rule); scroll-margin-top: 90px; }
.project-method .method-figure picture { display: block; }
.project-method .method-figure img { display: block; width: 100%; height: auto; max-height: none; margin: 0; }
.project-method .method-figure figcaption { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 22px; padding-top: 20px; color: var(--method-muted); font-size: 11px; line-height: 1.65; }
.project-method .method-figure figcaption strong { color: inherit; font-weight: 600; }
.project-method .method-figure figcaption a { white-space: nowrap; }
#adaptive-method:has(.method-figure) { padding-top: clamp(54px, 6vw, 90px); }
#adaptive-method .method-figure figcaption { font-size: 12px; }
@media(max-width: 600px) {
  .project-method .method-figure { padding-top: 12px; margin-bottom: 32px; }
  .project-method .method-figure figcaption { grid-template-columns: 1fr; gap: 10px; }
}
