/* ==========================================================================
   AssemblePrint Blog — design tokens mirrored from the landing page
   ========================================================================== */

:root {
  --ap-background: 150 10% 97%;
  --ap-foreground: 160 20% 10%;
  --ap-card: 150 10% 99%;
  --ap-primary: 152 69% 41%;
  --ap-primary-foreground: 0 0% 100%;
  --ap-muted: 150 10% 94%;
  --ap-muted-foreground: 160 10% 45%;
  --ap-border: 150 15% 88%;
  --ap-navy: 160 30% 8%;
  --ap-navy-light: 158 25% 14%;
  --ap-cyan-glow: 152 80% 50%;

  --ap-radius: 0.75rem;
  --ap-font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --ap-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --ap-gradient-cyan: linear-gradient(135deg, hsl(152 69% 41%), hsl(152 80% 50%));
  --ap-gradient-navy: linear-gradient(180deg, hsl(160 30% 8%), hsl(158 25% 14%));
  --ap-shadow-glow: 0 0 40px hsl(152 69% 41% / 0.15);
  --ap-shadow-glow-strong: 0 0 60px hsl(152 80% 50% / 0.25);
  --ap-shadow-card: 0 4px 24px hsl(160 30% 8% / 0.06);
  --ap-shadow-card-hover: 0 8px 40px hsl(160 30% 8% / 0.12);

  --ap-container: 1200px;
  --ap-content: 760px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: hsl(var(--ap-background));
  color: hsl(var(--ap-foreground));
  font-family: var(--ap-font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ap-font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: hsl(var(--ap-navy));
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

p, ul, ol, dl, table, pre, blockquote, figure { margin: 0 0 1.4em; }

a {
  color: hsl(var(--ap-primary));
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease, opacity 0.2s ease;
}
a:hover { color: hsl(var(--ap-cyan-glow)); }

img, video, iframe, svg { max-width: 100%; height: auto; }

:focus-visible {
  outline: 2px solid hsl(var(--ap-primary));
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.ap-container {
  width: 100%;
  max-width: var(--ap-container);
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 768px) { .ap-container { padding-inline: 1.5rem; } }

.ap-main { padding-block: 2.5rem 4rem; }
@media (min-width: 768px) { .ap-main { padding-block: 4rem 6rem; } }

.ap-layout { display: grid; gap: 3rem; }
@media (min-width: 1024px) {
  .ap-layout--sidebar { grid-template-columns: minmax(0, 1fr) 320px; gap: 4rem; }
}

.ap-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
}
.ap-skip-link:focus {
  left: 1rem;
  top: 1rem;
  padding: 0.6rem 1rem;
  background: hsl(var(--ap-primary));
  color: hsl(var(--ap-primary-foreground));
  border-radius: var(--ap-radius);
  font-weight: 600;
}

/* ---------- Header ---------- */
.ap-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: hsl(var(--ap-background) / 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid hsl(var(--ap-border));
}
.ap-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}
.ap-brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--ap-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: hsl(var(--ap-navy));
  text-decoration: none;
}
.ap-brand span {
  background: var(--ap-gradient-cyan);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ap-brand img { max-height: 36px; width: auto; }

.ap-nav ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ap-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--ap-muted-foreground));
  text-decoration: none;
}
.ap-nav a:hover,
.ap-nav .current-menu-item > a { color: hsl(var(--ap-foreground)); }

.ap-nav li { position: relative; }
.ap-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem;
  background: hsl(var(--ap-card));
  border: 1px solid hsl(var(--ap-border));
  border-radius: var(--ap-radius);
  box-shadow: var(--ap-shadow-card);
}
.ap-nav li:hover > .sub-menu,
.ap-nav li:focus-within > .sub-menu { display: flex; }
.ap-nav .sub-menu a { display: block; padding: 0.5rem 0.75rem; }

.ap-header__actions { display: flex; align-items: center; gap: 0.75rem; }

