/* The document is printed into the theme's own content area, so the theme is
   what it should look like — and a heading here is a real h2, h3 or h4, so
   the theme's own scale is already the right answer.

   Nothing in this file sets a face, a size, a weight or a colour on them.
   It used to: the headings were mapped onto Elementor's Primary and
   Secondary typography slots, on the reasoning that a kit is what a theme
   is built from. Those four slots are named presets, not a heading scale —
   Primary is the display face a kit uses for a hero — so a section heading
   in a legal document came out at 56px against 18px body text, and a
   sub-heading came out larger than the section it sat under and lighter
   than the paragraph beneath it. This theme's own scale, written at zero
   specificity and already reading the kit's families and heading colour,
   gives 36px, 30px and 24px and steps down on a phone.

   Leaving the tags alone is also what lets the widget's Style tab work: the
   CSS Elementor writes for a typography or colour control out-ranks a bare
   tag rule, so what is set in the panel applies, and what is not set falls
   through to the kit. A default stated here would have sat between the two
   and won against both.

   The one thing that is declared is the rule colour, because a border drawn
   in `currentColor` on a card needs to be able to differ from the text. */
.bzc-doc {
  /* One line colour and one roundness for every bordered thing in the
     document, so a card, a service block and a table agree — and so the
     widget's Style tab has a single place to set each of them. Both are
     written as fallbacks, so a page that sets neither still renders. */
  --bzc-doc-line: color-mix(in srgb, currentColor 22%, transparent);
  --bzc-doc-radius: 10px;
  /* A long address in the wording (a privacy policy URL) wraps instead of widening the page. */
  overflow-wrap: break-word;

  /* Every size below this point is an `em`, so the container has to be the
     reading size or they all key off the wrapper's 16px instead of the
     page's 18px. The Text slot is the one Elementor global that *is* body
     typography rather than a display preset, and it resolves to `inherit`
     on a kit that leaves it unset. */
  font-size: var(--e-global-typography-text-font-size, inherit);
  max-width: 100%;
}

/* Every paragraph, list, table and card line reads as the page's body text:
   no step up for the opening paragraph and none down for tables, card notes
   or the signature, so the document carries no text styles of its own. */
/* A theme may size a bare paragraph apart from the body; in a document every
   line keeps the body's size and leading, and the Style tab still overrides. */
.bzc-doc p,
.bzc-doc ul,
.bzc-doc ol,
.bzc-doc li,
.bzc-doc dt,
.bzc-doc dd,
.bzc-doc td,
.bzc-doc th { font-size: inherit; line-height: inherit; }

/* Rhythm, and every step of it settable from the Style tab.

   A heading's margin used to be stated in `em`, which resolves against the
   heading's own size — so a 36px section heading carried 72px above it and
   the theme's own 2rem below, and the document read as a stack of islands.
   These are `rem`, so the gap is the gap whatever size the heading is. */
/* The rhythm is one gap between blocks, owned here. The theme gives a
   paragraph its own `margin-bottom`, and two margins meeting means the
   larger one wins — so the gap control did nothing until it exceeded
   whatever the theme happened to set. */
.bzc-doc > * { margin-bottom: 0; }
.bzc-doc > * + * { margin-top: var(--bzc-doc-gap, 1em); }

/* One class up, so the rhythm survives Elementor's .elementor-heading-title margin reset. */
.bzc-doc .bzc-doc__h2 {
  margin-top: var(--bzc-doc-section-gap, 2.25rem);
  margin-bottom: var(--bzc-doc-heading-gap, 0.6rem);
}

.bzc-doc .bzc-doc__h3 {
  margin-top: var(--bzc-doc-sub-gap, 1.5rem);
  margin-bottom: var(--bzc-doc-heading-gap, 0.6rem);
}
/* A list of rights has to read as a list. Plenty of themes reset `ul` and
   `li` to `list-style: none` for their menus and never put it back for
   content, and with no padding there is no room for a marker either — which
   is how seven statutory rights came to be printed as seven loose lines. The
   marker is asked for on both elements because the reset lands on either. */
.bzc-doc__list {
  margin: 1em 0;
  padding-inline-start: 1.4em;
  list-style: disc outside;
}

.bzc-doc__list li { list-style: inherit; margin-inline-start: 0; }
.bzc-doc__list li + li { margin-top: .4em; }
.bzc-doc__providers { margin-top: .9em; }
.bzc-doc__providers li { line-height: 1.5; }

.bzc-doc a[href] { text-decoration: underline; text-underline-offset: .15em; }

.bzc-doc__scroll { overflow-x: auto; margin-top: .9em; }

.bzc-doc__table {
  width: 100%;
  border-collapse: collapse;
}

.bzc-doc__table th,
.bzc-doc__table td {
  padding: .55em .7em;
  text-align: start;
  vertical-align: top;
  border-bottom: 1px solid var(--bzc-doc-line);
}

