/*
Theme Name: Vector Lantern Dispatch
Author: Northline Studio Collective
Description: A classic PHP editorial WordPress theme for AI, automation, and technology news.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ap-theme
*/

:root {
  --ap-bg: #050706;
  --ap-bg-soft: #0b0f0d;
  --ap-panel: #101511;
  --ap-panel-strong: #161d18;
  --ap-text: #f5f7f3;
  --ap-muted: #b7c1b7;
  --ap-subtle: #7f8d82;
  --ap-line: rgba(218, 255, 211, 0.14);
  --ap-line-strong: rgba(178, 255, 111, 0.32);
  --ap-accent: #a9ff5c;
  --ap-accent-deep: #69c335;
  --ap-accent-soft: rgba(169, 255, 92, 0.12);
  --ap-cyan: #83f1dc;
  --ap-danger: #ff806b;
  --ap-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --ap-radius: 8px;
  --ap-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--ap-bg);
  background-size: 54px 54px;
  color: var(--ap-text);
  font-family: var(--ap-font);
  font-size: 16px;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--ap-accent);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--ap-accent);
  color: #071006;
}

.ap-screen-reader-text,
.ap-skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ap-skip-link:focus {
  top: 14px;
  left: 14px;
  z-index: 9999;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 14px;
  clip: auto;
  border-radius: 6px;
  background: var(--ap-accent);
  color: #071006;
  font-weight: 800;
}

.ap-site-wrap {
  min-height: 100vh;
  overflow-x: hidden;
}

.ap-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.ap-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--ap-line);
  background: rgba(5, 7, 6, 0.84);
  backdrop-filter: blur(18px);
}

.ap-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 18px;
}

.ap-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 850;
  line-height: 1;
}

.ap-brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--ap-line-strong);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ap-accent), var(--ap-cyan));
  color: #051006;
  font-size: 0.86rem;
  font-weight: 900;
}

.ap-brand-logo {
  max-width: 168px;
}

.ap-brand-name {
  display: block;
  max-width: 190px;
  overflow: hidden;
  color: var(--ap-text);
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ap-nav-wrap {
  position: static;
  display: flex;
  align-items: center;
  gap: 16px;
}

.ap-menu-toggle {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--ap-line);
  border-radius: 8px;
  background: var(--ap-panel);
  color: var(--ap-text);
}

.ap-menu-toggle:hover,
.ap-menu-toggle:focus-visible {
  border-color: var(--ap-line-strong);
  color: var(--ap-accent);
}

.ap-menu-toggle-bars,
.ap-menu-toggle-bars::before,
.ap-menu-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.ap-menu-toggle-bars {
  position: relative;
}

.ap-menu-toggle-bars::before,
.ap-menu-toggle-bars::after {
  position: absolute;
  left: 0;
  content: "";
}

.ap-menu-toggle-bars::before {
  top: -6px;
}

.ap-menu-toggle-bars::after {
  top: 6px;
}

.ap-nav-wrap.ap-is-open .ap-menu-toggle-bars {
  transform: rotate(45deg);
}

.ap-nav-wrap.ap-is-open .ap-menu-toggle-bars::before {
  transform: translateY(6px) rotate(90deg);
}

.ap-nav-wrap.ap-is-open .ap-menu-toggle-bars::after {
  opacity: 0;
}

.ap-primary-nav {
  position: absolute;
  top: 74px;
  right: 16px;
  left: 16px;
  display: block;
  max-height: calc(100vh - 92px);
  max-height: calc(100dvh - 92px);
  overflow-y: auto;
  border: 1px solid var(--ap-line);
  border-radius: 8px;
  background: rgba(10, 14, 12, 0.98);
  box-shadow: var(--ap-shadow);
  opacity: 1;
  transform: translateY(0);
  transition: max-height 180ms ease, opacity 180ms ease, transform 180ms ease;
  -webkit-overflow-scrolling: touch;
}

.ap-nav-wrap.ap-js-ready .ap-primary-nav {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
}

.ap-nav-wrap.ap-js-ready.ap-is-open .ap-primary-nav {
  max-height: calc(100vh - 92px);
  max-height: calc(100dvh - 92px);
  overflow-y: auto;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.ap-menu,
.ap-sub-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ap-menu {
  display: grid;
  gap: 4px;
  padding: 10px;
}

.ap-menu-item {
  position: relative;
}

.ap-menu-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--ap-muted);
  font-size: 0.94rem;
  font-weight: 720;
}

