/* =========================================
   PRESS RELEASE / COMPANY NEWS PAGES
   Served from /images/seo/new-wmp/styles/press-release-styles.css and
   loaded AFTER main-styles.css. Overrides the .pr-* block in main-styles
   (sections 19, 23, 24) for the simple-article template only.
   Brand tokens only, so eDreams and Opodo both theme it.
   Spec: content-format-simple.md  Reference: press-release-example.html
========================================= */

/* ---------- page surface ----------
   main-styles sets body to var(--gray-bg) with !important, so the override
   needs the same weight. Scoped with :has() so only press-release pages
   turn white - every other template keeps the grey canvas. */
body:has(.pr-hero) {
  background-color: #fff !important;
}

@media (max-width: 768px) {
  body:has(.pr-hero) {
    background-color: #fff !important;
  }
}

section#home {
  background: #fff;
 }

/* ---------- hero ----------
   Two layers only: the photo as the element's own background, and the
   proprietary-data gradient over it at 0.82 so the photo stays visible
   through it. Same arrangement main-styles used originally - photo behind a
   translucent gradient - with the richer brand-token gradient in place of the
   flat one. No grid overlay.

   The photo is deliberately hard-coded: every press release uses it, so there
   is no field for it in the document. Changing it here means also changing
   PRESS_RELEASE_HERO_IMAGE in Renderer.js, which is where the Article schema
   and og:image read the path from. */
.pr-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
  padding: var(--hero-padding);
  /* The photo itself is NOT set here. The renderer emits it as an inline
     background-image on .pr-hero (PRESS_RELEASE_HERO_IMAGE in Renderer.js), so
     the path lives in one place and the Article schema and og:image can read
     the same value the page renders. This rule only says how it is drawn.

     Longhand, never the `background` shorthand: the shorthand resets
     background-image to none and would wipe the inline photo. */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Gradient wash over the photo. Replaces the flat 0.82 var(--brand-gradient)
   overlay main-styles puts on .pr-hero::before. */
.pr-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.82;
  background:
    radial-gradient(900px 520px at 88% 8%, color-mix(in srgb, var(--brand-secondary) 30%, transparent), transparent 62%),
    radial-gradient(700px 420px at 0% 100%, color-mix(in srgb, var(--brand-secondary) 10%, transparent), transparent 70%),
    linear-gradient(160deg, color-mix(in srgb, var(--brand-primary) 70%, #000) 0%, var(--brand-primary) 55%, color-mix(in srgb, var(--brand-primary) 82%, #fff) 100%);
  pointer-events: none;
}

/* main-styles has no .pr-hero::after, so there is nothing to neutralise here -
   dropping the grid overlay is simply its absence. */

/* Keeps badge, title and meta above both decorative layers.
   main-styles already sets z-index: 2 here; restated so this file stands
   on its own if the load order ever changes. */
.pr-hero .pr-hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
}

/* Title picks up the secondary brand colour, as on the data hero.
   Colour only - font-size, weight and line-height stay as main-styles sets
   them, so editing the title there keeps working without touching this file. */
.pr-hero .pr-title {
  color: var(--brand-secondary);
}

/* Meta icons match the data hero's accent. */
.pr-hero .pr-meta i {
  color: var(--brand-secondary);
}

/* ---------- article surface ----------
   The page is white, so the highlights box carries the only tint and the
   table keeps its border to stay readable against it. */
.pr-container {
  background-color: #fff;
}

/* ---------- body lists get the highlights-box treatment ----------
   main-styles already gives .pr-body ul and .pr-summary ul the same colour,
   line-height and item spacing; the only thing that made the highlights box
   look different was the box itself. These rules add it, so a list in the body
   reads as the same kind of object as Key highlights.

   padding-left is the box padding (40px) plus room for the markers, which sit
   inside the tint rather than out in the margin. Everything else - colour,
   line-height, li spacing - is deliberately left to main-styles so editing it
   there keeps working. */
.pr-body ul,
.pr-body ol {
  background: var(--brand-light);
  border-radius: var(--radius);
  padding: 24px 40px 24px 60px;
  margin: 28px 0;
}

/* A nested list is inside a box already: no second tint, no second inset. */
.pr-body li ul,
.pr-body li ol {
  background: none;
  border-radius: 0;
  padding: 8px 0 0 24px;
  margin: 0;
}

