/* ==========================================================================
   ayedo public theme — semantic contract
   Edit this file in the repo (apps/publication/theme/static/css/main.css).
   Ships with the app image. No seed_theme. Do not introduce Tailwind utilities.
   Default look: fresh infrastructure company (Tailscale / fly.io / Railway),
   still credible for enterprise. Accent is #ADD015 and used sparingly.
   ========================================================================== */

/* --- tokens -------------------------------------------------------------- */
:root {
  --ayedo-primary: #ADD015;
  --ayedo-ink: #F4F4F1;
  --ayedo-paper: #0F0F0F;
  --ayedo-text: #D2D2C8;
  --ayedo-muted: #9A9A92;
  --ayedo-line: #2A2A28;
  --ayedo-dark: #0F0F0F;
  --ayedo-surface: #161615;
  --ayedo-max: 72rem;
  --ayedo-header: 4rem;
  --ayedo-radius: 12px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "gomme-sans", ui-sans-serif, system-ui, sans-serif;
}

@font-face {
  font-family: "gomme-sans";
  src: url("/fonts/gomme-sans/GommeSans-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "gomme-sans";
  src: url("/fonts/gomme-sans/GommeSans-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "gomme-sans";
  src: url("/fonts/gomme-sans/GommeSans-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

html:not(.dark) {
  --ayedo-ink: #161615;
  --ayedo-paper: #F7F7F4;
  --ayedo-text: #3A3A36;
  --ayedo-muted: #6A6A64;
  --ayedo-line: #D8D8D0;
  --ayedo-dark: #0F0F0F;
  --ayedo-surface: #FFFFFF;
}

/* --- reset / base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ayedo-paper);
  color: var(--ayedo-ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ayedo-primary); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4,
.hero-title, .section-title, .card-title, .post-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--ayedo-primary);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 80;
  padding: 0.5rem 0.75rem;
  background: var(--ayedo-primary);
  color: #111;
  font-weight: 600;
}
.skip-link:focus { top: 0.75rem; }
.wrap {
  width: min(100% - 2rem, var(--ayedo-max));
  margin-inline: auto;
}
.site-main { flex: 1 0 auto; }

/* --- buttons -------------------------------------------------------------
   Hugo contract: invert + outline. Accent stays off the fill so many
   CTAs do not flood the page with lime. */
.btn-primary,
.btn-featured,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.2rem;
  border: 1.5px solid transparent;
  border-radius: var(--ayedo-radius);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary,
.btn-featured {
  background: var(--ayedo-ink);
  border-color: var(--ayedo-ink);
  color: var(--ayedo-paper);
}
.btn-primary:hover,
.btn-featured:hover {
  background: color-mix(in srgb, var(--ayedo-ink) 86%, var(--ayedo-paper));
  border-color: color-mix(in srgb, var(--ayedo-ink) 86%, var(--ayedo-paper));
  color: var(--ayedo-paper);
}
.btn-outline {
  background: transparent;
  border-color: color-mix(in srgb, var(--ayedo-ink) 42%, var(--ayedo-line));
  color: var(--ayedo-ink);
}
.btn-outline:hover {
  background: var(--ayedo-ink);
  border-color: var(--ayedo-ink);
  color: var(--ayedo-paper);
}
.btn-sm {
  min-height: 2.15rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.8125rem;
}
.btn-full { width: 100%; }
.nav-mobile .btn-primary.btn-full {
  margin-top: 0.75rem;
  background: var(--ayedo-ink);
  border-color: var(--ayedo-ink);
  color: var(--ayedo-paper);
}
.nav-mobile .btn-primary.btn-full:hover {
  background: color-mix(in srgb, var(--ayedo-ink) 86%, var(--ayedo-paper));
  border-color: color-mix(in srgb, var(--ayedo-ink) 86%, var(--ayedo-paper));
  color: var(--ayedo-paper);
}

/* --- header / nav -------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--ayedo-header);
  background: color-mix(in srgb, var(--ayedo-paper) 92%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ayedo-line);
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--ayedo-header);
  width: min(100% - 2rem, 80rem);
  margin-inline: auto;
  gap: 1.5rem;
}
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo img { height: 1.75rem; width: auto; }
.logo-on-dark { display: block; }
.logo-on-light { display: none; }
html:not(.dark) .logo-on-dark { display: none; }
html:not(.dark) .logo-on-light { display: block; }

.nav-desktop { display: none; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-dropdown { position: relative; }
.nav-dropdown > button,
.nav-menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.55rem;
  color: var(--ayedo-ink);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--ayedo-radius);
}
.nav-dropdown > button:hover,
.nav-menu > li > a:hover { color: var(--ayedo-primary); }
.nav-caret { width: 0.7rem; height: 0.7rem; opacity: 0.7; }
.nav-panel {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 16rem;
  padding-top: 0.55rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.25rem);
  transition: opacity 0.12s ease, visibility 0.12s ease;
  z-index: 60;
}
.nav-dropdown:hover .nav-panel,
.nav-dropdown:focus-within .nav-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.nav-panel-inner {
  background: var(--ayedo-surface);
  border: 1px solid var(--ayedo-line);
  border-radius: var(--ayedo-radius);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  padding: 0.45rem 0;
}
.nav-panel-wide { min-width: 34rem; }
.nav-panel-wide .nav-panel-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0.6rem 0.35rem;
}
.nav-panel a {
  display: block;
  padding: 0.45rem 0.9rem;
  color: var(--ayedo-ink);
  font-size: 0.875rem;
}
.nav-panel a:hover { color: var(--ayedo-primary); }
.nav-panel-rule {
  grid-column: 1 / -1;
  height: 1px;
  margin: 0.3rem 0.9rem;
  background: var(--ayedo-line);
  border: 0;
}
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--ayedo-ink);
}
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.icon-close { display: none; }

.nav-mobile {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: var(--ayedo-header);
  max-height: calc(100dvh - var(--ayedo-header));
  overflow: auto;
  background: var(--ayedo-paper);
  border-bottom: 1px solid var(--ayedo-line);
  padding: 0.75rem 1rem 1.25rem;
}
.nav-mobile.is-open { display: block; }
.nav-acc > button {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0.15rem;
  font-weight: 600;
}
.nav-acc-panel { display: none; padding: 0 0 0.5rem 0.75rem; }
.nav-acc.is-open .nav-acc-panel { display: block; }
.nav-acc-panel a {
  display: block;
  padding: 0.4rem 0;
  color: var(--ayedo-muted);
  font-size: 0.9rem;
}
.nav-mobile-link {
  display: block;
  padding: 0.7rem 0.15rem;
  font-weight: 600;
}

@media (min-width: 1024px) {
  .nav-desktop { display: block; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* --- hero (Aylien as atmospheric wallpaper) ----------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ayedo-paper);
  border-bottom: 1px solid var(--ayedo-line);
}
.hero.has-wallpaper { min-height: 34rem; }
.hero-wallpaper {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-wallpaper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% center;
  opacity: 0.42;
}
html:not(.dark) .hero-wallpaper img { opacity: 0.22; }
.hero-wallpaper-light { display: none; }
.hero-wallpaper-dark { display: block; }
html:not(.dark) .hero-wallpaper-light { display: block; }
html:not(.dark) .hero-wallpaper-dark { display: none; }
.hero.has-wallpaper::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--ayedo-paper) 34%, color-mix(in srgb, var(--ayedo-paper) 62%, transparent) 58%, transparent 86%),
    linear-gradient(180deg, color-mix(in srgb, var(--ayedo-paper) 28%, transparent), transparent 28%, transparent 72%, var(--ayedo-paper));
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, 80rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding: 5rem 0 3.75rem;
}
.hero.has-wallpaper .hero-inner { min-height: 32rem; }
.hero-copy { position: relative; z-index: 2; max-width: 38rem; }
.hero-kicker {
  margin: 0 0 1rem;
  color: var(--ayedo-primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero-kicker[data-hashtag] {
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}
.hero-title {
  margin: 0 0 1.15rem;
  font-size: clamp(2rem, 3.4vw, 3.15rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ayedo-ink);
}
.hero-title p { margin: 0; }
.hero-title strong { color: var(--ayedo-primary); font-weight: 650; }
.hero-lead {
  margin: 0 0 1.75rem;
  color: var(--ayedo-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 36rem;
}
.hero-lead p { margin: 0; }
.hero-lead a { color: var(--ayedo-primary); text-decoration: underline; text-underline-offset: 0.15em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-trust { margin-top: 1.75rem; }
.hero-band {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--ayedo-line);
  padding: 1.25rem 0 1.5rem;
  background: color-mix(in srgb, var(--ayedo-paper) 82%, transparent);
  backdrop-filter: blur(10px);
}
.hero.is-article.has-wallpaper { min-height: 24rem; }
.hero.is-article.has-wallpaper .hero-inner { min-height: 22rem; }
.hero.is-article .hero-copy { max-width: 46rem; }
.hero.is-article .hero-lead { max-width: 42rem; margin-bottom: 1.15rem; }
.hero.is-article .post-meta {
  margin: 0 0 0.85rem;
  color: var(--ayedo-muted);
  font-size: 0.85rem;
}
.hero.is-article .post-tags {
  justify-content: flex-start;
  margin-top: 0;
}
@media (max-width: 800px) {
  .hero.has-wallpaper { min-height: 0; }
  .hero.has-wallpaper .hero-inner { min-height: 0; padding: 3.25rem 0 2.5rem; }
  .hero-wallpaper img {
    object-position: 70% 18%;
    opacity: 0.2;
  }
  html:not(.dark) .hero-wallpaper img { opacity: 0.12; }
  .hero.has-wallpaper::after {
    background: linear-gradient(180deg, var(--ayedo-paper) 42%, color-mix(in srgb, var(--ayedo-paper) 78%, transparent) 100%);
  }
  .hero.is-article.has-wallpaper { min-height: 0; }
  .hero.is-article.has-wallpaper .hero-inner { min-height: 0; }
}

/* --- sections / cards ---------------------------------------------------- */
.section { padding: 3rem 0; border-bottom: 1px solid var(--ayedo-line); }
.section-head {
  width: 100%;
  max-width: none;
  margin: 0 0 1.5rem;
  text-align: center;
}
.section-title {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  margin-bottom: 0.45rem;
}
.section-title p { margin: 0; }
.section-title strong { color: var(--ayedo-primary); font-weight: 650; }
.section-sub { margin: 0 auto; color: var(--ayedo-text); font-size: 1.05rem; line-height: 1.55; }
.section-sub p { margin: 0; }
.section-body { margin-top: 0.75rem; color: var(--ayedo-text); }
.prose-block { width: min(100% - 2rem, var(--ayedo-max)); margin: 0 auto; padding: 3.5rem 0 5rem; }
.prose-block.is-article,
.prose-block.is-page { width: min(100% - 2rem, var(--ayedo-max)); }
.text-section { max-width: 46rem; }
/* Hugo source: ayedo.de/themes/ayedo/layouts/partials/testimonial.html */
.testimonial {
  display: grid;
  grid-template-columns: minmax(10rem, 16rem) minmax(0, 1fr);
  gap: 2rem 3rem;
  align-items: center;
}
.testimonial-media { justify-self: start; }
.testimonial-media img {
  width: 16rem;
  height: 16rem;
  max-width: 16rem;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial-copy { max-width: 65ch; }
.testimonial-copy > blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--ayedo-text);
  font-size: 1.05rem;
  line-height: 1.65;
}
.testimonial-copy > blockquote > p { margin: 0 0 1rem; }
.testimonial-copy > blockquote > p:last-child { margin-bottom: 0; }
.testimonial-copy blockquote blockquote {
  margin: 1rem 0;
  padding: 0.15rem 0 0.15rem 1rem;
  border-left: 3px solid var(--ayedo-primary);
  color: var(--ayedo-ink);
  font-style: italic;
}
.testimonial-copy blockquote blockquote p { margin: 0; }
.testimonial-copy footer {
  margin-top: 1.25rem;
  color: var(--ayedo-muted);
}
.testimonial-copy cite { font-style: normal; }
.testimonial-copy cite a {
  color: var(--ayedo-primary);
  font-weight: 600;
}
@media (max-width: 48rem) {
  .testimonial {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .testimonial-media { justify-self: start; }
  .testimonial-media img {
    width: 12rem;
    height: 12rem;
    max-width: 12rem;
  }
}
.faq { display: grid; gap: 0.5rem; }
.faq-item {
  background: var(--ayedo-surface);
  border: 1px solid var(--ayedo-line);
  border-radius: var(--ayedo-radius);
  padding: 0.85rem 1rem;
}
.faq-item summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "";
  flex: 0 0 0.45rem;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.05rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
}
.faq-item[open] summary::before { transform: rotate(45deg); }
.faq-item summary p { margin: 0; flex: 1; min-width: 0; }
.faq-answer { margin-top: 0.65rem; padding-left: 1.05rem; color: var(--ayedo-text); }
.glossary-alpha {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1rem;
}
.glossary-letter {
  min-width: 2rem;
  padding: 0.3rem 0.45rem;
  border: 1px solid var(--ayedo-line);
  border-radius: 8px;
  background: var(--ayedo-surface);
  color: var(--ayedo-ink);
  font-size: 0.8rem;
  font-weight: 600;
}
.glossary-letter.is-active {
  background: var(--ayedo-primary);
  border-color: var(--ayedo-primary);
  color: #111;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}
.card-grid.is-1 { grid-template-columns: minmax(0, 32rem); justify-content: center; }
.card-grid.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 48rem; margin-inline: auto; }
.card-grid.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  padding: 1.2rem 1.2rem 1.25rem;
  background: var(--ayedo-surface);
  border: 1px solid var(--ayedo-line);
  border-radius: var(--ayedo-radius);
}
.card-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.card-heading {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.05rem;
}
.card-heading > * { flex: none; width: auto; }
.card-icon {
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  margin: 0.05rem 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ayedo-primary);
  background: color-mix(in srgb, var(--ayedo-primary) 12%, var(--ayedo-paper));
  border-radius: 8px;
}
.card-icon img {
  width: 1.15rem;
  height: 1.15rem;
  object-fit: contain;
}
.card-icon.is-accent img {
  filter: invert(78%) sepia(42%) saturate(620%) hue-rotate(22deg) brightness(102%) contrast(92%);
}
.card-icon.is-brand {
  background: color-mix(in srgb, var(--ayedo-paper) 70%, var(--ayedo-surface));
}
.card-icon.is-brand img {
  filter: none;
  width: 1.35rem;
  height: 1.35rem;
}
.card-title { font-size: 1.08rem; line-height: 1.25; margin: 0; color: var(--ayedo-ink); }
.card-title p { margin: 0; }
.card-title ol,
.card-title ul {
  margin: 0;
  padding: 0;
  list-style-position: inside;
}
.card-title li { margin: 0; }
.card-title blockquote {
  margin: 0;
  padding: 0;
  border: 0;
}
.card-kicker {
  margin: 0;
  color: var(--ayedo-muted);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
}
.card-heading > .card-kicker { width: 100%; }
.card-kicker p { margin: 0; font: inherit; color: inherit; }
.card-title + .card-kicker,
.app-card-title-row + .card-kicker { margin-top: 0.04rem; }
.card-head + .card-kicker { margin-top: 0.04rem; }
.card-body {
  margin-top: 0.7rem;
  color: color-mix(in srgb, var(--ayedo-muted) 78%, var(--ayedo-text));
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.55;
}
.card-heading + .card-body,
.card-kicker + .card-body { margin-top: 0.7rem; }
.card-body p { margin: 0; }
.card-body > p:first-child:has(> strong:only-child) {
  margin: 0 0 0.7rem;
  color: var(--ayedo-muted);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
}
.card-body > p:first-child:has(> strong:only-child) strong {
  font: inherit;
  color: inherit;
}
.card-features {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.card-features li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ayedo-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}
.card-features li::before {
  content: "✓";
  flex: 0 0 auto;
  color: var(--ayedo-primary);
  font-weight: 700;
  line-height: 1;
}
.card-features p { margin: 0; }
.card-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.card-tag {
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--ayedo-line);
  border-radius: var(--ayedo-radius);
  color: var(--ayedo-muted);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}
