/*
 * MetaHashtags 2: shared styles (every mh2 page).
 * The original brand in a light, roomy interface: the four-bar logo and its
 * colours (blue #0e8cc9 for actions, teal #2ddab5 for sign-up and selections,
 * orange #fda354 for Pro, red #ec2a35 only for banned), Nunito 800/900 for
 * the wordmark and headings, Nunito Sans for the interface.
 * Light theme only.
 */

/* ---------- Tokens ---------- */
:root {
  --bg: #f5f8fb;            /* page, bands */
  --surface: #ffffff;       /* cards, header */
  --sunk: #f8fafc;          /* table head, card foot */
  --chip: #eef2f6;          /* grey chips, segmented control */
  --line: #e3e9ef;          /* borders */
  --line-soft: #eef2f6;     /* row dividers */
  --line-strong: #c9d6e0;   /* inputs */
  --line-chip: #d5dee6;     /* filter chips */
  --ink: #10212d;
  --ink-2: #4a5b68;
  --muted: #6d7d89;
  --blue: #0e8cc9;
  --blue-hover: #0b7cb3;
  --link: #0a6f9f;
  --link-hover: #08587e;
  --blue-wash: #e6f4fb;
  --sel: #eef7fc;           /* selected rows */
  --teal: #2ddab5;
  --teal-hover: #25c9a6;
  --teal-dark: #073b2f;     /* text on teal */
  --teal-ink: #0b4d3e;      /* text on teal wash */
  --teal-link: #0e7a62;
  --teal-wash: #e3f9f3;
  --orange: #fda354;
  --orange-hover: #fc9845;
  --orange-dark: #3d2100;   /* text on orange */
  --orange-ink: #9a5410;
  --orange-wash: #fff2e5;
  --orange-line: #f3d7b8;
  --orange-soft: #fffaf4;
  --red: #ec2a35;
  --red-ink: #c01f29;
  --red-wash: #fde9ea;
  --scrim: rgba(16, 33, 45, 0.45);
  --shadow-card: 0 1px 2px rgba(16, 33, 45, 0.05);
  --shadow-panel: 0 10px 30px -18px rgba(16, 33, 45, 0.35);
  --shadow-pop: 0 12px 32px -16px rgba(16, 33, 45, 0.35);
  --shadow-dialog: 0 30px 60px -20px rgba(16, 33, 45, 0.55);
  --r-sm: 8px;
  --r: 10px;
  --r-md: 12px;
  --r-lg: 16px;
  --gutter: 24px;
  --gutter-l: max(var(--gutter), env(safe-area-inset-left, 0px));
  --gutter-r: max(var(--gutter), env(safe-area-inset-right, 0px));
  --font-display: "Nunito", "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (max-width: 639.98px) { :root { --gutter: 16px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font: 400 16px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}
.site-main { flex: 1 0 auto; outline: none; }
img, video { max-width: 100%; height: auto; }
svg { flex: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0; text-wrap: balance; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; }
h4 { font-weight: 800; }
p, ul, ol, figure { margin: 0; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
code, kbd, .mono { font-family: var(--font-mono); font-size: 0.9em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
strong, b { font-weight: 800; }
[hidden] { display: none !important; }

.visually-hidden, .sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: var(--r);
  background: var(--blue); color: #fff; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: calc(12px + env(safe-area-inset-top, 0px)); color: #fff; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.narrow { max-width: 820px; }
.narrow-sm { max-width: 520px; }
.center { text-align: center; }
.muted { color: var(--ink-2); }
.stack { display: flex; flex-direction: column; gap: 16px; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; min-height: 44px; flex: none; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-logo { display: inline-flex; align-items: center; gap: 10px; }
.brand-name { font: 900 22px/1 var(--font-display); letter-spacing: -0.02em; color: var(--ink); }
.drawer-head .brand-name, .site-footer .brand-name { font-size: 19px; }
.tag-pro {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 6px;
  background: var(--orange-wash); color: var(--orange-ink); font: 800 12px/1.3 var(--font-body); letter-spacing: 0.06em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.header-bar {
  max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 28px;
  padding: 14px var(--gutter-r) 14px var(--gutter-l); min-height: 72px;
}
.nav-main { display: none; }
.nav-list { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: inline-block; padding: 6px 0; border-bottom: 2px solid transparent;
  color: var(--ink-2); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
}
.nav-link:hover { color: var(--ink); }
.nav-link[aria-current="page"] { color: var(--ink); border-bottom-color: var(--blue); }
.nav-actions { margin-left: auto; display: none; align-items: center; gap: 8px; }
.nav-group { display: inline-flex; align-items: center; gap: 8px; }
.nav-plain { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.nav-plain:hover { color: var(--link); }
.btn-header { min-height: 42px; padding: 10px 16px; font-size: 15px; }
.menu-btn {
  margin-left: auto; margin-right: -8px; width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: var(--r); background: transparent; color: var(--ink); cursor: pointer;
}
.menu-btn:hover { background: var(--chip); }
@media (min-width: 640px) { .nav-actions { display: flex; } .menu-btn { margin-left: 0; } }
@media (min-width: 1040px) { .nav-main { display: block; } .menu-btn { display: none; } }
@media (max-width: 639.98px) {
  .header-bar { padding-top: 12px; padding-bottom: 12px; min-height: 68px; gap: 10px; }
  .site-header .brand-logo svg { width: 26px; height: 26px; }
  .site-header .brand-name { font-size: 19px; }
}

/* Mobile menu: a sheet from the right */
dialog.drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0;
  width: min(340px, 100%); max-width: none; height: 100%; max-height: none;
  border: 0; background: var(--surface); color: var(--ink);
  box-shadow: -12px 0 40px rgba(16, 33, 45, 0.18); overflow-y: auto; overscroll-behavior: contain;
}
dialog.drawer[open] { animation: mh-drawer-in 0.2s ease-out; }
dialog.drawer::backdrop { background: var(--scrim); }
dialog.drawer.is-fallback-open { display: block; z-index: 80; }
@keyframes mh-drawer-in { from { transform: translateX(100%); } to { transform: none; } }
.drawer-inner { display: flex; flex-direction: column; gap: 20px; padding: calc(12px + env(safe-area-inset-top, 0px)) 16px calc(24px + env(safe-area-inset-bottom, 0px)); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.drawer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.drawer-nav a {
  display: flex; align-items: center; min-height: 48px; padding: 0 12px; border-radius: var(--r);
  color: var(--ink); font-weight: 700; font-size: 17px; text-decoration: none;
}
.drawer-nav a:hover { background: var(--bg); }
.drawer-nav a[aria-current="page"] { background: var(--blue-wash); color: var(--link); }
.drawer-actions { display: flex; flex-direction: column; gap: 8px; }
.drawer-foot { display: flex; gap: 20px; align-items: center; padding: 0 12px; font-weight: 700; font-size: 15px; }
.drawer-foot a { color: var(--ink-2); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: var(--r); border: 0;
  font: 800 15px/1.2 var(--font-body); text-decoration: none; text-align: center; cursor: pointer; white-space: nowrap;
  color: var(--ink); background: var(--chip);
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.btn:hover { text-decoration: none; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover:not([disabled]) { background: var(--blue-hover); color: #fff; }
.btn-teal { background: var(--teal); color: var(--teal-dark); }
.btn-teal:hover:not([disabled]) { background: var(--teal-hover); color: var(--teal-dark); }
.btn-orange { background: var(--orange); color: var(--orange-dark); }
.btn-orange:hover:not([disabled]) { background: var(--orange-hover); color: var(--orange-dark); }
.btn-outline { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); font-weight: 700; font-size: 14px; }
.btn-outline:hover:not([disabled]) { border-color: var(--line-strong); background: var(--bg); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); font-weight: 700; }
.btn-ghost:hover:not([disabled]) { background: var(--chip); color: var(--ink); }
.btn-lg { min-height: 52px; padding: 13px 22px; font-size: 16px; border-radius: var(--r-md); }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.btn-block { display: flex; width: 100%; }
.btn-text {
  display: inline-flex; align-items: center; min-height: 36px; padding: 8px; border: 0; border-radius: var(--r-sm);
  background: transparent; color: var(--ink-2); font: 700 13px var(--font-body); cursor: pointer;
}
.btn-text:hover { color: var(--ink); background: var(--chip); }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: var(--r); background: var(--bg); color: var(--ink-2); cursor: pointer;
}
.icon-btn:hover { background: var(--chip); color: var(--ink); }
.link-btn {
  display: inline-flex; align-items: center; padding: 0; border: 0; background: none;
  color: var(--link); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 0.15em;
}
.link-btn:hover { color: var(--link-hover); }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.45); border-top-color: #fff; animation: mh-spin 0.75s linear infinite; }
.is-loading .spinner { display: inline-block; }
@keyframes mh-spin { to { transform: rotate(360deg); } }

/* ---------- Labels and chips ---------- */
.pill-label {
  align-self: flex-start; display: inline-flex; padding: 5px 12px; border-radius: 999px;
  background: var(--blue-wash); color: var(--link); font-weight: 800; font-size: 13px;
}
.count-pill {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; white-space: nowrap;
  background: var(--teal-wash); color: var(--teal-ink); font-weight: 800; font-size: 13px; line-height: 1.4;
}
.count-pill.is-over { background: var(--orange-wash); color: var(--orange-ink); }
.label-banned {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 6px;
  background: var(--red-wash); color: var(--red-ink); font-weight: 800; font-size: 13px; line-height: 1.4;
}
.label-safe {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 6px;
  background: var(--teal-wash); color: var(--teal-ink); font-weight: 800; font-size: 13px; line-height: 1.4;
}
.save-pill { padding: 2px 8px; border-radius: 999px; background: var(--teal-wash); color: var(--teal-ink); font: 800 12px/1.4 var(--font-body); }

/* Size meter: four bars in the logo colours, filled by tier (niche 1 … very broad 4). */
.meter { display: inline-flex; gap: 3px; flex: none; }
.meter > span { width: 7px; height: 16px; border-radius: 3px; background: var(--line); }
.meter-1 > span:nth-child(-n+1), .meter-2 > span:nth-child(-n+2), .meter-3 > span:nth-child(-n+3), .meter-4 > span:nth-child(-n+4) { background: var(--teal); }
.meter-2 > span:nth-child(2), .meter-3 > span:nth-child(2), .meter-4 > span:nth-child(2) { background: var(--blue); }
.meter-3 > span:nth-child(3), .meter-4 > span:nth-child(3) { background: var(--orange); }
.meter-4 > span:nth-child(4) { background: var(--red); }
.meter-lg > span { width: 8px; height: 18px; }

/* ---------- Forms ---------- */
.field-label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 14px; color: var(--ink); }
.field-help { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.field-error { font-size: 14px; font-weight: 700; color: var(--red-ink); }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="url"],
input[type="tel"], input[type="number"], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r);
  background: var(--surface); color: var(--ink);
  font: 600 16px/1.4 var(--font-body); /* 16px stops iOS from zooming in */
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea { min-height: 120px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(14, 140, 201, 0.18); }
::placeholder { color: #8796a2; opacity: 1; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--blue); }

/* Checkbox (rows, select all): blue when ticked, like accent-color but sized and consistent */
.check, .check-row input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex: none; position: relative;
  width: 20px; height: 20px; margin: 0; border: 2px solid var(--line-strong); border-radius: 5px;
  background: var(--surface); cursor: pointer; vertical-align: middle;
  transition: background-color 0.12s, border-color 0.12s;
}
.check:hover:not(:disabled), .check-row input[type="checkbox"]:hover { border-color: var(--blue); }
.check:checked, .check:indeterminate, .check-row input[type="checkbox"]:checked { background: var(--blue); border-color: var(--blue); }
.check:checked::after, .check-row input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 5px; top: 1px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.check:indeterminate::after { content: ""; position: absolute; left: 3px; right: 3px; top: 7px; height: 2.5px; border-radius: 2px; background: #fff; }
.check:disabled { background: var(--chip); border-color: var(--line); cursor: not-allowed; }
.check:focus-visible, .check-row input[type="checkbox"]:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- Cards, notices ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-card); min-width: 0; }
.card-title { font: 800 19px/1.3 var(--font-display); color: var(--ink); }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); font-size: 15px; font-weight: 700; }
.notice .icon { margin-top: 2px; }
.notice-warn { background: var(--orange-wash); color: var(--orange-ink); }
.notice-error { background: var(--red-wash); color: var(--red-ink); }
.notice-info { background: var(--blue-wash); color: var(--link); }
.notice-ok { background: var(--teal-wash); color: var(--teal-ink); }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-weight: 600; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .icon { color: var(--teal-link); margin-top: 3px; }

