/* Paw Sisters blog — component styles.
   Globals (frame, buttons, kicker, on-dark, container, section, fonts) come from
   tokens.css + base.css (the real site stylesheets). This file ports the site's
   scoped component styles (header, footer, floating button, stage, blog post). */

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 300; background: #fff; padding: 0.6rem 1rem; border-radius: 10px; box-shadow: var(--shadow-card); }
.full { width: 100%; justify-content: center; }

/* ============================================================
   HEADER  (ported from Header.astro)
   ============================================================ */
.header { position: sticky; top: 0; z-index: 100; transition: background var(--dur-hover) var(--ease), box-shadow var(--dur-hover) var(--ease); }
.header.is-scrolled { background: rgba(255,255,255,0.82); backdrop-filter: blur(16px) saturate(160%); box-shadow: 0 1px 0 var(--line), 0 14px 40px -32px rgba(4,39,64,0.5); }
.header__inner { display: flex; align-items: center; gap: 1.5rem; padding: calc(var(--header-pad-y) - var(--header-trim)) var(--pad-inline) calc(var(--header-pad-y) - var(--header-trim)); }
.header__logo img { height: 34px; width: auto; }
.header__nav { margin-inline-start: auto; }
.header__nav > ul { display: flex; align-items: center; gap: 0.35rem; list-style: none; margin: 0; padding: 0; }
.header__nav a { display: inline-flex; align-items: center; gap: 0.25em; padding: 0.5rem 0.7rem; font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); border-radius: 8px; transition: color var(--dur-hover) var(--ease), background var(--dur-hover) var(--ease); }
.header__nav a:hover { color: var(--navy); background: rgba(4,39,64,0.04); }
.has-sub { position: relative; }
.submenu { position: absolute; top: 100%; left: 0; min-width: 250px; padding: 0.5rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-card); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all 0.25s var(--ease); list-style: none; }
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(4px); }
.submenu ul { display: grid; gap: 1px; list-style: none; margin: 0; padding: 0; }
.submenu a { padding: 0.6rem 0.8rem; font-size: 0.9rem; border-radius: 8px; }
.header__actions { display: flex; align-items: center; gap: 0.9rem; }
.header__call { display: inline-flex; align-items: center; gap: 0.45em; font-size: 0.9rem; font-weight: 600; color: var(--navy); }
.header__call svg { color: var(--cyan); }
.header__book { white-space: nowrap; }
.header__burger { display: none; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 13px; border: 1px solid var(--line-strong); background: rgba(255,255,255,0.6); color: var(--navy); }
.header__burger:hover { background: #fff; border-color: var(--navy); }
.header__burger-ico { width: 19px; height: 2px; border-radius: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }

.mobilemenu { position: fixed; inset: 0; z-index: 200; background: var(--navy); color: #fff; padding: 1.25rem var(--pad-inline) 2rem; display: flex; flex-direction: column; transform: translateY(-100%); visibility: hidden; transition: transform 0.55s var(--ease), visibility 0.55s; overflow-y: auto; }
.mobilemenu.is-open { transform: none; visibility: visible; }
.mobilemenu__bar { display: flex; align-items: center; justify-content: space-between; }
.mobilemenu__bar img { height: 32px; width: auto; filter: brightness(0) invert(1); }
.mobilemenu__bar button { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 13px; border: 1px solid var(--on-dark-line); background: rgba(255,255,255,0.06); color: #fff; }
.mobilemenu__nav { margin-top: auto; margin-bottom: auto; padding-block: 2rem; }
.mobilemenu__nav ul { list-style: none; margin: 0; padding: 0; }
.mobilemenu__nav a { display: flex; align-items: baseline; gap: 0.9rem; padding: 0.5rem 0; font-family: var(--font-display); font-size: clamp(1.9rem, 9vw, 2.8rem); font-weight: 500; color: #fff; }
.mm-num { font-size: 0.9rem; font-family: var(--font-body); color: var(--cyan-bright); opacity: 0.8; }
.mobilemenu__foot { display: grid; gap: 0.6rem; }
.mobilemenu__foot a { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 600; color: #fff; }
.mobilemenu__foot svg { color: var(--cyan-bright); }
.mobilemenu__foot p { color: var(--on-dark-2); font-size: 0.9rem; }
@media (max-width: 1080px) {
  .header__nav, .header__call { display: none; }
  .header__burger { display: inline-flex; }
  .header__inner { justify-content: space-between; }
  /* mobile: trim overall header height by shrinking padding, logo + burger */
  .header { --header-pad-y: clamp(1.18rem, 1.44vw, 1.4rem); --header-logo-h: 26px; }
  .header__logo img { height: 30px; }
  .header__burger { width: 35px; height: 35px; border-radius: 10px; }
  .header__burger-ico { width: 14px; }
}
@media (max-width: 560px) { .header__book { display: none; } }

/* ============================================================
   STAGE (navy card)  (ported from StageCard.astro)
   ============================================================ */
.stage { position: relative; isolation: isolate; overflow: clip; background: var(--navy); color: var(--on-dark); border-radius: var(--stage-radius); inline-size: min(100% - var(--pad-inline) * 2, var(--content-max)); margin-inline: auto; }
.stage__body { position: relative; z-index: 2; padding: clamp(2.25rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.25rem); }
.stage--bleed { inline-size: auto; margin-inline: var(--stage-inset); margin-block-start: clamp(0.5rem, 1.2vw, 1rem); }
.stage--bleed .stage__body { inline-size: min(100% - var(--pad-inline) * 2, var(--content-max)); margin-inline: auto; padding-inline: 0; padding-block: clamp(2rem, 5vw, 4.5rem); }
.stage__glows { position: absolute; inset: 0; z-index: 0; }
.stage__glows .g { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.5; }
.stage__glows .g1 { width: 42%; height: 60%; top: -12%; left: -6%; background: radial-gradient(circle, rgba(30,164,214,0.55), transparent 70%); }
.stage__glows .g2 { width: 38%; height: 55%; bottom: -14%; right: -4%; background: radial-gradient(circle, rgba(74,129,196,0.5), transparent 70%); }
.stage__glows .g3 { width: 30%; height: 40%; top: 30%; right: 26%; background: radial-gradient(circle, rgba(74,129,196,0.4), transparent 70%); }
.stage__grain { position: absolute; inset: 0; z-index: 1; opacity: 0.05; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@media (max-width: 600px) {
  .stage, .stage--bleed { inline-size: auto; margin-inline: var(--pad-inline); border-radius: 22px; }
  .stage__body, .stage--bleed .stage__body { inline-size: auto; margin-inline: 0; padding: clamp(1.6rem,6vw,2.4rem) clamp(1.15rem,5vw,1.6rem); }
}

/* ============================================================
   FOOTER  (ported from Footer.astro)
   ============================================================ */
.footer { position: relative; background: transparent; padding-top: clamp(3rem, 7vw, 6rem); overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); padding-bottom: 3rem; border-bottom: 1px solid var(--line); }
.footer__lead .kicker { display: flex; width: max-content; }
.footer__email { display: inline-flex; align-items: baseline; gap: 0.3em; margin-top: 0.9rem; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 4.5vw, 3rem); color: var(--navy); letter-spacing: -0.02em; background-image: linear-gradient(var(--cyan), var(--cyan)); background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 2px; transition: background-size 0.5s var(--ease); }
.footer__email:hover { background-size: 100% 2px; }
.footer__addr, .footer__clock { display: flex; align-items: center; gap: 0.5em; margin-top: 1.1rem; color: var(--muted); font-size: 0.98rem; }
.footer__addr svg, .footer__clock svg { color: var(--cyan); flex: none; }
.footer__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer__cols h4 { font-family: var(--font-body); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 0.9rem; }
.footer__cols ul { display: grid; gap: 0.55rem; list-style: none; margin: 0; padding: 0; }
.footer__cols a { font-size: 0.95rem; color: var(--ink-soft); transition: color var(--dur-hover) var(--ease); }
.footer__cols a:hover { color: var(--cyan); }
.footer__meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 1.5rem; }
.footer__social { display: flex; gap: 0.5rem; }
.footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--navy); border: 1px solid var(--line); transition: all var(--dur-hover) var(--ease); }
.footer__social a:hover { color: #fff; background: var(--navy); border-color: var(--navy); }
.footer__legal { font-size: 0.85rem; color: var(--muted); }
.footer__legal a { color: var(--ink-soft); }
.footer__legal a:hover { color: var(--cyan); }
.footer__wordmark { font-family: var(--font-display); font-weight: 600; font-size: clamp(4rem, 20vw, 16rem); line-height: 0.8; text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(4,39,64,0.12); letter-spacing: -0.03em; margin-bottom: -0.22em; user-select: none; pointer-events: none; white-space: nowrap; }
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .footer__cols { grid-template-columns: 1fr 1fr; } .footer__meta { flex-direction: column; align-items: flex-start; } }

/* ============================================================
   FLOATING CALL + WHATSAPP  (ported from WhatsAppFab.astro)
   ============================================================ */
.fab-stack { position: fixed; right: calc(var(--frame-gap) + clamp(0.75rem, 1.5vw, 1.25rem)); bottom: clamp(1.25rem, 4vw, 2rem); z-index: 90; display: grid; gap: 16px; padding: 7px; border-radius: 999px; background: #fff; box-shadow: 0 14px 30px -12px rgba(15,23,42,0.28); }
.fab-btn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: #fff; transition: transform var(--dur-hover) var(--ease); }
.fab-call { background: #34c759; }
.fab-wa { background: #25d366; }
@media (hover: hover) and (pointer: fine) { .fab-btn:hover { transform: scale(1.08); } }
@media (max-width: 640px) { .fab-stack { display: none; } }

/* ============================================================
   BLOG INDEX
   ============================================================ */
.bl-hero__inner { max-width: 44rem; }
.bl-crumbs { display: flex; gap: 0.5em; font-size: 0.85rem; color: var(--on-dark-3); margin-bottom: 0.9rem; }
.bl-crumbs a { color: var(--on-dark-2); }
.bl-crumbs a:hover { color: #fff; }
.bl-hero__title { font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.2rem); line-height: 1.07; color: #fff; }
.bl-hero__lede { margin-top: 1rem; max-width: 38rem; color: var(--on-dark-2); font-weight: 300; line-height: 1.7; }
.bl-empty { color: var(--ink-soft); font-weight: 300; font-size: 1.05rem; }
.bl-empty a { color: var(--cyan); font-weight: 500; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); list-style: none; margin: 0; padding: 0; }
.card { border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-soft); transition: transform var(--dur-hover) var(--ease), box-shadow var(--dur-hover) var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.card a { display: flex; flex-direction: column; height: 100%; }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sky); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.tag { align-self: flex-start; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--cyan); background: var(--sky); padding: 0.25rem 0.6rem; border-radius: 100px; }
.card-title { font-size: 1.08rem; line-height: 1.3; color: var(--navy); }
.card-meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; font-size: 0.82rem; color: var(--muted); }
.more { font-weight: 600; color: var(--cyan); }
.sec-h { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: 0.4rem; }
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .card-grid { grid-template-columns: 1fr; } }

