/* My Wealth Lawyer — site styles */
:root {
  --ink: #1f1f1f;
  --ink-soft: #4b4744;
  --paper: #fafaf8;
  --white: #ffffff;
  --maroon: #8c2f2f;
  --maroon-dark: #712424;
  --gold: #cfae70;
  --gold-dark: #a8884c;
  --line: #e7e1d6;
  --serif: "Forum", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --ui: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec-pad: clamp(56px, 8vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--maroon); }
a:hover { color: var(--maroon-dark); }
:focus-visible { outline: 2px solid var(--maroon); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--maroon); color: #fff; padding: 10px 16px; text-decoration: none; }
.skip-link:focus { top: 12px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1, .is-h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
h4 { font-size: 1.2rem; }
.is-h6 { font-size: 1.15rem; letter-spacing: .05em; }
.center { text-align: center; }
.eyebrow { font: 600 .78rem/1 var(--ui); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.eyebrow a { color: var(--gold-dark); text-decoration: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }

/* ---------- header ---------- */
.site-header { background: var(--paper); position: relative; z-index: 30; border-bottom: 1px solid var(--line); }
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 4px; }
.brand img { width: 150px; }
.top-cta {
  justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 10px;
  font: 400 1.05rem/1.2 var(--serif); letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; text-align: center;
}
.top-cta .icon { width: 34px; height: 34px; color: var(--maroon); stroke-width: 1.6; }
.top-cta:hover { color: var(--maroon); }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; justify-content: center; gap: clamp(14px, 3.2vw, 48px); padding: 8px var(--gutter) 14px; }
.site-nav a, .site-nav button {
  display: inline-flex; align-items: center; gap: 4px;
  font: 500 .78rem/1 var(--ui); letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; padding: 8px 2px; background: none;
  border: 0; border-bottom: 2px solid transparent; cursor: pointer;
}
.site-nav a:hover, .site-nav button:hover { color: var(--maroon); }
.site-nav [aria-current="page"], .site-nav .is-active { border-bottom-color: var(--maroon); font-weight: 600; }
.site-nav button .icon { width: 14px; height: 14px; transition: transform .2s; }
.has-sub { position: relative; }
.sub {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 270px; background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.12);
  border-top: 2px solid var(--maroon); padding: 8px 0; display: none; z-index: 40;
}
.sub a { display: block; padding: 11px 20px; border: 0; font-weight: 500; text-transform: none; letter-spacing: .02em; font-size: .9rem; }
.sub a[aria-current="page"] { color: var(--maroon); }
.has-sub.open .sub { display: block; }
.has-sub.open > button .icon { transform: rotate(180deg); }
@media (hover: hover) and (min-width: 901px) {
  .has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
}
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr auto 1fr; padding-top: 10px; }
  .brand img { width: 104px; }
  .top-cta { font-size: .78rem; gap: 6px; }
  .top-cta .icon { width: 26px; height: 26px; }
  .nav-toggle {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
    background: none; border: 0; border-top: 1px solid var(--line); padding: 12px;
    font: 600 .8rem/1 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); cursor: pointer;
  }
  .site-nav { display: none; border-top: 1px solid var(--line); }
  .site-nav.is-open { display: block; }
  .site-nav > ul { flex-direction: column; gap: 0; padding: 4px var(--gutter) 12px; }
  .site-nav a, .site-nav button { width: 100%; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .85rem; }
  .site-nav [aria-current="page"], .site-nav .is-active { border-bottom-color: var(--line); color: var(--maroon); }
  .sub { position: static; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; }
}
@media (max-width: 420px) {
  .top-cta span { font-size: .7rem; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 15px 36px;
  font: 400 1.05rem/1.1 var(--serif); letter-spacing: .05em;
  background: var(--gold); color: #fff; border: 1.5px solid var(--gold);
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: transparent; color: var(--gold-dark); border-color: var(--gold-dark); }
.btn--solid { background: var(--maroon); border-color: var(--maroon); }
.btn--solid:hover { background: var(--maroon-dark); border-color: var(--maroon-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--maroon); border-color: var(--maroon); }
.btn-wrap { margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.btn-wrap.center { justify-content: center; }

/* ---------- sections ---------- */
.sec { padding: var(--sec-pad) 0; position: relative; }
.tone-white { background: var(--white); }
.tone-paper { background: var(--paper); }
.tone-dark { background: var(--ink); color: #fff; }
.tone-maroon { background: var(--maroon); color: #fff; }
.tone-gold { background: var(--gold); }
.tone-dark h1, .tone-dark h2, .tone-dark h3, .tone-maroon h1, .tone-maroon h2, .tone-maroon h3 { color: #fff; }
.subrow { padding: clamp(24px, 4vw, 48px); margin: 12px 0; }

.rte > :last-child { margin-bottom: 0; }
.rte p { margin: 0 0 1em; }
.rte ul, .rte ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.rte li { margin: .3em 0; }
.rte li::marker { color: var(--maroon); }
.rte h2, .rte h3 { color: var(--maroon); }
.rte h2:not(:first-child), .rte h3:not(:first-child) { margin-top: 1.3em; }
.page-home .rte h2 { color: var(--ink); }
.sec--news .rte h3 { color: var(--ink); font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
.rte + .rte { margin-top: .4em; }
.rule { border: 0; height: 2px; width: 110px; background: var(--maroon); margin: 14px 0 28px; }
.rule--center { margin-left: auto; margin-right: auto; }
.figure { margin: 0; }
.figure img { width: 100%; }

.grid { display: grid; grid-template-columns: var(--cols, 1fr 1fr); gap: clamp(28px, 4vw, 60px); align-items: center; }
.grid + .grid, .rte + .grid, .grid + .rte { margin-top: clamp(28px, 4vw, 48px); }
.grid--3, .grid--4 { align-items: start; }
.grid--3 .is-h1, .grid--3 h2 { font-size: 1.3rem; letter-spacing: .14em; color: var(--gold-dark); margin-top: 6px; }
.col--photo { align-self: stretch; }
.col--photo img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; }
@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
  .col--photo img { min-height: 0; height: auto; aspect-ratio: 16 / 10; }
}

.feature { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; text-align: left; }
.feature + .feature { margin-top: 30px; }
.feature .rte.center { text-align: left; }
.feature-icon {
  display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line); color: var(--maroon);
}
.feature-icon .icon { width: 26px; height: 26px; stroke-width: 1.6; }
.feature h3, .feature .is-h6 { margin-bottom: .35em; color: var(--maroon); }

/* ---------- home: hero ---------- */
.hero { position: relative; min-height: min(80vh, 760px); display: grid; align-items: end; overflow: hidden; background: #3b342c; color: #fff; }
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(31,31,31,.05) 30%, rgba(31,31,31,.62) 100%); }
.hero__inner { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(48px, 8vw, 96px); text-align: center; }
.hero h1 { color: #fff; max-width: 18ch; margin: 0 auto .35em; font-size: clamp(2.2rem, 5vw, 4rem); text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); letter-spacing: .05em; margin: 0; }
.hero .btn { background: #fff; color: var(--ink); border-color: #fff; }
.hero .btn:hover { background: transparent; color: #fff; }

/* ---------- home: service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 32px); }
.card { background: var(--paper); border-top: 3px solid var(--gold); padding: 36px 30px 32px; text-align: center; }
.card .feature-icon { margin-bottom: 18px; }
.card h3 { font-size: 1.45rem; }
.card h3 a { color: var(--maroon); text-decoration: none; }
.card .rte p a { font: 600 .78rem/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* ---------- photo + text panels ---------- */
.panel__inner { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; }
.panel__media { grid-column: 1; grid-row: 1; align-self: stretch; }
.panel__media img { width: 100%; height: 100%; min-height: 540px; object-fit: cover; }
.panel__body { grid-column: 1 / -1; grid-row: 1; justify-self: end; width: min(52%, 600px); margin: clamp(24px, 4vw, 56px) 0; padding: clamp(32px, 4.5vw, 60px); position: relative; z-index: 1; }
.panel--dark .panel__body { background: rgba(31,31,31,.9); color: #f3f0ea; }
.panel--dark .rte h1, .panel--dark .rte h2, .panel--dark .rte .is-h1 { color: #fff; }
.panel--dark .rte h3 { color: var(--gold); font-size: 1.2rem; }
.panel--dark .rte .is-h1:first-child { font-size: 1rem; letter-spacing: .3em; color: var(--gold); margin-bottom: .2em; }
.panel--dark a { color: var(--gold); }
.panel--dark .rule { background: var(--gold); }
.panel--gold .panel__body { background: rgba(207,174,112,.95); color: var(--ink); }
.panel--gold h1, .panel--gold h2, .panel--gold .is-h1, .panel--gold .rte h2, .panel--gold .rte h3 { color: var(--maroon); }
.panel--gold .rule { background: var(--maroon); }
.panel--gold .btn, .panel--dark .btn { background: #fff; color: var(--ink); border-color: #fff; }
.panel--gold .btn:hover, .panel--dark .btn:hover { background: transparent; color: inherit; border-color: currentColor; }
.panel--gold a:not(.btn) { color: var(--maroon-dark); }
@media (max-width: 860px) {
  .panel__inner { grid-template-columns: 1fr; }
  .panel__media img { min-height: 0; aspect-ratio: 16 / 10; height: auto; }
  .panel__body { grid-column: 1; grid-row: 2; width: auto; justify-self: stretch; }
}

/* ---------- inner page title band ---------- */
.page-hero { position: relative; min-height: clamp(240px, 32vw, 420px); display: grid; place-items: center; text-align: center; overflow: hidden; }
.page-hero--bare { min-height: clamp(160px, 20vw, 260px); }
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; }
.page-hero.tone-photo-dark::after { background: rgba(31,31,31,.72); }
.page-hero.tone-photo-maroon::after { background: rgba(140,47,47,.78); }
.page-hero.tone-photo-light::after { background: rgba(255,255,255,.75); }
.page-hero__inner { position: relative; z-index: 1; padding-top: 40px; padding-bottom: 40px; }
.page-hero h1 { margin: 0; font-size: clamp(2.3rem, 6vw, 4.2rem); color: #fff; }
.page-hero.tone-photo-light h1 { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 2px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq__q { margin: 0; font-size: clamp(1.05rem, 1.6vw, 1.22rem); letter-spacing: .04em; color: var(--ink); }
.faq summary:hover .faq__q { color: var(--maroon); }
.faq summary .icon { color: var(--maroon); transition: transform .2s; }
.faq[open] summary .icon { transform: rotate(180deg); }
.faq__a { padding: 0 2px 22px; color: var(--ink-soft); }

/* ---------- logos ---------- */
.sec--logos { padding: clamp(40px, 6vw, 72px) 0; }
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(18px, 3vw, 40px); align-items: center; }
.logos a, .logos li > img { display: grid; place-items: center; }
.logos img { max-height: 96px; width: auto; filter: grayscale(1); opacity: .8; transition: filter .25s, opacity .25s; }
.logos a:hover img, .logos a:focus-visible img { filter: none; opacity: 1; }
@media (max-width: 760px) { .logos { grid-template-columns: repeat(3, 1fr); } }

/* ---------- blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.6vw, 30px); margin-top: 10px; text-align: left; }
.post-card { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; box-shadow: 0 1px 3px rgba(0,0,0,.05); transition: box-shadow .2s, transform .2s; }
.post-card:hover { box-shadow: 0 10px 26px rgba(0,0,0,.09); transform: translateY(-2px); }
.post-card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card__title { font-size: 1.32rem; letter-spacing: .04em; margin-bottom: .55em; }
.post-card__title a { color: var(--maroon); text-decoration: none; }
.post-card__meta { font-size: .85rem; color: var(--ink-soft); margin: 0 0 18px; }
.post-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font: 600 .76rem/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--gold-dark); }
.post-card__more .icon { width: 14px; height: 14px; }
@media (max-width: 960px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }

.post__title { color: var(--maroon); font-size: clamp(2rem, 4.2vw, 3rem); }
.post__meta { color: var(--ink-soft); margin: 0 0 28px; }
.post__hero { margin-bottom: 34px; }
.prose { font-size: 1.1rem; }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin-top: 1.5em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.4em; }
.prose .figure { margin: 28px 0; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); font: 600 .78rem/1 var(--ui); letter-spacing: .1em; text-transform: uppercase; }
.share a { text-decoration: none; }

.sitemap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 24px; }
.sitemap h2 { font-size: 1.3rem; color: var(--maroon); }
.sitemap ul { padding-left: 1.1em; margin: 0; }
.sitemap li { margin: .4em 0; }
@media (max-width: 760px) { .sitemap { grid-template-columns: 1fr; } }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; margin-top: 20px; text-align: left; }
.field__label { display: block; font: 600 .78rem/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; color: var(--ink-soft); }
.form input:not([type=checkbox]), .form textarea {
  width: 100%; padding: 13px 14px; border: 1px solid #cdc5b7; background: #fff;
  font: inherit; color: var(--ink); border-radius: 0;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--maroon); outline-offset: 0; border-color: var(--maroon); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.check input { margin-top: 5px; accent-color: var(--maroon); }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }

/* ---------- footer ---------- */
.site-footer { color: #e8e4dc; }
.footer-top { background: #1f1f1f linear-gradient(135deg, rgba(140,47,47,.18), rgba(31,31,31,0) 55%); padding: 60px 0 56px; }
.footer-grid { display: grid; grid-template-columns: 170px repeat(4, minmax(0, 1fr)) auto; gap: clamp(20px, 3vw, 40px); align-items: start; }
.footer-brand img { width: 160px; }
.footer-h { font: 400 1.2rem/1.2 var(--serif); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
.site-footer p { margin: 0 0 8px; }
.site-footer a { color: #fff; }
.footer-top a { text-decoration: none; }
.footer-top a:hover { color: var(--gold); }
.site-footer address { font-style: normal; }
.footer-note { font-style: italic; font-size: .92rem; color: #c9c3b8; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 0 0 6px; }
.social { list-style: none; display: flex; gap: 10px; margin: 14px 0 0; padding: 0; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--maroon); color: #fff; }
.social a:hover { background: var(--gold); color: var(--ink); }
.social .icon { width: 18px; height: 18px; }
.pay-btn { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--ink) !important; padding: 14px 20px; font: 400 1rem/1 var(--serif); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.pay-btn .icon { color: var(--maroon); }
.footer-bottom { background: var(--gold); color: var(--ink); padding: 26px 0 30px; font-size: .9rem; line-height: 1.55; }
.footer-bottom a { color: var(--ink); font-weight: 600; }
.footer-legal-links { font-weight: 600; }
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-pay { grid-column: 1 / -1; }
}

/* ---------- floating booking button ---------- */
.float-cta {
  position: fixed; right: 90px; bottom: 22px; z-index: 50;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--maroon); color: #fff; text-decoration: none;
  padding: 12px 18px; font: 400 .95rem/1.1 var(--serif); letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 8px 22px rgba(0,0,0,.22);
}
.float-cta:hover { background: var(--maroon-dark); color: #fff; }
@media (max-width: 620px) { .float-cta { right: 76px; bottom: 18px; padding: 10px 14px; font-size: .8rem; } }

/* ---------- chat assistant ---------- */
.chat-launcher {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--ink); color: #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,.25); transition: transform .2s, background .2s;
}
.chat-launcher:hover { transform: translateY(-2px); background: #000; }
.chat-launcher__icon .icon { width: 26px; height: 26px; color: var(--gold); }
.chat-launcher__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.chat-launcher[aria-expanded="true"] { background: var(--maroon); }
.chat-panel {
  position: fixed; right: 18px; bottom: 90px; z-index: 60;
  width: min(390px, calc(100vw - 24px)); height: min(600px, calc(100vh - 120px));
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0,0,0,.24); font-size: .98rem;
}
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; background: var(--ink); color: #fff; border-bottom: 3px solid var(--gold); }
.chat-title { margin: 0; font: 400 1.15rem/1.2 var(--serif); letter-spacing: .06em; text-transform: uppercase; }
.chat-sub { margin: 2px 0 0; font-size: .8rem; color: #d8d2c6; }
.chat-close { background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; display: grid; place-items: center; }
.chat-close .icon { width: 20px; height: 20px; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.chat-msg { max-width: 88%; padding: 10px 13px; line-height: 1.5; word-wrap: break-word; }
.chat-msg p { margin: 0 0 .55em; }
.chat-msg p:last-child, .chat-msg ul:last-child { margin-bottom: 0; }
.chat-msg ul { margin: 0 0 .55em; padding-left: 1.2em; }
.chat-msg--bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); }
.chat-msg--bot a { color: var(--maroon); font-weight: 600; }
.chat-msg--user { align-self: flex-end; background: var(--maroon); color: #fff; white-space: pre-wrap; }
.chat-typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-dark); animation: chat-dot 1.2s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .chat-typing span { animation: none; opacity: .6; } }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px; background: var(--paper); border-top: 1px solid var(--line); }
.chat-chips[hidden] { display: none; }
.chat-chip { border: 1px solid var(--gold); background: #fff; color: var(--ink); padding: 6px 11px; border-radius: 16px; font: 500 .82rem/1.2 var(--sans); cursor: pointer; }
.chat-chip:hover { background: var(--gold); color: #fff; }
.chat-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; resize: none; max-height: 120px; padding: 10px 12px; border: 1px solid #cdc5b7; font: inherit; color: var(--ink); }
.chat-form textarea:focus { outline: 2px solid var(--maroon); outline-offset: 0; border-color: var(--maroon); }
.chat-send { flex: none; width: 42px; height: 42px; border: 0; background: var(--maroon); color: #fff; cursor: pointer; display: grid; place-items: center; }
.chat-send:hover { background: var(--maroon-dark); }
.chat-send .icon { width: 18px; height: 18px; }
.chat-actions { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.chat-action { padding: 11px 8px; text-align: center; font: 600 .74rem/1.2 var(--ui); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--ink); background: #fff; }
.chat-action--primary { background: var(--gold); color: #fff; }
.chat-action:hover { color: var(--maroon); }
.chat-action--primary:hover { color: #fff; background: var(--gold-dark); }
@media (max-width: 520px) {
  .chat-panel { right: 8px; left: 8px; bottom: 86px; width: auto; height: calc(100vh - 100px); height: calc(100dvh - 100px); }
  .chat-is-open .float-cta { display: none; }
}
.draft-flag { display: inline-block; background: var(--maroon); color: #fff; padding: 6px 12px; font: 600 .75rem/1 var(--ui); letter-spacing: .1em; text-transform: uppercase; margin: 0 0 16px; }

/* ---------- blog draft review page ---------- */
.review-bar { position: sticky; top: 0; z-index: 20; background: var(--gold); padding: 16px 20px; margin: 0 0 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.review-bar--end { position: static; margin: 36px 0 0; justify-content: flex-end; }
.review-bar__label { margin: 0; font: 600 .82rem/1.3 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.review-bar .btn-wrap { margin: 0; }
.review-bar .btn--ghost { background: #fff; }
.review-changes { background: #fff; border: 1px solid var(--line); padding: 20px; margin: 0 0 28px; }
.review-changes[hidden] { display: none; }
.review-notice { background: #fff; border-left: 4px solid var(--gold); padding: 20px 22px; font-size: 1.1rem; }
.review-notice.is-error { border-left-color: var(--maroon); }
.review-notice.is-done { border-left-color: #2e7d4f; }
.review-notice p { margin: 0 0 8px; }
.review-notice p:last-child { margin-bottom: 0; }

/* ---------- owner portal ---------- */
.portal { max-width: 1000px; }
.portal-signin { max-width: 560px; margin: 0 auto; text-align: center; }
.portal-signin .btn-wrap { justify-content: center; }
.portal-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.portal-head h1 { margin: 0; color: var(--maroon); }
.portal-link { background: none; border: 0; padding: 0; color: var(--maroon); font: 600 .85rem/1.2 var(--ui); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; text-decoration: underline; }
.portal-status:empty { display: none; }
.portal-status { margin-top: 16px; }
.portal-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--gold); padding: 16px 18px; margin: 0 0 24px; }
.portal-banner p { margin: 0; flex: 1 1 260px; }
.portal-section h2 { font-size: 1.3rem; color: var(--ink); margin-bottom: 12px; }
.portal-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 30px; }
.portal-card { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); text-decoration: none; color: var(--ink); }
.portal-card:hover { border-top-color: var(--maroon); box-shadow: 0 6px 16px rgba(0,0,0,.07); }
.portal-card strong { font: 400 1.1rem/1.2 var(--serif); letter-spacing: .04em; text-transform: uppercase; color: var(--maroon); }
.portal-card span { font-size: .9rem; color: var(--ink-soft); }
.portal-card em { font-size: .8rem; color: var(--gold-dark); font-style: normal; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.portal-card.is-pending { opacity: .75; }
.portal-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 22px; }
.portal-tabs button { background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: 12px 14px; font: 600 .82rem/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); cursor: pointer; }
.portal-tabs button[aria-selected="true"] { color: var(--maroon); border-bottom-color: var(--maroon); }
.portal-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.portal-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.portal-list li div { display: flex; flex-direction: column; gap: 2px; }
.portal-list li span { font-size: .88rem; color: var(--ink-soft); }
.portal-list .btn { padding: 10px 20px; font-size: .95rem; }
.portal-reminder { background: #fff8e8; border-left: 4px solid var(--gold); padding: 12px 16px; margin-bottom: 20px; font-size: .95rem; }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; background: var(--paper); border: 1px solid #cdc5b7; border-bottom: 0; }
.editor-btn { background: #fff; border: 1px solid var(--line); padding: 7px 11px; font: 600 .85rem/1 var(--ui); cursor: pointer; color: var(--ink); }
.editor-btn:hover { border-color: var(--maroon); color: var(--maroon); }
.editor { min-height: 340px; background: #fff; border: 1px solid #cdc5b7; padding: 16px 18px; outline: none; }
.editor:focus { border-color: var(--maroon); box-shadow: 0 0 0 2px rgba(140,47,47,.15); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.photo-pick { padding: 0; border: 3px solid transparent; background: none; cursor: pointer; }
.photo-pick img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.photo-pick[aria-pressed="true"] { border-color: var(--maroon); }
