/*
 * DHT Azores — Blog editorial typography
 * Responsive, book-like reading flow. Blog articles only.
 */
.about-article {
  text-wrap: pretty;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.about-article p,
.about-article li {
  text-wrap: pretty;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  widows: 3;
  orphans: 3;
}

.about-article h2,
.about-article h3 {
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.about-article p {
  max-inline-size: 68ch;
}

.about-article > div {
  text-wrap: pretty;
}

.article-hero__inner h1 {
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.article-hero__inner .article-lead {
  text-wrap: pretty;
  overflow-wrap: normal;
  word-break: normal;
}

@media (max-width: 767px) {
  .about-article p {
    max-inline-size: none;
  }
}

/* Contextual links from editorial guides to the corresponding Miguel™ place pages. */
.about-article .blog-spot-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(35, 92, 79, .55);
  text-decoration-thickness: 1px;
  text-underline-offset: .16em;
  font-weight: inherit;
}
.about-article .blog-spot-link:hover,
.about-article .blog-spot-link:focus-visible {
  text-decoration-thickness: 2px;
  color: #235c4f;
}


/* Editorial link treatment: the place name itself is the only visible link. */
.about-article .blog-spot-link { display: inline; }
.about-article .blog-spot-link strong { font-weight: 700; }

/* Blog-wide title system — natural wrapping across every blog page.
   The global site stylesheet constrains H1 to 12ch and H2 to 14ch. Those
   editorial limits are useful elsewhere, but create premature line breaks
   in long-form blog articles. This scoped reset gives blog headings the full
   width of their actual content column while retaining responsive wrapping. */
#contenu :is(h1, h2, h3, h4) {
  display: block;
  width: 100%;
  max-width: none;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
  text-wrap: balance;
}

/* Some legacy blog heroes split titles into .heading-line spans.
   Keep their text inline so the browser wraps only when the available width
   genuinely runs out, rather than forcing one line per span. */
#contenu .article-hero h1 .heading-line {
  display: inline;
}
#contenu .article-hero h1 .heading-line + .heading-line::before {
  content: " ";
}

.about-article .blog-takeaway-title {
  width: 100%;
  max-width: none;
  font-size: clamp(1.65rem, 4.2vw, 2.25rem);
}

