/* Guide content beneath the portfolio's shared navigation and hero. */
.guide-byline { margin: 1.2rem 0 0; font-size: .75rem; }
.intro > p:first-child { margin: 0; }
.path { display: flex; flex-wrap: wrap; gap: .4rem .75rem; padding-block: 1rem; border-block: 1px solid var(--hair); font-size: .8rem; }
.path b { color: var(--phosphor); font-weight: 400; }
.layout { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; padding-block: 3.5rem; }
.toc { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow: auto; padding: .35rem; }
.toc a { display: block; padding-block: .38rem; text-decoration: none; font-size: .8rem; }
.toc .label { margin: 0 0 .7rem; }
.label, .section-top, .prompt-label { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.label, article a { color: var(--phosphor); }
article { min-width: 0; }
article section { scroll-margin-top: 1rem; margin-block-end: 4rem; }
article p { margin: 0 0 1.1rem; }
article h2 { margin: 1.25rem 0; font: 500 clamp(1.7rem, 1.2rem + 2vw, 2.6rem)/1.16 var(--mono); color: #d0e9d8; letter-spacing: -.04em; }
article h3 { margin: 0 0 .4rem; font-size: 1rem; line-height: 1.5; }
article strong { color: #d0e9d8; font-weight: 600; }
.section-top, .prompt-label { display: flex; gap: .4rem 1rem; flex-wrap: wrap; justify-content: space-between; }
.section-top { border-bottom: 1px solid var(--hair); padding-block-end: .65rem; }
.section-intro { max-width: 70ch; color: #c2decb; }
.tools { border-top: 1px solid var(--hair); }
.tool { display: grid; grid-template-columns: minmax(9rem, 1fr) minmax(0, 2fr); gap: 1.25rem; padding-block: 1rem; border-bottom: 1px solid var(--hair); }
.tool p, .format-item p { margin: 0; font-size: .9rem; }
.note, .format-item { background: var(--panel); border: 1px solid var(--hair); padding: 1.25rem; font-size: .9rem; }
.note { margin-block: 1.5rem; border-inline-start-color: var(--phosphor); }
article ol { padding-inline-start: 2.25rem; }
article ol li { border-top: 1px solid var(--hair); padding: 1rem .4rem; }
article ol li::marker { font-size: .85rem; color: var(--phosphor); }
article ol p { margin: .3rem 0 0; font-size: .9rem; }
.format-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .85rem; margin-block: 1.5rem; }
.status { font-size: .8rem; }
.download { display: inline-flex; align-items: center; min-height: 44px; }
.table-wrap { overflow: auto; max-height: min(40rem, 75vh); border: 1px solid var(--hair); background: var(--panel); }
.table-wrap:focus-visible { outline: 2px solid var(--phosphor); outline-offset: 3px; }
table { width: 100%; min-width: 43rem; border-spacing: 0; font-size: .82rem; }
caption { text-align: left; padding: .8rem 1rem; font-weight: 600; }
td, th { padding: .7rem .85rem; border-top: 1px solid var(--hair); text-align: start; vertical-align: top; }
thead th { position: sticky; top: 0; background: var(--panel); color: var(--phosphor); z-index: 2; }
tbody th { position: sticky; left: 0; background: var(--panel); min-width: 8.5rem; z-index: 1; }
thead th:first-child { left: 0; z-index: 3; }
.prompt-label, pre { background: var(--panel); border: 1px solid var(--hair); padding: .85rem 1rem; }
.prompt-label { color: var(--phosphor); }
.prompt-next { margin-block-start: 1.5rem; }
pre { margin: 0; border-top: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: .88rem/1.7 var(--mono); }
.guide-contribute { margin-block: 3rem 4rem; }
.guide-contribute .spotlight-copy { padding: 0 1.5rem 1.5rem; }
.guide-contribute a { text-decoration: none; }

/* The guide's callouts use the same three-part ray as the portfolio cards. */
.note, .format-item, .guide-contribute { position: relative; }
.guide-ray { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); overflow: visible; pointer-events: none; opacity: 0; fill: none; stroke: var(--phosphor); stroke-width: 2.5; filter: drop-shadow(0 0 5px #3df07a88); }
.guide-ray rect { width: calc(100% - 1px); height: calc(100% - 1px); }
.guide-ray .ray-tail { stroke-dasharray: 6 94; opacity: .45; }
.guide-ray .ray-mid { stroke-dasharray: 3 97; opacity: .85; }
.guide-ray .ray-tip { stroke-dasharray: 1 99; stroke: #d6ffe4; stroke-width: 3; }
@media (prefers-reduced-motion: no-preference) {
  :is(.note, .format-item, .guide-contribute):focus-within .guide-ray { opacity: 1; }
  :is(.note, .format-item, .guide-contribute):focus-within .guide-ray rect { animation: card-ray 5s linear infinite; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  :is(.note, .format-item, .guide-contribute):hover .guide-ray { opacity: 1; }
  :is(.note, .format-item, .guide-contribute):hover .guide-ray rect { animation: card-ray 5s linear infinite; }
}
html[data-embed] .guide-ray { display: none; }
@media (forced-colors: active) { .guide-ray { display: none; } }

@media (max-width: 750px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding-block: 2rem; }
  .toc { position: static; max-height: none; overflow: visible; display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
  .toc .label { flex-basis: 100%; margin: 0; }
  .tool { grid-template-columns: 1fr; gap: .15rem; }
}
@media print {
  #field, .topbar, .skip, .toc, .motion { display: none; }
  .shell { width: 100%; }
  .layout { display: block; }
  .table-wrap { overflow: visible; max-height: none; }
  table { min-width: 0; }
  th, td { min-width: 0; padding: .25rem; }
  thead th, tbody th { position: static; }
  body, article, .note, .format-item, pre, .table-wrap { background: white; color: black; }
  article :is(h2, h3, strong, a), .section-intro, .label { color: black; }
}
@media (forced-colors: active) { #field { display: none; } }
