/* Northline Group — theme.css
   Modern real-estate & consulting: white ground, deep navy ink and
   buttons, airy light-blue bands, refined serif display + clean
   geometric sans, dusk-photography mood in every media slot. */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

/* ---------- Tokens ---------- */

:root {
  --brand-name: "Northline Group";
  --brand-name-1: "Northline";
  --brand-name-2: "Group";

  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-surface-alt: #eef3fa;
  --color-ink: #1f2d47;
  --color-ink-muted: #64708a;
  --color-brand: #20304c;
  --color-brand-deep: #16233b;
  --color-on-brand: #ffffff;
  /* Lighter-toned blue that still clears AA on white (5.08:1) — used for
     the hero accent line, quote marks, rules and other tinted emphasis. */
  --color-accent: #527099;
  /* Purely decorative wash of the same hue (never carries text). */
  --color-accent-soft: #8ba6cf;
  --color-border: #dde5f0;
  --color-link: #20304c;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-accent: "Cormorant Garamond", Georgia, serif;

  /* Northline is an architectural theme: media slots and bands stay square.
     Interactive chrome (buttons, inputs, chips) and cards carry a small
     softening radius so they read as touchable rather than stamped out.
     Circles (avatars, step dots) are set explicitly at 50% where wanted. */
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 0;
  --radius-pill: 0;
  --shadow-sm: 0 1px 3px rgba(32, 48, 76, 0.08);
  --shadow-md: 0 12px 32px rgba(32, 48, 76, 0.12);

  --container-max: 1160px;
  --section-pad: 5.5rem;

  /* Vendor icon geometry, verbatim from lucide-static v1.28.0, carried as
     mask sources so every glyph paints in the element's currentColor. */
  --icon-arrow-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
  --icon-chevron-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --icon-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384'/%3E%3C/svg%3E");
  --icon-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7'/%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3C/svg%3E");
  --icon-map-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
  --icon-bed-double: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8'/%3E%3Cpath d='M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4'/%3E%3Cpath d='M12 4v6'/%3E%3Cpath d='M2 18h20'/%3E%3C/svg%3E");
  --icon-bath: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 4 8 6'/%3E%3Cpath d='M17 19v2'/%3E%3Cpath d='M2 12h20'/%3E%3Cpath d='M7 19v2'/%3E%3Cpath d='M9 5 7.621 3.621A2.121 2.121 0 0 0 4 5v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5'/%3E%3C/svg%3E");
  --icon-scaling: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='M14 15H9v-5'/%3E%3Cpath d='M16 3h5v5'/%3E%3Cpath d='M21 3 9 15'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-bg);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-ink);
  margin: 0 0 0.6em;
}

p { margin: 0 0 1em; }

a { color: var(--color-link); }

