/* ── Variables — light default (matches sparktechadvisory.com brand) ──────── */

:root {
  --gold:         #E8A820;
  --gold-hover:   #F2B83A;
  --gold-glow:    rgba(232, 168, 32, 0.15);
  --gold-faint:   rgba(232, 168, 32, 0.07);
  --gold-border:  rgba(232, 168, 32, 0.25);

  --bg:           #FFFFFF;
  --bg-raised:    #F5F6F8;
  --bg-surface:   #EDEEF1;

  --border:       rgba(11, 15, 20, 0.09);
  --border-mid:   rgba(11, 15, 20, 0.14);

  --heading:      #0B0F14;
  --body:         #2C3038;
  --muted:        #5A6170;
  --faint:        #8B919D;

  --green:        #16a34a;
  --red:          #dc2626;

  --max-w:        1200px;
  --content-w:    720px;
  --radius:       10px;
  --ease:         cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ────────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  background: var(--bg);
  color: var(--body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

::selection { background: rgba(232, 168, 32, 0.25); color: #fff; }

img { max-width: 100%; display: block; }
a   { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hover); }

/* ── Header (mirrors sparktechadvisory.com exactly) ───────────────────────── */

.hdr {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 76px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: height 0.35s var(--ease);
}

.hdr.sm { height: 54px; }

.hdr-in {
  max-width: 1100px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}

/* Logo */
.logo {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  cursor: pointer;
  text-decoration: none;
}

.logo:hover { text-decoration: none; }

.logo-img {
  height: 2.5rem;
  position: relative;
  top: 5px;
  transition: height 0.35s var(--ease);
}

.sm .logo-img { height: 1.9rem; top: 2px; }

.logo-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 500;
  color: var(--heading);
  transition: font-size 0.35s var(--ease);
}

.logo-name b { color: var(--gold); font-weight: 700; letter-spacing: 0.02em; }
.sm .logo-name { font-size: 1.65rem; }

/* Nav */
.nav { display: flex; align-items: center; gap: 24px; }

.dd { position: relative; }

.dd-btn {
  background: none; border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  display: flex; align-items: center; gap: 5px;
  padding: 6px 0;
  transition: color 0.2s;
  text-decoration: none;
}

.dd-btn:hover, .dd.on .dd-btn, .dd-btn--active { color: var(--gold); text-decoration: none; }

.dd-btn svg { width: 12px; height: 12px; transition: transform 0.2s var(--ease); }
.dd.on .dd-btn svg { transform: rotate(180deg); }

.dd-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-5px);
  opacity: 0; visibility: hidden; pointer-events: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  min-width: 264px;
  transition: all 0.2s var(--ease);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.10);
}

.dd.on .dd-list { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }

.dd-link {
  display: block;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--body);
  text-decoration: none;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.dd-link:hover { background: var(--gold-faint); color: var(--gold); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 22px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.84rem; font-weight: 600;
  border: none; border-radius: 7px;
  cursor: pointer; text-decoration: none;
  transition: all 0.2s var(--ease);
  letter-spacing: 0.01em;
}

