/* =========================================================================
   AMAAR — Guias para novos tutores
   Shared layout & components for printable A4-landscape documents.
   Builds on the Amaar design tokens.
   ========================================================================= */
@import url("colors_and_type.css");

/* ---------- Page metrics (A4 landscape) ---------------------------------- */
:root {
  --page-w: 297mm;
  --page-h: 210mm;
  --pad: 48px;            /* outer content padding inside a page */
  --ink: #3a3052;         /* warm body ink on light */
  --ink-soft: #5a4f78;
  --guide-block-gap: 22px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--amaar-font-body);
  color: var(--amaar-fg-on-light);
  background: var(--amaar-lavender-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }

/* =========================================================================
   SCREEN CHROME — toolbar + scaled page stage (hidden when printing)
   ========================================================================= */
.toolbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: var(--amaar-purple-deep);
  color: var(--amaar-white);
  box-shadow: 0 4px 18px rgba(42,15,107,.25);
}
.toolbar__left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.toolbar img { height: 22px; width: auto; }
.toolbar__title {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .01em;
  color: rgba(255,255,255,.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toolbar__back {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.82);
  font-weight: 600; font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.22);
  transition: background .15s ease, color .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.toolbar__back:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-pdf {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--amaar-teal);
  color: var(--amaar-white);
  font-family: var(--amaar-font-body);
  font-weight: 700; font-size: 15px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 0; cursor: pointer;
  box-shadow: 0 6px 16px rgba(20,154,140,.4);
  transition: transform .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn-pdf:hover { background: var(--amaar-teal-deep); transform: translateY(-2px); }
.btn-pdf:active { transform: scale(.97); }
.btn-pdf svg { width: 18px; height: 18px; }
.is-generating-pdf .btn-pdf {
  pointer-events: none;
  opacity: .72;
}
.pdf-capture-root {
  position: fixed;
  left: -200vw;
  top: 0;
  width: 1122.52px;
  height: 793.7px;
  overflow: hidden;
  background: #fff;
  z-index: -1;
}

.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 36px 16px 64px;
}

/* Each page gets wrapped in a frame the scaler resizes for screen */
.page-frame { width: 100%; display: flex; justify-content: center; }

/* =========================================================================
   THE PAGE
   ========================================================================= */
.page {
  width: var(--page-w);
  height: var(--page-h);
  background: var(--amaar-white);
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(42,15,107,.18);
  transform-origin: top center;
  display: flex;
  flex-direction: column;
}

/* ---------- Decorative motif layer --------------------------------------- */
.motifs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.motif { position: absolute; display: block; }
.paw-motif {
  aspect-ratio: 1;
  background: currentColor;
  -webkit-mask: url("/assets/paw.svg") center / contain no-repeat;
  mask: url("/assets/paw.svg") center / contain no-repeat;
}
.bone-motif {
  aspect-ratio: 2 / 1;
  background: currentColor;
  -webkit-mask: url("/assets/bone.svg") center / contain no-repeat;
  mask: url("/assets/bone.svg") center / contain no-repeat;
}
.page > .pad,
.page > .cover-inner { position: relative; z-index: 1; }

