/* ==========================================================================
   Madeira Atlantic Property — design system
   Tokens locked from the live brand, with one correction:
   #7E7D86 measured 4.07:1 on white (fails WCAG AA) → #727179 (4.82:1).
   Every rule below is written to clear the six anti-patterns the Impeccable
   detector found on the incumbent page: low-contrast, heading-rhythm,
   line-length, layout-transition, cramped-padding, skipped-heading.
   ========================================================================== */

:root {
  /* colour */
  --ink:        #332A21;   /* 14.06:1 on white — body + headings */
  --ink-soft:   #4A3F33;
  --bronze:     #9C7248;   /* 4.27:1 — large text, accents. never body */
  --bronze-dk:  #7A5836;   /* 6.2:1 — bronze that is safe as small text */
  --amber:      #C08345;   /* 3.19:1 — non-text UI only */
  --muted:      #727179;   /* 4.82:1 on paper, 4.66:1 on paper-alt */
  --rule:       #E2E2E2;
  --rule-soft:  #EDE9E2;
  --paper:      #FFFFFF;
  --paper-alt:  #FBFBF9;
  --sand:       #F5F1EA;
  --sand-deep:  #EBE4D8;

  /* type */
  --display: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --body:    "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* a fifth-based scale, clamped so nothing needs a media query to be sane */
  --t-hero:  clamp(2.5rem, 1.7rem + 3.2vw, 4.3rem);
  --t-h1:    clamp(2.1rem, 1.5rem + 2.6vw, 3.5rem);
  --t-h2:    clamp(1.55rem, 1.25rem + 1.3vw, 2.25rem);
  --t-h3:    clamp(1.2rem, 1.08rem + 0.5vw, 1.45rem);
  --t-body:  clamp(1.02rem, 0.99rem + 0.16vw, 1.14rem);
  --t-small: 0.9rem;
  --t-micro: 0.78rem;

  /* spacing — 4px base */
  --s1: .25rem; --s2: .5rem;  --s3: .75rem; --s4: 1rem;
  --s5: 1.5rem; --s6: 2rem;   --s7: 3rem;   --s8: 4rem;
  --s9: 6rem;   --s10: 8rem;

  /* measure — the line-length fix. 68ch prose, 46ch for lede */
  --measure: 68ch;
  --measure-tight: 46ch;
  --page: 1180px;
  --page-wide: 1400px;

  --radius: 3px;
  --radius-lg: 6px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-body);
  line-height: 1.65;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }

/* ---------- heading rhythm ----------
   The incumbent page failed this 19 times: every h2 sat closer to the block
   above than to its own content, so each section read as a caption for the
   previous one. Space above a heading must exceed space below it. Always. */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: balance;
  margin: 0;
}
h2 { font-size: var(--t-h2); margin-block: var(--s8) var(--s4); }
h3 { font-size: var(--t-h3); margin-block: var(--s7) var(--s3); font-weight: 600; }
h4 { font-size: 1.05rem; margin-block: var(--s6) var(--s2); font-family: var(--body); font-weight: 700; letter-spacing: .01em; }
:is(h2, h3, h4):first-child { margin-block-start: 0; }

p, ul, ol, table, figure, blockquote { margin-block: 0 var(--s4); }
p:last-child, ul:last-child, ol:last-child { margin-block-end: 0; }

a { color: var(--bronze-dk); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--bronze-dk); outline-offset: 3px; border-radius: 2px;
}

strong { font-weight: 700; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .9em; background: var(--sand); padding: .1em .35em; border-radius: 2px; }

/* ---------- layout ---------- */
.wrap { width: min(100% - 2.5rem, var(--page)); margin-inline: auto; }
.wrap-wide { width: min(100% - 2.5rem, var(--page-wide)); margin-inline: auto; }
.prose { max-width: var(--measure); }
.prose p, .prose li { max-width: var(--measure); }

