/* A Cariama — leitura em formato de jornal */
body.cariama-view-brand {
  --paper: #fff8e9;
  --paper-deep: #f3e8d0;
  --ink: #14382b;
  --rule: rgba(20, 56, 43, 0.72);
  --red: #a92f36;
  background: #ded4c1;
}

body.cariama-view-brand .cariama-newspaper {
  width: min(1480px, calc(100% - 32px));
  margin: 22px auto 52px;
  overflow: visible;
  color: var(--ink);
  background-color: var(--paper) !important;
  background-image:
    radial-gradient(circle at 20% 12%, rgba(118, 72, 37, 0.035) 0 0.8px, transparent 0.9px),
    radial-gradient(circle at 72% 64%, rgba(118, 72, 37, 0.025) 0 0.7px, transparent 0.8px);
  background-size: 8px 8px, 11px 11px;
  border: 1px solid rgba(51, 46, 37, 0.28);
  box-shadow: 0 24px 70px rgba(45, 36, 23, 0.2), 0 2px 0 rgba(255, 255, 255, 0.7) inset;
}

body.cariama-view-brand .cariama-newspaper-reading-progress {
  position: sticky;
  z-index: 45;
  top: 0;
  width: 100%;
  height: 4px;
  overflow: hidden;
  background: rgba(20, 56, 43, 0.12);
}

body.cariama-view-brand .cariama-newspaper-reading-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

body.cariama-view-brand .cariama-newspaper-edition-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  margin: 0 54px;
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

body.cariama-view-brand .cariama-newspaper-edition-bar time {
  color: var(--red);
  text-align: center;
}

body.cariama-view-brand .cariama-newspaper-edition-bar span:last-child {
  text-align: right;
}

body.cariama-view-brand .cariama-identity-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  grid-template-rows: auto auto;
  gap: 30px 52px;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 30px 54px 44px !important;
  overflow: hidden;
  isolation: isolate;
  background: transparent !important;
  border-bottom: 5px double var(--ink);
}

body.cariama-view-brand .cariama-identity-hero::before {
  content: "CARIAMA" !important;
  position: absolute !important;
  z-index: -1 !important;
  inset: 18px 54px auto !important;
  width: auto !important;
  height: auto !important;
  color: rgba(169, 47, 54, 0.04) !important;
  background: none !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(110px, 15vw, 250px);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.82;
  text-align: center;
  transform: none !important;
}

body.cariama-view-brand .cariama-identity-hero::after {
  content: "REPORTAGEM DE CAPA" !important;
  position: absolute !important;
  z-index: 4;
  top: 43px !important;
  right: 54px !important;
  bottom: auto !important;
  left: auto !important;
  width: auto !important;
  height: auto !important;
  padding: 7px 10px;
  color: #fff8e9;
  background: var(--red) !important;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.15em;
  line-height: 1;
  transform: none !important;
}

body.cariama-view-brand .cariama-identity-hero-image {
  position: relative !important;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  width: 100% !important;
  height: clamp(430px, 46vw, 620px) !important;
  min-height: 0 !important;
  object-fit: cover;
  object-position: center;
  opacity: 1 !important;
  filter: saturate(0.86) contrast(1.1) sepia(0.08) !important;
  clip-path: none !important;
  transform: none !important;
  border: 1px solid var(--ink);
  box-shadow: 9px 9px 0 var(--paper-deep);
}

body.cariama-view-brand .cariama-identity-hero-image::selection { background: transparent; }
body.cariama-view-brand .cariama-identity-veil { display: none !important; }

body.cariama-view-brand .cariama-identity-content {
  position: relative !important;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 18px 0 0 !important;
  color: var(--ink) !important;
  transform: none !important;
}

body.cariama-view-brand .cariama-identity-logo {
  width: 76px !important;
  margin: 0 0 18px !important;
  filter: none !important;
}

body.cariama-view-brand .cariama-identity-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--red) !important;
  font-size: 10px !important;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

body.cariama-view-brand .cariama-identity-kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--red);
}