.card-cta { margin-top: 0.95rem; }
.section-cta { text-align: center; margin-top: 1.25rem; }
.app-catalog { gap: 0.55rem; }
a.app-card {
  cursor: pointer;
  color: inherit;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
a.app-card:hover,
a.app-card:focus-visible {
  color: inherit;
  border-color: color-mix(in srgb, var(--ayedo-primary) 52%, var(--ayedo-line));
  transform: translateY(-3px);
  box-shadow: 0 10px 22px color-mix(in srgb, #000 22%, transparent);
}
.app-card {
  padding: 0.8rem 0.85rem 0.85rem;
}
.app-card .card-head { gap: 0.5rem; }
.app-card .card-icon.is-brand {
  flex-basis: 1.85rem;
  width: 1.85rem;
  height: 1.85rem;
  margin: 0;
  background: transparent;
}
.app-card .card-icon.is-brand img {
  width: 1.85rem;
  height: 1.85rem;
}
html:not(.dark) .app-card .card-icon.is-brand img[src^="/icons/"] {
  filter: brightness(0);
}
.app-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.4rem;
}
.app-card .card-title { font-size: 1rem; line-height: 1.25; }
.app-card-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.2rem; flex: 0 0 auto; }
.app-card .card-tag {
  padding: 0.12rem 0.45rem;
  border-radius: var(--ayedo-radius);
  font-size: 0.68rem;
}
.app-card .card-tag.is-new {
  border-color: color-mix(in srgb, var(--ayedo-primary) 48%, var(--ayedo-line));
  background: color-mix(in srgb, var(--ayedo-primary) 10%, var(--ayedo-surface));
  color: color-mix(in srgb, var(--ayedo-ink) 72%, var(--ayedo-primary));
}
.app-card .card-tag.is-bundle {
  border-color: color-mix(in srgb, var(--ayedo-ink) 26%, var(--ayedo-line));
  background: color-mix(in srgb, var(--ayedo-ink) 4%, var(--ayedo-surface));
  color: var(--ayedo-ink);
}
.app-card .card-kicker,
.app-card .app-card-title-row + .card-kicker {
  margin-top: 0.3rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}
