/* Guide tecniche: l'indice e le pagine per argomento. Il testo delle guide segue .prose
   (testo.css); qui il percorso, il riquadro «in breve», i fogli d'esempio, le fonti e il fondo. */

/* ---- Indice ---- */
.tech-hub {
  padding-block: var(--sp-6) var(--sp-8);
}
.tech-hub__list {
  list-style: none;
  margin: var(--sp-6) 0 0;
  padding: 0;
  display: grid;
  column-gap: var(--sp-7);
}
.tech-hub__item {
  margin: 0;
  max-width: none;
  padding: var(--sp-5) 0;
  border-top: var(--rule);
}
.tech-hub__item h2 {
  font-size: var(--fs-l);
  letter-spacing: -0.015em;
  margin: 0 0 var(--sp-2);
}
.tech-hub__item h2 a {
  text-decoration: none;
}
.tech-hub__item h2 a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.tech-hub__item p {
  margin: 0;
  color: var(--ink-2);
}
.tech-hub__note {
  margin-top: var(--sp-4);
  font-size: var(--fs-s);
  max-width: var(--measure);
}
@media (min-width: 48rem) {
  .tech-hub__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- Guida ---- */
.tech-crumbs {
  padding-top: var(--sp-6);
  font-size: var(--fs-s);
}
.tech-crumbs a {
  color: var(--ink-2);
  text-decoration: none;
}
.tech-crumbs a:hover {
  color: var(--blue);
  text-decoration: underline;
}
.tech-crumbs a::after {
  content: ' ›';
}
.tech-crumbs + .prose {
  padding-top: var(--sp-3);
}

/* «In breve»: le risposte in poche righe, prima del testo lungo */
.tech-short {
  margin: var(--sp-5) 0 0;
  padding: var(--sp-4) var(--sp-5);
  background: var(--band);
  border-radius: var(--radius-l);
}
.tech-short > p:first-child {
  margin: 0 0 var(--sp-2);
  font-weight: 600;
}
.tech-short ul {
  margin: 0;
}
.tech-short li:last-child {
  margin-bottom: 0;
}

/* Un foglio vero degli esempi: si apre a schermo intero; il foglio resta bianco anche col tema
   scuro, come sulla carta */
.tech-figure {
  margin: var(--sp-5) 0;
}
.tech-figure > a {
  display: block;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.tech-figure > a:hover {
  border-color: var(--blue);
}
.tech-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.tech-figure figcaption {
  margin-top: var(--sp-2);
  font-size: var(--fs-s);
  color: var(--ink-2);
}
.tech-figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: var(--sp-5);
  margin: var(--sp-5) 0;
}
.tech-figures .tech-figure {
  margin: 0;
}

.tech-sources {
  font-size: var(--fs-s);
}
.tech-sources li {
  overflow-wrap: anywhere;
}

/* ---- Fondo: data, invito a provare, altre guide ---- */
.tech-end {
  max-width: 48rem;
  padding-bottom: var(--sp-8);
}
.tech-end__updated {
  margin-top: var(--sp-7);
  font-size: var(--fs-s);
}
.tech-try {
  margin-top: var(--sp-6);
  padding: var(--sp-5) var(--sp-6);
  background: var(--band);
  border-radius: var(--radius-l);
}
.tech-try h2 {
  margin-top: 0;
}
.tech-try p:last-child {
  margin-bottom: 0;
}
.tech-end__more {
  margin-top: var(--sp-7);
}
.tech-end__more h2 {
  font-size: var(--fs-l);
}
.tech-end__more ul {
  padding-left: var(--sp-5);
}
.tech-end__more li {
  margin-bottom: var(--sp-2);
}

.link-arrow {
  font-weight: 600;
  text-decoration: none;
}
.link-arrow .arrow {
  margin-left: var(--sp-1);
  vertical-align: -0.15em;
  transition: transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.link-arrow:hover .arrow {
  transform: translateX(3px);
}
@media (prefers-reduced-motion: reduce) {
  .link-arrow .arrow {
    transition: none;
  }
}

/* Disegno nello stile delle tavole del Metodo (stesso cielo, montagne e orizzonte) */
.tech-art {
  margin: var(--sp-5) 0;
}
.tech-art svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-l);
}
.tech-art figcaption {
  margin-top: var(--sp-2);
  font-size: var(--fs-s);
  color: var(--ink-2);
}
.tech-art .tv-sky-a {
  stop-color: #1d4ed8;
}
.tech-art .tv-sky-b {
  stop-color: #7393ee;
}
.tech-art .tv-ground {
  fill: #f5f7fa;
}
.tech-art .tv-hz {
  stroke: #ffffff;
}
@media screen {
  :root[data-theme='dark'] .tech-art .tv-sky-a {
    stop-color: #161a36;
  }
  :root[data-theme='dark'] .tech-art .tv-sky-b {
    stop-color: #d9733a;
  }
  :root[data-theme='dark'] .tech-art .tv-ground {
    fill: #221e1a;
  }
  :root[data-theme='dark'] .tech-art .tv-hz {
    stroke: rgb(255 220 170 / 0.85);
  }
}