/* Standard content padding wrapper */
.pad {
  flex: 1;
  padding: 34px var(--pad) 24px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* =========================================================================
   COVER PAGE
   ========================================================================= */
.page--cover {
  background: var(--amaar-bg-purple-radial);
  color: var(--amaar-fg-on-purple);
}
.cover-inner {
  flex: 1;
  padding: 56px 64px 48px;
  display: flex;
  flex-direction: column;
  z-index: 1;
}
.cover__logo img { height: 30px; width: auto; }
.cover__top {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.cover__series {
  font-family: var(--amaar-font-body);
  font-weight: 700; font-size: 12px;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.62);
}
.cover__center { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 70%; }
.cover__kicker {
  display: inline-flex; align-items: center; gap: 10px;
  align-self: flex-start;
  white-space: nowrap;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--amaar-white);
  padding: 8px 16px; border-radius: 999px;
  font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 22px;
}
.cover__kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amaar-teal); box-shadow: 0 0 0 4px rgba(31,191,176,.25); }
.cover__eyebrow {
  font-family: var(--amaar-font-display);
  font-weight: 900; font-style: italic; text-transform: uppercase;
  color: var(--amaar-teal);
  font-size: 34px; line-height: 1; letter-spacing: .005em;
  text-shadow: var(--amaar-text-shadow);
  margin: 0 0 6px;
}
.cover__title {
  font-family: var(--amaar-font-body);
  font-weight: 800;
  font-size: 76px; line-height: .98; letter-spacing: -.02em;
  color: var(--amaar-white);
  margin: 0;
  text-wrap: balance;
}
.cover__lede {
  margin: 26px 0 0;
  font-size: 18px; line-height: 1.55;
  color: rgba(255,255,255,.9);
  max-width: 52ch;
  text-wrap: pretty;
}
.page--cover .cover__lede strong { color: #fff; }
.cover__foot {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.cover__chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--amaar-lavender-100);
  color: var(--amaar-purple-deep);
  padding: 12px 20px; border-radius: 999px;
  font-weight: 700; font-size: 14px;
}
.cover__chip svg { width: 18px; height: 18px; }
.cover__url {
  color: rgba(255,255,255,.78);
  font-weight: 600; font-size: 14px; letter-spacing: .02em;
}

/* =========================================================================
   RUNNING HEADER / FOOTER (content pages)
   ========================================================================= */
.run-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--amaar-lavender-100);
  margin-bottom: 22px;
}
.run-head__name {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}
.run-head__name::before {
  content: "";
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 8px;
  background: var(--amaar-purple);
}
.run-head__name img {
  position: absolute;
  left: 7px;
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.run-head__name span {
  font-weight: 700; font-size: 13px; letter-spacing: .02em;
  color: var(--amaar-purple);
}
.run-head__tag {
  font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--amaar-teal-deep);
  background: rgba(31,191,176,.12);
  padding: 6px 14px; border-radius: 999px;
}
.run-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(106,61,200,.14);
  margin-top: 22px;
  font-size: 12px;
  color: var(--amaar-fg-muted);
}
.run-foot { color: #9286b3; }
.run-foot a { color: var(--amaar-purple); font-weight: 700; text-decoration: none; }
.run-foot .page-num { font-weight: 700; color: var(--amaar-purple-deep); }

/* =========================================================================
   TYPE & SECTION HEADERS
   ========================================================================= */
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
  white-space: nowrap;
  background: var(--amaar-lavender-100);
  color: var(--amaar-purple-deep);
  font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 999px;
  margin: 0 0 12px;
}
.section-label .n {
  font-family: var(--amaar-font-display); font-style: italic; font-weight: 900;
  color: var(--amaar-teal-deep);
}
.h-section {
  font-family: var(--amaar-font-body);
  font-weight: 800; font-size: 30px; line-height: 1.06; letter-spacing: -.015em;
  color: var(--amaar-purple-deep);
  margin: 0 0 8px;
  text-wrap: balance;
}
.h-sub {
  font-family: var(--amaar-font-body);
  font-weight: 800; font-size: 18px; color: var(--amaar-purple-deep);
  margin: 0 0 8px;
}
.lede {
  font-size: 15.5px; line-height: 1.55; color: var(--ink);
  max-width: 92ch; text-wrap: pretty; margin: 0;
}
p { margin: 0 0 10px; }
.body { font-size: 14px; line-height: 1.55; color: var(--ink); text-wrap: pretty; }
.muted { color: var(--ink-soft); }
strong { color: var(--amaar-purple-deep); font-weight: 700; }

/* ---------- Layout grids ------------------------------------------------- */
.cols { display: grid; gap: 22px; }
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-12 { grid-template-columns: 1.15fr .85fr; }
.cols-21 { grid-template-columns: .85fr 1.15fr; }
/* Grows to fill the page, but never shrinks below its own content — otherwise the
   blocks inside spill out of the box and overlap whatever comes next. */