.btn-g { background: var(--gold); color: #0B0F14; }
.btn-g:hover { background: var(--gold-hover); color: #0B0F14; text-decoration: none; transform: translateY(-1px); }
.sm .btn { padding: 7px 18px; font-size: 0.8rem; }

/* Mobile */
.mob-btn {
  display: none; background: none; border: none;
  cursor: pointer; padding: 6px; flex-direction: column; gap: 5px;
}
.mob-btn span { display: block; width: 20px; height: 1.5px; background: var(--body); border-radius: 1px; }

.mob-menu {
  display: none; position: fixed;
  top: 76px; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  padding: 28px;
  z-index: 999; overflow-y: auto;
}

.mob-menu.on { display: block; }
.sm ~ .mob-menu { top: 54px; }

.mob-label {
  font-size: 0.68rem; font-weight: 600;
  color: var(--faint); letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 8px;
}

.mob-link {
  display: block; padding: 14px 0;
  color: var(--body); text-decoration: none;
  font-size: 0.95rem; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: color 0.15s;
}

.mob-link:hover { color: var(--gold); text-decoration: none; }

.mob-cta { margin-top: 24px; }
.mob-cta .btn { width: 100%; justify-content: center; padding: 14px; }

@media (max-width: 700px) {
  .nav { display: none; }
  .mob-btn { display: flex; }
}

/* ── Blog main layout ─────────────────────────────────────────────────────── */

.blog-main { flex: 1; padding-top: 76px; }

/* ── Blog hero (list page) ────────────────────────────────────────────────── */

.blog-hero {
  padding: 80px 28px 64px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, var(--gold-faint) 0%, transparent 70%);
  pointer-events: none;
}

.blog-hero-in {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}

.blog-hero-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.blog-hero-h {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  color: var(--heading);
  line-height: 1.15;
  margin-bottom: 16px;
}

.blog-hero-p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Post grid ────────────────────────────────────────────────────────────── */

.blog-grid-section { padding: 56px 28px; }

.blog-grid-in { max-width: var(--max-w); margin: 0 auto; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .post-grid { grid-template-columns: 1fr; } }

.blog-empty {
  text-align: center;
  padding: 64px 28px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ── Post card ────────────────────────────────────────────────────────────── */

.post-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.post-card:hover {
  border-color: var(--gold-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.post-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.post-card-link:hover { text-decoration: none; color: inherit; }

.post-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-surface);
  flex-shrink: 0;
}

.post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.post-card:hover .post-card-img img { transform: scale(1.04); }

.post-card-img--placeholder { position: relative; }

.post-card-placeholder-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, var(--gold-faint) 0%, transparent 70%);
}

.post-card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-date {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.post-card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--heading);
  line-height: 1.3;
  margin-bottom: 10px;
}

.post-card-excerpt {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  margin-bottom: 16px;
}

.post-card-read {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
}

/* ── Article header ───────────────────────────────────────────────────────── */

.article-header {
  padding: 64px 28px 48px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.article-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, var(--gold-faint) 0%, transparent 70%);
  pointer-events: none;
}

.article-header-in {
  max-width: var(--content-w);
  margin: 0 auto;
  position: relative;
}

.article-back {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 24px;
  transition: color 0.15s;
  text-decoration: none;
}

.article-back:hover { color: var(--gold); text-decoration: none; }

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.article-date,
.article-reading-time {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article-meta-sep { color: var(--faint); font-size: 0.8rem; }

.article-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--heading);
  line-height: 1.15;
  margin-bottom: 16px;
}

.article-byline {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ── Featured image ───────────────────────────────────────────────────────── */

.article-hero-img {
  max-width: var(--content-w);
  margin: 40px auto;
  padding: 0 28px;
}

.article-hero-img img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ── Article body ─────────────────────────────────────────────────────────── */

.article-body { padding: 48px 28px 64px; }

.article-content { max-width: var(--content-w); margin: 0 auto; }

/* ── Prose typography ─────────────────────────────────────────────────────── */

.prose {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--body);
}

.prose h1, .prose h2, .prose h3, .prose h4 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  color: var(--heading);
  line-height: 1.25;
  margin: 2em 0 0.65em;
}

.prose h1 { font-size: 2rem; }
.prose h2 { font-size: 1.55rem; }
.prose h3 { font-size: 1.2rem; font-family: 'DM Sans', sans-serif; font-weight: 600; }
.prose h4 { font-size: 1rem;   font-family: 'DM Sans', sans-serif; font-weight: 600; }

.prose :first-child { margin-top: 0; }

.prose p { margin-bottom: 1.5em; }

.prose a {
  color: var(--gold);
  border-bottom: 1px solid var(--gold-border);
  transition: border-color 0.15s;
  text-decoration: none;
}

.prose a:hover { border-color: var(--gold); color: var(--gold-hover); }

.prose strong { color: var(--heading); font-weight: 600; }