.ap-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border: 0;
  border-radius: var(--ap-radius);
  background: var(--ap-gradient-cyan);
  color: hsl(var(--ap-primary-foreground));
  font-family: var(--ap-font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--ap-shadow-glow);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.ap-btn:hover {
  color: hsl(var(--ap-primary-foreground));
  box-shadow: var(--ap-shadow-glow-strong);
  transform: translateY(-1px);
}
.ap-btn--ghost {
  background: transparent;
  color: hsl(var(--ap-foreground));
  border: 1px solid hsl(var(--ap-border));
  box-shadow: none;
}
.ap-btn--ghost:hover { color: hsl(var(--ap-foreground)); border-color: hsl(var(--ap-primary) / 0.4); box-shadow: var(--ap-shadow-card); }

.ap-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid hsl(var(--ap-border));
  border-radius: var(--ap-radius);
  color: hsl(var(--ap-foreground));
  cursor: pointer;
}
@media (min-width: 1024px) { .ap-menu-toggle { display: none; } }
@media (max-width: 1023px) {
  .ap-nav,
  .ap-header__actions .ap-btn { display: none; }
  .ap-header.is-open .ap-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem 1.5rem 1.5rem;
    background: hsl(var(--ap-background));
    border-bottom: 1px solid hsl(var(--ap-border));
  }
  .ap-header.is-open .ap-nav ul { flex-direction: column; align-items: stretch; gap: 0.25rem; }
  .ap-header.is-open .ap-nav a { display: block; padding: 0.65rem 0; font-size: 0.95rem; color: hsl(var(--ap-foreground)); }
  .ap-header.is-open .ap-nav .sub-menu { display: block; position: static; border: 0; box-shadow: none; padding-left: 0.75rem; background: transparent; }
}

/* ---------- Page hero ---------- */
.ap-hero {
  position: relative;
  overflow: hidden;
  background: var(--ap-gradient-navy);
  color: hsl(150 20% 95%);
  padding-block: 3.5rem;
}
@media (min-width: 768px) { .ap-hero { padding-block: 5rem; } }
.ap-hero::after {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  width: 700px;
  height: 700px;
  transform: translateX(-50%);
  border-radius: 9999px;
  background: hsl(var(--ap-primary) / 0.12);
  filter: blur(120px);
  pointer-events: none;
}
.ap-hero > * { position: relative; z-index: 1; }
.ap-hero h1, .ap-hero h2 { color: #fff; }
.ap-hero p { color: hsl(150 20% 95% / 0.72); max-width: 42rem; margin-bottom: 0; }
.ap-hero .ap-breadcrumbs,
.ap-hero .ap-breadcrumbs a { color: hsl(150 20% 95% / 0.65); }
.ap-hero .ap-breadcrumbs a:hover { color: #fff; }

.ap-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.3rem 0.85rem;
  border: 1px solid hsl(var(--ap-primary) / 0.25);
  border-radius: 9999px;
  background: hsl(var(--ap-primary) / 0.08);
  color: hsl(var(--ap-cyan-glow));
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.ap-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: currentColor;
}

/* ---------- Breadcrumbs (Rank Math / Yoast / SEOPress) ---------- */
.ap-breadcrumbs {
  font-size: 0.8125rem;
  color: hsl(var(--ap-muted-foreground));
  margin-bottom: 1.25rem;
}
.ap-breadcrumbs a { text-decoration: none; }
.ap-breadcrumbs .separator,
.ap-breadcrumbs .breadcrumb-separator { opacity: 0.5; margin-inline: 0.35rem; }

/* ---------- Post cards ---------- */
.ap-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .ap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ap-layout--sidebar .ap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.ap-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: hsl(var(--ap-card));
  border: 1px solid hsl(var(--ap-border));
  border-radius: calc(var(--ap-radius) + 0.25rem);
  box-shadow: var(--ap-shadow-card);
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.ap-card:hover {
  box-shadow: var(--ap-shadow-card-hover);
  border-color: hsl(var(--ap-primary) / 0.2);
  transform: translateY(-3px);
}
.ap-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: hsl(var(--ap-muted)); }
.ap-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.ap-card:hover .ap-card__media img { transform: scale(1.04); }
.ap-card__body { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.25rem 1.35rem 1.5rem; flex: 1; }
.ap-card__title { font-size: 1.15rem; margin: 0; }
.ap-card__title a { color: inherit; text-decoration: none; }
.ap-card__title a:hover { color: hsl(var(--ap-primary)); }
.ap-card__excerpt { font-size: 0.9rem; color: hsl(var(--ap-muted-foreground)); margin: 0; }
.ap-card__footer { margin-top: auto; padding-top: 0.5rem; }