.fill { flex: 1 1 auto; }
.mt-auto { margin-top: auto; }

/* Keep stacked visual blocks from visually merging at their rounded edges.
   Any two boxes that follow one another inside a page always get the same gap. */
.pad > :is(.cols, .dodont, .compare, .steps, .facts, .phase-bar, .panel, .alert,
           .legal, .tip, .curio, .ban-strip, .callout-strip, .checklist-card, .figure)
     + :is(.cols, .dodont, .compare, .steps, .facts, .phase-bar, .panel, .alert,
           .legal, .tip, .curio, .ban-strip, .callout-strip, .checklist-card, .figure) {
  margin-top: var(--guide-block-gap);
}

/* …unless the following block is pinned to the bottom of the page. Note that `auto`
   collapses to 0 when the page has no free space left — pages that stack a block
   right above a `.mt-auto` block must leave at least --guide-block-gap to spare. */
.pad > :is(.spacer-8, .spacer-14, .spacer-20, .cols, .dodont, .compare, .steps, .facts,
           .phase-bar, .panel, .alert, .legal, .tip, .curio, .ban-strip, .callout-strip)
     + .mt-auto {
  margin-top: auto;
}

/* =========================================================================
   CARDS / PANELS
   ========================================================================= */
.panel {
  background: var(--amaar-white);
  border: 1.5px solid rgba(106,61,200,.12);
  border-radius: var(--amaar-radius-md);
  padding: 20px 22px;
  box-shadow: 0 3px 12px rgba(42,15,107,.05);
}
.panel--lav { background: var(--amaar-lavender-50); border-color: rgba(106,61,200,.10); }
.panel__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.panel__icon {
  width: 40px; height: 40px; flex: 0 0 auto;
  border-radius: 12px;
  background: var(--amaar-lavender-100);
  color: var(--amaar-purple);
  display: inline-flex; align-items: center; justify-content: center;
}
.panel__icon svg { width: 22px; height: 22px; }
.panel__icon img { width: 22px; height: 22px; object-fit: contain; }
.panel__icon--teal { background: rgba(31,191,176,.16); color: var(--amaar-teal-deep); }
.panel h4 { margin: 0; font-size: 16px; font-weight: 800; color: var(--amaar-purple-deep); }

/* List styling */
ul.ticks, ul.dots { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
ul.ticks li, ul.dots li {
  display: block;
  position: relative;
  padding-left: 27px;
  font-size: 14px; line-height: 1.45; color: var(--ink);
}
ul.ticks li svg {
  position: absolute;
  left: 0;
  top: 2px;
  width: 17px; height: 17px;
  color: var(--amaar-teal-deep);
}
ul.dots li::before {
  position: absolute;
  left: 4px;
  top: 6px;
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--amaar-purple);
}

/* =========================================================================
   NUMBERED STEPS
   ========================================================================= */
.steps { display: grid; gap: 16px; counter-reset: step; }
.steps-3 { grid-template-columns: repeat(3, 1fr); }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
.step {
  position: relative;
  background: var(--amaar-white);
  border: 1.5px solid rgba(106,61,200,.12);
  border-radius: var(--amaar-radius-md);
  padding: 26px 20px 18px;
  box-shadow: 0 3px 12px rgba(42,15,107,.05);
}
.step__n {
  position: absolute;
  top: -18px; left: 18px;
  font-family: var(--amaar-font-display); font-style: italic; font-weight: 900;
  font-size: 42px; line-height: 1;
  color: var(--amaar-teal);
  text-shadow: var(--amaar-text-shadow);
}
.step h4 { margin: 6px 0 6px; font-size: 15px; font-weight: 800; color: var(--amaar-purple-deep); }
.step p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink); }
.step .when {
  display: inline-block; margin-bottom: 8px;
  white-space: nowrap;
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--amaar-teal-deep);
  background: rgba(31,191,176,.12); padding: 4px 10px; border-radius: 999px;
}

/* =========================================================================
   ALERT BOX (red — sinais de alerta)
   ========================================================================= */