.ap-menu-link:hover,
.ap-menu-link:focus-visible,
.ap-menu-item-current > .ap-menu-link {
  background: var(--ap-accent-soft);
  color: var(--ap-text);
}

.ap-sub-menu {
  display: grid;
  gap: 2px;
  padding-left: 14px;
}

.ap-header-cta {
  display: none;
}

.ap-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid var(--ap-line-strong);
  border-radius: 999px;
  background: var(--ap-accent);
  color: #061105;
  font-weight: 860;
  line-height: 1.1;
  text-align: center;
}

.ap-button:hover,
.ap-button:focus-visible {
  border-color: var(--ap-accent);
  background: #c4ff85;
  color: #061105;
}

.ap-button-secondary {
  background: transparent;
  color: var(--ap-text);
}

.ap-button-secondary:hover,
.ap-button-secondary:focus-visible {
  background: var(--ap-panel-strong);
  color: var(--ap-accent);
}

.ap-main {
  display: block;
}

.ap-hero {
  position: relative;
  padding: 62px 0 38px;
}

.ap-hero-grid {
  display: grid;
  gap: 28px;
}

.ap-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--ap-accent);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ap-kicker::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ap-accent);
  box-shadow: 0 0 22px var(--ap-accent);
  content: "";
}

.ap-hero-title {
  max-width: 760px;
  margin: 0;
  color: var(--ap-text);
  font-size: 2.55rem;
  line-height: 1.02;
}

.ap-hero-copy {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--ap-muted);
  font-size: 1.02rem;
}

.ap-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.ap-hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-radius);
  background:
    linear-gradient(180deg, rgba(169, 255, 92, 0.08), transparent 44%),
    var(--ap-panel);
  box-shadow: var(--ap-shadow);
}

.ap-hero-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ap-line);
}

.ap-hero-panel-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ap-text);
  font-size: 0.88rem;
  font-weight: 820;
}

.ap-hero-panel-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ap-accent);
  box-shadow: 0 0 22px var(--ap-accent);
}

.ap-hero-panel-status {
  color: var(--ap-subtle);
  font-size: 0.82rem;
  font-weight: 760;
}

.ap-hero-panel-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.ap-signal-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 12px;
  border: 1px solid var(--ap-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.ap-signal-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--ap-accent-soft);
  color: var(--ap-accent);
}

.ap-signal-title {
  display: block;
  color: var(--ap-text);
  font-size: 0.92rem;
  font-weight: 780;
  line-height: 1.25;
}

.ap-signal-text {
  display: block;
  color: var(--ap-subtle);
  font-size: 0.8rem;
  line-height: 1.35;
}

.ap-signal-value {
  color: var(--ap-accent);
  font-size: 0.95rem;
  font-weight: 860;
}

.ap-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ap-icon-svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.ap-section {
  padding: 38px 0;
}

.ap-section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.ap-section-title {
  margin: 0;
  color: var(--ap-text);
  font-size: 1.75rem;
  line-height: 1.14;
}

.ap-section-copy {
  max-width: 700px;
  margin: 0;
  color: var(--ap-muted);
}

.ap-widget-band {
  margin: 22px auto 0;
  padding: 18px;
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-radius);
  background: rgba(255, 255, 255, 0.025);
}

.ap-widget-band > *:first-child {
  margin-top: 0;
}

.ap-widget-band > *:last-child {
  margin-bottom: 0;
}

.ap-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.ap-metric {
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-radius);
  background: var(--ap-panel);
}

.ap-metric-value {
  display: block;
  color: var(--ap-accent);
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
}

.ap-metric-label {
  display: block;
  margin-top: 10px;
  color: var(--ap-muted);
  font-size: 0.9rem;
}

.ap-feature-grid {
  display: grid;
  gap: 14px;
}

.ap-feature-card {
  min-height: 210px;
  padding: 18px;
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
}

.ap-feature-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--ap-line-strong);
  border-radius: 8px;
  background: var(--ap-accent-soft);
  color: var(--ap-accent);
}

.ap-feature-title {
  margin: 18px 0 8px;
  color: var(--ap-text);
  font-size: 1.05rem;
  line-height: 1.25;
}

.ap-feature-text {
  margin: 0;
  color: var(--ap-muted);
  font-size: 0.95rem;
}

.ap-category-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ap-category-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--ap-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--ap-muted);
  font-size: 0.88rem;
  font-weight: 740;
}

.ap-category-chip:hover,
.ap-category-chip:focus-visible {
  border-color: var(--ap-line-strong);
  background: var(--ap-accent-soft);
  color: var(--ap-text);
}