img { max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ---------- Media placeholders (dusk photography mood) ---------- */

.media-ph {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 82% 18%, rgba(244, 222, 192, 0.65) 0%, rgba(244, 222, 192, 0) 55%),
    linear-gradient(180deg, #e9eff8 0%, #d3dfee 42%, #a9bcd6 68%, #5d7294 88%, #2c3d5c 100%);
}

.media-ph::before {
  /* soft ground / water silhouette */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background:
    linear-gradient(0deg, rgba(24, 36, 58, 0.9) 0%, rgba(24, 36, 58, 0.5) 45%, rgba(24, 36, 58, 0) 100%);
}

.media-ph::after {
  /* low modern structure with lit glazing */
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 18%;
  height: 26%;
  background:
    linear-gradient(180deg, rgba(30, 43, 66, 0.95) 0 12%, rgba(0, 0, 0, 0) 12%),
    repeating-linear-gradient(90deg,
      rgba(246, 210, 152, 0.55) 0 14%,
      rgba(30, 43, 66, 0.85) 14% 16.5%) 0 100% / 100% 88% no-repeat;
  border-radius: 2px;
}

.media-ph--wide { aspect-ratio: 16 / 9; }

/* ---------- Real imagery: shared blog page slots ----------
   Photo layered over the painted dusk gradient (gradient stays as
   fallback); a light navy tint + desaturation grades the pack
   photos into the theme palette. */

.post-hero .media-ph,
.prose figure .media-ph,
.related-grid .card .card-media .media-ph {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(0.92) contrast(1.02);
}

.post-hero .media-ph::before,
.post-hero .media-ph::after,
.prose figure .media-ph::before,
.prose figure .media-ph::after,
.related-grid .card .card-media .media-ph::before,
.related-grid .card .card-media .media-ph::after {
  content: none;
}

.post-hero .media-ph {
  background-image:
    linear-gradient(180deg, rgba(32, 48, 76, 0.08) 0%, rgba(32, 48, 76, 0.18) 100%),
    url("../../assets/img/pack/blog-hero.webp"),
    radial-gradient(120% 90% at 82% 18%, rgba(244, 222, 192, 0.65) 0%, rgba(244, 222, 192, 0) 55%),
    linear-gradient(180deg, #e9eff8 0%, #d3dfee 42%, #a9bcd6 68%, #5d7294 88%, #2c3d5c 100%);
}

.prose figure .media-ph {
  background-image:
    linear-gradient(180deg, rgba(32, 48, 76, 0.08) 0%, rgba(32, 48, 76, 0.16) 100%),
    url("../../assets/img/pack/blog-figure.webp"),
    radial-gradient(120% 90% at 82% 18%, rgba(244, 222, 192, 0.65) 0%, rgba(244, 222, 192, 0) 55%),
    linear-gradient(180deg, #e9eff8 0%, #d3dfee 42%, #a9bcd6 68%, #5d7294 88%, #2c3d5c 100%);
}

.related-grid .card:nth-child(1) .card-media .media-ph {
  background-image:
    linear-gradient(180deg, rgba(32, 48, 76, 0.08) 0%, rgba(32, 48, 76, 0.16) 100%),
    url("../../assets/img/pack/blog-rel-1.webp"),
    radial-gradient(120% 90% at 82% 18%, rgba(244, 222, 192, 0.65) 0%, rgba(244, 222, 192, 0) 55%),
    linear-gradient(180deg, #e9eff8 0%, #d3dfee 42%, #a9bcd6 68%, #5d7294 88%, #2c3d5c 100%);
}

.related-grid .card:nth-child(2) .card-media .media-ph {
  background-image:
    linear-gradient(180deg, rgba(32, 48, 76, 0.08) 0%, rgba(32, 48, 76, 0.16) 100%),
    url("../../assets/img/pack/blog-rel-2.webp"),
    radial-gradient(120% 90% at 82% 18%, rgba(244, 222, 192, 0.65) 0%, rgba(244, 222, 192, 0) 55%),
    linear-gradient(180deg, #e9eff8 0%, #d3dfee 42%, #a9bcd6 68%, #5d7294 88%, #2c3d5c 100%);
}

.related-grid .card:nth-child(3) .card-media .media-ph {
  background-image:
    linear-gradient(180deg, rgba(32, 48, 76, 0.08) 0%, rgba(32, 48, 76, 0.16) 100%),
    url("../../assets/img/pack/blog-rel-3.webp"),
    radial-gradient(120% 90% at 82% 18%, rgba(244, 222, 192, 0.65) 0%, rgba(244, 222, 192, 0) 55%),
    linear-gradient(180deg, #e9eff8 0%, #d3dfee 42%, #a9bcd6 68%, #5d7294 88%, #2c3d5c 100%);
}
.media-ph--square { aspect-ratio: 1 / 1; }
.media-ph--tall { aspect-ratio: 3 / 4; }

/* ---------- Header ---------- */

.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  z-index: 10;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 78px;
  flex-wrap: wrap;
  padding-block: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

/* Two-tone geometric N, traced from the mockup's own header lockup. The
   three-tone fill lives inside the file, so the mark is referenced rather
   than recolored. */
.brand-mark {
  display: inline-block;
  width: 31px;
  height: 34px;
  flex: none;
  background: url("../../assets/img/northline/brand-mark.svg") center / contain no-repeat;
}

/* "NORTHLINE" over a smaller, letterspaced "GROUP" — real text, no artwork. */
.brand-name::before {
  content: var(--brand-name-1);
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.15;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-ink);
  white-space: nowrap;
}

.brand-name::after {
  content: var(--brand-name-2);
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.62rem;
  line-height: 1.3;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-ink);
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
}

.nav-link:hover { color: var(--color-brand); border-bottom-color: var(--color-border); }

.nav-link.is-active {
  color: var(--color-brand);
  border-bottom-color: var(--color-brand);
}

.nav-cta { margin-left: 0.4rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--color-brand);
  color: var(--color-on-brand);
  border-color: var(--color-brand);
}

.btn-primary:hover {
  background: var(--color-brand-deep);
  border-color: var(--color-brand-deep);
}

.btn-secondary {
  background: transparent;
  color: var(--color-brand);
  border-color: var(--color-brand);
}

.btn-secondary:hover {
  background: var(--color-surface-alt);
}

.btn-small {
  font-size: 0.85rem;
  padding: 0.55rem 1.1rem;
}

/* The header call-to-action is always the solid navy block, whatever variant
   class the shared HTML carries on it — on the white, hairline-ruled header
   it is the one place the page needs an unmistakable primary action. */
.nav-cta.btn {
  background: var(--color-brand);
  color: var(--color-on-brand);
  border-color: var(--color-brand);
  padding: 0.6rem 1.3rem;
}

.nav-cta.btn:hover {
  background: var(--color-brand-deep);
  color: var(--color-on-brand);
  border-color: var(--color-brand-deep);
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section-pad); }

.section-alt { background: var(--color-surface-alt); }

.section-head {
  max-width: 640px;
  margin-bottom: 2.75rem;
}

.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  margin-bottom: 0.9rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.section-sub {
  color: var(--color-ink-muted);
  font-size: 1.05rem;
  margin: 0;
}

/* ---------- Cards ---------- */

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease;
}

.card:hover { box-shadow: var(--shadow-md); }

.card-media { line-height: 0; }

.card-media .media-ph { border-radius: 0; }

.card-body {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 1.35rem;
  margin-bottom: 0.45rem;
}

.card-text {
  color: var(--color-ink-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  flex: 1;
}

.card-link {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-brand);
  text-decoration: none;
  margin-top: auto;
}

/* lucide:arrow-right, masked so it inherits the link's currentColor */
.card-link::after {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 0.4em;
  vertical-align: -0.13em;
  background-color: currentColor;
  -webkit-mask: var(--icon-arrow-right) center / contain no-repeat;
  mask: var(--icon-arrow-right) center / contain no-repeat;
}

.card-link:hover { text-decoration: underline; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding-top: 3.5rem;
  margin-top: var(--section-pad);
}

.page-dashboard .site-footer,
.page-post .site-footer { margin-top: var(--section-pad); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 0.55rem; }

.footer-about .brand { margin-bottom: 0.5rem; }

.footer-tagline {
  color: var(--color-ink-muted);
  font-size: 0.92rem;
  max-width: 30ch;
  margin: 0;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-ink);
  margin: 0 0 0.4rem;
}