/* ---------- links ----------
   Per brand, following the convention main-styles already uses for
   .articleFULL a and .zigzag-content a (around line 150 there):

     ED  var(--brand-primary)    #005DAD  blue
     OP  var(--brand-secondary)  #f66000  orange

   Why they differ: the global `a` rule is var(--brand-primary), and Opodo's
   primary is #262626 - near-black. Against body text at #4a5568 an Opodo link
   was essentially invisible, which is the problem being fixed here. eDreams
   primary is already a blue that reads as a link, so ED stays on primary.

   The hook is `data-brand` on <body>, which renderPagePlan() always emits as
   exactly "ED" or "OP" (getBrandAttr in Renderer.js). Specificity is
   attribute + class + element, so these outrank both the global `a` and the
   plain `.pr-footer a` they replace.

   UNDERLINED in every scope, deliberately and not only for looks: at 3.19:1
   against white, Opodo's orange is below the 4.5:1 WCAG AA needs for body
   text, so colour alone cannot be what marks a link (WCAG 1.4.1). The
   underline carries it, and it also settles "differentiate from normal text"
   for anyone who does not perceive the hue. */
.pr-body a,
.pr-summary a,
.pr-footer a,
.pr-table a {
  text-decoration: underline;
  text-underline-offset: 2px;          /* clears the descenders at 14px */
  text-decoration-thickness: 1px;
}

[data-brand="ED"] .pr-body a,
[data-brand="ED"] .pr-summary a,
[data-brand="ED"] .pr-footer a,
[data-brand="ED"] .pr-table a {
  color: var(--brand-primary);
}

[data-brand="OP"] .pr-body a,
[data-brand="OP"] .pr-summary a,
[data-brand="OP"] .pr-footer a,
[data-brand="OP"] .pr-table a {
  color: var(--brand-secondary);
}

/* Hover goes to var(--brand-dark) for both brands - #073b70 and #7a2f00 - which
   is what the global `a:hover` already does; restated so these rules do not
   depend on winning a specificity contest with it. Both are darker than the
   resting colour, so the link gets MORE contrast on hover, not less. */
[data-brand="ED"] .pr-body a:hover,
[data-brand="ED"] .pr-summary a:hover,
[data-brand="ED"] .pr-footer a:hover,
[data-brand="ED"] .pr-table a:hover,
[data-brand="OP"] .pr-body a:hover,
[data-brand="OP"] .pr-summary a:hover,
[data-brand="OP"] .pr-footer a:hover,
[data-brand="OP"] .pr-table a:hover {
  color: var(--brand-dark);
  text-decoration-thickness: 2px;
}

/* The hero sits on a dark brand gradient, so a link in the headline cannot use
   either brand colour and stay readable. Headlines keep their links - the
   importer strips bold and italic from a heading but not anchors - so this is
   reachable, if rare. */
.pr-hero a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- release footer ----------
   Methodology, About <brand>, About eDreams ODIGEO, notes for editors, press
   contacts. The same reference material in every release and every market, so
   it must not read at the same level as the article: it sits below a rule, in
   smaller type, with H3 headings instead of the body's H2s.

   The renderer emits this as a DIV, not a <footer>: the page template already
   has its own site footer, and this is the end of one article. All the styling
   therefore hangs off the class, which is what it would have done anyway.

   main-styles has no .pr-footer rules at all - the class is new - so unlike
   the rest of this file these are definitions, not overrides. The tables and
   lists inside it do inherit the .pr-table / list rules, which is deliberate:
   a methodology table should look like any other table, just smaller. */
.pr-footer {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--brand-light, #e6e6e6);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-light);
}

/* Section headings: the same family and colour as .pr-body h2, one step down
   in size and spacing. Not bold-only - these are real H3s in the outline. */
.pr-footer h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 28px 0 10px;
  padding-top: 0;
}

.pr-footer h3:first-child {
  margin-top: 0;
}

/* Inherit the size from .pr-footer rather than restating it, so changing the
   one value above moves the whole block. */
.pr-footer p,
.pr-footer li {
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  margin-bottom: 0.75rem;
}

/* A list in the footer is reference material, not a highlights box: it does
   NOT get the tinted treatment the body lists get above. */
.pr-footer ul,
.pr-footer ol {
  background: none;
  border-radius: 0;
  padding: 0 0 0 20px;
  margin: 0 0 1rem;
}

/* A methodology table keeps the body table's structure at footer scale. */
.pr-footer .pr-table-wrapper {
  margin: 16px 0 20px;
}

.pr-footer .pr-table th,
.pr-footer .pr-table td {
  font-size: 13px;
  padding: 8px 12px;
}
