:root {
  --bg: #e9eef5;
  --surface: #ffffff;
  --ink: #1c2430;
  --muted: #5f6b7a;
  --line: #d5dee9;
  --accent: #1f4e79;
  --accent-dark: #163a5c;
  --accent-text: #1f4e79;
  --accent-soft: rgba(31, 78, 121, 0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(28, 36, 48, 0.04), 0 8px 24px rgba(28, 36, 48, 0.06);
  --font: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-display: "IBM Plex Sans", system-ui, sans-serif;
  --max: 1100px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--accent);
  color: #fff;
  padding: 0.55rem 0.9rem;
  z-index: 1000;
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}

.nav-links a[aria-current="page"],
.nav-links a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

/* Top tools */
.hero {
  padding: 1.5rem 0 0.75rem;
}

.tools-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
  display: grid;
  gap: 0.85rem;
}

.search-row {
  display: flex;
  gap: 0.55rem;
  max-width: 100%;
}

.search-row input {
  flex: 1;
  min-width: 0;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 0.95rem;
  background: #fafbfc;
  outline: none;
}

.search-row input:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-row button {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: 1.1rem;
}

.search-row button:hover {
  background: var(--accent-dark);
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.35rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.88rem;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}

.pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* Section */
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.35rem 0 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--ink);
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.section-head a {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}

.section-bar {
  display: none;
}

/* Layout */
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.2rem;
  padding-bottom: 2.5rem;
  align-items: start;
}

.blog-main {
  min-width: 0;
}

.ad-infeed {
  grid-column: 1 / -1;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.post-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 20px rgba(28, 36, 48, 0.1);
}

.post-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e8eef5;
  border-bottom: 1px solid var(--line);
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.post-card:hover .post-thumb img {
  transform: scale(1.03);
}

.post-body {
  padding: 0.7rem 0.75rem 0.8rem;
  display: grid;
  gap: 0.3rem;
  flex: 1;
  background: #fff;
}

.post-cat {
  width: fit-content;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.18rem 0.4rem;
  border-radius: 4px;
}

.post-body h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.92rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-body h2 a:hover {
  color: var(--accent);
}

.post-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta {
  margin-top: auto;
  padding-top: 0.55rem;
  border-top: 1px solid #eef2f6;
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  color: #7b8796;
  font-size: 0.68rem;
  font-weight: 600;
}

/* AdSense placeholders */
.ad-slot {
  margin: 0.85rem 0;
}

.ad-slot__label {
  display: block;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.35rem;
}

.ad-slot__box {
  border: 1px dashed #b8c4d4;
  background:
    repeating-linear-gradient(
      -45deg,
      #f8fafc,
      #f8fafc 8px,
      #f1f5f9 8px,
      #f1f5f9 16px
    );
  border-radius: 8px;
  display: grid;
  place-items: center;
  gap: 0.2rem;
  color: #64748b;
  text-align: center;
  padding: 0.75rem;
}

.ad-slot__placeholder {
  font-weight: 700;
  font-size: 0.88rem;
}

.ad-slot__hint {
  font-size: 0.72rem;
  color: #94a3b8;
}

.ad-slot--banner .ad-slot__box {
  min-height: 90px;
}

.ad-slot--rectangle .ad-slot__box {
  min-height: 250px;
}

.ad-slot--inarticle .ad-slot__box {
  min-height: 120px;
}

.ad-slot--sidebar {
  margin: 0;
}

/* Sidebar — sticks with page scroll; no inner scrollbar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 84px;
  align-self: start;
  width: 100%;
}

.widget {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.05rem 1.1rem 1.15rem;
}

.widget h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.widget p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.author-widget {
  text-align: left;
}

.author-avatar {
  width: 64px;
  height: 64px;
  margin: 0 0 0.75rem;
  border-radius: 50%;
  object-fit: cover;
  background: #e8eef5;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
}

.popular-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.popular-list a {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.65rem;
  align-items: center;
}

.popular-list img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.popular-list span {
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
}

.popular-list a:hover span {
  color: var(--accent);
}

.trust-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.trust-list li + li {
  margin-top: 0.35rem;
}

.pagination {
  display: flex;
  justify-content: flex-start;
  margin-top: 1.1rem;
}

.pagination a,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.45rem 0.95rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
  font-size: 0.88rem;
}

.pagination a:hover,
.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Article page */
.article-page {
  padding: 1.1rem 0 2.6rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  color: #7b8796;
  font-size: 0.82rem;
  font-weight: 600;
}

.breadcrumb a {
  color: var(--accent);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.25rem;
  align-items: start;
}

.article-main {
  min-width: 0;
}

.article-shell {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.article-header {
  padding: 1.15rem 1.2rem 1.05rem;
}

.article-header .post-cat {
  margin-bottom: 0.55rem;
}

.article-header h1 {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  line-height: 1.22;
  letter-spacing: -0.03em;
}

.article-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  padding-top: 0.85rem;
  border-top: 1px solid #eef2f6;
}

.article-byline__left {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.article-byline__left img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.article-byline__left strong {
  display: block;
  font-size: 0.9rem;
}

.article-byline__left span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.1rem;
}