/* ---------- Page layout ---------- */
.page-band { background: var(--surface); border-bottom: 1px solid var(--line); }
.page-head { padding-block: 40px 20px; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 720px) { .page-head { padding-block: 56px 24px; } }
.page-title { font: 900 clamp(32px, 6vw, 44px)/1.08 var(--font-display); letter-spacing: -0.025em; color: var(--ink); }
.page-lede { font-size: clamp(17px, 2.4vw, 19px); color: var(--ink-2); max-width: 46ch; }
.section { padding-block: 48px; }
@media (min-width: 960px) { .section { padding-block: 56px; } }
.section-tight { padding-top: 0; }
.section-title { margin-bottom: 24px; font: 800 clamp(24px, 4vw, 30px)/1.2 var(--font-display); letter-spacing: -0.01em; }

.page-article { padding-bottom: 56px; }
.page-article > .page-head { padding-bottom: 20px; }
.entry-thumb { margin: -8px 0 24px; }
.entry-thumb img { display: block; width: 100%; border-radius: var(--r-md); }
.nudge { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.nudge > div { flex: 999 1 300px; display: flex; flex-direction: column; gap: 4px; }
.link-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-width: 520px; }
.link-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font-weight: 800; text-decoration: none; }
.link-list a:hover { border-color: var(--line-strong); color: var(--link); }