.alert {
  background: #fdf0f0;
  border: 1.5px solid rgba(213,42,42,.28);
  border-radius: var(--amaar-radius-md);
  padding: 18px 22px;
  position: relative;
}
.alert__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.alert__badge {
  width: 38px; height: 38px; flex: 0 0 auto;
  border-radius: 11px;
  background: var(--amaar-red);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(213,42,42,.35);
}
.alert__badge svg { width: 22px; height: 22px; }
.alert h4 { margin: 0; font-size: 17px; font-weight: 800; color: var(--amaar-red-deep); }
.alert__sub { font-size: 12.5px; color: #a04545; font-weight: 600; margin: 2px 0 0; }
.alert ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; }
.alert ul.one-col { grid-template-columns: 1fr; }
.alert li {
  display: block;
  position: relative;
  padding-left: 25px;
  font-size: 13.5px; line-height: 1.4; color: #6b2e2e;
}
.alert li svg {
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px; height: 16px;
  color: var(--amaar-red);
}
.alert__foot {
  margin-top: 12px; padding-top: 10px; border-top: 1px dashed rgba(213,42,42,.3);
  font-size: 12.5px; font-weight: 700; color: var(--amaar-red-deep);
  display: flex; align-items: center; gap: 8px;
}

/* =========================================================================
   TIP BOX (teal — dica rápida)
   ========================================================================= */
.tip {
  background: rgba(31,191,176,.10);
  border: 1.5px solid rgba(31,191,176,.30);
  border-left: 5px solid var(--amaar-teal);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex; gap: 14px; align-items: flex-start;
}
.tip__icon {
  width: 30px; height: 30px; flex: 0 0 auto;
  border-radius: 50%; background: var(--amaar-teal); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; margin-top: 1px;
}
.tip__icon svg { width: 17px; height: 17px; }
.tip__label { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--amaar-teal-deep); margin: 0 0 3px; }
.tip p { margin: 0; font-size: 13.5px; line-height: 1.5; color: #2a5f59; }
.tip strong { color: var(--amaar-teal-deep); }

/* =========================================================================
   LEGAL BOX (purple-dark — obrigações legais)
   ========================================================================= */
.legal {
  background: var(--amaar-purple-dark);
  color: var(--amaar-white);
  border-radius: var(--amaar-radius-md);
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
}
.legal__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; position: relative; z-index: 1; }
.legal__badge {
  width: 38px; height: 38px; flex: 0 0 auto; border-radius: 11px;
  background: rgba(255,255,255,.12); color: var(--amaar-teal);
  display: inline-flex; align-items: center; justify-content: center;
}
.legal__badge svg { width: 22px; height: 22px; }
.legal h4 { margin: 0; font-size: 17px; font-weight: 800; color: #fff; }
.legal__sub { font-size: 12.5px; color: rgba(255,255,255,.6); margin: 2px 0 0; }
.legal ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; position: relative; z-index: 1; }
.legal ul.two-col { grid-template-columns: 1fr 1fr; gap: 9px 22px; }
.legal li {
  display: block;
  position: relative;
  padding-left: 26px;
  font-size: 13.5px; line-height: 1.45; color: rgba(255,255,255,.9);
}
.legal li svg {
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px; height: 16px;
  color: var(--amaar-teal);
}
.legal__note { margin-top: 12px; font-size: 11.5px; color: rgba(255,255,255,.55); position: relative; z-index: 1; }
.legal strong { color: var(--amaar-teal); }
.alert strong { color: var(--amaar-red-deep); }

/* =========================================================================
   DO / DON'T (pode / evite)
   ========================================================================= */