.ap-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  font-size: 0.78rem;
  color: hsl(var(--ap-muted-foreground));
}
.ap-meta a { color: inherit; text-decoration: none; }
.ap-meta a:hover { color: hsl(var(--ap-primary)); }

.ap-taxonomy { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ap-chip {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border: 1px solid hsl(var(--ap-border));
  border-radius: 9999px;
  background: hsl(var(--ap-muted));
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: hsl(var(--ap-muted-foreground));
  text-decoration: none;
}
.ap-chip:hover { color: hsl(var(--ap-primary)); border-color: hsl(var(--ap-primary) / 0.3); }

.ap-readmore {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}
.ap-readmore::after { content: "→"; transition: transform 0.2s ease; }
.ap-readmore:hover::after { transform: translateX(3px); }

/* ---------- Single post ---------- */
.ap-article { max-width: var(--ap-content); }
.ap-layout--sidebar .ap-article { max-width: none; }

.ap-featured {
  overflow: hidden;
  border-radius: calc(var(--ap-radius) + 0.35rem);
  box-shadow: var(--ap-shadow-card);
  margin-bottom: 2rem;
}
.ap-featured img { width: 100%; display: block; }

.ap-content { font-size: 1.0625rem; }
.ap-content > * + h2 { margin-top: 2.2em; }
.ap-content > * + h3 { margin-top: 1.8em; }
.ap-content a { font-weight: 500; }
.ap-content ul, .ap-content ol { padding-left: 1.35rem; }
.ap-content li + li { margin-top: 0.4rem; }
.ap-content blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid hsl(var(--ap-primary));
  border-radius: var(--ap-radius);
  background: hsl(var(--ap-muted));
  font-family: var(--ap-font-display);
  font-size: 1.1rem;
}
.ap-content blockquote p:last-child { margin-bottom: 0; }
.ap-content pre {
  padding: 1.25rem;
  overflow-x: auto;
  background: hsl(var(--ap-navy));
  color: hsl(150 20% 95%);
  border-radius: var(--ap-radius);
  font-size: 0.875rem;
}
.ap-content code {
  padding: 0.15em 0.4em;
  background: hsl(var(--ap-muted));
  border-radius: 4px;
  font-size: 0.9em;
}
.ap-content pre code { padding: 0; background: transparent; color: inherit; }
.ap-content img, .ap-content figure { border-radius: var(--ap-radius); }
.ap-content figcaption {
  font-size: 0.8rem;
  color: hsl(var(--ap-muted-foreground));
  text-align: center;
  margin-top: 0.5rem;
}
.ap-content table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.ap-content th, .ap-content td { padding: 0.65rem 0.85rem; border: 1px solid hsl(var(--ap-border)); text-align: left; }
.ap-content th { background: hsl(var(--ap-muted)); font-family: var(--ap-font-display); }
.ap-content hr { border: 0; height: 1px; background: hsl(var(--ap-border)); margin: 2.5rem 0; }

.ap-tags { margin-top: 2.5rem; }

.ap-author-box {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-top: 3rem;
  padding: 1.5rem;
  background: hsl(var(--ap-card));
  border: 1px solid hsl(var(--ap-border));
  border-radius: calc(var(--ap-radius) + 0.25rem);
  box-shadow: var(--ap-shadow-card);
}
.ap-author-box img { border-radius: 9999px; flex-shrink: 0; }
.ap-author-box h2 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.ap-author-box p { font-size: 0.9rem; color: hsl(var(--ap-muted-foreground)); margin: 0; }

