/* ===== The Augustine Journal — Global Stylesheet ===== */

:root {
  --bg: #0a0a0e;
  --bg2: #111116;
  --card: rgba(255, 255, 255, 0.025);
  --card-border: rgba(255, 255, 255, 0.06);
  --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.2);
  --text: #e8e8ed;
  --muted: #8a8a99;
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.14);
  --purple: #5b2d8e;
  --purple-soft: rgba(91, 45, 142, 0.07);
  --purple-border: rgba(91, 45, 142, 0.2);
  --purple-glow: rgba(91, 45, 142, 0.04);
  --radius: 8px;
  --radius-lg: 12px;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", Times, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-w: 740px;
  --max-w-wide: 960px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(91, 45, 142, 0.04) 0%, transparent 70%);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  isolation: isolate;
}

/* Subtle matte grain on the outer background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  filter: url(#grain-filter);
  opacity: 0.03;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ===== Google Translate Overrides ===== */
.goog-te-banner-frame { display: none !important; }
.skiptranslate { display: none !important; }
body { top: 0 !important; }
#google_translate_element { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 24px;
}

main.container {
  flex: 1;
  max-width: var(--max-w);
}

/* ===== Header / Topbar ===== */
.topbar {
  padding: 28px 0 0;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.brand {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-align: center;
  line-height: 1.2;
  margin: 0;
}

.brand a { text-decoration: none; }
.brand a:hover { text-decoration: none; }

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 100;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--muted);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.2s ease;
  border-radius: 2px;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav */
.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 14px 0 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.nav a, .nav .nav-label {
  padding: 7px 16px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--text);
  text-decoration: none;
  border-color: rgba(255, 255, 255, 0.06);
}

.nav a.active {
  color: var(--text);
  border-color: var(--purple-border);
  background: var(--purple-soft);
}

/* ===== Cards / Sections ===== */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}

.section {
  margin: 32px 0;
  padding: 36px 32px;
}

/* ===== Notices ===== */
.notices-wrap {
  margin-bottom: 24px;
}

.notice {
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--purple-soft);
  border: 1px solid var(--purple-border);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
  letter-spacing: 0.15px;
}

.notice + .notice {
  margin-top: 8px;
}

/* ===== Home Illustration ===== */
.home-illustration {
  display: flex;
  justify-content: center;
  margin: 20px auto 24px;
  max-width: 300px;
  color: var(--muted);
  user-select: none;
  pointer-events: none;
}

.home-illustration svg {
  width: 100%;
  height: auto;
}

/* ===== About ===== */
.about {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.9;
  color: var(--text);
  max-width: 620px;
  margin: 0 auto;
}

.about p {
  margin: 0 0 12px 0;
}

/* ===== Latest Post ===== */
.latest {
  margin-top: 32px;
  text-align: center;
  font-family: var(--font-sans);
}

.latest .label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.latest a {
  display: inline-block;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.latest a:hover {
  border-color: var(--purple-border);
  background: var(--purple-soft);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ===== Muted ===== */
.muted {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 13px;
}

/* ===== List Page ===== */
.listTitle {
  margin: 0 0 24px 0;
  font-size: 24px;
  font-weight: 500;
  text-align: center;
  font-family: var(--font-serif);
  letter-spacing: 0.4px;
}

.postRow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.1);
  transition: border-color 0.2s, transform 0.15s;
}

.postRow:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.postRow + .postRow {
  margin-top: 10px;
}

.postRow .title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  margin: 0;
  line-height: 1.35;
}

.postRow .date {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  white-space: nowrap;
  margin-top: 4px;
  letter-spacing: 0.2px;
}

/* ===== Single Post ===== */
.postShell {
  padding: 48px 32px 56px;
  max-width: 680px;
  margin: 32px auto;
  background: transparent;
  border: none;
}

/* ── Header ── */
.postHeader {
  text-align: center;
  margin-bottom: 0;
}

.postTitle {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.3px;
  color: var(--text);
}

.postMeta {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  color: rgba(138, 138, 153, 0.75);
  letter-spacing: 0.4px;
}

.postType {
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(168, 139, 212, 0.65);
}

.postMetaSep {
  color: rgba(138, 138, 153, 0.3);
  font-size: 11px;
}

.postDate {
  font-size: 12px;
}

/* ── Decorative rule between header and body ── */
.postRule {
  margin: 28px 0 32px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(168, 139, 212, 0.18) 20%,
    rgba(168, 139, 212, 0.18) 80%,
    transparent
  );
}

/* ── Body content ── */
.postContent {
  line-height: 2;
  font-size: 18px;
  font-family: var(--font-serif);
  color: rgba(232, 232, 237, 0.92);
  text-align: left;
}

