/* hub page "n8n automations" (/n8n/) — self-contained, uses the site tokens */
.nh { max-width: var(--wrap); }
.nh-hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(18px, 3vw, 34px); align-items: center;
  margin: 18px 0 6px; padding: clamp(22px, 4vw, 40px);
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(720px 320px at 8% -10%, rgba(255, 180, 84, .16), transparent 62%),
    radial-gradient(620px 300px at 100% 110%, rgba(92, 232, 200, .12), transparent 60%),
    linear-gradient(180deg, var(--panel), var(--bg-2));
  overflow: hidden;
}
.nh-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 70% 80% at 75% 50%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 75% 50%, #000, transparent 72%);
}
.nh-hero > * { position: relative; }
.nh-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 11.5px var(--font-m); text-transform: uppercase; letter-spacing: .1em;
  color: var(--ok); padding: 5px 12px 5px 10px; border-radius: 999px;
  background: var(--ok-soft); border: 1px solid rgba(92, 232, 200, .3);
}
.nh-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(92, 232, 200, .5); animation: nh-pulse 2.4s var(--ease) infinite; }
h1.nh-h1 { margin: 14px 0 10px; font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.02; letter-spacing: -.02em; }
.nh-h1 em { font-style: normal; background: linear-gradient(100deg, var(--accent), #ffd9a3 55%, var(--ok)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nh-hero .post-lead { max-width: 46ch; }
.nh-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.nh-stat {
  min-width: 108px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255, 255, 255, .025);
}
.nh-stat b { display: block; font: 600 22px/1.1 var(--font-m); color: var(--text); }
.nh-stat span { font-size: 11.5px; color: var(--muted); }
.nh-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.nh-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px;
  background: var(--accent); color: var(--ink) !important; font: 600 13.5px var(--font-m);
  border: 1px solid transparent; transition: transform .25s var(--ease), filter .25s;
}
.nh-btn:hover { text-decoration: none; transform: translateY(-1px); filter: brightness(1.06); }
.nh-btn-ghost { background: transparent; color: var(--text) !important; border-color: var(--line-2); }
.nh-btn-ghost:hover { border-color: var(--accent); color: var(--accent) !important; }

/* node graph */
.nh-flow { width: 100%; height: auto; display: block; overflow: visible; }
.nh-flow .nh-link { fill: none; stroke: var(--line-2); stroke-width: 1.6; stroke-dasharray: 5 7; animation: nh-dash 2.2s linear infinite; }
.nh-flow .nh-link.is-accent { stroke: rgba(255, 180, 84, .7); }
.nh-flow .nh-node rect { fill: var(--panel-2); stroke: var(--line-2); stroke-width: 1.4; }
.nh-flow .nh-node.is-accent rect { stroke: var(--accent); }
.nh-flow .nh-node.is-ok rect { stroke: rgba(92, 232, 200, .6); }
.nh-flow text { font-family: var(--font-m); font-size: 11px; fill: var(--muted); text-anchor: middle; }
.nh-flow .is-accent text { fill: var(--accent); }
.nh-flow .is-ok text { fill: var(--ok); }
.nh-flow .nh-port { fill: var(--line-2); }
.nh-flow .nh-port.is-accent { fill: var(--accent); }

/* section headings */
.nh-sec { padding: 0; margin-top: 46px; }
.nh-sec-head h2.h2 { margin: 0; }
.nh-sec-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.nh-count {
  font: 500 11.5px var(--font-m); color: var(--accent);
  border: 1px solid rgba(255, 180, 84, .35); background: var(--accent-soft);
  border-radius: 999px; padding: 2px 10px;
}
.nh-lead { color: var(--muted); font-size: 14.5px; margin-top: 4px; }

/* workflow cards */
.nh-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.nh-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  color: var(--text); transition: transform .35s var(--ease), border-color .3s, box-shadow .35s, background .3s;
}
.nh-card:hover {
  text-decoration: none; transform: translateY(-4px); border-color: rgba(255, 180, 84, .5);
  background: var(--panel-2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255, 180, 84, .16);
}
.nh-ico {
  width: 42px; height: 42px; display: grid; place-items: center; font-size: 20px; line-height: 1;
  border-radius: 12px; background: var(--accent-soft); border: 1px solid rgba(255, 180, 84, .25);
}
.nh-num { position: absolute; top: 18px; right: 18px; font: 500 11px var(--font-m); color: var(--dim); letter-spacing: .06em; }
.nh-tag { font: 500 10.5px var(--font-m); text-transform: uppercase; letter-spacing: .09em; color: var(--ok); }
.nh-card h3 { font: 600 16px/1.35 var(--font-b); color: var(--text); }
.nh-card p { font-size: 14px; line-height: 1.55; color: var(--muted); flex: 1; }
.nh-go { margin-top: 4px; font: 500 12.5px var(--font-m); color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.nh-card:hover .nh-go span { transform: translateX(3px); }
.nh-go span { transition: transform .3s var(--ease); }

/* downloads */
.nh-dl { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0 4px; padding: 0; }
.nh-dl li { min-width: 0; }
.nh-dl a {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
  color: var(--text); font-size: 13.5px; transition: border-color .25s, transform .25s var(--ease);
}
.nh-dl a:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); }
.nh-dl .nh-ic { font-size: 16px; }
.nh-dl .nh-file { margin-left: auto; font: 10.5px var(--font-m); color: var(--dim); white-space: nowrap; }

/* why n8n */
.nh-feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.nh-feat > div { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.nh-feat b { display: block; margin-bottom: 6px; font: 600 14px var(--font-m); color: var(--text); }
.nh-feat p { color: var(--muted); font-size: 14px; }
.nh-outro { margin-top: 34px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.nh-outro a { font: 600 14px var(--font-m); }

@keyframes nh-dash { to { stroke-dashoffset: -24; } }
@keyframes nh-pulse {
  0% { box-shadow: 0 0 0 0 rgba(92, 232, 200, .45); }
  70% { box-shadow: 0 0 0 7px rgba(92, 232, 200, 0); }
  100% { box-shadow: 0 0 0 0 rgba(92, 232, 200, 0); }
}

@media (max-width: 900px) {
  .nh-hero { grid-template-columns: 1fr; }
  .nh-grid, .nh-dl, .nh-feat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nh-visual { max-width: 430px; margin: 0 auto; width: 100%; }
}
@media (max-width: 620px) {
  .nh-grid, .nh-dl, .nh-feat { grid-template-columns: 1fr; }
  .nh-h1 { font-size: 2.05rem; }
  .nh-file { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nh-flow .nh-link, .nh-dot { animation: none !important; }
  .nh-card, .nh-dl a, .nh-btn, .nh-go span { transition: none !important; }
  .nh-card:hover, .nh-dl a:hover, .nh-btn:hover { transform: none; }
}

/* Alle-Workflows-Liste (ops/build_n8nall.py) */
.na-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.na-list li a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line, rgba(127,127,127,.25));
  border-radius: 12px; text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
.na-list li a:hover, .na-list li a:focus-visible { border-color: var(--accent); transform: translateY(-1px); }
.na-list .nh-ic { font-size: 22px; flex: 0 0 auto; }
.na-t { display: grid; gap: 3px; flex: 1 1 auto; min-width: 0; }
.na-t b { font-size: 16px; }
.na-t span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.na-list .nh-tag { flex: 0 0 auto; }
