/* ════════════════════════════════════════════════════════
   TempGroup Suisse — Blog / News styles
   ════════════════════════════════════════════════════════ */

/* Category color tokens */
.cat-ki        { --c: #1F4E78; --ct: #EAF1F8; }
.cat-coding    { --c: #5B3E8E; --ct: #EFEAF7; }
.cat-technik   { --c: #1E5C46; --ct: #E6F1EC; }
.cat-hardware  { --c: #9A3412; --ct: #F8ECE6; }
.cat-security  { --c: #B81C22; --ct: #FCEEEE; }

/* ─── Shared: article card ─── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
html[data-theme="dark"] .post-card { background: var(--bg-soft); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); border-color: var(--line-strong); }

.post-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(120% 120% at 0% 0%, color-mix(in oklab, var(--c) 88%, #000) 0%, var(--c) 55%, color-mix(in oklab, var(--c) 70%, #fff) 100%);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.post-cover::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 30%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 30%, black, transparent 80%);
}
.post-cover .pc-ico {
  position: relative;
  width: 56px; height: 56px;
  color: #fff;
  opacity: 0.95;
}
.post-cover .pc-ico svg { width: 100%; height: 100%; }
.post-cover .pc-tag {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.28);
  padding: 5px 11px;
  border-radius: 99px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.post-cover .pc-watermark {
  position: absolute;
  right: 14px; bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
}

.post-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}
.post-meta .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-muted); }
.post-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--ink);
  margin-bottom: 10px;
  text-wrap: pretty;
}
.post-card p {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 18px;
}
.post-card .post-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c, var(--blue));
  font-weight: 600;
  font-size: 14px;
}
.post-card .post-more .arrow { transition: transform 0.2s var(--ease); }
.post-card:hover .post-more .arrow { transform: translateX(3px); }

/* Homepage blog section header row */
.blog-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(36px, 5vw, 56px);
}

/* ════════════════════════════════════════════
   BLOG INDEX PAGE
   ════════════════════════════════════════════ */
.blog-hero,
.page-hero {
  padding-top: clamp(120px, 16vh, 170px);
  padding-bottom: clamp(40px, 6vw, 64px);
  position: relative;
  overflow: hidden;
}
.blog-hero::before,
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(900px 460px at 80% 0%, var(--blue-tint), transparent 60%);
  pointer-events: none;
}
.blog-hero h1,
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 600;
  letter-spacing: -0.032em;
  line-height: 1.05;
  color: var(--ink);
  margin: 20px 0 18px;
  max-width: 18ch;
  text-wrap: balance;
}
.blog-hero p,
.page-hero p {
  color: var(--ink-soft);
  font-size: clamp(16px, 1.4vw, 19px);
  max-width: 56ch;
}
.page-hero .pill { margin-bottom: 4px; }

/* Explore / teaser link cards (homepage) */
.explore-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
@media (max-width: 760px) { .explore-grid { grid-template-columns: 1fr; } }
.explore-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 34px 34px 30px;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
html[data-theme="dark"] .explore-card { background: var(--bg-soft); }
.explore-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); border-color: var(--line-strong); }
.explore-card .ec-eyebrow {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--blue-mid);
}
.explore-card h3 {
  font-family: var(--font-display); font-size: 24px; font-weight: 600;
  letter-spacing: -0.022em; color: var(--ink);
}
.explore-card p { color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.explore-card .post-more { margin-top: auto; color: var(--blue); font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; gap: 8px; }
.explore-card .post-more .arrow { transition: transform 0.2s var(--ease); }
.explore-card:hover .post-more .arrow { transform: translateX(3px); }

/* CTA band */
.cta-band {
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius-l);
  padding: clamp(36px, 5vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-float);
}
.cta-band::before {
  content: ""; position: absolute; inset: -50% -10% auto auto;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(255,255,255,0.14), transparent 65%);
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 600; letter-spacing: -0.026em; line-height: 1.08;
  position: relative; max-width: 20ch; text-wrap: balance;
}
.cta-band p { color: rgba(255,255,255,0.82); font-size: 16px; margin-top: 12px; position: relative; max-width: 46ch; }
.cta-band .btn-white {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px;
  background: #fff; color: var(--blue); font-weight: 600; font-size: 15px;
  position: relative;
  transition: transform 0.2s var(--ease), background 0.2s;
  white-space: nowrap;
}
.cta-band .btn-white:hover { transform: translateY(-2px); background: #EAF1F8; }
.cta-band .btn-white .arrow { transition: transform 0.25s var(--ease); }
.cta-band .btn-white:hover .arrow { transform: translateX(3px); }

/* Category filter chips */
.cat-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.15s;
}
html[data-theme="dark"] .cat-chip { background: var(--bg-soft); }
.cat-chip:hover { transform: translateY(-1px); color: var(--ink); border-color: var(--ink-muted); }
.cat-chip .swatch { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--blue)); }
.cat-chip.is-active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}
.cat-chip.is-active .swatch { background: #fff; }

/* Featured (first) post — wide */
.post-featured {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--panel);
  margin-bottom: 26px;
}
html[data-theme="dark"] .post-featured { background: var(--bg-soft); }
@media (max-width: 800px) { .post-featured { grid-template-columns: 1fr; } }
.post-featured .post-cover { aspect-ratio: auto; min-height: 280px; }
.post-featured .post-cover .pc-ico { width: 72px; height: 72px; }
.post-featured .post-body { padding: clamp(28px, 4vw, 44px); justify-content: center; }
.post-featured h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 600;
  letter-spacing: -0.026em;
  line-height: 1.12;
  color: var(--ink);
  margin: 4px 0 14px;
  text-wrap: balance;
}
.post-featured p { font-size: 16px; max-width: 50ch; }
.post-featured .post-more { font-size: 15px; }