.prose ul, .prose ol { margin: 0 0 1.5em 1.6em; }
.prose li { margin-bottom: 0.45em; }
.prose li p { margin-bottom: 0.3em; }

.prose blockquote {
  border-left: 3px solid var(--gold);
  padding: 2px 0 2px 22px;
  margin: 1.8em 0;
  color: var(--muted);
  font-style: italic;
}

.prose blockquote p { margin-bottom: 0; }

.prose code {
  background: var(--bg-surface);
  border: 1px solid var(--border-mid);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.875em;
  font-family: 'Fira Code', 'Cascadia Code', monospace;
  color: var(--gold);
}

.prose pre {
  background: var(--bg-surface);
  border: 1px solid var(--border-mid);
  border-radius: 8px;
  padding: 20px 22px;
  overflow-x: auto;
  margin: 1.8em 0;
}

.prose pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--body);
  font-size: 0.9rem;
}

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

.prose img {
  border-radius: 8px;
  border: 1px solid var(--border);
  margin: 1.8em 0;
}

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

.prose th, .prose td {
  padding: 10px 16px;
  border: 1px solid var(--border);
  text-align: left;
}

.prose th { background: var(--bg-raised); color: var(--heading); font-weight: 600; }

/* ── Article divider ──────────────────────────────────────────────────────── */

.article-divider {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 28px;
  border-top: 1px solid var(--border);
}

/* ── Comments section ─────────────────────────────────────────────────────── */

.comments-section { padding: 56px 28px; }

.comments-in { max-width: var(--content-w); margin: 0 auto; }

.comments-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--heading);
  margin-bottom: 28px;
}

.comments-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.comments-list { margin-bottom: 48px; display: flex; flex-direction: column; gap: 20px; }

.comment {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.comment-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold-glow);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comment-info { display: flex; flex-direction: column; gap: 2px; }

.comment-name { font-weight: 600; font-size: 0.9rem; color: var(--heading); }

.comment-time { font-size: 0.75rem; color: var(--muted); }

.comment-body { font-size: 0.95rem; line-height: 1.65; color: var(--body); white-space: pre-wrap; }

/* ── Comment form ─────────────────────────────────────────────────────────── */

.comment-form-wrap {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.comment-form { display: flex; flex-direction: column; gap: 16px; }

.comment-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 560px) { .comment-form-row { grid-template-columns: 1fr; } }

.comment-form-group { display: flex; flex-direction: column; gap: 6px; }

.comment-label { font-size: 0.82rem; font-weight: 600; color: var(--body); }

.comment-privacy { font-weight: 400; color: var(--muted); font-size: 0.75rem; }

.comment-input, .comment-textarea {
  background: var(--bg-surface);
  border: 1px solid var(--border-mid);
  border-radius: 6px;
  color: var(--heading);
  font-family: inherit;
  font-size: 0.92rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.comment-input:focus, .comment-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.comment-input::placeholder,
.comment-textarea::placeholder { color: var(--faint); }

.comment-textarea { resize: vertical; line-height: 1.6; }

.comment-msg { font-size: 0.85rem; min-height: 1.4em; }
.comment-msg--ok  { color: var(--green); }
.comment-msg--err { color: var(--red); }

.comment-submit {
  align-self: flex-start;
  padding: 10px 24px;
  background: var(--gold);
  color: #0B0F14;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.comment-submit:hover:not(:disabled) { background: var(--gold-hover); }
.comment-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── Newsletter CTA ───────────────────────────────────────────────────────── */

.newsletter-cta {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 28px;
  position: relative;
  overflow: hidden;
}

.newsletter-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, var(--gold-faint) 0%, transparent 70%);
  pointer-events: none;
}

