/* /portfolio/technical/: a blueprint. A fine grid on the playfield, the data flowing through pipes of
   blocks into templates and pages, then a spec sheet of the work. */
.tec { color: var(--ink); }
.tec h2 { margin: 0 0 16px; font: 800 var(--h2)/1.08 var(--face); font-stretch: 112%; letter-spacing: -0.02em; text-wrap: balance; max-width: 30ch; }
.tec code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.9em; }
.tec-hero { padding-block: clamp(10px, 2.5vw, 32px) clamp(32px, 5vw, 64px);
  background-image: linear-gradient(rgba(106, 169, 216, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(106, 169, 216, 0.12) 1px, transparent 1px);
  background-size: 16px 16px; }
.tec-crumb { display: flex; align-items: center; gap: 8px; color: var(--bone-soft); font-size: 0.95rem; }
.tec-crumb a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.tec-switch ul { list-style: none; margin: 0 0 6px; padding: 0; display: flex; gap: 0; border-bottom: 1px solid #3a3f4b; }
.tec-switch a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; color: var(--bone-soft); text-decoration: none; font-weight: 700; }
.tec-switch a[aria-current] { color: var(--bone); box-shadow: inset 0 -4px 0 var(--sky); }
@media (hover: hover) { .tec-switch a:not([aria-current]):hover { color: var(--bone); } }
.tec-hero h1 { margin: 12px 0 16px; font: 800 var(--h1-page)/1.04 var(--face); font-stretch: 112%; letter-spacing: -0.025em; text-wrap: balance; max-width: 24ch; }
.tec-lede { margin: 0 0 26px; font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.55; }

/* One connected path, rather than four unrelated service cards. */
.tec-scope { padding-block: var(--section); }
.tec-kicker { margin: 0 0 10px; color: var(--work-ink); font-size: .84rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tec-path { display: grid; grid-template-columns: 1fr; margin: 24px 0 0; padding: 0; list-style: none; border: 2px solid var(--ink); background: var(--sheet); }
.tec-path li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 0 12px; padding: 16px; border-bottom: 2px solid var(--ink); }
.tec-path li:last-child { border-bottom: 0; }
.tec-path-n { grid-row: span 2; align-self: start; display: grid; place-items: center; width: 40px; height: 40px; background: var(--piece-i); color: var(--ink); font-weight: 800; box-shadow: inset 0 -4px 0 rgba(0,0,0,.2); }
.tec-path li:nth-child(2) .tec-path-n { background: var(--piece-o); }
.tec-path li:nth-child(3) .tec-path-n { background: var(--piece-j); }
.tec-path li:nth-child(4) .tec-path-n { background: var(--piece-s); }
.tec-path h3 { margin: 0; font-size: 1.12rem; line-height: 1.25; }
.tec-path p { margin: 4px 0 0; color: var(--ink-soft); font-size: .96rem; line-height: 1.45; }
.tec-scope-note { margin: 18px 0 0; max-width: 70ch; font-weight: 650; }
@media (min-width: 900px) {
  .tec-path { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tec-path li { display: block; min-height: 220px; border-bottom: 0; border-right: 2px solid var(--ink); padding: 20px; }
  .tec-path li:last-child { border-right: 0; }
  .tec-path-n { margin-bottom: 18px; }
}

.tec-work { background: var(--sheet); }
.tec-example { padding-block: var(--section); color: var(--bone); }
.tec-example .tec-kicker { color: inherit; }
.tec-example .tec-lede { max-width: 72ch; }
.tec-close { padding-block: 10px clamp(48px, 7vw, 88px); }

/* The diagram: data, pipe, templates, pipe, pages */
.tec-diagram { margin: 0; display: grid; gap: 0; justify-items: start; }
.tec-node { display: grid; gap: 4px; padding: 14px 16px; background: var(--field-2); border-radius: var(--radius); box-shadow: inset 0 0 0 2px #3a3f4b, 0 6px 0 rgba(0, 0, 0, 0.35); min-width: min(100%, 260px); }
.tec-kind { color: var(--bone-soft); font-size: 0.85rem; font-weight: 700; }
.tec-node--data { box-shadow: inset 0 0 0 2px var(--piece-o), 0 6px 0 rgba(0, 0, 0, 0.35); }
.tec-node--data code { color: var(--piece-o); font-size: 1rem; }
.tec-val { font-weight: 800; font-size: 1.2rem; }
.tec-node--tpl { box-shadow: inset 0 0 0 2px var(--sky), 0 6px 0 rgba(0, 0, 0, 0.35); }
.tec-node--pages { list-style: none; margin: 0; box-shadow: inset 0 0 0 2px var(--piece-i), 0 6px 0 rgba(0, 0, 0, 0.35); }
.tec-node--pages li { min-height: 44px; display: flex; align-items: center; }
.tec-pipe { display: grid; gap: 3px; padding: 6px 0 6px 28px; }
.tec-pipe i { width: 12px; height: 12px; background: var(--piece-o); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.3); }
.tec-diagram figcaption { margin-top: 18px; color: var(--bone-soft); line-height: 1.5; }
@media (min-width: 900px) {
  .tec-diagram { grid-template-columns: auto auto auto auto auto; align-items: center; justify-content: start; }
  .tec-pipe { grid-auto-flow: column; padding: 0 10px; }
  .tec-diagram figcaption { grid-column: 1 / -1; }
}

/* The rule */
.tec-rule, .tec-work { padding-block: var(--section-tight); }
.tec-rule-grid { display: grid; gap: 16px 48px; }
@media (min-width: 900px) { .tec-rule-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tec-plain { font-size: 1.12rem; line-height: 1.55; }
.tec-reason { padding: 12px 14px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--paper-line); border-radius: var(--radius); color: var(--ink-soft); line-height: 1.55; }
.tec-reason strong { color: var(--ink); }
.tec-quote { margin: 0 0 14px; padding: 16px 18px; background: var(--field); color: var(--bone); border-radius: var(--radius); box-shadow: 0 6px 0 rgba(0, 0, 0, 0.18); }
.tec-quote p { margin: 0 0 6px; font-weight: 700; line-height: 1.45; }
.tec-quote footer { color: var(--bone-soft); font-size: 0.88rem; }
.tec-quote a { color: var(--bone); }
.tec-quote--big p { font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.2; color: var(--piece-o); }

/* Three questions */
.tec-questions { background: var(--sheet); padding-block: var(--section-tight); }
.tec-questions .tec-quote { }
.tec-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.tec-table thead th { text-align: left; font-size: 0.9rem; color: var(--ink-soft); padding: 8px 12px; border-bottom: 2px solid var(--ink); }
.tec-table tbody th, .tec-table td { padding: 14px 12px; text-align: left; vertical-align: top; line-height: 1.5; border-bottom: 1px dashed #c3cad3; }
.tec-table tbody th { font-weight: 800; }
.tec-cite { margin: 14px 0 0; color: var(--ink-soft); line-height: 1.5; }
.tec-cite a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 759px) {
  .tec-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tec-table, .tec-table tbody, .tec-table tr, .tec-table th, .tec-table td { display: block; }
  .tec-table tr { padding: 10px 0; border-bottom: 1px dashed #c3cad3; }
  .tec-table tbody th, .tec-table td { border: 0; padding: 4px 0; }
  .tec-table td::before { content: attr(data-label); display: block; font-size: 0.85rem; color: var(--ink-soft); font-weight: 700; }
}

/* The spec sheet */
.tec-spec { margin: 0; display: grid; border-top: 2px solid var(--ink); }
.tec-spec > div { display: grid; gap: 2px 32px; padding: 10px 0; border-bottom: 1px solid var(--paper-line); }
@media (min-width: 900px) { .tec-spec > div { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; } }
.tec-spec dt a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; }
.tec-spec dd { margin: 0; line-height: 1.5; }
.tec-next { margin-top: 28px; }
.tec-next p { margin: 0 0 10px; }
.tec-next a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; }