.app-card .card-body {
  flex: 1 1 auto;
  margin-top: 0.8rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 0.86rem;
  line-height: 1.4;
}
.app-card .card-heading + .card-body,
.app-card .card-kicker + .card-body { margin-top: 0.8rem; }
.app-card-price {
  margin-top: auto;
  padding-top: 0.95rem;
  color: var(--ayedo-primary);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.app-card-price p { margin: 0; }
.app-card-price strong { font-weight: 700; color: inherit; }
.app-card-price-old {
  margin-right: 0.35rem;
  color: var(--ayedo-muted);
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: line-through;
}
.app-card-includes {
  margin-top: 0.15rem !important;
  color: var(--ayedo-muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0;
}
.app-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}
.app-links { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.app-meta { margin: 0.4rem 0 0; }
.app-meta div { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.25rem 0; font-size: 0.88rem; }
.app-meta dt { color: var(--ayedo-muted); font-weight: 500; }
.app-meta dd { margin: 0; }
.app-bundle { margin-top: 0.7rem; padding-top: 0.7rem; border-top: 1px solid var(--ayedo-line); }
.app-bundle h4 { margin: 0 0 0.4rem; font-size: 0.92rem; }
.app-bundle ul { list-style: none; margin: 0; padding: 0; }
.app-bundle li { margin: 0 0 0.25rem; font-size: 0.88rem; }
.app-price { margin: 0.2rem 0 0.4rem; font-size: 1.6rem; line-height: 1.2; }
.app-price span { font-size: 0.85rem; color: var(--ayedo-muted); font-weight: 500; }
.support-follow { margin-top: 1.25rem; }
.support-apps { margin-bottom: 1.25rem; }
.support-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--ayedo-line);
  border-radius: var(--ayedo-radius);
  background: var(--ayedo-surface);
}
.support-table { width: 100%; border-collapse: collapse; }
.support-table th,
.support-table td {
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--ayedo-line);
  text-align: center;
  vertical-align: top;
  font-size: 0.86rem;
  line-height: 1.4;
}
.support-table thead th {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ayedo-muted);
  background: color-mix(in srgb, var(--ayedo-paper) 70%, var(--ayedo-surface));
}
.support-table tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--ayedo-ink);
  white-space: nowrap;
}
.support-table td span,
.support-table th span { display: block; color: var(--ayedo-muted); font-size: 0.75rem; font-weight: 400; }
.support-table strong { font-size: 1rem; }
.support-table .is-accent { color: var(--ayedo-primary); }
.support-table tr:last-child th,
.support-table tr:last-child td { border-bottom: 0; }
.support-table .channel-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}
.support-table .channel-icon {
  display: inline-flex;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--ayedo-primary);
}
.support-table .channel-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.support-table .channel-icon .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}
.support-annex {
  max-width: 42rem;
  margin: 0.9rem auto 0;
  text-align: center;
  color: var(--ayedo-muted);
  font-size: 0.85rem;
}
.support-annex a { color: var(--ayedo-primary); }
.workshop-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 1.25rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--ayedo-line);
  border-radius: var(--ayedo-radius);
  background: color-mix(in srgb, var(--ayedo-primary) 8%, var(--ayedo-surface));
}
.workshop-cta h3 { margin: 0 0 0.3rem; font-size: 1.1rem; }
.workshop-cta p { margin: 0; color: var(--ayedo-muted); font-size: 0.92rem; }
.workshop-cta-actions { display: flex; flex-direction: column; gap: 0.45rem; flex: 0 0 auto; }
@media (max-width: 900px) {
  .app-details { grid-template-columns: 1fr; }
  .workshop-cta { flex-direction: column; text-align: center; }
}
@media (max-width: 900px) {
  .card-grid,
  .card-grid.is-2,
  .card-grid.is-4 { grid-template-columns: 1fr; }
}