.newsletter-cta-in {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.newsletter-cta-h {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 400;
  color: var(--heading);
  margin-bottom: 12px;
}

.newsletter-cta-p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

.newsletter-fields {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto 12px;
}

@media (max-width: 480px) { .newsletter-fields { flex-direction: column; } }

.newsletter-input {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-mid);
  border-radius: 6px;
  color: var(--heading);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 11px 16px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.newsletter-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.newsletter-input::placeholder { color: var(--faint); }

.newsletter-btn {
  padding: 11px 24px;
  background: var(--gold);
  color: #0B0F14;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.newsletter-btn:hover:not(:disabled) { background: var(--gold-hover); }
.newsletter-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.newsletter-msg { font-size: 0.85rem; min-height: 1.3em; text-align: center; }
.newsletter-msg--ok  { color: var(--green); }
.newsletter-msg--err { color: var(--red); }

.newsletter-privacy { font-size: 0.75rem; color: var(--faint); margin-top: 12px; }

/* ── Footer ───────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  padding: 36px 28px;
}

.site-footer-in {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer-logo { display: flex; align-items: baseline; gap: 6px; flex-shrink: 0; }

.site-footer-logo-link {
  display: flex; align-items: center; gap: 6px;
  text-decoration: none; flex-shrink: 0;
}
.site-footer-logo-link:hover { text-decoration: none; }
.site-footer-logo-img { height: 1.5rem; }
.site-footer-logo-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem; font-weight: 400; color: var(--muted);
}
.site-footer-logo-name b { color: var(--gold); font-weight: 700; }

.site-footer-copy { font-size: 0.8rem; color: var(--faint); margin-left: auto; }

.site-footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }

.site-footer-nav a {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.site-footer-nav a:hover { color: var(--body); text-decoration: none; }

@media (max-width: 600px) {
  .site-footer-in { flex-direction: column; align-items: flex-start; }
  .site-footer-copy { margin-left: 0; }
}

/* ── Consultation / Booking Widget (mirrors Services page) ────────────────── */

.consultation-section {
  padding: 80px 28px;
  border-top: 1px solid var(--border);
  background: var(--bg-raised);
}

.consultation-in {
  max-width: var(--content-w);
  margin: 0 auto;
}

.consultation-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.consultation-h {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--heading);
  margin-bottom: 8px;
  line-height: 1.2;
}

.consultation-sub {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

.bk-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* Booking widget form styles */
.fg { text-align: left; }
.fgp { margin-bottom: 16px; }
.fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
@media (max-width: 560px) { .fg-row { grid-template-columns: 1fr; } }

.fl {
  display: block; font-size: 0.78rem; font-weight: 600;
  color: var(--muted); margin-bottom: 5px;
}
.fl .rq { color: var(--gold); }

.fi, .ft {
  width: 100%; padding: 11px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-mid);
  border-radius: 6px;
  color: var(--heading);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.15s;
  outline: none;
}
.fi:focus, .ft:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }
.ft { resize: vertical; min-height: 80px; }
.fi::placeholder, .ft::placeholder { color: var(--faint); }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

.fs { width: 100%; justify-content: center; padding: 13px; margin-top: 4px; font-size: 0.92rem; }

.fst { margin-top: 10px; font-size: 0.82rem; min-height: 18px; text-align: center; }
.fst.ok  { color: var(--green); }
.fst.err { color: var(--red); }

/* Calendar */
.bw { text-align: left; }