.ap-category-count {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  color: var(--ap-accent);
  font-size: 0.75rem;
}

.ap-post-grid {
  display: grid;
  gap: 18px;
}

.ap-post-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-radius);
  background: var(--ap-panel);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.ap-post-card:hover,
.ap-post-card:focus-within {
  transform: translateY(-3px);
  border-color: var(--ap-line-strong);
  background: var(--ap-panel-strong);
}

.ap-post-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(169, 255, 92, 0.18), rgba(131, 241, 220, 0.1)),
    #101511;
}

.ap-post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.ap-post-card:hover .ap-post-media img {
  transform: scale(1.04);
}

.ap-post-placeholder {
  display: grid;
  height: 100%;
  place-items: center;
  color: var(--ap-accent);
}

.ap-post-placeholder-mark {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid var(--ap-line-strong);
  border-radius: 8px;
  background: rgba(5, 7, 6, 0.42);
  font-size: 1.1rem;
  font-weight: 900;
}

.ap-post-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.ap-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--ap-subtle);
  font-size: 0.82rem;
  font-weight: 700;
}

.ap-post-category {
  color: var(--ap-accent);
}

.ap-post-title {
  margin: 0;
  color: var(--ap-text);
  font-size: 1.18rem;
  line-height: 1.24;
}

.ap-post-title-link {
  color: inherit;
}

.ap-post-excerpt {
  margin: 0;
  color: var(--ap-muted);
  font-size: 0.95rem;
}

.ap-post-read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  color: var(--ap-accent);
  font-size: 0.9rem;
  font-weight: 840;
}

.ap-pagination {
  margin-top: 28px;
}

.ap-pagination .ap-page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  margin: 0 3px 6px 0;
  padding: 8px 12px;
  border: 1px solid var(--ap-line);
  border-radius: 6px;
  color: var(--ap-muted);
  font-weight: 780;
}

.ap-pagination .ap-page-numbers-current,
.ap-pagination .ap-page-numbers:hover,
.ap-pagination .ap-page-numbers:focus-visible {
  border-color: var(--ap-line-strong);
  background: var(--ap-accent-soft);
  color: var(--ap-text);
}

.ap-archive-header,
.ap-single-header,
.ap-page-header,
.ap-not-found {
  padding: 54px 0 26px;
}

.ap-archive-title,
.ap-single-title,
.ap-page-title,
.ap-not-found-title {
  max-width: 880px;
  margin: 0;
  color: var(--ap-text);
  font-size: 2.15rem;
  line-height: 1.08;
}

.ap-archive-description,
.ap-single-subline,
.ap-page-subline {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--ap-muted);
}

.ap-single-shell,
.ap-page-shell {
  width: min(80vw, 940px);
  margin: 0 auto;
}

.ap-single-article,
.ap-page-article {
  padding-bottom: 48px;
}

.ap-content {
  color: var(--ap-text);
  font-size: 1.03rem;
}

.ap-content > *:first-child {
  margin-top: 0;
}

.ap-content a {
  color: var(--ap-accent);
  text-decoration: underline;
  text-decoration-color: rgba(169, 255, 92, 0.42);
  text-underline-offset: 3px;
}

.ap-content p,
.ap-content ul,
.ap-content ol {
  color: var(--ap-muted);
}

.ap-content h1,
.ap-content h2,
.ap-content h3,
.ap-content h4,
.ap-content h5,
.ap-content h6 {
  margin-top: 1.45em;
  margin-bottom: 0.55em;
  color: var(--ap-text);
  line-height: 1.18;
}

.ap-content blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--ap-accent);
  color: var(--ap-text);
}

.ap-content code,
.ap-content pre {
  border: 1px solid var(--ap-line);
  border-radius: 6px;
  background: #0b0f0d;
  color: var(--ap-cyan);
}

.ap-content code {
  padding: 2px 5px;
}

.ap-content pre {
  overflow-x: auto;
  padding: 16px;
}

.ap-content table {
  width: 100%;
  border-collapse: collapse;
}

.ap-content th,
.ap-content td {
  padding: 10px;
  border: 1px solid var(--ap-line);
  text-align: left;
}

.ap-entry-footer {
  display: grid;
  gap: 20px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--ap-line);
}

.ap-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ap-tag-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--ap-line);
  border-radius: 999px;
  color: var(--ap-muted);
  font-size: 0.84rem;
}