body.cariama-view-brand .cariama-identity-content h1 {
  margin: 0 0 18px !important;
  color: var(--ink) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(74px, 8vw, 132px) !important;
  font-weight: 900 !important;
  letter-spacing: -0.07em !important;
  line-height: 0.8 !important;
  text-transform: none !important;
  text-shadow: none !important;
}

body.cariama-view-brand .cariama-identity-content h1 span {
  display: block;
  margin: 0 0 8px 4px;
  color: var(--red);
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.28em;
  line-height: 1;
  text-transform: uppercase;
}

body.cariama-view-brand .cariama-identity-content > p {
  max-width: 37ch !important;
  margin: 0 0 25px !important;
  color: var(--ink) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2vw, 30px) !important;
  font-weight: 600;
  line-height: 1.16 !important;
}

body.cariama-view-brand .cariama-identity-content > p::first-letter {
  float: left;
  margin: 4px 7px 0 0;
  color: var(--red);
  font-size: 3.2em;
  font-weight: 900;
  line-height: 0.72;
}

body.cariama-view-brand .cariama-identity-actions {
  display: flex !important;
  flex-wrap: wrap;
  gap: 16px 22px !important;
  align-items: center;
  margin: 8px 0 26px !important;
}

body.cariama-view-brand .cariama-identity-actions .button {
  min-height: 44px;
  padding: 0 18px !important;
  border-radius: 0 !important;
}

body.cariama-view-brand .cariama-identity-store {
  color: var(--ink) !important;
  border-bottom: 1px solid currentColor;
}

body.cariama-view-brand .cariama-identity-facts {
  position: relative !important;
  z-index: 3;
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  width: 100% !important;
  margin: 0 !important;
  padding: 16px 0 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--rule) !important;
  transform: none !important;
}

body.cariama-view-brand .cariama-identity-facts > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: baseline;
  min-height: 0 !important;
  padding: 0 22px !important;
  border-right: 1px solid var(--rule);
}

body.cariama-view-brand .cariama-identity-facts > div:first-child { padding-left: 0 !important; }
body.cariama-view-brand .cariama-identity-facts > div:last-child { border-right: 0; }

body.cariama-view-brand .cariama-identity-facts strong {
  color: var(--red) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px !important;
  line-height: 1;
}

body.cariama-view-brand .cariama-identity-facts span {
  color: var(--ink) !important;
  font-size: 10px !important;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

body.cariama-view-brand .cariama-scroll-cue { display: none !important; }

body.cariama-view-brand .cariama-journey {
  padding: 56px 54px 68px !important;
  border-bottom: 5px double var(--ink);
}

body.cariama-view-brand .cariama-journey-heading {
  display: grid !important;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 22px 48px;
  align-items: end;
  max-width: none !important;
  margin: 0 0 30px !important;
  padding: 0 0 26px !important;
  border-bottom: 1px solid var(--rule);
  text-align: left !important;
}

body.cariama-view-brand .cariama-journey-heading .section-kicker {
  grid-column: 1 / -1;
  margin: 0 !important;
  color: var(--red) !important;
}

body.cariama-view-brand .cariama-journey-heading h2 {
  margin: 0 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(48px, 6.2vw, 92px) !important;
  letter-spacing: -0.055em !important;
  line-height: 0.9 !important;
  text-transform: none !important;
}

body.cariama-view-brand .cariama-journey-heading > p {
  margin: 0 !important;
  padding-left: 22px;
  border-left: 4px solid var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px !important;
  line-height: 1.55 !important;
}

body.cariama-view-brand .cariama-chapter-tabs {
  position: sticky;
  z-index: 30;
  top: 4px;
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 34px !important;
  padding: 0 !important;
  overflow: hidden;
  background: rgba(255, 248, 233, 0.96) !important;
  border: 1px solid var(--ink) !important;
  backdrop-filter: blur(8px);
}

body.cariama-view-brand .cariama-chapter-tabs button {
  min-width: 0 !important;
  padding: 14px 18px !important;
  color: var(--ink) !important;
  background: transparent !important;
  border-right: 1px solid var(--ink) !important;
  border-radius: 0 !important;
  text-align: left;
}

body.cariama-view-brand .cariama-chapter-tabs button:last-child { border-right: 0 !important; }
body.cariama-view-brand .cariama-chapter-tabs button.is-active { color: #fff8e9 !important; background: var(--ink) !important; }

body.cariama-view-brand .cariama-chapter-panel {
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, 0.82fr) !important;
  gap: 42px !important;
  align-items: stretch !important;
}

body.cariama-view-brand .cariama-chapter-image {
  min-height: 540px;
  margin: 0 !important;
  border: 1px solid var(--ink);
}

body.cariama-view-brand .cariama-chapter-image img { height: 100% !important; object-fit: cover; }

body.cariama-view-brand .cariama-chapter-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 0 30px 38px !important;
  border-left: 1px solid var(--rule);
}