.bw-fa {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-mid);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 20px;
  gap: 12px;
}
.bw-fa-label { font-size: 0.72rem; color: var(--muted); margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.bw-fa-time  { font-size: 0.9rem; font-weight: 600; color: var(--heading); }
.bw-fa-btn {
  background: var(--gold); color: #0B0F14;
  border: none; border-radius: 6px;
  padding: 8px 16px; font-family: inherit;
  font-size: 0.82rem; font-weight: 600; cursor: pointer;
  white-space: nowrap; transition: background 0.15s; flex-shrink: 0;
}
.bw-fa-btn:hover { background: var(--gold-hover); }

.bw-cal-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.bw-cal-nav button {
  background: none; border: 1px solid var(--border-mid);
  border-radius: 6px; padding: 5px 12px; font-family: inherit;
  font-size: 0.8rem; color: var(--muted); cursor: pointer; transition: border-color 0.15s, color 0.15s;
}
.bw-cal-nav button:hover { border-color: var(--gold); color: var(--gold); }
.bw-cal-nav button:disabled { opacity: 0.3; cursor: default; }
.bw-cal-month { font-size: 0.88rem; font-weight: 600; color: var(--heading); }

.bw-cal-grid {
  display: grid; grid-template-columns: repeat(7,1fr);
  gap: 4px; margin-bottom: 8px;
}
.bw-cal-grid .dh {
  text-align: center; font-size: 0.68rem;
  font-weight: 600; color: var(--faint); padding: 4px 0;
}
.bw-cal-grid .dc {
  text-align: center; padding: 7px 4px;
  font-size: 0.82rem; border-radius: 6px; color: var(--faint);
}
.bw-cal-grid .dc.av { color: var(--heading); cursor: pointer; font-weight: 500; transition: background 0.12s, color 0.12s; }
.bw-cal-grid .dc.av:hover { background: var(--gold); color: #0B0F14; }
.bw-cal-grid .dc.sel { background: var(--gold); color: #0B0F14; font-weight: 700; }
.bw-cal-grid .dc.tod { box-shadow: inset 0 0 0 1px var(--gold); }
.bw-tz { font-size: 0.7rem; color: var(--muted); text-align: center; margin-top: 4px; }

.bw-slots-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.bw-slot {
  text-align: center; padding: 9px 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-mid);
  border-radius: 6px; font-size: 0.82rem; font-weight: 500;
  color: var(--heading); cursor: pointer; transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.bw-slot:hover { border-color: var(--gold); color: var(--gold); }
.bw-slot.sel { background: var(--gold); color: #0B0F14; border-color: var(--gold); font-weight: 700; }
.bw-slots-msg { font-size: 0.82rem; color: var(--muted); padding: 12px 0; text-align: center; }

.bw-date-bar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--gold-glow); border: 1px solid var(--gold-border);
  border-radius: 6px; padding: 10px 14px;
  font-size: 0.85rem; font-weight: 600; color: var(--heading);
  margin-bottom: 14px;
}
.bw-date-bar .bw-chg { color: var(--gold); cursor: pointer; font-size: 0.75rem; font-weight: 400; }

.bw-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.bw-nav h3 { font-size: 0.92rem; font-weight: 600; color: var(--heading); margin: 0; }
.bw-back {
  background: none; border: 1px solid var(--border-mid);
  border-radius: 6px; padding: 5px 12px; font-family: inherit;
  font-size: 0.8rem; color: var(--muted); cursor: pointer; transition: border-color 0.15s, color 0.15s;
}
.bw-back:hover { border-color: var(--gold); color: var(--gold); }

.bw-confirm {
  width: 100%; padding: 13px; background: var(--gold);
  color: #0B0F14; font-family: inherit; font-size: 0.92rem;
  font-weight: 600; border: none; border-radius: 6px; cursor: pointer; transition: opacity 0.15s;
}
.bw-confirm:hover { opacity: 0.88; }
.bw-confirm:disabled { opacity: 0.45; cursor: default; }

.bw-done { text-align: center; padding: 16px 0; }
.bw-done-check {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(22, 163, 74, 0.12); border: 2px solid #16a34a;
  color: #16a34a; font-size: 1.4rem; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 14px;
}
.bw-done h3 { font-size: 1.1rem; font-weight: 600; color: var(--heading); margin-bottom: 6px; }
.bw-done p  { font-size: 0.85rem; color: var(--muted); margin-bottom: 20px; }
.bw-done-detail {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 14px 18px; text-align: left; margin-top: 14px;
}
.bw-done-detail .bw-dr { display: flex; justify-content: space-between; padding: 4px 0; font-size: 0.88rem; }
.bw-done-detail .bw-dl { color: var(--muted); }
.bw-done-detail .bw-dv { font-weight: 600; color: var(--heading); }