/* --- logo strip ---------------------------------------------------------- */
.logo-strip {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5rem, #000 calc(100% - 5rem), transparent);
  mask-image: linear-gradient(90deg, transparent 0, #000 5rem, #000 calc(100% - 5rem), transparent);
}
.logo-strip-track {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  width: max-content;
  animation: logo-scroll 80s linear infinite;
}
.logo-strip-track:hover { animation-play-state: paused; }
.logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
  min-width: 0;
  height: auto;
}
.logo-strip img {
  height: 1.7rem;
  width: auto;
  max-width: 7.5rem;
  object-fit: contain;
  opacity: 0.88;
  /* Halo on the logo pixels — no plate, no box-shadow. */
  filter:
    drop-shadow(0 1px 1px rgba(0, 0, 0, 0.32))
    drop-shadow(0 0 0.75px rgba(0, 0, 0, 0.5));
  transition: opacity 0.15s ease;
}
.logo-chip:hover img,
.logo-strip img:hover { opacity: 1; }
html.dark .logo-strip img {
  filter:
    drop-shadow(0 1px 1px rgba(0, 0, 0, 0.7))
    drop-shadow(0 0 0.85px rgba(255, 255, 255, 0.4));
}
.logo-strip-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.15rem 1.5rem;
  align-items: center;
  justify-items: center;
  -webkit-mask-image: none;
  mask-image: none;
}
@keyframes logo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 800px) {
  .logo-strip-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- trust --------------------------------------------------------------- */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
}
.trust-badges span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border: 2px solid var(--ayedo-primary);
  color: var(--ayedo-primary);
  background: color-mix(in srgb, var(--ayedo-surface) 80%, transparent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.trust-badges span:not(:has(img))::before {
  content: "✓";
  font-weight: 700;
  line-height: 1;
}
.trust-badges img { width: 0.95rem; height: 0.95rem; }

/* --- posts --------------------------------------------------------------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}
.post-card {
  --post-card-gap-meta: 0.375rem;   /* ~6px  meta → title */
  --post-card-gap-title: 0.75rem;   /* ~12px title → excerpt */
  --post-card-gap-excerpt: 1.5rem;  /* ~24px excerpt → tags */
  display: flex;
  flex-direction: column;
  background: var(--ayedo-surface);
  border: 1px solid var(--ayedo-line);
  border-radius: var(--ayedo-radius);
  min-height: 100%;
  overflow: hidden;
  box-shadow: 0 10px 28px -22px rgba(0, 0, 0, 0.55);
}
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card-body { display: flex; flex-direction: column; padding: 0.9rem 1rem 1rem; }
.post-card time,
.post-card .post-meta {
  color: var(--ayedo-muted);
  font-size: 0.78rem;
  margin: 0 0 var(--post-card-gap-meta);
}
.post-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; justify-content: flex-start; margin-top: 0.85rem; }
.post-tags .card-tag { color: inherit; }
.post-card h3 { font-size: 1.15rem; margin: 0 0 var(--post-card-gap-title); }
.post-card-excerpt {
  color: var(--ayedo-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.post-card .card-tags {
  margin-top: auto;
  padding-top: var(--post-card-gap-excerpt);
}
.post-search { width: min(100%, 28rem); margin: 0 auto 1.5rem; }
.post-search input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--ayedo-line);
  background: var(--ayedo-surface);
  color: var(--ayedo-ink);
  border-radius: var(--ayedo-radius);
}
.post-count { text-align: center; color: var(--ayedo-muted); font-size: 0.85rem; margin-bottom: 1.25rem; }
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr; } }