body.cariama-view-brand .cariama-chapter-copy h3 {
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(38px, 4vw, 64px) !important;
  letter-spacing: -0.045em !important;
  line-height: 0.98 !important;
}

body.cariama-view-brand .cariama-chapter-copy p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px !important;
  line-height: 1.7 !important;
  text-align: justify;
  hyphens: auto;
}

body.cariama-view-brand .cariama-chapter-copy p::first-letter {
  float: left;
  margin: 7px 8px 0 0;
  color: var(--red);
  font-size: 4.4em;
  font-weight: 900;
  line-height: 0.68;
}

body.cariama-view-brand .cariama-home-origin-gallery,
body.cariama-view-brand .canastra-band,
body.cariama-view-brand .cultivation-place,
body.cariama-view-brand .cariama-story {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding-right: 54px !important;
  padding-left: 54px !important;
  border-bottom: 5px double var(--ink) !important;
}

body.cariama-view-brand .cariama-home-origin-gallery-heading h2,
body.cariama-view-brand .canastra-band h2,
body.cariama-view-brand .cultivation-place h2,
body.cariama-view-brand .cariama-story h2 {
  font-family: Georgia, "Times New Roman", serif !important;
  letter-spacing: -0.045em !important;
  text-transform: none !important;
}

body.cariama-view-brand .cariama-home-origin-step > div > p,
body.cariama-view-brand .canastra-text p,
body.cariama-view-brand .cultivation-place p,
body.cariama-view-brand .story-copy p {
  font-family: Georgia, "Times New Roman", serif;
  text-align: justify;
  hyphens: auto;
}

/* Readable Canastra editorial card — v1.1.216 */
body.cariama-view-brand .cultivation-place-copy {
  border: 1px solid rgba(255, 248, 234, 0.24) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 48%),
    #075e3d !important;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06), 0 22px 48px rgba(7, 60, 41, 0.16) !important;
  color: #fff8ea !important;
}