.footer-link {
  color: var(--color-ink-muted);
  font-size: 0.92rem;
  text-decoration: none;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--color-border);
  padding-block: 1.4rem;
  font-size: 0.85rem;
  color: var(--color-ink-muted);
}

/* ---------- Dashboard ---------- */

.dash-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 2.5rem;
  align-items: start;
  padding-block: 2.75rem;
}

.dash-sidebar {
  position: sticky;
  top: 1.5rem;
}

.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--color-surface-alt);
  border-radius: var(--radius-md);
  padding: 0.9rem 0.75rem;
}

.dash-nav-link {
  display: block;
  padding: 0.6rem 0.9rem;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--color-ink-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
}

.dash-nav-link:hover { color: var(--color-brand); background: rgba(255, 255, 255, 0.7); }

.dash-nav-link.is-active {
  color: var(--color-on-brand);
  background: var(--color-brand);
  border-left-color: var(--color-accent);
}

.dash-main {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  min-width: 0;
}

.dash-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1.5rem;
}

.page-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 0.2rem;
}

.page-sub {
  color: var(--color-ink-muted);
  margin: 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.stat {
  background: var(--color-surface-alt);
  border-radius: var(--radius-md);
  padding: 1.3rem 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stat-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.3rem;
  line-height: 1.05;
  color: var(--color-brand);
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-ink-muted);
}

.stat-delta {
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 0.35rem;
}

.stat-delta.is-up { color: #2d7a4f; }
.stat-delta.is-down { color: #b4552e; }
.stat-delta.is-info { color: var(--color-accent); }

.panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.panel-title {
  font-size: 1.35rem;
  margin: 0;
}

.panel-body { padding: 1.25rem 1.5rem 1.5rem; }

/* ---------- Table ---------- */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.table thead th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  padding: 0.6rem 0.9rem;
  border-bottom: 2px solid var(--color-brand);
}

.table tbody td {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--color-border);
}

.table tbody tr:last-child td { border-bottom: none; }

.table tbody tr:hover { background: var(--color-surface-alt); }

/* ---------- Badges ---------- */

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--color-surface-alt);
  color: var(--color-ink-muted);
}