/* --- docs ---------------------------------------------------------------- */
.docs {
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
  gap: 2.5rem;
  width: min(100% - 2rem, 80rem);
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
  align-items: start;
}
.docs-nav {
  position: sticky;
  top: calc(var(--ayedo-header) + 1rem);
  max-height: calc(100dvh - 6rem);
  overflow: auto;
  padding-right: 1rem;
  border-right: 1px solid var(--ayedo-line);
}
.docs-nav a,
.docs-nav .docs-nav-section {
  display: block;
  padding: 0.28rem 0;
  font-size: 0.875rem;
}
.docs-nav-home { margin-bottom: 0.75rem; }
.docs-nav-section {
  margin-top: 1rem;
  color: var(--ayedo-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.docs-nav a.is-active { color: var(--ayedo-primary); font-weight: 600; }
.docs-article { min-width: 0; overflow-x: auto; }
.docs-article h1 { font-size: 2rem; margin-bottom: 0.75rem; }
.docs-article .lead { color: var(--ayedo-muted); font-size: 1.1rem; margin-bottom: 1.5rem; }
@media (max-width: 900px) {
  .docs { grid-template-columns: 1fr; }
  .docs-nav { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--ayedo-line); padding-bottom: 1rem; }
}

/* --- comparison ---------------------------------------------------------- */
.comparison {
  display: grid;
  gap: 0.85rem;
  width: 100%;
}
.comparison-card {
  background: var(--ayedo-surface);
  border: 1px solid var(--ayedo-line);
  border-radius: var(--ayedo-radius);
  overflow: hidden;
}
.comparison-head {
  margin: 0;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--ayedo-line);
  text-align: center;
  font-size: 1rem;
}
.comparison-body { overflow-x: auto; }
.comparison-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
.comparison-col-feature { width: 28%; }
.comparison-col-us,
.comparison-col-them { width: 36%; }
.comparison-table th,
.comparison-table td {
  display: table-cell;
  padding: 0.55rem 0.85rem;
  text-align: left;
  font-size: 0.88rem;
  vertical-align: top;
  color: var(--ayedo-ink);
  border-bottom: 1px solid var(--ayedo-line);
}
.comparison-table th {
  color: var(--ayedo-muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.comparison-table tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--ayedo-ink) 5%, transparent);
}
.comparison-table tr:last-child td { border-bottom: 0; }
.comparison-val {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.45rem;
}
.comparison-text { color: var(--ayedo-ink); font-weight: 400; }
.comparison-ico {
  flex: 0 0 auto;
  display: inline-flex;
  margin-top: 0.12rem;
}
.comparison-ico-check { color: var(--ayedo-primary); }
.comparison-ico-x { color: color-mix(in srgb, #C45C5C 55%, var(--ayedo-muted)); }

/* --- article / prose ----------------------------------------------------- */
.article-hero { padding: 4.5rem 0 2.5rem; border-bottom: 1px solid var(--ayedo-line); }
.article-hero .wrap { max-width: 46rem; }
.article-hero .post-meta { margin-bottom: 0.85rem; }
.prose h1, .prose h2, .prose h3 { margin: 1.6rem 0 0.6rem; }
.prose h2 { font-size: 1.4rem; }
.prose h3 { font-size: 1.15rem; }
.prose p, .prose li { color: color-mix(in srgb, var(--ayedo-ink) 88%, var(--ayedo-muted)); }
.prose a { color: var(--ayedo-primary); text-decoration: underline; text-underline-offset: 0.12em; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose pre, .highlight pre {
  padding: 1rem;
  overflow-x: auto;
  background: var(--ayedo-surface);
  border: 1px solid var(--ayedo-line);
  font-size: 0.875rem;
}
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
  padding: 0.12em 0.4em;
  background: color-mix(in srgb, var(--ayedo-surface) 70%, var(--ayedo-ink) 8%);
  border-radius: 4px;
}
.prose :where(pre code) { padding: 0; background: none; }
.prose table {
  width: 100%;
  margin: 1.25rem 0;
  border-collapse: collapse;
  display: table;
}
.prose th,
.prose td {
  display: table-cell;
  padding: 0.65rem 0.85rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--ayedo-line);
  color: color-mix(in srgb, var(--ayedo-ink) 88%, var(--ayedo-muted));
}
.prose thead th {
  font-weight: 600;
  color: var(--ayedo-ink);
  border-bottom-color: color-mix(in srgb, var(--ayedo-ink) 28%, var(--ayedo-line));
}
.prose tbody tr:last-child th,
.prose tbody tr:last-child td { border-bottom: 0; }

/* --- callout / admonition / mermaid / highlight -------------------------- */
.callout,
.admonition {
  --callout-accent: #6B8CFF;
  --callout-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236B8CFF'><path fill-rule='evenodd' d='M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z' clip-rule='evenodd'/></svg>");
  display: grid;
  grid-template-columns: 1.35rem minmax(0, 1fr);
  column-gap: 0.85rem;
  align-items: start;
  width: 100%;
  margin: 1.5rem 0;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--callout-accent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--ayedo-surface) 82%, transparent);
  color: inherit;
}
.callout:not(:has(.callout-icon))::before,
.admonition:not(:has(.callout-icon))::before {
  content: "";
  grid-column: 1;
  grid-row: 1;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  background: var(--callout-icon) center / contain no-repeat;
}
.callout-icon {
  grid-column: 1;
  grid-row: 1;
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  background: var(--callout-icon) center / contain no-repeat;
}
.callout-body,
.callout > :not(.callout-icon),
.admonition > :not(.callout-icon) {
  grid-column: 2;
  min-width: 0;
}
.callout-body > :first-child,
.admonition > :not(.callout-icon):first-child { margin-top: 0; }
.callout-body > :last-child,
.admonition > :last-child { margin-bottom: 0; }
.admonition-title { font-weight: 700; margin: 0 0 0.35rem; }
.callout-info,
.admonition.info,
.admonition.note,
.callout-note {
  --callout-accent: #6B8CFF;
  --callout-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236B8CFF'><path fill-rule='evenodd' d='M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z' clip-rule='evenodd'/></svg>");
  background: rgba(107, 140, 255, 0.08);
}
.callout-success,
.admonition.success {
  --callout-accent: #34D399;
  --callout-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2334D399'><path fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z' clip-rule='evenodd'/></svg>");
  background: rgba(52, 211, 153, 0.08);
}
.callout-warning,
.admonition.warning,
.admonition.caution {
  --callout-accent: #D4A017;
  --callout-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23D4A017'><path fill-rule='evenodd' d='M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z' clip-rule='evenodd'/></svg>");
  background: rgba(212, 160, 23, 0.1);
}
.callout-error,
.admonition.danger,
.admonition.error {
  --callout-accent: #D64545;
  --callout-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23D64545'><path fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z' clip-rule='evenodd'/></svg>");
  background: rgba(214, 69, 69, 0.1);
}
.highlight { overflow-x: auto; }
.highlight .c, .highlight .c1, .highlight .cm { color: #7A7A72; font-style: italic; }
.highlight .k, .highlight .kd, .highlight .kn { color: #E6C07B; }
.highlight .s, .highlight .s1, .highlight .s2 { color: #98C379; }
.highlight .n, .highlight .nx { color: var(--ayedo-ink); }
.highlight .nf, .highlight .nc { color: #61AFEF; }
pre.mermaid { background: transparent; text-align: center; overflow-x: auto; }

/* --- footer -------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--ayedo-line);
  background: var(--ayedo-paper);
  padding: 3rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand p { color: var(--ayedo-muted); max-width: 22rem; font-size: 0.92rem; }
.footer-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.9rem;
}
.footer-socials a {
  width: 1.7rem;
  height: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ayedo-muted);
}
.footer-socials a:hover { color: var(--ayedo-primary); }
.footer-socials svg { width: 1.2rem; height: 1.2rem; }
.site-footer h3 {
  margin: 0 0 0.85rem;
  color: var(--ayedo-muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 0.4rem; }
.site-footer a { color: var(--ayedo-ink); font-size: 0.9rem; }
.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ayedo-line);
  color: var(--ayedo-muted);
  font-size: 0.8rem;
}
.theme-toggle {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  width: 2.6rem;
  height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ayedo-line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--ayedo-surface) 88%, transparent);
  color: var(--ayedo-ink);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px -16px rgba(0, 0, 0, 0.7);
}
.theme-toggle svg { width: 1.15rem; height: 1.15rem; }
html.dark .theme-toggle .icon-sun { display: none; }
html:not(.dark) .theme-toggle .icon-moon { display: none; }
.section-figure {
  margin: 0 0 2rem;
}
.card-grid + .section-figure { margin-top: 1.5rem; }
.section-figure + .logo-strip { margin-top: 0.25rem; }
.logo-strip + .section-cta { margin-top: 1.25rem; }
.section-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--ayedo-radius);
  border: 1px solid var(--ayedo-line);
}
.section-figure figcaption {
  margin-top: 0.6rem;
  text-align: center;
  color: var(--ayedo-muted);
  font-size: 0.85rem;
}

/* --- wallpaper showcase (full-card image + overlay) --------------------- */
.wallpaper-showcase {
  display: grid;
  gap: 0.85rem;
}
.wallpaper-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}
.wallpaper-showcase-grid.is-1 { grid-template-columns: 1fr; }
.wallpaper-showcase-grid.is-2,
.wallpaper-showcase-grid.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wallpaper-showcase-grid.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wallpaper-showcase-grid.media-card-grid { align-items: start; }
.wallpaper-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: auto;
  background: var(--ayedo-paper);
  border: 1px solid var(--ayedo-line);
  border-radius: var(--ayedo-radius);
}
.wallpaper-card-featured { min-height: 22rem; }
.wallpaper-card-art {
  position: absolute;
  inset: 0;
}
.wallpaper-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}
.wallpaper-card-featured .wallpaper-card-art img { object-position: 78% center; }
.wallpaper-pair-light { display: none; }
.wallpaper-pair-dark { display: block; }
html:not(.dark) .wallpaper-pair-light { display: block; }
html:not(.dark) .wallpaper-pair-dark { display: none; }
.wallpaper-card-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 8, 7, 0.55) 0%, rgba(8, 8, 7, 0.62) 42%, rgba(8, 8, 7, 0.86) 100%);
}
html:not(.dark) .wallpaper-card-overlay {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--ayedo-paper) 82%, transparent) 0%,
    color-mix(in srgb, var(--ayedo-paper) 88%, transparent) 48%,
    color-mix(in srgb, var(--ayedo-paper) 94%, transparent) 100%
  );
}
.wallpaper-card-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.55rem;
  padding: 1.35rem 1.1rem;
  max-width: 28rem;
}
.wallpaper-card.is-copy-top {
  justify-content: flex-start;
}
.wallpaper-card.is-copy-top .wallpaper-card-overlay {
  background: linear-gradient(180deg, rgba(8, 8, 7, 0.86) 0%, rgba(8, 8, 7, 0.62) 48%, rgba(8, 8, 7, 0.5) 100%);
}
html:not(.dark) .wallpaper-card.is-copy-top .wallpaper-card-overlay {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--ayedo-paper) 94%, transparent) 0%,
    color-mix(in srgb, var(--ayedo-paper) 86%, transparent) 48%,
    color-mix(in srgb, var(--ayedo-paper) 78%, transparent) 100%
  );
}
.wallpaper-card.is-copy-top .wallpaper-card-copy {
  padding: 1.35rem 1.1rem;
  gap: 0.55rem;
  max-width: 38rem;
}
.wallpaper-card.is-copy-stacked {
  justify-content: flex-start;
}
.wallpaper-card.is-copy-stacked .wallpaper-card-art img { object-position: 72% 42%; }
.wallpaper-card.is-copy-stacked .wallpaper-card-overlay {
  background: linear-gradient(180deg, rgba(8, 8, 7, 0.74) 0%, rgba(8, 8, 7, 0.58) 42%, rgba(8, 8, 7, 0.84) 100%);
}
html:not(.dark) .wallpaper-card.is-copy-stacked .wallpaper-card-overlay {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--ayedo-paper) 88%, transparent) 0%,
    color-mix(in srgb, var(--ayedo-paper) 84%, transparent) 42%,
    color-mix(in srgb, var(--ayedo-paper) 92%, transparent) 100%
  );
}
.wallpaper-card.is-copy-stacked .wallpaper-card-copy {
  flex: none;
  justify-content: flex-start;
  gap: 0.65rem;
  padding: 1.35rem 1.1rem;
  max-width: 28rem;
}
.wallpaper-card.is-copy-stacked .wallpaper-card-body {
  flex: none;
  align-self: stretch;
  max-width: none;
  padding: 0;
  background: none;
}
.wallpaper-card-num {
  flex: 0 0 1.6rem;
  width: 1.6rem;
  height: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.2rem;
  color: #111;
  background: var(--ayedo-primary);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}