.postContent p {
  margin: 0 0 22px 0;
}

/* First-line indent for PDF-extracted paragraphs */
.postContent .pdf-text p.pdf-indent {
  text-indent: 2em;
}

/* ── PDF body: clean left-aligned prose, no extra headings ── */
.postContent .pdf-text > p:not(.pdf-ref-entry) {
  text-align: left;
}

/* ── References heading — centered, elegant, the only heading from PDF ── */
.postContent .pdf-text .pdf-ref-heading {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin: 52px 0 24px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  color: var(--text);
}

/* ── Reference entries — left-aligned with hanging indent ── */
.postContent .pdf-text .pdf-ref-entry {
  padding-left: 2.5em;
  text-indent: -2.5em;
  text-align: left;
  margin-bottom: 14px;
  font-size: 0.92em;
  line-height: 1.7;
  color: rgba(232, 232, 237, 0.82);
}

/* ── Quill alignment & indent classes ── */
.postContent .ql-align-center { text-align: center; }
.postContent .ql-align-right { text-align: right; }
.postContent .ql-align-justify { text-align: justify; }
.postContent .ql-indent-1 { padding-left: 3em; }
.postContent .ql-indent-2 { padding-left: 6em; }
.postContent .ql-indent-3 { padding-left: 9em; }
.postContent .ql-indent-4 { padding-left: 12em; }
.postContent .ql-indent-5 { padding-left: 15em; }
.postContent .ql-indent-6 { padding-left: 18em; }
.postContent .ql-indent-7 { padding-left: 21em; }
.postContent .ql-indent-8 { padding-left: 24em; }

/* ── Rich-text headings (non-PDF content) ── */
.postContent h1, .postContent h2, .postContent h3, .postContent h4 {
  margin: 32px 0 14px 0;
  font-weight: 500;
  font-family: var(--font-serif);
  text-align: left;
}

.postContent blockquote {
  margin: 24px 0;
  padding: 16px 24px;
  border-left: 3px solid rgba(168, 139, 212, 0.25);
  background: rgba(91, 45, 142, 0.04);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: rgba(232, 232, 237, 0.85);
}

.postContent ul, .postContent ol {
  margin: 16px 0;
  padding-left: 28px;
}

.postContent a {
  color: #a88bd4;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(168, 139, 212, 0.3);
  transition: text-decoration-color 0.2s;
}

.postContent a:hover {
  color: var(--text);
  text-decoration-color: var(--text);
}

.postContent pre {
  white-space: pre-wrap;
  word-break: break-word;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  font-family: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
  font-size: 13px;
  line-height: 1.55;
  margin: 16px 0;
}

.postContent code {
  font-family: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}

/* ── Post footer with PDF link and share ── */
.postFooter {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.pdf-link {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}

.pdf-link:hover {
  color: var(--text);
  text-decoration: underline;
}

.postFooter-divider {
  width: 1px;
  height: 14px;
  background: var(--border);
  margin: 0 14px;
  flex-shrink: 0;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.3px;
  transition: color 0.2s;
  white-space: nowrap;
}

.share-btn:hover {
  color: var(--text);
}

.share-btn svg {
  flex-shrink: 0;
}


/* ===== Subscribe CTA (Homepage) ===== */
.subscribe-cta {
  margin-top: 28px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.subscribe-cta-label {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.subscribe-cta-btn {
  padding: 8px 18px;
  font-size: 12px;
}

/* ===== Subscribe Bell Button (Post Footer) ===== */
.subscribe-bell-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.3px;
  transition: color 0.2s;
  white-space: nowrap;
}

.subscribe-bell-btn:hover {
  color: var(--text);
}

.subscribe-bell-btn svg {
  flex-shrink: 0;
}

/* ===== Subscribe Modal ===== */
.subscribe-modal-box {
  max-width: 400px;
  background: #18181f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);
}

.subscribe-modal-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text);
}

.subscribe-modal-body .form-input {
  margin-bottom: 4px;
}

.subscribe-error {
  display: none;
  color: #e07070;
  font-family: var(--font-sans);
  font-size: 12px;
  margin: 4px 0 0;
  text-align: left;
}

.subscribe-success {
  text-align: center;
}

.subscribe-success p {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}