.ap-post-nav {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}
@media (min-width: 640px) { .ap-post-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ap-post-nav a {
  display: block;
  padding: 1.1rem 1.25rem;
  background: hsl(var(--ap-card));
  border: 1px solid hsl(var(--ap-border));
  border-radius: var(--ap-radius);
  text-decoration: none;
  color: hsl(var(--ap-foreground));
  box-shadow: var(--ap-shadow-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ap-post-nav a:hover { border-color: hsl(var(--ap-primary) / 0.3); box-shadow: var(--ap-shadow-card-hover); }
.ap-post-nav span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--ap-muted-foreground));
  margin-bottom: 0.3rem;
}
.ap-post-nav strong { font-family: var(--ap-font-display); font-size: 0.98rem; }
.ap-post-nav .is-next { text-align: right; }

.ap-related { margin-top: 4rem; }
.ap-related > h2 { margin-bottom: 1.5rem; }

/* ---------- Sidebar / widgets ---------- */
.ap-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.ap-widget {
  padding: 1.35rem 1.5rem;
  background: hsl(var(--ap-card));
  border: 1px solid hsl(var(--ap-border));
  border-radius: calc(var(--ap-radius) + 0.25rem);
  box-shadow: var(--ap-shadow-card);
}
.ap-widget .widget-title,
.ap-widget h2, .ap-widget h3 {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid hsl(var(--ap-border));
}
.ap-widget ul { list-style: none; margin: 0; padding: 0; }
.ap-widget li + li { margin-top: 0.6rem; }
.ap-widget a { font-size: 0.9rem; text-decoration: none; color: hsl(var(--ap-muted-foreground)); }
.ap-widget a:hover { color: hsl(var(--ap-primary)); }
.ap-widget select,
.ap-widget input[type="search"],
.ap-widget input[type="text"],
.ap-widget input[type="email"] { width: 100%; }

/* ---------- Forms ---------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-size: 0.9rem;
  color: hsl(var(--ap-foreground));
  background: hsl(var(--ap-card));
  border: 1px solid hsl(var(--ap-border));
  border-radius: var(--ap-radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: hsl(var(--ap-primary) / 0.5);
  box-shadow: 0 0 0 3px hsl(var(--ap-primary) / 0.15);
}
button, input[type="submit"] { font-family: var(--ap-font-body); }
input[type="submit"] {
  width: auto;
  padding: 0.7rem 1.4rem;
  background: var(--ap-gradient-cyan);
  color: hsl(var(--ap-primary-foreground));
  border: 0;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--ap-shadow-glow);
}

.ap-search-form { display: flex; gap: 0.5rem; }
.ap-search-form .ap-btn { flex-shrink: 0; }

/* ---------- Comments ---------- */
.ap-comments { margin-top: 4rem; }
.ap-comments .comment-list { list-style: none; margin: 0 0 2.5rem; padding: 0; }
.ap-comments .comment-list ol.children { list-style: none; padding-left: 1.5rem; }
.ap-comments .comment-body {
  padding: 1.25rem;
  margin-bottom: 1rem;
  background: hsl(var(--ap-card));
  border: 1px solid hsl(var(--ap-border));
  border-radius: var(--ap-radius);
  box-shadow: var(--ap-shadow-card);
  font-size: 0.92rem;
}
.ap-comments .comment-meta { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.6rem; font-size: 0.8rem; }
.ap-comments .comment-author img { border-radius: 9999px; }
.ap-comments .comment-author a, .ap-comments .comment-metadata a { text-decoration: none; }
.ap-comments .reply a { font-size: 0.8rem; font-weight: 600; text-decoration: none; }
.comment-respond { padding: 1.5rem; background: hsl(var(--ap-card)); border: 1px solid hsl(var(--ap-border)); border-radius: calc(var(--ap-radius) + 0.25rem); }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.35rem; }