.wallpaper-card-foot {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.wallpaper-card-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ayedo-ink);
}
.wallpaper-card-title p { margin: 0; }
.wallpaper-card-kicker {
  color: var(--ayedo-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.wallpaper-card-body {
  color: var(--ayedo-text);
  font-size: 0.82rem;
  line-height: 1.4;
}
.wallpaper-card-body p { margin: 0; }
.wallpaper-card-caption {
  color: var(--ayedo-muted);
  font-size: 0.82rem;
}
@media (max-width: 800px) {
  .wallpaper-showcase-grid,
  .wallpaper-showcase-grid.is-1,
  .wallpaper-showcase-grid.is-2,
  .wallpaper-showcase-grid.is-3,
  .wallpaper-showcase-grid.is-4 { grid-template-columns: 1fr; }
  .wallpaper-card-copy,
  .wallpaper-card.is-copy-stacked .wallpaper-card-copy { max-width: none; }
  .wallpaper-card-featured { min-height: 16rem; }
}

/* --- PR landing: logos + Aylien wallpaper downloads -------------------- */
.pr-logo-grid,
.pr-wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}
.pr-logo-card,
.pr-wallpaper-card {
  display: flex;
  flex-direction: column;
  background: var(--ayedo-surface);
  border: 1px solid var(--ayedo-line);
  border-radius: var(--ayedo-radius);
  overflow: hidden;
}
.pr-logo-preview {
  height: 10rem;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--ayedo-paper) 88%, var(--ayedo-line));
}
.pr-logo-preview.is-dark { background: #161615; }
.pr-logo-preview.is-brand { background: color-mix(in srgb, var(--ayedo-primary) 14%, var(--ayedo-paper)); }
.pr-logo-preview img {
  max-height: 4.5rem;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}
.pr-logo-copy,
.pr-wallpaper-copy {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1.1rem 1.2rem 1.2rem;
  gap: 0.45rem;
}
.pr-logo-title,
.pr-wallpaper-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}
.pr-logo-title p,
.pr-wallpaper-title p { margin: 0; }
.pr-logo-body { color: var(--ayedo-text); font-size: 0.88rem; line-height: 1.45; }
.pr-logo-body p { margin: 0; }
.pr-logo-files,
.pr-wallpaper-files {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.55rem;
}
.pr-wallpaper-art {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: color-mix(in srgb, var(--ayedo-paper) 88%, var(--ayedo-line));
}
.pr-wallpaper-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 800px) {
  .pr-logo-grid,
  .pr-wallpaper-grid { grid-template-columns: 1fr; }
}