/* Premium editorial insert: the free rain guide, shown as real PDF page previews. */
.guide-feature {
  --guide-ink: #102b59;
  --guide-blue: #173d80;
  --guide-paper: #f5f3ed;
  margin: clamp(3rem, 7vw, 5.5rem) 0;
  padding: clamp(1.25rem, 4vw, 3.25rem);
  color: var(--guide-ink);
  background: var(--guide-paper);
  border: 1px solid rgba(16, 43, 89, .12);
  border-radius: 5px;
  box-shadow: 0 18px 48px rgba(20, 39, 68, .08);
}
.guide-feature__intro { max-width: 760px; margin: 0 auto 2rem; text-align: center; }
.guide-feature__eyebrow,
.guide-feature__meta {
  color: #597092;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.5;
  text-transform: uppercase;
}
.guide-feature__intro h2 {
  margin: .65rem auto .9rem;
  color: var(--guide-ink);
  font-family: Jost, sans-serif;
  font-size: clamp(1.65rem, 3.3vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: -.025em;
}
.guide-feature__intro > p:last-child {
  max-width: 62ch;
  margin: 0 auto;
  color: #40516a;
  font-size: 1rem;
  line-height: 1.75;
}
.guide-feature__magazine {
  display: grid;
  grid-template-columns: 1.12fr .88fr .88fr 1.12fr;
  align-items: center;
  gap: clamp(.65rem, 1.8vw, 1.35rem);
  max-width: 1040px;
  margin: 2rem auto 2.25rem;
  perspective: 1200px;
}
.guide-page { min-width: 0; margin: 0; }
.guide-page img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 0.707;
  object-fit: cover;
  background: #fff;
  border: 7px solid #fff;
  box-shadow: 0 12px 28px rgba(18, 37, 68, .18), 0 2px 5px rgba(18, 37, 68, .1);
}
.guide-page--cover { transform: translateY(-8px) rotate(-2deg); }
.guide-page--map { transform: translateY(9px) rotate(1.4deg); }
.guide-page--weather { transform: translateY(-2px) rotate(-1deg); }
.guide-page--road { transform: translateY(10px) rotate(2deg); }
.guide-page figcaption {
  margin-top: .8rem;
  color: #53637a;
  font-size: .75rem;
  line-height: 1.35;
  text-align: center;
}
.guide-feature__details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  max-width: 920px;
  margin: 0 auto;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(16, 43, 89, .16);
}
.guide-feature__copy { flex: 1 1 420px; }
.guide-feature__copy p { max-width: none; margin: .35rem 0; }
.guide-feature__copy .guide-feature__meta { margin-bottom: .35rem; }
.guide-feature__copy p:last-child { color: #40516a; font-size: .91rem; line-height: 1.6; }
.guide-feature__download {
  flex: 0 0 auto;
  white-space: normal;
  text-align: center;
}
.guide-feature__note {
  flex: 1 0 100%;
  margin: -.2rem 0 0 !important;
  color: #68778b;
  font-size: .78rem;
  text-align: right;
}
@media (max-width: 760px) {
  .guide-feature { margin-inline: -0.35rem; padding: 1.2rem .9rem 1.35rem; border-radius: 3px; }
  .guide-feature__magazine { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem .9rem; margin: 1.5rem auto 1.8rem; }
  .guide-page--cover, .guide-page--map, .guide-page--weather, .guide-page--road { transform: none; }
  .guide-page img { border-width: 5px; box-shadow: 0 8px 18px rgba(18, 37, 68, .15); }
  .guide-page figcaption { margin-top: .5rem; font-size: .7rem; }
  .guide-feature__details { display: block; text-align: center; }
  .guide-feature__download { display: inline-flex; margin-top: .75rem; }
  .guide-feature__note { margin-top: .7rem !important; text-align: center; }
}

/* Guide feature — consistent geometric centring. */
.guide-feature .guide-feature__intro {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  text-align: center;
}
.guide-feature .guide-feature__intro .guide-feature__eyebrow {
  display: block;
  width: 100%;
  margin-inline: auto;
  text-align: center;
}
.guide-feature__details {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.guide-feature__copy {
  flex: 0 1 auto;
  width: 100%;
  max-width: 920px;
  text-align: center;
}
.guide-feature__copy p,
.guide-feature__copy .guide-feature__meta {
  width: 100%;
  text-align: center;
}
.guide-feature__download {
  display: inline-flex;
  align-self: center;
  max-width: 100%;
  margin: .5rem auto 0;
  text-align: center;
}
.guide-feature__note {
  width: 100%;
  margin: 0 !important;
  text-align: center;
}


/* Interactive editorial photo deck — article "Il pleut aux Açores" */
.rain-photo-mosaic {
  width: min(100%, 1120px);
  margin: clamp(3rem, 7vw, 6rem) auto;
  padding: 0;
}
.rain-photo-mosaic__heading {
  max-width: 760px;
  margin: 0 auto clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
}
.rain-photo-mosaic__eyebrow {
  margin: 0 0 .65rem;
  color: #617b91;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}
.rain-photo-mosaic__intro {
  margin: 0;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.65;
}
.rain-photo-mosaic__deck {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(6, clamp(54px, 7vw, 88px));
  gap: clamp(8px, 1.2vw, 15px);
  isolation: isolate;
  padding: clamp(12px, 2vw, 24px);
  margin-inline: auto;
}
.rain-photo-card {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  padding: 7px;
  border: 1px solid rgba(25, 48, 45, .10);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(22, 43, 40, .18);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform .28s ease, box-shadow .28s ease, z-index 0s;
  -webkit-tap-highlight-color: transparent;
}
.rain-photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
}
.rain-photo-card:hover,
.rain-photo-card:focus-visible {
  z-index: 10;
  transform: translateY(-7px) rotate(0deg) scale(1.035);
  box-shadow: 0 22px 48px rgba(22, 43, 40, .25);
}
.rain-photo-card:focus-visible { outline: 3px solid #126b64; outline-offset: 4px; }
.rain-photo-card--ocean { grid-column: 1 / 7; grid-row: 1 / 5; transform: rotate(-2.2deg); z-index: 3; }
.rain-photo-card--setecidades { grid-column: 7 / 11; grid-row: 1 / 4; transform: rotate(2.1deg) translateY(8px); z-index: 2; }
.rain-photo-card--pico { grid-column: 10 / 13; grid-row: 2 / 5; transform: rotate(-2.8deg) translateY(15px); z-index: 4; }
.rain-photo-card--garden { grid-column: 1 / 4; grid-row: 5 / 7; transform: rotate(2.6deg) translate(8px,-8px); z-index: 5; }
.rain-photo-card--lake { grid-column: 4 / 9; grid-row: 4 / 7; transform: rotate(-1.1deg) translateY(8px); z-index: 6; }
.rain-photo-card--horse { grid-column: 9 / 11; grid-row: 4 / 7; transform: rotate(2.8deg) translateY(-4px); z-index: 3; }
.rain-photo-card--coast { grid-column: 11 / 13; grid-row: 5 / 7; transform: rotate(-2deg) translate(-5px,8px); z-index: 7; }
.rain-photo-lightbox {
  width: min(94vw, 1400px);
  max-width: none;
  height: min(92dvh, 1000px);
  max-height: none;
  padding: 56px 64px 30px;
  border: 0;
  border-radius: 18px;
  background: rgba(12, 19, 21, .97);
  color: #fff;
  overflow: hidden;
}
.rain-photo-lightbox::backdrop { background: rgba(5, 12, 14, .88); backdrop-filter: blur(8px); }
.rain-photo-lightbox__toolbar { position: absolute; inset: 14px 18px auto; display: flex; justify-content: space-between; align-items: center; color: rgba(255,255,255,.78); font: 600 .85rem/1.2 system-ui,sans-serif; }
.rain-photo-lightbox__close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: white; font-size: 30px; line-height: 1; cursor: pointer; }
.rain-photo-lightbox__image { display: block; width: 100%; height: 100%; object-fit: contain; }
.rain-photo-lightbox__nav { position: absolute; top: 50%; width: 44px; height: 54px; transform: translateY(-50%); border: 0; border-radius: 28px; background: rgba(255,255,255,.16); color: white; font-size: 38px; line-height: 1; cursor: pointer; }
.rain-photo-lightbox__nav--prev { left: 12px; }
.rain-photo-lightbox__nav--next { right: 12px; }
@media (max-width: 760px) {
  .rain-photo-mosaic { margin: 2.75rem auto; }
  .rain-photo-mosaic__heading { text-align: left; padding-inline: .1rem; }
  .rain-photo-mosaic__deck {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: repeat(8, clamp(42px, 12vw, 70px));
    gap: 8px;
    padding: 8px 4px 16px;
  }
  .rain-photo-card { padding: 5px; border-radius: 10px; box-shadow: 0 9px 22px rgba(22,43,40,.17); }
  .rain-photo-card--ocean { grid-column: 1 / 5; grid-row: 1 / 4; }
  .rain-photo-card--setecidades { grid-column: 4 / 7; grid-row: 1 / 4; }
  .rain-photo-card--pico { grid-column: 1 / 4; grid-row: 4 / 6; }
  .rain-photo-card--garden { grid-column: 4 / 7; grid-row: 4 / 6; }
  .rain-photo-card--lake { grid-column: 1 / 5; grid-row: 6 / 9; }
  .rain-photo-card--horse { grid-column: 4 / 7; grid-row: 6 / 8; }
  .rain-photo-card--coast { grid-column: 5 / 7; grid-row: 7 / 9; }
  .rain-photo-lightbox { width: 100vw; height: 100dvh; padding: 64px 12px 22px; border-radius: 0; }
  .rain-photo-lightbox__nav--prev { left: 5px; }
  .rain-photo-lightbox__nav--next { right: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .rain-photo-card { transition: none; }
}