/* Reading content (pages, posts, SEO copy) */
.prose { max-width: 760px; font-size: 17px; line-height: 1.7; color: var(--ink); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font: 800 clamp(22px, 3.4vw, 26px)/1.25 var(--font-display); margin-top: 1.8em; }
.prose h3 { font-size: 20px; margin-top: 1.6em; }
.prose h4 { font-size: 17px; margin-top: 1.4em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 0.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--muted); }
.prose img { border-radius: var(--r-md); }
.prose a { text-decoration: underline; text-underline-offset: 0.15em; }
.prose figure figcaption, .prose .wp-caption-text { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--blue); color: var(--ink-2); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.prose code { background: var(--chip); padding: 1px 5px; border-radius: 4px; }
.prose .alignleft { float: left; margin: 0.3em 1.2em 0.6em 0; }
.prose .alignright { float: right; margin: 0.3em 0 0.6em 1.2em; }
.prose .aligncenter { display: block; margin-inline: auto; }
.prose-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 28px 20px; }
@media (min-width: 720px) { .prose-card { padding: 48px 56px; } }
.prose-card .prose { margin-inline: auto; }
.entry-meta { font-size: 14px; color: var(--ink-2); }

/* Questions */
.faq { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1040px) { .faq { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.faq-item { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
.faq-item h3 { font-size: 18px; }
.faq-item p { color: var(--ink-2); }
.faq-more, .section-more { margin-top: 24px; color: var(--ink-2); }

/* ---------- Dialog (upgrade / sign-up), native <dialog> ---------- */
dialog.sheet {
  position: fixed; inset: auto 0 0 0; margin: 0; padding: 0;
  width: 100%; max-width: 100%; max-height: 92vh; max-height: 92dvh;
  border: 0; border-radius: 20px 20px 0 0;
  background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-dialog);
  overflow: auto; overscroll-behavior: contain;
}
dialog.sheet[open] { animation: mh-sheet-up 0.24s cubic-bezier(0.2, 0.8, 0.2, 1); }
dialog.sheet::backdrop { background: var(--scrim); }
dialog.sheet.is-fallback-open { display: block; z-index: 80; }
.sheet-scrim-fallback { position: fixed; inset: 0; z-index: 79; background: var(--scrim); }
.sheet-inner { padding: 22px 18px calc(20px + env(safe-area-inset-bottom, 0px)); }
html:has(dialog[open]) { overflow: hidden; }
@media (min-width: 640px) {
  dialog.sheet {
    inset: 0; margin: auto; width: min(520px, calc(100% - 32px)); height: fit-content; max-height: calc(100vh - 48px);
    border-radius: 20px;
  }
  dialog.sheet[open] { animation: mh-sheet-pop 0.18s ease-out; }
  .sheet-inner { padding: 26px 28px 22px; }
}
@keyframes mh-sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes mh-sheet-pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.up { display: flex; flex-direction: column; gap: 16px; }
.up-head { display: flex; align-items: flex-start; gap: 12px; }
.up-head-text { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.up-title { font: 800 24px/1.2 var(--font-display); letter-spacing: -0.01em; }
.sheet-x {
  margin-left: auto; flex: none; width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; border-radius: var(--r); background: var(--bg); color: var(--ink-2); cursor: pointer;
}
.sheet-x:hover { background: var(--chip); color: var(--ink); }
.up-lede { margin-top: -6px; color: var(--ink-2); }
.up-ticks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 16px; font-weight: 600; }
@media (min-width: 480px) { .up-ticks:not(.up-ticks-one) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.up-ticks li { display: flex; gap: 8px; align-items: flex-start; }
.up-ticks .icon { color: var(--teal-link); margin-top: 4px; }
.up-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.up-plan {
  text-align: left; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface);
  cursor: pointer; display: flex; flex-direction: column; gap: 2px; font-family: var(--font-body); color: var(--ink); min-width: 0;
}
.up-plan:hover { border-color: var(--line-strong); }
.up-plan[aria-checked="true"] { border-color: var(--blue); background: var(--sel); }
.up-plan-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-weight: 800; font-size: 15px; }
.up-plan-price { font: 900 26px/1.2 var(--font-display); }
.up-plan-per { font: 600 14px var(--font-body); color: var(--ink-2); }
.up-plan-note { font-size: 13px; color: var(--ink-2); }
.up-cta { min-height: 52px; border-radius: var(--r-md); font-size: 16px; white-space: normal; }
.up-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.up-foot-link { font-weight: 700; color: var(--teal-link); }
.up-foot-link:hover { color: var(--teal-ink); }
.up-fine { margin-top: -8px; font-size: 13px; color: var(--ink-2); text-align: center; }
.up-or { display: flex; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 700; color: var(--ink-2); }
@media (max-width: 479.98px) { .up-plan { padding: 12px; } .up-plan-price { font-size: 22px; } .up-title { font-size: 21px; } }

/* ---------- Account bar under the header (template-parts/account-notice.php) ---------- */
.notice-bar { border-bottom: 1px solid var(--line); font-size: 15px; }
.notice-bar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-top: 10px; padding-bottom: 10px; }
.notice-bar-inner p { flex: 1 1 260px; min-width: 0; }
.notice-bar .icon { flex: none; }
.notice-bar .btn-sm { min-height: 36px; }
.notice-bar-info { background: var(--blue-wash); color: var(--link); }
.notice-bar-info strong { color: var(--ink); }
.notice-bar-ok { background: var(--teal-wash); color: var(--teal-ink); }
.notice-bar-warn { background: var(--orange-wash); color: var(--orange-ink); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  max-width: calc(100% - 32px); padding: 11px 18px; border-radius: var(--r-md);
  background: var(--ink); color: #fff; font-weight: 700; font-size: 15px; box-shadow: var(--shadow-pop);
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast:empty { display: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 28px; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0; padding: 0; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink-2); font-weight: 700; font-size: 14px; text-decoration: none; }
.footer-nav a:hover { color: var(--ink); }
.footer-copy { margin-left: auto; font-size: 13px; color: var(--muted); }
@media (max-width: 959.98px) { .footer-copy { margin-left: 0; width: 100%; } }

/* ---------- Pagination (post lists; the blog's own styles are in blog.css) ---------- */
.pagination { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700; text-decoration: none; }
.pagination .page-numbers.current { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