/* --- split media + stacked cards (benefit-wallpaper / split-media-cards) */
.benefit-wallpaper { display: grid; gap: 1.25rem; }
.benefit-wallpaper-frame {
  display: grid;
  gap: 0.85rem;
  align-items: stretch;
}
.benefit-wallpaper-frame.has-art {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
}
.benefit-wallpaper-frame.has-art.is-right {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.92fr);
}
.benefit-wallpaper-frame.has-art.is-right .benefit-wallpaper-art { order: 2; }
.benefit-wallpaper-art {
  margin: 0;
  position: relative;
  overflow: hidden;
  min-height: 22rem;
  background: var(--ayedo-surface);
  border: 1px solid var(--ayedo-line);
  border-radius: var(--ayedo-radius);
}
.benefit-wallpaper-media {
  position: absolute;
  inset: 0;
}
.benefit-wallpaper-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}
/* Left-composed Aylien (subject on the left of the PNG): set
   featured.object_position to "left bottom" — same as homepage #warum.
   Do not default .is-left here: right-composed assets on the left
   (homepage #plattform) still need the 72% crop. */
/* kubernetes-alien header: subject sits on the far bottom-right of a wide PNG */
#aus-einer-hand .benefit-wallpaper-media img {
  object-position: right bottom;
}
.benefit-wallpaper-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 58%, color-mix(in srgb, var(--ayedo-paper) 22%, transparent) 100%);
}
.benefit-wallpaper-frame.has-art.is-right .benefit-wallpaper-art::after {
  background: linear-gradient(270deg, transparent 58%, color-mix(in srgb, var(--ayedo-paper) 22%, transparent) 100%);
}
.benefit-wallpaper-body { min-width: 0; }
.benefit-wallpaper-body .card-grid,
.benefit-wallpaper-body .card-grid.is-1,
.benefit-wallpaper-body .card-grid.is-2,
.benefit-wallpaper-body .card-grid.is-4 {
  grid-template-columns: 1fr;
  max-width: none;
  margin-inline: 0;
}
.benefit-wallpaper-body.is-2 .card-grid,
.benefit-wallpaper-body.is-2 .card-grid.is-1,
.benefit-wallpaper-body.is-2 .card-grid.is-2,
.benefit-wallpaper-body.is-2 .card-grid.is-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 800px) {
  .benefit-wallpaper-frame.has-art,
  .benefit-wallpaper-frame.has-art.is-right { grid-template-columns: 1fr; }
  .benefit-wallpaper-frame.has-art.is-right .benefit-wallpaper-art { order: 0; }
  .benefit-wallpaper-art { min-height: 0; aspect-ratio: 16 / 9; }
  .benefit-wallpaper-media img { object-position: 70% 20%; }
  #aus-einer-hand .benefit-wallpaper-media img { object-position: right bottom; }
  .benefit-wallpaper-art::after,
  .benefit-wallpaper-frame.has-art.is-right .benefit-wallpaper-art::after {
    background: linear-gradient(180deg, transparent 62%, color-mix(in srgb, var(--ayedo-paper) 28%, transparent) 100%);
  }
  .benefit-wallpaper-body.is-2 .card-grid,
  .benefit-wallpaper-body.is-2 .card-grid.is-1,
  .benefit-wallpaper-body.is-2 .card-grid.is-2,
  .benefit-wallpaper-body.is-2 .card-grid.is-4 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-meta { flex-direction: column; }
}
.protocol-list {
  display: grid;
  gap: 0.35rem;
}
.feed-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0.35rem 0 1rem;
}
.feed-pair a {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
}

/* --- public search (Spec 14) -------------------------------------------- */
.site-search {
  display: none;
  position: relative;
  align-items: center;
  flex-shrink: 0;
  width: 9.25rem;
  height: 2.25rem;
  border: 1px solid var(--ayedo-line);
  border-radius: var(--ayedo-radius);
  background: var(--ayedo-surface);
}
.site-search input[type="search"] {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0 2rem 0 0.7rem;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: var(--ayedo-ink);
  font-size: 0.8125rem;
  line-height: 1.2;
  appearance: none;
  -webkit-appearance: none;
}
.site-search input[type="search"]::placeholder {
  color: var(--ayedo-muted);
}
.site-search input[type="search"]::-webkit-search-decoration,
.site-search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.site-search input[type="search"]:focus {
  outline: none;
}
.site-search:focus-within {
  border-color: color-mix(in srgb, var(--ayedo-ink) 42%, var(--ayedo-line));
}
/* Navbar submit only. Never `.site-search button` — that also matched
   list-suggest hits while the list form still carried this class. */