/* ============================================================
   BLOG POST  (ported from BlogPost.astro)
   ============================================================ */
.bp-hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.bp-crumbs { display: flex; flex-wrap: wrap; gap: 0.5em; font-size: 0.85rem; color: var(--on-dark-3); margin-bottom: 0.9rem; }
.bp-crumbs a { color: var(--on-dark-2); }
.bp-crumbs a:hover { color: #fff; }
.bp-hero__title { font-size: clamp(2rem, 1.2rem + 3vw, 3.1rem); line-height: 1.08; color: #fff; }
.bp-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55em; margin-top: 1rem; color: var(--on-dark-2); font-size: 0.92rem; font-weight: 300; }
.bp-hero__meta a { color: #fff; font-weight: 600; }
.bp-review { display: flex; align-items: flex-start; gap: 0.5em; margin-top: 0.55rem; color: var(--on-dark-2); font-size: 0.85rem; font-weight: 300; }
.bp-review svg { flex: none; width: 0.95rem; height: 0.95rem; margin-top: 0.18em; color: var(--cyan, #62d5e2); }
.bp-review a { color: #fff; font-weight: 600; }

.bl-back { margin-top: 1.6rem; }
.bl-back a { font-weight: 600; color: var(--navy); }
.bp-hero__img { width: 100%; height: auto; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: 22px; box-shadow: 0 30px 60px -30px rgba(2,20,36,0.8); }
.bp-body__grid { display: grid; grid-template-columns: 1fr 18rem; gap: clamp(1.8rem, 4vw, 3.5rem); align-items: start; }
.post-prose { max-width: 68ch; }
.post-prose p { color: var(--ink-soft); font-weight: 300; font-size: 1.05rem; line-height: 1.75; margin-bottom: 1.1rem; }
.post-prose h2 { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.9rem); margin: 2rem 0 0.8rem; scroll-margin-top: 6rem; }
.post-prose h3 { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem); margin: 1.5rem 0 0.6rem; scroll-margin-top: 6rem; }
.post-prose ul, .post-prose ol { margin: 0 0 1.1rem; padding-left: 1.2rem; display: grid; gap: 0.5rem; }
.post-prose li { color: var(--ink-soft); font-weight: 300; line-height: 1.65; }
.post-prose a { color: var(--cyan); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.post-prose a:hover { color: var(--blue); }
.post-prose strong { font-weight: 600; color: var(--ink); }
.post-prose img { width: 100%; height: auto; border-radius: 16px; margin: 1.4rem 0; border: 1px solid var(--line); }
.post-prose blockquote { margin: 1.4rem 0; padding: 0.6rem 0 0.6rem 1.2rem; border-left: 3px solid var(--cyan); color: var(--ink); font-style: italic; }
.post-prose code { background: var(--sky); padding: 0.1em 0.4em; border-radius: 6px; font-size: 0.92em; }
.post-prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.bp-rail { position: sticky; top: 6rem; display: grid; gap: 1.2rem; }
.bp-toc { padding: 1.2rem 1.3rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.bp-toc__h { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.7rem; }
.bp-toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.bp-toc a { font-size: 0.92rem; font-weight: 400; color: var(--ink-soft); }
.bp-toc a:hover { color: var(--cyan); }
.bp-cta { padding: 1.4rem 1.3rem; border-radius: 16px; background: var(--sky); border: 1px solid var(--line); }
.bp-cta__h { font-size: var(--step-1); }
.bp-cta p { margin-top: 0.4rem; color: var(--ink-soft); font-weight: 300; font-size: 0.92rem; line-height: 1.55; }
.bp-cta__btn { width: 100%; margin-top: 1rem; }
.bp-cta__line { display: flex; align-items: center; gap: 0.5em; margin-top: 0.9rem; font-weight: 600; font-size: 0.95rem; color: var(--navy); }
.bp-cta__line svg { color: var(--cyan); }
.bp-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); list-style: none; margin: 1.4rem 0 0; padding: 0; }
.bp-closer { text-align: center; max-width: 38rem; margin-inline: auto; }
.bp-closer__title { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.8rem); color: #fff; margin-top: 0.4rem; }
.bp-closer__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-top: 1.6rem; }
.closer-inner { text-align: center; max-width: 40rem; margin-inline: auto; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-top: 1.4rem; }
@media (max-width: 900px) {
  .bp-hero__grid, .bp-body__grid { grid-template-columns: 1fr; }
  .bp-hero__media { order: -1; max-width: 460px; }
  .bp-rail { position: relative; top: 0; }
  .bp-related { grid-template-columns: 1fr; }
}

/* ============================================================
   ADMIN — dense, tool-like UI. Own type scale (fixed, not fluid),
   own button/heading sizing. Never borrows the marketing site's
   display font or pill buttons.
   ============================================================ */
body.admin {
  background: var(--canvas);
  font-size: 0.875rem;
  --btn-py: 0.55rem;
  --btn-px: 0.85rem;
  --btn-fs: 0.82rem;
  --btn-radius: 8px;
}
.admin h1, .admin h2, .admin h3, .admin h4 {
  font-family: var(--font-body);
  letter-spacing: -0.01em;
  color: var(--navy);
}
.admin h1 { font-size: 1.3rem; font-weight: 700; line-height: 1.3; }
.admin h2 { font-size: 1.02rem; font-weight: 600; }
.admin h3 { font-size: 0.92rem; font-weight: 600; }
.a-wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.a-brand { color: #fff; font-family: var(--font-body); font-weight: 700; font-size: 0.9rem; letter-spacing: -0.01em; }
.a-brand span { color: var(--cyan-bright); font-weight: 500; font-size: 0.74rem; }
.a-main { padding-top: 1.75rem; padding-bottom: 2.5rem; }

/* ---- sidebar shell ---- */
.a-shell { display: flex; align-items: stretch; min-height: 100vh; }
.a-side-check { display: none; }
.a-side { flex: none; width: 13rem; background: var(--navy); color: #fff; display: flex; flex-direction: column; padding: 1rem 0.8rem 1.1rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.a-side-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.3rem; padding: 0 0.2rem; }
.a-side-close { display: none; color: #fff; cursor: pointer; }
.a-side-nav { display: grid; gap: 0.1rem; }
.a-side-link { display: flex; align-items: center; gap: 0.6rem; padding: 0.48rem 0.6rem; border-radius: 7px; color: var(--on-dark-2); font-weight: 500; font-size: 0.8rem; }
.a-side-link svg { flex: none; opacity: 0.8; width: 15px; height: 15px; }
.a-side-link:hover { background: rgba(255,255,255,0.06); color: #fff; }
.a-side-link.is-active { background: rgba(30,164,214,0.16); color: var(--cyan-bright); }
.a-side-link.is-active svg { opacity: 1; }
.a-side-foot { margin-top: auto; padding-top: 0.8rem; border-top: 1px solid rgba(255,255,255,0.1); display: grid; gap: 0.15rem; }
.a-side-user { display: flex; align-items: center; gap: 0.55rem; padding: 0.45rem 0.6rem; }
.a-side-avatar { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: rgba(255,255,255,0.1); color: #fff; flex: none; }
.a-side-avatar svg { width: 13px; height: 13px; }
.a-side-uinfo { display: grid; gap: 0.05rem; min-width: 0; }
.a-side-uname { font-weight: 600; font-size: 0.76rem; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-side-logout { font-size: 0.7rem; color: var(--on-dark-2); }
.a-side-logout:hover { color: #fff; }
.a-side-backdrop { display: none; }
.a-content-col { flex: 1; min-width: 0; }
.a-mobile-bar { display: none; }
@media (max-width: 900px) {
  .a-side { position: fixed; inset: 0 auto 0 0; transform: translateX(-100%); transition: transform 0.28s ease; z-index: 220; box-shadow: var(--shadow-card); }
  .a-side-close { display: inline-flex; }
  .a-side-check:checked ~ .a-side { transform: none; }
  .a-side-backdrop { display: none; position: fixed; inset: 0; background: rgba(4,39,64,0.45); z-index: 210; cursor: pointer; }
  .a-side-check:checked ~ .a-side-backdrop { display: block; }
  .a-mobile-bar { display: flex; align-items: center; gap: 0.75rem; padding: 0.8rem 1rem; background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 150; }
  .a-side-toggle { display: inline-flex; color: #fff; cursor: pointer; }
  .a-brand-mini { font-family: var(--font-body); font-weight: 700; font-size: 0.86rem; }
}
.a-head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.a-muted { color: var(--muted); }
.a-hint { color: var(--muted); font-weight: 400; font-size: 0.76rem; }
.a-ok { background: #e8f7f3; border: 1px solid #b6e5d8; color: #116149; padding: 0.55rem 0.85rem; border-radius: 8px; margin-bottom: 1rem; font-size: 0.85rem; }
.a-err { background: #fdecec; border: 1px solid #f5b5b5; color: #a11; padding: 0.5rem 0.8rem; border-radius: 8px; margin: 0.5rem 0; font-size: 0.85rem; }
.a-errbox { background: #fdecec; border: 1px solid #f5b5b5; color: #a11; padding: 0.75rem 0.95rem; border-radius: 10px; margin-bottom: 1.1rem; font-size: 0.85rem; }
.a-errbox ul { margin: 0.35rem 0 0; padding-left: 1.1rem; }
.a-auth { min-height: 80vh; display: grid; place-items: center; padding: 2rem; }
.a-auth-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-card); padding: 1.85rem; max-width: 380px; width: 100%; }
.a-auth-card h1 { font-size: 1.4rem; margin-bottom: 0.35rem; }
.a-auth-card form { margin-top: 1.1rem; display: grid; gap: 0.85rem; }
.a-auth-card label { display: grid; gap: 0.3rem; font-weight: 600; font-size: 0.82rem; color: var(--navy); }
.a-auth-card input { font: inherit; font-weight: 400; padding: 0.6rem 0.75rem; border: 1px solid var(--line-strong); border-radius: 9px; font-size: 0.88rem; }
.a-auth-card input:focus { outline: none; border-color: var(--cyan); }
.a-form { margin-top: 0.4rem; }
.a-grid { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 1.4rem; align-items: start; }
.a-col-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.a-col-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.a-panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; box-shadow: var(--shadow-soft); display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.8rem; margin-bottom: 1rem; }
.a-field { display: grid; gap: 0.3rem; font-weight: 600; font-size: 0.8rem; color: var(--navy); }
.a-field input, .a-field textarea { font: inherit; font-weight: 400; padding: 0.6rem 0.75rem; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; color: var(--ink); width: 100%; font-size: 0.86rem; }
.a-field input:focus, .a-field textarea:focus { outline: none; border-color: var(--cyan); }
.a-body { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.86rem; line-height: 1.55; }
.a-count { justify-self: end; font-size: 0.72rem; font-weight: 600; color: var(--muted); }
.a-count.ok { color: #116149; }
.a-count.bad { color: #c0392b; }
.a-check { display: flex; align-items: center; gap: 0.5em; font-weight: 500; font-size: 0.84rem; color: var(--ink-soft); }
.a-plabel { font-weight: 600; font-size: 0.76rem; color: var(--navy); text-transform: uppercase; letter-spacing: 0.05em; display: flex; align-items: center; gap: 0.4em; }
.a-thumb { width: 100%; border-radius: 8px; border: 1px solid var(--line); }
.a-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 0.85rem; }
.a-table th, .a-table td { text-align: left; padding: 0.6rem 0.85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.a-table th { background: var(--sky); font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.a-table tr:last-child td { border-bottom: 0; }
.a-slug { color: var(--muted); font-size: 0.76rem; }
.a-badge { font-size: 0.7rem; font-weight: 600; padding: 0.18rem 0.5rem; border-radius: 100px; }
.a-badge.live { background: #e8f7f3; color: #116149; }
.a-badge.draft { background: #fff4e0; color: #8a5a00; }
.a-badge.status-new { background: #e6f2fb; color: #14669b; }
.a-badge.status-contacted { background: #fff4e0; color: #8a5a00; }
.a-badge.status-booked { background: #e8f7f3; color: #116149; }
.a-badge.status-closed { background: #eee; color: #666; }
.a-actions { display: flex; gap: 0.7rem; align-items: center; font-size: 0.85rem; }
.a-actions form { display: inline; }
.a-del { background: none; border: 0; color: #c0392b; font: inherit; font-weight: 600; cursor: pointer; padding: 0; font-size: 0.85rem; }
.a-del:hover { text-decoration: underline; }
@media (max-width: 820px) { .a-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---- leads: filter bar + pager ---- */
.a-filter-bar { display: flex; gap: 0.6rem; align-items: center; margin-bottom: 1.1rem; flex-wrap: wrap; }
.a-filter-bar select, .a-filter-bar input[type="search"] { font: inherit; font-size: 0.84rem; padding: 0.5rem 0.7rem; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; }
.a-filter-bar input[type="search"] { flex: 1; min-width: 12rem; }
.a-pager { display: flex; gap: 0.4rem; margin-top: 1.1rem; }
.a-pager a, .a-pager span { padding: 0.3rem 0.6rem; border-radius: 6px; font-weight: 600; font-size: 0.82rem; }
.a-pager a { color: var(--navy); border: 1px solid var(--line); }
.a-pager span.is-active { background: var(--navy); color: #fff; }

/* ---- stat cards (leads analysis + visitor analytics) ---- */
.a-stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: 0.7rem; margin-bottom: 1.25rem; }
.a-stat-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0.85rem 0.95rem; box-shadow: var(--shadow-soft); display: grid; gap: 0.15rem; }
.a-stat-n { font-family: var(--font-body); font-size: 1.3rem; font-weight: 700; color: var(--navy); letter-spacing: -0.01em; }
.a-stat-l { font-size: 0.72rem; color: var(--muted); }

/* ---- horizontal bar breakdowns ---- */
.a-bar-row { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr) 2.2rem; gap: 0.6rem; align-items: center; margin-bottom: 0.45rem; }
.a-bar-label { font-size: 0.8rem; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-bar-track { background: var(--sky); border-radius: 100px; height: 8px; overflow: hidden; }
.a-bar-fill { display: block; height: 100%; background: var(--cyan); border-radius: 100px; }
.a-bar-n { font-size: 0.8rem; font-weight: 600; color: var(--navy); text-align: right; }

/* ---- visitor analytics calendar ---- */
.a-cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.9rem; font-size: 0.85rem; }
.a-cal-nav a { color: var(--navy); font-weight: 600; }
.a-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.35rem; }
.a-cal-head { margin-bottom: 0.35rem; font-size: 0.66rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); text-align: center; }
.a-cal-cell { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.1rem; min-height: 4.1rem; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.a-cal-cell.is-empty { border: none; background: none; }
.a-cal-cell.is-today { border-color: var(--cyan); border-width: 2px; }
a.a-cal-cell:hover { border-color: var(--cyan); }
.a-cal-daynum { font-size: 0.68rem; color: var(--muted); }
.a-cal-count { font-family: var(--font-body); font-weight: 700; font-size: 0.9rem; color: var(--navy); }
.a-cal-views { font-size: 0.6rem; color: var(--muted); }
@media (max-width: 560px) { .a-bar-row { grid-template-columns: minmax(0, 6rem) minmax(0, 1fr) 2rem; } .a-bar-label { font-size: 0.75rem; } }

/* Mobile: smaller article reading text on phones (client preference) */
@media (max-width: 560px) {
  .post-prose p,
  .post-prose li { font-size: 0.906rem; } /* 14.5px */
}