.badge.is-success { background: #e3f0e8; color: #24603e; }
.badge.is-warning { background: #f7ecdd; color: #8a5220; }
.badge.is-info { background: #e4ecf8; color: #34517e; }

/* ---------- Activity ---------- */

.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.94rem;
}

.activity-item:last-child { border-bottom: none; }

.activity-time {
  margin-left: auto;
  flex: none;
  font-size: 0.8rem;
  color: var(--color-ink-muted);
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--color-brand);
  color: var(--color-on-brand);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.03em;
}

/* ---------- Forms ---------- */

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}

.form-input,
.form-select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-ink);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  max-width: 420px;
}

.form-input:focus,
.form-select:focus {
  outline: 2px solid var(--color-brand);
  outline-offset: 0;
  border-color: var(--color-brand);
}

.form-actions { margin-top: 0.4rem; margin-bottom: 0; align-items: flex-start; }

/* ---------- Blog post ---------- */

.page-post main.container { padding-top: 3rem; }

.post { max-width: 780px; margin-inline: auto; }

.post-header { text-align: center; margin-bottom: 2.25rem; }

.tag-list {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brand);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 0.32rem 0.9rem;
  text-decoration: none;
  background: var(--color-surface-alt);
}

.tag:hover { border-color: var(--color-brand); }

.post-title {
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  margin-bottom: 0.5rem;
}

.post-excerpt {
  font-size: 1.12rem;
  color: var(--color-ink-muted);
  max-width: 56ch;
  margin: 0 auto 1.5rem;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--color-ink-muted);
}

.post-meta .avatar { width: 34px; height: 34px; font-size: 0.85rem; }

.post-meta-author { font-weight: 700; color: var(--color-ink); }

.post-hero { margin-bottom: 2.75rem; }

/* ---------- Prose ---------- */

.prose {
  font-size: 1.05rem;
  line-height: 1.75;
}

.prose h2 {
  font-size: 1.85rem;
  margin: 2.2em 0 0.6em;
}

.prose h3 {
  font-size: 1.4rem;
  margin: 1.8em 0 0.5em;
}

.prose p { margin: 0 0 1.15em; }

.prose a {
  color: var(--color-link);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 3px;
}

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

.prose ul, .prose ol { margin: 0 0 1.25em; padding-left: 1.4em; }

.prose li { margin-bottom: 0.4em; }

.prose li::marker { color: var(--color-accent); font-weight: 700; }

.prose blockquote {
  margin: 1.8em 0;
  padding: 1.4rem 1.8rem;
  background: var(--color-surface-alt);
  border-left: 3px solid var(--color-brand);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.prose blockquote p {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--color-brand);
  margin: 0;
}

.prose figure { margin: 2em 0; }

.prose figcaption {
  font-size: 0.85rem;
  color: var(--color-ink-muted);
  text-align: center;
  margin-top: 0.7rem;
}

.prose code {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.12em 0.4em;
  color: var(--color-brand);
}

.prose pre {
  background: var(--color-brand-deep);
  color: #dfe7f3;
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  overflow-x: auto;
  margin: 1.8em 0;
}

.prose pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1.8em 0;
}

.prose table th {
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  padding: 0.6rem 0.9rem;
  border-bottom: 2px solid var(--color-brand);
}

.prose table td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--color-border);
}

.prose table tbody tr:nth-child(even) { background: var(--color-surface-alt); }

.prose hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2.5em 0;
}

.prose .media-ph { margin: 0; }

/* ---------- Author card & related ---------- */

.author-card {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  background: var(--color-surface-alt);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.8rem;
  margin-top: 3rem;
}

.author-card .avatar { width: 52px; height: 52px; font-size: 1.2rem; }

.author-card-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.author-card-bio {
  font-size: 0.93rem;
  color: var(--color-ink-muted);
  margin: 0;
}

.related-posts .section-head { text-align: center; margin-inline: auto; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { position: static; }
  .dash-nav { flex-direction: row; flex-wrap: wrap; }
  .dash-nav-link { border-left: none; }
}

@media (max-width: 640px) {
  :root { --section-pad: 3.5rem; }
  .site-header-inner { flex-direction: column; align-items: flex-start; }
  .site-nav { gap: 0.9rem 1.2rem; }
  .stat-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .dash-header { flex-direction: column; align-items: flex-start; }
  .activity-item { flex-wrap: wrap; }
  .activity-time { margin-left: 56px; }
  .panel-body, .panel-head { padding-inline: 1.1rem; }
}