.site-search > button {
  position: absolute;
  right: 0.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.85rem;
  height: 1.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: calc(var(--ayedo-radius) - 2px);
  background: transparent;
  color: var(--ayedo-muted);
}
.site-search > button:hover,
.site-search > button:focus-visible {
  color: var(--ayedo-ink);
}
.site-search > button:focus-visible {
  outline: 2px solid var(--ayedo-primary);
  outline-offset: 1px;
}
.site-search > button svg {
  width: 0.95rem;
  height: 0.95rem;
}
.site-search-mobile {
  display: flex;
  width: min(100%, 16rem);
  height: 2.35rem;
  margin-bottom: 0.85rem;
}
@media (min-width: 1024px) {
  .site-nav .nav-desktop { flex: 1 1 auto; min-width: 0; }
  .site-search-desktop { display: flex; }
}
.post-search {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.post-search button {
  flex-shrink: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--ayedo-line);
  background: var(--ayedo-surface);
  color: var(--ayedo-ink);
  font-weight: 600;
}
.search-page,
.tag-page {
  padding: 2.5rem 0 4rem;
}
.tag-page .section-body {
  max-width: 40rem;
  margin-inline: auto;
  color: var(--ayedo-muted);
}
.card-tag.is-current {
  border-color: color-mix(in srgb, var(--ayedo-primary) 55%, var(--ayedo-line));
  color: var(--ayedo-ink);
}
.search-page-form {
  display: flex;
  gap: 0.5rem;
  max-width: 36rem;
  margin: 0 auto 1.75rem;
}
.search-page-form input[type="search"] {
  flex: 1;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--ayedo-line);
  background: var(--ayedo-surface);
  color: var(--ayedo-ink);
}
.search-page-form button {
  padding: 0.75rem 1rem;
  border: 1px solid var(--ayedo-line);
  background: var(--ayedo-surface);
  color: var(--ayedo-ink);
  font-weight: 600;
}
.search-page-empty {
  text-align: center;
  color: var(--ayedo-muted);
  margin: 1.5rem 0;
}
.search-group { margin: 0 0 2rem; }
.search-group-title {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ayedo-muted);
}
.search-results { list-style: none; margin: 0; padding: 0; }
.search-hit {
  padding: 0.85rem 0;
  border-top: 1px solid var(--ayedo-line);
}
.search-hit-kind {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  color: var(--ayedo-muted);
}
.search-hit-title { margin: 0 0 0.35rem; font-size: 1.15rem; }
.search-hit-snippet { margin: 0; color: var(--ayedo-muted); font-size: 0.95rem; }

/* --- generic list page (search + pager) --------------------------------- */
/* Fully decoupled from navbar .site-search. Sharing that class applied
   height:2.25rem + .site-search button { position:absolute; 1.85rem } to
   every suggest hit — in-flow height collapsed to padding (~10–20px). */
.list-search {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  position: relative;
  isolation: isolate;
  width: min(100%, 28rem);
  height: auto;
  margin: 0 auto 1.25rem;
  overflow: visible;
  border: 0;
  background: transparent;
}
.list-search-bar {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  min-width: 0;
  height: 2.35rem;
  border: 1px solid var(--ayedo-line);
  border-radius: var(--ayedo-radius);
  background: var(--ayedo-surface);
}
.list-search-bar input[type="search"] {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0 2rem 0 0.7rem;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: var(--ayedo-ink);
  font-size: 0.875rem;
  line-height: 1.2;
  appearance: none;
  -webkit-appearance: none;
}
.list-search-bar input[type="search"]::placeholder {
  color: var(--ayedo-muted);
}
.list-search-bar input[type="search"]::-webkit-search-decoration,
.list-search-bar input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.list-search-bar input[type="search"]:focus {
  outline: none;
}
.list-search-bar:focus-within {
  border-color: color-mix(in srgb, var(--ayedo-ink) 42%, var(--ayedo-line));
}
.list-search-bar > button {
  position: absolute;
  right: 0.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.85rem;
  height: 1.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: calc(var(--ayedo-radius) - 2px);
  background: transparent;
  color: var(--ayedo-muted);
}
.list-search-bar > button:hover,
.list-search-bar > button:focus-visible {
  color: var(--ayedo-ink);
}
.list-search-bar > button:focus-visible {
  outline: 2px solid var(--ayedo-primary);
  outline-offset: 1px;
}
.list-search-bar > button svg {
  width: 0.95rem;
  height: 0.95rem;
}
.list-suggest {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  z-index: 40;
  height: auto;
  min-height: 0;
  max-height: 22rem;
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0;
  padding: 0.35rem;
  border: 1px solid var(--ayedo-line);
  border-radius: var(--ayedo-radius);
  background: var(--ayedo-surface);
  color: var(--ayedo-ink);
  color-scheme: dark;
  box-shadow: 0 12px 32px color-mix(in srgb, var(--ayedo-dark) 28%, transparent);
}
html:not(.dark) .list-suggest {
  color-scheme: light;
}
.list-suggest[hidden] {
  display: none !important;
}
.list-search .list-suggest-hit {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  align-items: stretch;
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  transform: none;
  width: 100%;
  height: auto;
  min-height: 2.5rem;
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
  text-align: left;
  padding: 0.65rem 0.75rem;
  border: 0;
  border-radius: calc(var(--ayedo-radius) - 4px);
  background: transparent;
  color: var(--ayedo-ink);
  cursor: pointer;
}
.list-suggest-hit:hover,
.list-suggest-hit.is-active {
  background: color-mix(in srgb, var(--ayedo-primary) 12%, var(--ayedo-surface));
}
.list-suggest-title {
  display: block;
  min-width: 0;
  font-weight: 600;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
}
.list-suggest-snippet {
  display: block;
  min-width: 0;
  margin-top: 0.2rem;
  color: var(--ayedo-muted);
  font-size: 0.8125rem;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
}
.list-suggest-meta {
  display: block;
  min-width: 0;
  margin-top: 0.25rem;
  color: var(--ayedo-muted);
  font-size: 0.75rem;
  white-space: normal;
}
.list-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem 0.65rem;
  margin: 2rem 0 0;
}
.list-pager-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.list-pager-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.7rem;
  border: 1px solid var(--ayedo-line);
  border-radius: var(--ayedo-radius);
  background: var(--ayedo-surface);
  color: var(--ayedo-ink);
  font-size: 0.875rem;
}
.list-pager-link:hover {
  border-color: color-mix(in srgb, var(--ayedo-primary) 50%, var(--ayedo-line));
  color: var(--ayedo-ink);
}
.list-pager-link.is-current {
  background: color-mix(in srgb, var(--ayedo-primary) 18%, var(--ayedo-surface));
  border-color: color-mix(in srgb, var(--ayedo-primary) 55%, var(--ayedo-line));
  font-weight: 600;
}
.list-pager-link.is-disabled {
  opacity: 0.4;
  cursor: default;
}
.list-pager-gap {
  min-width: 1.25rem;
  color: var(--ayedo-muted);
  text-align: center;
}