/* ---------- Pagination ---------- */
.ap-pagination { margin-top: 3rem; }
.ap-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ap-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  background: hsl(var(--ap-card));
  border: 1px solid hsl(var(--ap-border));
  border-radius: var(--ap-radius);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: hsl(var(--ap-muted-foreground));
}
.ap-pagination .page-numbers:hover { color: hsl(var(--ap-primary)); border-color: hsl(var(--ap-primary) / 0.3); }
.ap-pagination .page-numbers.current {
  background: var(--ap-gradient-cyan);
  border-color: transparent;
  color: hsl(var(--ap-primary-foreground));
  box-shadow: var(--ap-shadow-glow);
}

/* ---------- Footer ---------- */
.ap-footer {
  border-top: 1px solid hsl(var(--ap-border));
  padding-block: 2.5rem;
  background: hsl(var(--ap-background));
}
@media (min-width: 768px) { .ap-footer { padding-block: 4rem 2.5rem; } }
.ap-footer__cols { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .ap-footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3rem; } }
.ap-footer h2, .ap-footer .widget-title {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: hsl(var(--ap-foreground));
}
.ap-footer, .ap-footer p, .ap-footer a { font-size: 0.875rem; }
.ap-footer p { color: hsl(var(--ap-muted-foreground)); }
.ap-footer ul { list-style: none; margin: 0; padding: 0; }
.ap-footer li + li { margin-top: 0.5rem; }
.ap-footer a { color: hsl(var(--ap-muted-foreground)); text-decoration: none; }
.ap-footer a:hover { color: hsl(var(--ap-foreground)); }
.ap-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--ap-border));
  font-size: 0.8rem;
  color: hsl(var(--ap-muted-foreground));
}

.ap-glow-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, hsl(var(--ap-cyan-glow)), transparent);
}

/* ---------- Utilities / Gutenberg alignment ---------- */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  white-space: nowrap;
}
.ap-content .alignwide { width: min(100%, 1000px); margin-inline: auto; }
.ap-content .alignfull { width: 100%; }
.ap-content .alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.ap-content .alignright { float: right; margin: 0 0 1rem 1.5rem; }
.ap-content .aligncenter { margin-inline: auto; text-align: center; }
.ap-content .wp-caption { max-width: 100%; }
.sticky .ap-card { border-color: hsl(var(--ap-primary) / 0.35); }

.ap-notice {
  padding: 2rem;
  background: hsl(var(--ap-card));
  border: 1px dashed hsl(var(--ap-border));
  border-radius: calc(var(--ap-radius) + 0.25rem);
  text-align: center;
  color: hsl(var(--ap-muted-foreground));
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.ap-tags .ap-taxonomy a {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border: 1px solid hsl(var(--ap-border));
  border-radius: 9999px;
  background: hsl(var(--ap-muted));
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: hsl(var(--ap-muted-foreground));
  text-decoration: none;
}
.ap-tags .ap-taxonomy a:hover { color: hsl(var(--ap-primary)); border-color: hsl(var(--ap-primary) / 0.3); }

/* Language switcher (Polylang / WPML / TranslatePress / Weglot) */
.ap-langs {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  padding: 0.125rem;
  border: 1px solid hsl(var(--ap-border));
  border-radius: calc(var(--ap-radius) - 0.25rem);
  background: hsl(var(--ap-card));
}

.ap-lang {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: calc(var(--ap-radius) - 0.375rem);
  font-family: var(--ap-font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: hsl(var(--ap-muted-foreground));
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.ap-lang:hover {
  color: hsl(var(--ap-foreground));
  text-decoration: none;
}

.ap-lang.is-current {
  background: var(--ap-gradient);
  color: hsl(var(--ap-primary-foreground));
}

.ap-langs--plugin select {
  border: 0;
  background: transparent;
  font: inherit;
  color: hsl(var(--ap-muted-foreground));
}

@media (max-width: 640px) {
  .ap-langs { order: 2; }
}