.dodont { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dd {
  border-radius: var(--amaar-radius-md);
  padding: 18px 20px;
  border: 1.5px solid;
}
.dd--yes { background: rgba(31,191,176,.08); border-color: rgba(31,191,176,.32); }
.dd--no  { background: #fdf0f0; border-color: rgba(213,42,42,.26); }
.dd__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 800; font-size: 16px; }
.dd--yes .dd__head { color: var(--amaar-teal-deep); }
.dd--no .dd__head { color: var(--amaar-red-deep); }
.dd__head .ico { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.dd--yes .dd__head .ico { background: var(--amaar-teal); color: #fff; }
.dd--no .dd__head .ico { background: var(--amaar-red); color: #fff; }
.dd__head .ico svg { width: 18px; height: 18px; }
.dd ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.dd li {
  display: block;
  position: relative;
  padding-left: 24px;
  font-size: 13.5px; line-height: 1.42;
}
.dd--yes li { color: #2a5f59; }
.dd--no li { color: #6b2e2e; }
.dd li svg {
  position: absolute;
  left: 0;
  top: 3px;
  width: 15px; height: 15px;
}
.dd--yes li svg { color: var(--amaar-teal-deep); }
.dd--no li svg { color: var(--amaar-red); }

/* =========================================================================
   CHECKLIST (printable, with checkbox squares)
   ========================================================================= */
.checklist-card {
  background: var(--amaar-lavender-50);
  border: 1.5px dashed rgba(106,61,200,.32);
  border-radius: var(--amaar-radius-lg);
  padding: 22px 26px;
}
.checklist-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.checklist-card__head svg { width: 22px; height: 22px; color: var(--amaar-purple); }
.checklist-card h4 { margin: 0; font-size: 18px; font-weight: 800; color: var(--amaar-purple-deep); }
.checklist-card__sub { font-size: 12.5px; color: var(--ink-soft); margin: 0 0 14px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 11px 28px; }
.checklist.one-col { grid-template-columns: 1fr; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.4; color: var(--ink); }
.checklist .box {
  width: 20px; height: 20px; flex: 0 0 auto; margin-top: 1px;
  border: 2px solid var(--amaar-purple); border-radius: 6px;
  background: var(--amaar-white);
}

/* =========================================================================
   STAT / STRIP / STICKER bits
   ========================================================================= */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fact {
  background: var(--amaar-purple-deep); color: #fff;
  border-radius: 16px; padding: 16px 18px;
}
.fact__num { font-family: var(--amaar-font-body); font-weight: 800; font-size: 30px; line-height: 1; color: #fff; letter-spacing: -.02em; }
.fact__num .u { font-size: 16px; color: var(--amaar-teal); }
.fact__lbl { font-size: 12px; color: rgba(255,255,255,.78); margin-top: 6px; line-height: 1.35; }

.callout-strip {
  background: var(--amaar-bg-purple-radial);
  color: #fff; border-radius: var(--amaar-radius-md);
  padding: 18px 24px; display: flex; align-items: center; gap: 18px;
  position: relative; overflow: hidden;
}
.callout-strip svg.lead-ico { width: 30px; height: 30px; color: var(--amaar-teal); flex: 0 0 auto; position: relative; z-index: 1; }
.callout-strip div { position: relative; z-index: 1; }
.callout-strip h4 { margin: 0 0 2px; font-size: 16px; color: #fff; font-weight: 800; }
.callout-strip p { margin: 0; font-size: 13px; color: rgba(255,255,255,.85); }

/* timeline 3-3-3 style bar */
.phase-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-radius: 14px; overflow: hidden; border: 1.5px solid rgba(106,61,200,.14); }
.phase { padding: 16px 18px; background: var(--amaar-white); }
.phase + .phase { border-left: 1.5px solid rgba(106,61,200,.12); }
.phase__when { font-family: var(--amaar-font-display); font-style: italic; font-weight: 900; font-size: 26px; color: var(--amaar-teal-deep); line-height: 1; }
.phase__t { font-weight: 800; font-size: 14px; color: var(--amaar-purple-deep); margin: 8px 0 4px; }
.phase__d { font-size: 12.5px; color: var(--ink); line-height: 1.45; }

/* small inline helpers */
.spacer-8 { height: 8px; }
.spacer-14 { height: 14px; }
.spacer-20 { height: 20px; }
.grow { flex: 1; }

/* =========================================================================
   PHOTOS & FIGURES  (verified free Pexels stock)
   ========================================================================= */
.photo {
  border-radius: var(--amaar-radius-md);
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(42,15,107,.16);
  background: var(--amaar-lavender-100);
  position: relative;
}
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* a figure = photo + caption, used in side columns */
.figure { display: flex; flex-direction: column; }
.figure .photo { width: 100%; }   /* height set inline per use for predictable fit */
.figure__cap {
  font-size: 12px; color: var(--ink-soft); line-height: 1.4;
  padding: 8px 4px 0; text-wrap: pretty;
}
.figure__cap b { color: var(--amaar-purple-deep); }

/* corner tag on a photo: RECOMENDADO / EVITE / etc */
.photo__tag {
  position: absolute; top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.92); color: var(--amaar-purple-deep);
  box-shadow: 0 2px 8px rgba(42,15,107,.2);
}
.photo__tag svg { width: 14px; height: 14px; }
.photo__tag--yes { background: var(--amaar-teal); color: #fff; }
.photo__tag--no  { background: var(--amaar-red); color: #fff; }

/* cover photo: full-height image on the right, fading into the purple */
.page--cover.has-photo .cover__center { max-width: 58%; }
.page--cover.has-photo .cover__series { display: none; }
.cover__photo {
  position: absolute; top: 0; right: 0; bottom: 0; width: 44%;
  z-index: 0; overflow: hidden;
}
.cover__photo img { width: 100%; height: 100%; object-fit: cover; }
.cover__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #3F1A93 0%, rgba(63,26,147,.6) 22%, rgba(63,26,147,.12) 55%, transparent 100%),
              linear-gradient(0deg, rgba(42,15,107,.45), transparent 40%);
}

/* =========================================================================
   CURIOSITY BOX  ("Você sabia?")
   ========================================================================= */
.curio {
  background: var(--amaar-lavender-50);
  border: 1.5px solid rgba(106,61,200,.18);
  border-radius: var(--amaar-radius-md);
  padding: 16px 20px;
  display: flex; gap: 14px; align-items: flex-start;
  position: relative;
}
.curio__icon {
  width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%;
  background: var(--amaar-purple); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; margin-top: 1px;
}
.curio__icon svg { width: 20px; height: 20px; }
.curio__label {
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--amaar-purple); margin: 0 0 3px;
}
.curio p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink); }
.curio strong { color: var(--amaar-purple-deep); }

/* =========================================================================
   PROHIBITION emphasis ("PROIBIDO") — strong inline + banner
   ========================================================================= */
.proibido {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--amaar-red); color: #fff;
  font-weight: 800; font-size: .82em; letter-spacing: .04em;
  padding: 2px 9px; border-radius: 6px; text-transform: uppercase;
  vertical-align: baseline;
}
.ban-strip {
  background: #fdf0f0; border: 1.5px solid rgba(213,42,42,.3);
  border-left: 5px solid var(--amaar-red);
  border-radius: 14px; padding: 14px 18px;
  display: flex; gap: 14px; align-items: flex-start;
}
.ban-strip__icon {
  width: 32px; height: 32px; flex: 0 0 auto; border-radius: 9px;
  background: var(--amaar-red); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; margin-top: 1px;
}
.ban-strip__icon svg { width: 18px; height: 18px; }
.ban-strip p { margin: 0; font-size: 13.5px; line-height: 1.5; color: #6b2e2e; }
.ban-strip strong { color: var(--amaar-red-deep); }

/* =========================================================================
   COMPARE cards (adequado vs inadequado) — used in telamento guide
   ========================================================================= */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cmp {
  border-radius: var(--amaar-radius-md); overflow: hidden;
  border: 1.5px solid; display: flex; flex-direction: column;
}
.cmp--yes { border-color: rgba(31,191,176,.4); }
.cmp--no  { border-color: rgba(213,42,42,.34); }
.cmp__media { height: 260px; position: relative; overflow: hidden; }
.cmp__media img { width: 100%; height: 100%; object-fit: cover; }
.cmp__body { padding: 12px 16px 14px; flex: 1; }
.cmp--yes .cmp__body { background: rgba(31,191,176,.07); }
.cmp--no .cmp__body  { background: #fdf0f0; }
.cmp__head { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; margin-bottom: 6px; }
.cmp--yes .cmp__head { color: var(--amaar-teal-deep); }
.cmp--no .cmp__head  { color: var(--amaar-red-deep); }
.cmp__head .ic { width: 24px; height: 24px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.cmp--yes .cmp__head .ic { background: var(--amaar-teal); color: #fff; }
.cmp--no .cmp__head .ic { background: var(--amaar-red); color: #fff; }
.cmp__head .ic svg { width: 15px; height: 15px; }
.cmp__body p { margin: 0; font-size: 12.5px; line-height: 1.45; }
.cmp--yes .cmp__body p { color: #2a5f59; }
.cmp--no .cmp__body p { color: #6b2e2e; }

/* mesh swatch (mostra a malha 3x3 vs 5x5) */
.mesh {
  width: 100%; height: 100%;
  background-color: #2A0F6B;
  background-image:
    linear-gradient(rgba(255,255,255,.55) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255,255,255,.55) 2px, transparent 2px);
}
.mesh--fine { background-size: 16px 16px; }
.mesh--wide { background-size: 30px 30px; }

/* =========================================================================
   RESPONSIVE SCREEN
   Below 760px the fixed A4-landscape page is too dense to read once
   scaled down, so instead of shrinking it we drop the print-page sizing
   and let the content reflow as a normal single-column mobile layout.
   Print output (see @media print below) is untouched.
   ========================================================================= */
@media (max-width: 640px) {
  .toolbar { flex-wrap: wrap; }
  .toolbar__title { display: none; }
}

@media (max-width: 760px) {
  .stage { padding: 20px 14px 48px; gap: 20px; }
  .page-frame { height: auto !important; }
  .page {
    width: 100%;
    height: auto;
    min-height: 0;
    transform: none !important;
    border-radius: 18px;
  }
  .pad { padding: 26px 20px 22px; }

  /* ---- Cover: side photo becomes a top banner ---- */
  .page--cover.has-photo .cover__center { max-width: 100%; }
  .cover-inner { padding: 30px 22px 26px; }
  .cover__photo {
    position: static;
    width: auto;
    height: 200px;
    margin: -30px -22px 24px;
  }
  .cover__photo::after {
    background: linear-gradient(0deg, rgba(42,15,107,.55) 0%, rgba(42,15,107,.15) 55%, transparent 100%);
  }
  .cover__title { font-size: 38px; }
  .cover__lede { font-size: 15px; max-width: none; }
  .cover__foot { row-gap: 10px; }

  /* ---- Running header/footer wrap gracefully ---- */
  .run-head, .run-foot { flex-wrap: wrap; row-gap: 8px; }

  /* ---- Multi-column layouts stack ---- */
  .cols-2, .cols-3, .cols-12, .cols-21,
  .dodont, .compare, .phase-bar,
  .steps, .steps-3, .steps-4,
  .alert ul, .legal ul.two-col, .checklist, .facts {
    grid-template-columns: 1fr !important;
  }
  .phase + .phase { border-left: 0; border-top: 1.5px solid rgba(106,61,200,.12); }
  .cmp__media { height: 200px; }

  /* ---- Type scale down for narrow screens ---- */
  .h-section { font-size: 24px; }
  .cover__eyebrow { font-size: 26px; }
}

/* =========================================================================
   PRINT
   ========================================================================= */
@page { size: A4 landscape; margin: 0; }

@media print {
  html, body { background: #fff !important; }
  .toolbar, .no-print { display: none !important; }
  .stage { display: block; padding: 0; gap: 0; }
  .page-frame { display: block; width: auto; height: auto !important; }
  .page {
    transform: none !important;
    box-shadow: none !important;
    width: var(--page-w);
    height: var(--page-h);
    page-break-after: always;
    break-after: page;
  }
  .page:last-child { page-break-after: auto; break-after: auto; }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
}