/* ===== Stat Card Link (clickable) ===== */
.stat-card-link {
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.stat-card-link:hover {
  border-color: var(--purple-border);
  background: var(--purple-soft);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ===== Footer ===== */
.footer {
  padding: 32px 0 40px;
  text-align: center;
  color: rgba(138, 138, 153, 0.5);
  font-size: 11px;
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0.3px;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 10px 18px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.2px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  line-height: 1;
}

.btn:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 2px solid rgba(91, 45, 142, 0.3);
  outline-offset: 2px;
}

.btn.primary {
  background: var(--purple-soft);
  border-color: var(--purple-border);
}

.btn.primary:hover {
  background: rgba(91, 45, 142, 0.12);
  border-color: rgba(91, 45, 142, 0.3);
}

.btn.danger {
  border-color: rgba(200, 50, 50, 0.25);
  color: #e07070;
}

.btn.danger:hover {
  background: rgba(200, 50, 50, 0.06);
  border-color: rgba(200, 50, 50, 0.35);
}

/* ===== Modal ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.modal-overlay.active {
  display: flex;
}
.modal-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  max-width: 420px;
  width: 90%;
  text-align: center;
}
.modal-message {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text);
  margin: 0 0 20px;
  white-space: pre-line;
  line-height: 1.6;
}
.modal-post-name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 8px;
}
.modal-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.modal-error {
  display: none;
  color: #e07070;
  font-family: var(--font-sans);
  font-size: 12px;
  margin: 8px 0 0;
}
.modal-box .form-input {
  margin-top: 12px;
}

/* ===== Grid ===== */
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ===== Form Elements ===== */
.form-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  transition: border-color 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: rgba(91, 45, 142, 0.25);
}

.form-input::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

select.form-input {
  cursor: pointer;
  appearance: auto;
}

textarea.form-input {
  resize: vertical;
  min-height: 100px;
  font-family: var(--font-sans);
  line-height: 1.55;
}

.form-label {
  display: block;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.form-hint {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  margin-top: 4px;
  opacity: 0.6;
}

/* ===== Admin Stats ===== */
.stat-card {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.1);
  text-align: center;
}

.stat-card .stat-label {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.stat-card .stat-value {
  font-size: 28px;
  font-weight: 500;
  font-family: var(--font-sans);
  margin-top: 6px;
}

/* ===== Success / Alert ===== */
.alert-success {
  padding: 12px 16px;
  border-radius: var(--radius);
  background: rgba(50, 160, 80, 0.06);
  border: 1px solid rgba(50, 160, 80, 0.2);
  color: #6ccf8a;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 16px;
}

.alert-error {
  padding: 12px 16px;
  border-radius: var(--radius);
  background: rgba(200, 50, 50, 0.06);
  border: 1px solid rgba(200, 50, 50, 0.2);
  color: #e07070;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 16px;
}

/* ===== Admin Nav ===== */
.admin-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 14px 0 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.3px;
  flex-wrap: wrap;
}

.admin-nav a, .admin-nav button {
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
  background: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
}

.admin-nav a:hover, .admin-nav button:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.admin-nav a.active {
  color: var(--text);
  border-color: var(--purple-border);
  background: var(--purple-soft);
}

/* ===== Dividers ===== */
.divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
  border: none;
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 32px 16px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 13px;
}

/* ===== Focus Rings (global) ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(91, 45, 142, 0.25);
  outline-offset: 2px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  :root {
    --max-w: 100%;
    --max-w-wide: 100%;
  }

  .topbar {
    padding-bottom: 14px;
  }

  .container {
    padding: 0 16px;
  }

  .brand {
    font-size: 26px;
  }

  .hamburger {
    display: block;
  }

  .nav {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 8px 0 16px;
    gap: 4px;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    text-align: center;
    padding: 10px 16px;
  }

  .section {
    padding: 28px 20px;
    margin: 20px 0;
  }

  .home-illustration {
    max-width: 220px;
    margin: 16px auto 20px;
  }

  .grid2 {
    grid-template-columns: 1fr;
  }

  .postShell {
    padding: 32px 20px 40px;
  }

  .postTitle {
    font-size: 26px;
  }

  .postContent {
    font-size: 17px;
  }

  .admin-nav {
    gap: 4px;
    font-size: 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
    padding-left: 4px;
    padding-right: 4px;
  }

  .admin-nav::-webkit-scrollbar {
    display: none;
  }

  .admin-nav a, .admin-nav button {
    padding: 6px 10px;
    font-size: 12px;
    flex-shrink: 0;
  }

  .admin-nav form {
    flex-shrink: 0;
  }

  .stat-card .stat-value {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .brand {
    font-size: 22px;
  }

  .section {
    padding: 22px 16px;
  }

  .home-illustration {
    max-width: 180px;
    margin: 12px auto 16px;
  }

  .postRow {
    flex-direction: column;
    gap: 10px;
  }

  .latest a {
    font-size: 16px;
    padding: 10px 16px;
  }

  .postShell {
    padding: 24px 16px 32px;
  }

  .postTitle {
    font-size: 23px;
  }

  .postContent {
    font-size: 16px;
    line-height: 1.9;
  }

  .postMeta {
    flex-wrap: wrap;
    gap: 5px;
  }
}