.newsletter {
  margin-top: clamp(48px, 7vw, 80px);
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius-l);
  padding: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-float);
}
@media (max-width: 760px) { .newsletter { grid-template-columns: 1fr; } }
.newsletter::before {
  content: ""; position: absolute; inset: -50% -10% auto auto;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(255,255,255,0.14), transparent 65%);
}
.newsletter h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600; letter-spacing: -0.026em; line-height: 1.1;
  margin-bottom: 12px; position: relative; text-wrap: balance;
}
.newsletter p { color: rgba(255,255,255,0.82); font-size: 15.5px; position: relative; max-width: 44ch; }
.nl-form { position: relative; display: flex; gap: 10px; flex-wrap: wrap; }
.nl-form input {
  flex: 1; min-width: 200px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  padding: 14px 20px;
  color: #fff; font: inherit; font-size: 15px;
  outline: none;
}
.nl-form input::placeholder { color: rgba(255,255,255,0.7); }
.nl-form input:focus { border-color: #fff; background: rgba(255,255,255,0.18); }
.nl-form button {
  padding: 14px 24px;
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-weight: 600; font-size: 15px;
  transition: transform 0.2s, background 0.2s;
}
.nl-form button:hover { transform: translateY(-2px); background: #EAF1F8; }
.nl-ok { margin-top: 12px; font-family: var(--font-mono); font-size: 12.5px; color: #CFE6FF; position: relative; display: none; }

/* ════════════════════════════════════════════
   ARTICLE PAGE
   ════════════════════════════════════════════ */
.article-wrap { padding-top: clamp(110px, 14vh, 150px); }
.article-head { max-width: 760px; margin: 0 auto; padding: 0 var(--shell-pad); }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted);
  margin-bottom: 22px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--ink-muted); }
.breadcrumb a:hover { color: var(--blue); }
.cat-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c, var(--blue));
}
.cat-label .swatch { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--blue)); }

.article-head h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 50px);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1.07;
  color: var(--ink); margin: 16px 0 18px; text-wrap: balance;
}
.article-deck { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-soft); line-height: 1.55; margin-bottom: 26px; text-wrap: pretty; }
.article-byline {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-soft); flex-wrap: wrap;
}
.byline-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
}
.byline-meta { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }
.byline-meta .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-muted); }

.article-cover {
  max-width: 980px; margin: 32px auto; padding: 0 var(--shell-pad);
}
.article-cover-inner {
  aspect-ratio: 21 / 9;
  border-radius: var(--radius-l);
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 120% at 0% 0%, color-mix(in oklab, var(--c) 88%, #000) 0%, var(--c) 55%, color-mix(in oklab, var(--c) 70%, #fff) 100%);
  display: grid; place-items: center;
  box-shadow: var(--shadow-float);
}
.article-cover-inner::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 30%, black, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 30%, black, transparent 78%);
}
.article-cover-inner .pc-ico { position: relative; width: 84px; height: 84px; color: #fff; opacity: 0.95; }

/* Prose */
.prose {
  max-width: 720px;
  margin: 8px auto 0;
  padding: 0 var(--shell-pad) clamp(60px, 8vw, 90px);
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.prose > * + * { margin-top: 1.3em; }
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(23px, 2.6vw, 30px);
  font-weight: 600; letter-spacing: -0.022em; line-height: 1.2;
  color: var(--ink); margin-top: 1.9em;
}
.prose h3 {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 600; letter-spacing: -0.018em;
  color: var(--ink); margin-top: 1.6em;
}
.prose p { text-wrap: pretty; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-top: 0.5em; }
.prose li::marker { color: var(--blue-mid); }
.prose blockquote {
  border-left: 3px solid var(--blue);
  padding: 6px 0 6px 22px;
  margin-left: 0;
  color: var(--ink);
  font-size: 1.08em;
  font-style: italic;
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--bg-soft-2);
  padding: 2px 7px;
  border-radius: 6px;
  color: var(--blue);
}
.prose pre {
  background: #0E1622;
  color: #EAF0F6;
  border-radius: var(--radius-m);
  padding: 20px 22px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.7;
}
.prose pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.prose .callout {
  background: var(--blue-tint);
  border: 1px solid color-mix(in oklab, var(--blue) 24%, transparent);
  border-radius: var(--radius-m);
  padding: 20px 22px;
  font-size: 16px;
  color: var(--ink);
}
.prose .callout b { color: var(--blue); }
.prose figure { margin: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

.article-foot {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--shell-pad);
}
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.article-tags span {
  font-family: var(--font-mono); font-size: 11.5px;
  padding: 5px 12px; border: 1px solid var(--line); border-radius: 99px;
  color: var(--ink-muted); background: var(--bg-soft);
}
.article-cta {
  margin: 36px auto 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding: 24px 28px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius-l);
}
.article-cta p { font-family: var(--font-display); font-weight: 500; font-size: 17px; color: var(--ink); }

/* Related */
.related { background: var(--bg-soft); border-top: 1px solid var(--line); }
.related h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600; letter-spacing: -0.022em; color: var(--ink);
  margin-bottom: 28px;
}