.bzc-doc__table th { font-weight: 600; text-align: start; }
.bzc-doc__table thead th { white-space: nowrap; }
.bzc-doc__table code { word-break: break-word; }

/* ── Provider cards ──────────────────────────────────────────────────
   The label column is a fixed width rather than a share of the row, and
   that is the whole point of these: a table sizes its columns from its own
   contents, so the Required listing and the Functional listing came out
   with different column widths on the same page and the reader had to
   re-learn the layout at every heading. Every card on the page now lines up
   with every other one, whatever is in it. */
.bzc-doc__cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bzc-doc-card-gap, .9em); margin-top: 1.1em; }

.bzc-doc__card {
  padding: 1.1em 1.25em;
  border: 1px solid var(--bzc-doc-line);
  border-radius: var(--bzc-doc-radius);
}

.bzc-doc .bzc-doc__card-name { margin: 0; }
.bzc-doc__card-by { margin: .25em 0 0; }
.bzc-doc__card-lead { margin: .7em 0 0; }
.bzc-doc__card-reach { margin: .45em 0 0; }
.bzc-doc__card-none { margin: .7em 0 0; }

/* Fixed columns, so a provider with one cookie and a provider with six read
   the same way down the page. Without this each table sizes itself from its
   own contents and no two line up. */
.bzc-doc__cookies { table-layout: fixed; margin-top: .9em; }
.bzc-doc__col-name { width: 34%; }
.bzc-doc__col-time { width: 22%; }
.bzc-doc__cookies td { overflow-wrap: break-word; }
/* Cookie names have no spaces to wrap at; only they may break mid-word. */
.bzc-doc__cookies td:first-child { overflow-wrap: anywhere; }
/* Cookie names keep the page's face and size; a monospace step here is a style the kit never set. */
.bzc-doc code { font: inherit; }

@media (max-width: 640px) {
    .bzc-doc__cookies { table-layout: auto; }
    .bzc-doc__col-name,
    .bzc-doc__col-time { width: auto; }
}

.bzc-doc__action { margin: 1.2em 0; }
/* Who published this and how to reach them, then which version it is. The
   block is a signature, so it sits apart from the body and keeps the page's
   own type: a rule above it, and nothing set to a size or a colour. */
.bzc-doc__stamp {
    margin-top: 2.5em;
    padding-top: 1.25em;
    border-top: 1px solid currentColor;
    border-color: color-mix(in srgb, currentColor 15%, transparent);
}

.bzc-doc__stamp-entity { margin-bottom: .75em; }
.bzc-doc__stamp-name { margin: 0 0 .2em; font-weight: 600; }
.bzc-doc__stamp-line { margin: 0 0 .2em; }
.bzc-doc__stamp-version { margin: 0; }

/* Left for anyone placing [bizibl_cookie_settings] into their own markup
   where the consent stylesheet's button is not wanted. */
.bzc-settings-link {
  display: inline-block;
  padding: .6em 1.1em;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.bzc-settings-link:hover { opacity: .8; }

.bzc-doc__consent {
  margin-top: 1.2em;
  padding: 1.1em 1.25em;
  border: 1px solid var(--bzc-doc-line);
  border-radius: var(--bzc-doc-radius);
}

.bzc-doc__consent .bzc-doc__action { margin-bottom: 0; }
.bzc-doc__consent .bzc-status__summary:empty { display: none; }

/* Printing a policy: the page is the record, so everything that only makes
   sense on screen — the banner, its backdrop, the buttons that change a
   choice — is left out, and links are printed with their addresses so the
   copy still says where it pointed. */
@media print {
  .bzc, .bzc-backdrop, .bzc-revisit, .bzc-settings-link, .bzc-embed { display: none !important; }
  .bzc-doc__consent { border: 0; padding: 0; }
  .bzc-doc { color: #000; }
  .bzc-doc__table { page-break-inside: auto; }
  .bzc-doc__table tr { page-break-inside: avoid; }
  .bzc-doc__h2, .bzc-doc__h3, .bzc-doc__card-name { page-break-after: avoid; }
  .bzc-doc a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; word-break: break-all; }
}

/* The imprint's particulars. A definition list rather than a table: it is a
   handful of labelled facts, and a table of two columns with no header is a
   list wearing a table's markup. */
.bzc-doc__identity { margin: 0 0 1.5em; }

.bzc-doc__identity-row {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) 1fr;
  gap: .5em 1.5em;
  padding: .6em 0;
  border-bottom: 1px solid var(--bzc-doc-line);
}

.bzc-doc__identity-row:last-child { border-bottom: 0; }
.bzc-doc__identity dt { margin: 0; font-weight: 600; }
.bzc-doc__identity dd { margin: 0; }

@media (max-width: 480px) {
  .bzc-doc__identity-row { grid-template-columns: 1fr; gap: .15em; }
}