section { padding-block: var(--s9); }
section.tight { padding-block: var(--s8); }
.band-alt { background: var(--paper-alt); }
.band-sand { background: var(--sand); }
.band-ink { background: #332A21; color: #F3EFE9; }
.band-ink h2, .band-ink h3 { color: #FFFFFF; }
.band-ink a { color: var(--amber); }
.band-ink p { color: #E6DFD5; }
.band-ink .prose > p { font-size: 1.12rem; line-height: 1.66; }
.band-ink .eyebrow { color: #E0B681; }

.eyebrow {
  font-family: var(--body);
  font-size: var(--t-micro);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--bronze-dk);
  margin-block-end: var(--s3);
}

.lede { font-size: 1.2rem; line-height: 1.55; color: var(--ink-soft); max-width: 60ch; }

/* ---------- skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: var(--s3) var(--s4);
}
.skip:focus { left: var(--s4); top: var(--s4); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-block-end: 1px solid var(--rule-soft);
}
.nav-inner {
  width: min(100% - 2.5rem, var(--page-wide)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s5); min-height: 68px;
}
.nav-logo { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.15; }
.nav-logo-name { font-family: var(--display); font-size: 1.16rem; font-weight: 600; letter-spacing: -.01em; }
.nav-logo-sub { font-size: var(--t-micro); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-block-start: 2px; }
.nav-links { display: flex; gap: var(--s5); list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links a { font-size: .95rem; text-decoration: none; color: var(--ink); padding-block: var(--s2); position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--bronze); transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);   /* transform, never width — layout-transition rule */
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle { display: none; }

/* ---- Nav call to action -------------------------------------------------
   The markup emits TWO labels — a long one and a short one — and expects CSS
   to choose. There was no rule for either, so every page in the site rendered
   both, glued together: "Is Madeira right for me?Take the quiz". Visible in
   the top-right corner of all 132 pages, and invisible to every gate, because
   no gate reads a sentence. */
.nav-cta {
  display: inline-flex; align-items: center;
  font-size: .95rem; font-weight: 600;
  color: var(--bronze-dk); text-decoration: none;
  padding: var(--s2) var(--s3);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  white-space: nowrap;
  transition: border-color .28s var(--ease), color .28s var(--ease);
}
.nav-cta:hover { border-color: var(--bronze); color: var(--ink); }
.nav-cta-short { display: none; }
@media (max-width: 1180px) {
  .nav-cta-long { display: none; }
  .nav-cta-short { display: inline; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; inset-inline: 0; top: 68px; background: var(--paper); flex-direction: column; align-items: flex-start; padding: var(--s5); gap: var(--s4); border-block-end: 1px solid var(--rule); }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: var(--s2);
    background: none; border: 1px solid var(--rule); border-radius: var(--radius);
    padding: var(--s2) var(--s3); font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-size: .97rem; font-weight: 600;
  padding: .82em 1.5em;            /* cramped-padding rule: never below 12px inset */
  border-radius: var(--radius);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }   /* transform only */
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #241D16; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-quiet { background: transparent; color: var(--bronze-dk); border-color: var(--rule); }
.btn-quiet:hover { border-color: var(--bronze-dk); background: var(--sand); color: var(--ink); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: #332A21; color: #fff; isolation: isolate; }
.hero-art { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(21,15,11,.93) 0%, rgba(21,15,11,.72) 38%, rgba(21,15,11,.22) 72%, rgba(21,15,11,.10) 100%),
    linear-gradient(180deg, rgba(21,15,11,.55) 0%, rgba(21,15,11,.10) 40%, rgba(21,15,11,.60) 100%);
}
.hero-inner > *, .hero-inner .hero-actions { max-width: 62ch; }
.hero-art svg { width: 100%; height: 100%; object-fit: cover; }
.hero-inner {
  position: relative;
  gap: var(--s5);
  width: min(100% - 2.5rem, var(--page-wide)); margin-inline: auto;
  padding-block: clamp(3rem, 1.8rem + 4.5vw, 5.25rem);
  display: grid; gap: var(--s6);
}
.hero h1 {
  font-size: var(--t-hero); color: #fff; font-weight: 500;
  max-width: 21ch; line-height: 1.06; letter-spacing: -.02em;
}
.hero h1 em { font-style: italic; color: #E8C79B; }
.hero .hero-sub { max-width: 50ch; font-size: 1.16rem; line-height: 1.6; color: #E6DFD5; }
.hero-eyebrow { color: #E0B681; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-block-start: var(--s2); }
.hero .btn-primary { background: #fff; color: var(--ink); }
.hero .btn-primary:hover { background: #F0E9DF; color: var(--ink); }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.hero .btn-ghost:hover { background: #fff; color: var(--ink); }

/* the compliance line, above the fold, in body text — not a footnote */
.hero-disclosure {
  margin-block-start: var(--s5);
  padding-block-start: var(--s4);
  border-block-start: 1px solid rgba(255,255,255,.22);
  font-size: .93rem; line-height: 1.6; color: #D9D1C6; max-width: 62ch;
}
.hero-disclosure a { color: #E8C79B; }

/* ---------- disclosure blocks ---------- */
.disclosure {
  border: 1px solid var(--rule);
  background: var(--paper-alt);
  padding: var(--s4) var(--s5);       /* never flush — cramped-padding rule */
  border-radius: var(--radius);
  font-size: .95rem; line-height: 1.62; color: var(--ink-soft);
  max-width: var(--measure);
}
.disclosure strong { color: var(--ink); }
.disclosure::before, .sample-flag::before { content: ""; display: block; width: 34px; height: 2px; border-radius: 1px; margin-block-end: var(--s3); }
.disclosure::before { background: var(--bronze); }
.sample-flag::before { background: var(--amber); }
.disclosure + .disclosure { margin-block-start: var(--s4); }

.sample-flag {
  display: flex; gap: var(--s3); align-items: flex-start;
  background: #FFF6E5; border: 1px solid #E8C79B; flex-direction: column;
  padding: var(--s4) var(--s5); border-radius: var(--radius);
  font-size: .93rem; line-height: 1.6; color: #5A4526; max-width: var(--measure);
}
.sample-flag strong { color: #3D2E17; }

mark.todo {
  background: #FFF0C7; color: #5A4526; padding: .1em .4em;
  border-radius: 2px; font-size: .93em; font-weight: 600;
}

/* ---------- AMI credit — mandatory on every property ---------- */
.ami {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2) var(--s3);
  padding: var(--s3) var(--s4);
  background: var(--sand); border-radius: var(--radius);
  font-size: .92rem; color: var(--ink-soft);
}
.ami-label { font-size: var(--t-micro); letter-spacing: .13em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.ami-name { font-weight: 700; color: var(--ink); }
.ami-num { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .88rem; color: var(--ink); background: #fff; padding: .12em .45em; border-radius: 2px; border: 1px solid var(--rule); }

/* ---------- cards ---------- */
.grid { display: grid; gap: var(--s5); margin-block-start: var(--s5); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); }

.card {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .26s var(--ease), box-shadow .26s var(--ease), border-color .26s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px -20px rgba(51,42,33,.38); border-color: var(--sand-deep); }
.card-media { aspect-ratio: 3 / 2; background: var(--sand); position: relative; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-media img { transform: scale(1.035); }
.card-media svg { width: 100%; height: 100%; }
.card-body { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); flex: 1; }
.card-town { font-size: var(--t-micro); letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--bronze-dk); }
.card :is(h2, h3) { font-size: 1.24rem; margin: 0; line-height: 1.22; }
.card p { font-size: .96rem; color: var(--ink-soft); margin: 0; }
.card-facts { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); font-size: .89rem; color: var(--muted); margin-block-start: auto; padding-block-start: var(--s3); border-block-start: 1px solid var(--rule-soft); }
.card-price { font-family: var(--display); font-size: 1.4rem; font-weight: 600; color: var(--ink); }
.card-price-note { font-size: var(--t-micro); color: var(--muted); display: block; font-family: var(--body); font-weight: 400; letter-spacing: 0; }
.card-ami { font-size: var(--t-micro); color: var(--muted); padding: var(--s3) var(--s5); background: var(--paper-alt); border-block-start: 1px solid var(--rule-soft); }
.card-ami b { color: var(--ink-soft); font-weight: 600; }

/* A featured stay. Quiet, not a sales sticker: a warm border and a small
   flag. The card is already first in the grid; this says it was put there
   on purpose rather than by accident of sort order. */
.card.is-featured { border-color: var(--accent, #8A6A3B); box-shadow: 0 0 0 1px var(--accent, #8A6A3B) inset; }
.card-flag { display: inline-block; font-size: var(--t-micro); letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent, #8A6A3B); border: 1px solid currentColor; border-radius: 2px;
  padding: .1em .45em; margin-block-end: .35em; }
@media (prefers-reduced-motion: no-preference) { .card.is-featured { transition: box-shadow .2s ease; } }

.card.is-sample { border-style: dashed; border-color: #E8C79B; }
.card.is-sample .card-media { background: repeating-linear-gradient(135deg, #FBF3E4, #FBF3E4 12px, #F6EAD6 12px, #F6EAD6 24px); }

/* ---------- section headers ---------- */
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s5); margin-block-end: var(--s6); padding-block-end: var(--s4); border-block-end: 1px solid var(--rule-soft); }
.sec-head > div { max-width: 58ch; flex: 1 1 30rem; }
.sec-head .btn { flex: 0 0 auto; }
.sec-head h2 { margin-block: 0 var(--s3); }
.sec-head p { color: var(--ink-soft); margin: 0; }

/* ---------- villa feature ---------- */
.feature { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s8); align-items: center; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; gap: var(--s6); } }
.feature-art { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; background: var(--sand); }
.feature-art img { width: 100%; height: 100%; object-fit: cover; }
.img-note { font-size: var(--t-micro); color: var(--muted); margin-block-start: var(--s2); }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.feature-list li { padding-inline-start: 1.4em; position: relative; color: var(--ink-soft); }
.feature-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: .5em; height: .5em; background: var(--bronze); border-radius: 50%; }

/* ---------- article / legal ---------- */
.article-head { padding-block: var(--s8) var(--s6); border-block-end: 1px solid var(--rule-soft); }
.article-head h1 { font-size: var(--t-h1); max-width: 20ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); font-size: .89rem; color: var(--muted); margin-block-start: var(--s4); }
.quick-answer {
  background: var(--sand); border-radius: var(--radius-lg);
  padding: var(--s5) var(--s6);
  font-size: 1.08rem; line-height: 1.62; color: var(--ink);
  max-width: var(--measure); margin-block: var(--s6) var(--s7);
}
.quick-answer .eyebrow { margin-block-end: var(--s2); }
.legal-lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 62ch; }
.note-disambiguation { color: var(--muted); font-size: .95rem; border-inline-start: 2px solid var(--rule); padding-inline-start: var(--s4); }

.table-scroll { overflow-x: auto; margin-block: var(--s5); }
.legal-table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .95rem; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: var(--s3) var(--s4); border-block-end: 1px solid var(--rule); }
.legal-table th { font-family: var(--body); font-weight: 700; font-size: .86rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); background: var(--paper-alt); }

/* ---------- footer ---------- */
.footer { background: #332A21; color: #D9D1C6; padding-block: var(--s8) var(--s6); font-size: .94rem; }
.footer a { color: #E8C79B; text-decoration: none; }
.footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: var(--s7); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer h3 { color: #fff; font-family: var(--body); font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; margin-block: 0 var(--s4); font-weight: 700; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.footer-brand p { max-width: 44ch; line-height: 1.62; }
.footer-name { font-family: var(--display); font-size: 1.3rem; color: #fff; margin-block-end: var(--s3); }
.footer-legal {
  margin-block-start: var(--s7); padding-block-start: var(--s5);
  border-block-start: 1px solid rgba(255,255,255,.16);
  display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); align-items: baseline;
  font-size: .87rem; color: #B5ABA0;
}
.footer-legal .statement { max-width: 68ch; line-height: 1.6; }

/* ---------- misc ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.crumbs { font-size: .87rem; color: var(--muted); padding-block-start: var(--s5); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.stack-lg > * + * { margin-block-start: var(--s6); }

/* ---------- page figures ---------- */
.page-figure { margin: var(--s6) 0 var(--s7); }
.page-figure img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 16/9; object-fit: cover; }
.page-figure figcaption { margin-block-start: var(--s3); max-width: var(--measure); }

/* ---- Property and villa galleries ---------------------------------------
   Every picture carries its caption in the layout rather than on hover. A
   caption that only appears to a mouse is invisible on a phone and to a screen
   reader, and on this site the caption is doing legal work: it is what says
   "this is a computer image, not a room".

   The render flag is a border and a word, not a watermark. A watermark over
   somebody else's render is a licence problem; a label beside it is a fact. */
.gallery-block { margin-block: var(--s7); }
.gallery-block > h2 { margin-block-end: var(--s3); }
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr));
  gap: var(--s5);
  margin-block-start: var(--s5);
}
.gallery-item { margin: 0; }
.gallery-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--sand);
}
.gallery-item figcaption {
  margin-block-start: var(--s2);
  font-size: .9rem;
  line-height: 1.5;
  color: var(--muted);
}
/* A render is marked, not shouted at. Seventeen pictures with eleven bold
   outlines reads as a warning label on a listing; a hairline and the word
   RENDER in the caption reads as a fact, which is what it is. */
.gallery-item.is-render img { box-shadow: inset 0 0 0 1px var(--amber); }
.render-flag {
  display: inline-block;
  margin-inline-end: .4em;
  padding: .1em .5em;
  border-radius: 999px;
  background: var(--sand);
  color: var(--ink);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  vertical-align: baseline;
}
.photo-note { max-width: var(--measure); color: var(--muted); font-size: .95rem; }

/* ---- The consultant block -----------------------------------------------
   Photograph beside the words at desk width, above them on a phone. The image
   is a plain square rather than a circle: a circular crop is the stock-avatar
   convention, and this is a named professional with a licence number, not an
   avatar. */
.consultant { display: grid; gap: var(--s6); align-items: start; }
@media (min-width: 52rem) {
  /* Only reserve the photo column when a photograph actually exists. Reserving
     it unconditionally left an empty 18rem gutter and squeezed the text into a
     column half the measure wide. */
  .consultant.has-photo { grid-template-columns: 18rem 1fr; gap: var(--s7); }
}
.consultant-photo {
  width: 100%; max-width: 18rem; height: auto;
  aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--radius-lg);
}
.no-photo-note {
  margin: var(--s6) 0 var(--s7);
  padding: var(--s5);
  border: 1px dashed var(--rule);
  border-radius: var(--radius-lg);
  background: var(--paper-alt, #FBFBF9);
}
.no-photo-note p { margin: 0; max-width: var(--measure); color: var(--muted); }
/* Matches .disclosure rather than inventing a new panel: a short rule above,
   not a thick bar down the side. The side bar is the single most recognisable
   tell of a generated interface, and the detector rightly flagged it. */
.not-perfect {
  border: 1px solid var(--rule);
  background: var(--paper-alt);
  padding: var(--s4) var(--s5);
  border-radius: var(--radius);
  max-width: var(--measure);
  color: var(--ink-soft);
}
.not-perfect::before {
  content: ""; display: block;
  width: 34px; height: 2px; border-radius: 1px;
  margin-block-end: var(--s3);
  background: var(--amber);
}
.not-perfect p { margin: 0; }
.open-questions { color: var(--muted); }

/* ---- Language switcher --------------------------------------------------
   Six languages, so a menu rather than inline flags. Flags are avoided
   deliberately: a flag names a country, not a language, and Portuguese here is
   European Portuguese, not Brazilian. A globe and the endonym are unambiguous. */
.lang-switch { position: relative; margin-inline-start: auto; }
.lang-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 44px; padding: .35rem .7rem;
  font: inherit; font-size: .88rem; color: var(--ink);
  background: none; border: 1px solid var(--rule); border-radius: var(--radius);
  cursor: pointer;
}
.lang-btn:hover { border-color: var(--bronze); }
.lang-menu {
  position: absolute; inset-block-start: calc(100% + .35rem); inset-inline-end: 0;
  z-index: 60; min-inline-size: 11rem; margin: 0; padding: .3rem;
  list-style: none; background: var(--paper);
  border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: 0 6px 24px rgb(51 42 33 / 12%);
}
.lang-menu[hidden] { display: none; }
.lang-menu a {
  display: block; min-height: 44px; padding: .6rem .75rem;
  font-size: .92rem; text-decoration: none; color: var(--ink); border-radius: 4px;
}
.lang-menu a:hover { background: var(--sand); }
.lang-menu a[aria-current="true"] { font-weight: 600; color: var(--bronze-dk, var(--bronze)); }
@media (max-width: 720px) {
  .lang-btn .lang-current { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
}

/* ---- Photography credits ------------------------------------------------ */
.credits-table { width: 100%; border-collapse: collapse; margin-block: var(--s6); }
.credits-table th { text-align: start; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-block-end: 1px solid var(--rule); padding-block-end: var(--s3); }
.credits-table td { border-block-end: 1px solid var(--rule); padding-block: var(--s4); vertical-align: top; }
.credits-table td:first-child { inline-size: 180px; padding-inline-end: var(--s5); }
.credit-thumb { inline-size: 100%; block-size: auto; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; display: block; }
.credit-alt { margin: 0 0 var(--s2); }
.credit-meta { margin: 0; font-size: .88rem; color: var(--muted); }
@media (max-width: 600px) {
  .credits-table td:first-child { inline-size: 96px; }
}