body.cariama-view-brand .cultivation-place-copy h3 {
  color: #fff3d8 !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

body.cariama-view-brand .cultivation-place-copy p {
  color: rgba(255, 248, 234, 0.93) !important;
  font-weight: 600;
}

body.cariama-view-brand .cultivation-place-copy .cultivation-index {
  color: rgba(243, 215, 167, 0.15) !important;
}

@media (max-width: 980px) {
  body.cariama-view-brand .cariama-identity-hero {
    grid-template-columns: 1fr;
  }

  body.cariama-view-brand .cariama-identity-content,
  body.cariama-view-brand .cariama-identity-hero-image {
    grid-column: 1;
  }

  body.cariama-view-brand .cariama-identity-content { grid-row: 1; }
  body.cariama-view-brand .cariama-identity-hero-image { grid-row: 2; height: 500px !important; }
  body.cariama-view-brand .cariama-identity-facts { grid-row: 3; }

  body.cariama-view-brand .cariama-journey-heading,
  body.cariama-view-brand .cariama-chapter-panel {
    grid-template-columns: 1fr !important;
  }

  body.cariama-view-brand .cariama-journey-heading > p,
  body.cariama-view-brand .cariama-chapter-copy {
    padding-left: 0 !important;
    border-left: 0;
  }
}

@media (max-width: 700px) {
  body.cariama-view-brand { background: var(--paper); }

  body.cariama-view-brand .cariama-newspaper {
    width: 100%;
    margin: 0;
    border: 0;
    box-shadow: none;
  }

  body.cariama-view-brand .cariama-newspaper-edition-bar {
    grid-template-columns: 1fr auto;
    gap: 8px 14px;
    margin: 0 18px;
    font-size: 8px;
  }

  body.cariama-view-brand .cariama-newspaper-edition-bar span:last-child { display: none; }

  body.cariama-view-brand .cariama-identity-hero {
    gap: 22px;
    padding: 24px 18px 30px !important;
  }

  body.cariama-view-brand .cariama-identity-hero::before {
    inset: 26px 18px auto !important;
    font-size: 74px;
  }

  body.cariama-view-brand .cariama-identity-hero::after {
    top: 22px !important;
    right: 18px !important;
  }

  body.cariama-view-brand .cariama-identity-logo { width: 58px !important; }
  body.cariama-view-brand .cariama-identity-content h1 { font-size: clamp(66px, 25vw, 104px) !important; }
  body.cariama-view-brand .cariama-identity-content > p { font-size: 19px !important; }
  body.cariama-view-brand .cariama-identity-hero-image { height: 330px !important; box-shadow: 6px 6px 0 var(--paper-deep); }

  body.cariama-view-brand .cariama-identity-facts {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.cariama-view-brand .cariama-identity-facts > div,
  body.cariama-view-brand .cariama-identity-facts > div:first-child {
    padding: 9px 0 !important;
    border-right: 0;
    border-bottom: 1px solid rgba(20, 56, 43, 0.28);
  }

  body.cariama-view-brand .cariama-journey,
  body.cariama-view-brand .cariama-home-origin-gallery,
  body.cariama-view-brand .canastra-band,
  body.cariama-view-brand .cultivation-place,
  body.cariama-view-brand .cariama-story {
    padding-right: 18px !important;
    padding-left: 18px !important;
  }

  body.cariama-view-brand .cariama-journey-heading h2 { font-size: 47px !important; }

  body.cariama-view-brand .cariama-chapter-tabs {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  body.cariama-view-brand .cariama-chapter-tabs button {
    flex: 0 0 46%;
    scroll-snap-align: start;
  }

  body.cariama-view-brand .cariama-chapter-image { min-height: 330px; }
  body.cariama-view-brand .cariama-chapter-copy { padding-top: 8px !important; }
  body.cariama-view-brand .cariama-chapter-copy h3 { font-size: 40px !important; }
}

@media (prefers-reduced-motion: reduce) {
  body.cariama-view-brand .cariama-newspaper-reading-progress i { transition: none !important; }
}

/* Icon-only closing panel for the Grupo Cariama profile. */
body.cariama-view-brand .cariama-story {
  display: block !important;
  padding-top: clamp(70px, 8vw, 118px) !important;
  padding-bottom: clamp(70px, 8vw, 118px) !important;
  background:
    radial-gradient(circle at 50% 45%, rgba(221, 166, 47, 0.13), transparent 42%),
    var(--paper) !important;
}

body.cariama-view-brand .cariama-story .origin-seals {
  display: grid !important;
  width: min(1180px, 100%) !important;
  margin: 0 auto !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(14px, 2vw, 28px) !important;
}

body.cariama-view-brand .cariama-story .seal-card {
  position: relative;
  display: flex !important;
  min-height: 250px !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 20px !important;
  overflow: hidden;
  border: 1px solid rgba(0, 79, 49, 0.28) !important;
  padding: 34px 20px !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 248, 233, 0.92)) !important;
  box-shadow: 0 20px 48px rgba(0, 79, 49, 0.09) !important;
  text-align: center !important;
  transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}

body.cariama-view-brand .cariama-story .seal-card::before {
  position: absolute;
  top: 0;
  right: 24%;
  left: 24%;
  height: 3px;
  background: var(--red);
  content: "";
}

body.cariama-view-brand .cariama-story .seal-card:hover {
  border-color: rgba(179, 52, 59, 0.54) !important;
  box-shadow: 0 26px 58px rgba(0, 79, 49, 0.14) !important;
  transform: translateY(-6px);
}

body.cariama-view-brand .cariama-story .seal-card img {
  width: clamp(100px, 9vw, 138px) !important;
  height: auto !important;
  filter: drop-shadow(0 12px 20px rgba(120, 69, 35, 0.16));
}

body.cariama-view-brand .cariama-story .seal-card h3 {
  margin: 0 !important;
  color: var(--ink) !important;
  font-family: var(--strong-font) !important;
  font-size: clamp(19px, 1.6vw, 25px) !important;
  line-height: 1.05 !important;
  text-align: center !important;
}

/* Preserve the complete cover photograph at every breakpoint. */
body.cariama-view-brand .cariama-identity-hero-image {
  inset: auto !important;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  align-self: center;
  background: var(--paper);
}

/* The editorial journey ends after the first three chapters. This safeguard
   also suppresses obsolete chapters 04–06 from cached legacy markup. */
body.cariama-view-brand .cariama-home-origin-journey > article.cariama-home-origin-step:nth-of-type(n + 4) {
  display: none !important;
}

/* Simplified Canastra introduction: title aligned to the top after removing
   the decorative label, seal and highlight pills. */
body.cariama-view-brand .canastra-band {
  align-items: start !important;
}

body.cariama-view-brand .canastra-symbol {
  align-content: start !important;
  justify-items: center !important;
  width: 100%;
  text-align: center;
}

body.cariama-view-brand .canastra-symbol h2 {
  max-width: 340px !important;
  margin-top: 0 !important;
  font-size: clamp(46px, 3.7vw, 62px) !important;
  line-height: 0.9 !important;
}

@media (min-width: 1181px) {
  body.cariama-view-brand .canastra-band {
    grid-template-columns: minmax(280px, 0.65fr) minmax(360px, 0.9fr) minmax(440px, 1.15fr) !important;
    column-gap: clamp(68px, 5.5vw, 100px) !important;
  }
}

/* Display only the four seal symbols, without card containers or captions. */
body.cariama-view-brand .cariama-story .seal-card {
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible;
}

body.cariama-view-brand .cariama-story .seal-card::before {
  display: none !important;
}

body.cariama-view-brand .cariama-story .seal-card:hover {
  border: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

body.cariama-view-brand .cariama-story .seal-card img {
  width: clamp(130px, 12vw, 190px) !important;
}

@media (max-width: 520px) {
  body.cariama-view-brand .cariama-story .origin-seals {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 28px 18px !important;
  }

  body.cariama-view-brand .cariama-story .seal-card {
    min-height: 0 !important;
    justify-content: center !important;
    padding: 0 !important;
  }

  body.cariama-view-brand .cariama-story .seal-card img {
    width: min(128px, 100%) !important;
    flex-basis: auto;
  }
}

@media (max-width: 860px) {
  body.cariama-view-brand .cariama-story .origin-seals {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 520px) {
  body.cariama-view-brand .cariama-story {
    padding: 52px 16px !important;
  }

  body.cariama-view-brand .cariama-story .origin-seals {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 28px 18px !important;
  }

  body.cariama-view-brand .cariama-story .seal-card {
    min-height: 0 !important;
    justify-content: center !important;
    padding: 0 !important;
  }

  body.cariama-view-brand .cariama-story .seal-card img {
    width: min(128px, 100%) !important;
    flex: 0 0 auto;
  }

  body.cariama-view-brand .cariama-story .seal-card h3 {
    font-size: 22px !important;
    text-align: left !important;
  }
}