.article-tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.article-cover {
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #e8eef5;
}

.article-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-cover figcaption {
  margin: 0;
  padding: 0.75rem 1.2rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  border-top: 1px solid #eef2f6;
  background: #fff;
}

.prose {
  background: #fff;
  padding: 1.2rem 1.25rem 1.35rem;
}

.prose h2 {
  margin: 1.4rem 0 0.55rem;
  font-size: clamp(1.1rem, 2.4vw, 1.28rem);
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.prose h2:first-child {
  margin-top: 0.2rem;
}

.prose p,
.prose li {
  color: #334155;
  font-size: 1.02rem;
  line-height: 1.75;
}

.prose p {
  margin: 0 0 1rem;
}

.prose ol,
.prose ul {
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.prompt-box {
  margin: 1rem 0 0.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #f8fafc;
}

.prompt-box-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.prompt-box-head span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.copy-btn {
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  font-size: 0.85rem;
}

.copy-btn.copied {
  background: #15803d;
}

.prompt-box pre {
  margin: 0;
  padding: 1rem;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.6;
  color: #1f2937;
}

.article-footer-nav {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid #eef2f6;
}

.article-footer-nav a {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.92rem;
}

.article-side {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  position: sticky;
  top: 84px;
  align-self: start;
  width: 100%;
}

.ad-sticky-wrap {
  flex-shrink: 0;
  width: 100%;
}

.ad-sticky-card {
  margin: 0;
}

.ad-sticky-card .ad-slot {
  margin: 0;
}

.toc-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.toc-list li + li {
  margin-top: 0.35rem;
}

.related-block {
  margin-top: 1.15rem;
}

.related-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Pages */
.page-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.6rem 0 3rem;
}

.page-wrap--wide {
  max-width: 1120px;
}

.page-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.page-crumbs a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.page-crumbs a:hover {
  text-decoration: underline;
}

.page-hero {
  margin-bottom: 1.15rem;
}

.page-wrap h1,
.page-hero h1 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 1.95rem);
  letter-spacing: -0.025em;
  color: var(--ink);
}

.page-lead {
  margin: 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.page-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.45rem 1.5rem 1.55rem;
}

.page-card h2,
.prose-page h2 {
  margin: 1.45rem 0 0.55rem;
  font-size: 1.12rem;
  color: var(--ink);
}

.prose-page h2:first-of-type {
  margin-top: 1rem;
}

.page-card p,
.page-card li,
.prose-page p,
.prose-page li {
  color: #334155;
  line-height: 1.7;
}

.page-card a,
.prose-page a {
  color: var(--accent);
  font-weight: 600;
}

.page-card ul,
.prose-page ul {
  padding-left: 1.15rem;
}

.page-updated {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.page-related {
  margin-top: 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}

.page-related h2 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
}

.page-related ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 1rem;
}

.page-related a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.page-related a:hover {
  text-decoration: underline;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
}

.contact-meta {
  margin: 0.85rem 0 0;
  padding-left: 1.1rem;
}

.alert {
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.alert-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.alert-error ul {
  margin: 0.35rem 0 0;
}

.form {
  display: grid;
  gap: 0.9rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.form input,
.form textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.8rem 0.9rem;
  background: #fff;
  font: inherit;
}

.form input:focus,
.form textarea:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  width: fit-content;
  text-decoration: none;
}

.btn-primary {
  border: 0;
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.empty-state {
  text-align: left;
}

.empty-state h2 {
  margin-top: 0;
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.sitemap-list {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
}

.sitemap-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  align-items: baseline;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}

.sitemap-date {
  color: var(--muted);
  font-size: 0.85rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.filter-chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 8px;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
}

.filter-chip.is-active,
.filter-chip:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Footer */
.site-footer {
  background: #152033;
  color: #d1d5db;
  padding: 2.4rem 0 1.4rem;
  margin-top: 0.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer h3 {
  margin: 0 0 0.7rem;
  color: #fff;
  font-size: 0.95rem;
}

.site-footer p,
.site-footer a {
  color: #9ca3af;
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: #7b8796;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.ads-note {
  margin-top: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 960px) {
  .blog-layout,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .post-grid,
  .related-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* On mobile, stop sticky so layout stays normal */
  .sidebar,
  .article-side {
    position: static;
  }

  .footer-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .page-related ul {
    grid-template-columns: 1fr;
  }

  .article-header,
  .prose,
  .article-cover figcaption {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 640px) {
  .post-grid,
  .related-cards {
    grid-template-columns: 1fr;
  }

  .article-page {
    padding-top: 0.85rem;
  }

  .article-header h1 {
    font-size: 1.35rem;
  }

  .prose p,
  .prose li {
    font-size: 0.98rem;
  }

  .prompt-box-head {
    align-items: stretch;
  }

  .copy-btn {
    width: 100%;
  }

  .ad-slot--banner .ad-slot__box {
    min-height: 70px;
  }

  .ad-slot--rectangle .ad-slot__box {
    min-height: 180px;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1rem 0.9rem;
    gap: 0;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 0.8rem 0.2rem;
    border-bottom: 1px solid var(--line);
  }

  .site-header {
    position: relative;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