.ap-tag-link:hover,
.ap-tag-link:focus-visible {
  border-color: var(--ap-line-strong);
  color: var(--ap-accent);
}

.ap-post-nav {
  display: grid;
  gap: 12px;
}

.ap-post-nav a {
  display: block;
  padding: 14px;
  border: 1px solid var(--ap-line);
  border-radius: 8px;
  color: var(--ap-muted);
}

.ap-post-nav a:hover,
.ap-post-nav a:focus-visible {
  border-color: var(--ap-line-strong);
  color: var(--ap-text);
}

.ap-search-form {
  display: flex;
  width: min(100%, 560px);
  gap: 8px;
  margin-top: 20px;
}

.ap-search-field {
  min-width: 0;
  flex: 1;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--ap-line);
  border-radius: 8px;
  background: var(--ap-panel);
  color: var(--ap-text);
}

.ap-search-field:focus {
  outline: 2px solid var(--ap-accent-soft);
  border-color: var(--ap-line-strong);
}

.ap-search-submit {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--ap-line-strong);
  border-radius: 8px;
  background: var(--ap-accent);
  color: #061105;
  font-weight: 840;
}

.ap-site-footer {
  border-top: 1px solid var(--ap-line);
  background: #040504;
}

.ap-footer-cta {
  display: grid;
  gap: 18px;
  padding: 38px 0;
  border-bottom: 1px solid var(--ap-line);
}

.ap-footer-title {
  max-width: 720px;
  margin: 0;
  color: var(--ap-text);
  font-size: 1.9rem;
  line-height: 1.1;
}

.ap-footer-copy {
  max-width: 700px;
  margin: 0;
  color: var(--ap-muted);
}

.ap-footer-widgets {
  display: grid;
  gap: 20px;
  padding: 30px 0;
}

.ap-footer-widget {
  color: var(--ap-muted);
}

.ap-footer-widget h2,
.ap-footer-widget h3,
.ap-footer-widget h4 {
  margin: 0 0 10px;
  color: var(--ap-text);
  font-size: 1rem;
}

.ap-footer-bottom {
  display: grid;
  gap: 14px;
  padding: 18px 0 26px;
  border-top: 1px solid var(--ap-line);
  color: var(--ap-subtle);
  font-size: 0.88rem;
}

.ap-footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ap-footer-menu .ap-menu-link {
  min-height: 0;
  padding: 0;
  background: transparent;
  color: var(--ap-subtle);
}

.ap-footer-menu .ap-menu-link:hover,
.ap-footer-menu .ap-menu-link:focus-visible {
  color: var(--ap-accent);
}

.ap-empty {
  padding: 26px;
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-radius);
  background: var(--ap-panel);
  color: var(--ap-muted);
}

.ap-admin-edit {
  margin-top: 16px;
}

.ap-admin-edit a {
  color: var(--ap-accent);
}

@media (min-width: 700px) {
  .ap-shell {
    width: min(1180px, calc(100% - 52px));
  }

  .ap-hero {
    padding-top: 82px;
  }

  .ap-hero-title {
    font-size: 4rem;
  }

  .ap-hero-copy {
    font-size: 1.08rem;
  }

  .ap-metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ap-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ap-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ap-post-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ap-footer-cta {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
  }

  .ap-footer-widgets {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ap-footer-bottom {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (min-width: 980px) {
  .ap-menu-toggle {
    display: none;
  }

  .ap-primary-nav,
  .ap-nav-wrap.ap-js-ready .ap-primary-nav,
  .ap-nav-wrap.ap-js-ready.ap-is-open .ap-primary-nav {
    position: static;
    display: block;
    max-height: none;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .ap-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
  }

  .ap-menu-link {
    min-height: 40px;
    padding: 8px 10px;
  }

  .ap-menu-item:hover > .ap-sub-menu,
  .ap-menu-item:focus-within > .ap-sub-menu {
    display: grid;
  }

  .ap-sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    display: none;
    min-width: 210px;
    padding: 8px;
    border: 1px solid var(--ap-line);
    border-radius: 8px;
    background: rgba(10, 14, 12, 0.98);
    box-shadow: var(--ap-shadow);
  }

  .ap-header-cta {
    display: inline-flex;
  }

  .ap-hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    align-items: center;
  }

  .ap-post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .ap-brand-name {
    max-width: 132px;
  }

  .ap-hero-title {
    font-size: 2.15rem;
  }

  .ap-metric-grid {
    grid-template-columns: 1fr;
  }

  .ap-search-form {
    display: grid;
  }
}
