/*
 * hub-blog.css — the blog in the hub chrome (HUB_CHROME_LIVE=blog,
 * docs/REDESIGN.md §5.1). Loaded ONLY by BlogViewModel::hubChrome(), BETWEEN
 * hub.css and blog.css. blog.css itself is untouched, so the switched-off blog
 * cannot change.
 *
 * WHY IT EXISTS. In the generated chrome blog.css sits on top of home's
 * Elementor bundle, and the article quietly depends on 33 of the bundle's rules
 * (measured: every bundle/replica rule that matches an element inside <main>
 * on the index, every category page, page 2 and all 60 posts, at 375 and
 * 1440px; replica.css matches nothing there). They are the hello-elementor
 * reset — heading sizes and weights, paragraph and list margins, the table
 * grid with its zebra rows — plus the Poppins faces the prose uses that hub.css
 * does not declare. Without the bundle, hub.css's zero-specificity element
 * defaults (`:where(.hub h2)` …) and the browser's defaults would fill those
 * gaps instead: h5 at 14px, tables with 2px cell spacing and no zebra,
 * heading letter-spacing, link underline offsets, a faux italic.
 *
 * HOW. The reset rules are repeated here with the SAME specificity they have
 * in the bundle: `:where(.hub .blog)` adds none, so `:where(.hub .blog) h2` is
 * (0,0,1) like the bundle's `h2`, and the file loads where the bundle loaded —
 * before blog.css — so every tie between the two resolves exactly as it did.
 * They beat hub.css's element defaults, which have zero specificity (one rule,
 * `hr`, needs one class more to beat hub.css's `.hub *` box-sizing). Only the
 * properties hub.css sets and the reset does not (heading letter-spacing, link
 * underline geometry) are added, as `inherit` / `auto`: what they computed to
 * when nothing set them. Colours are the reset's own literals, on purpose: this
 * file reproduces the old surface, it does not restyle it.
 *
 * The chrome (hub header/footer) is outside `.blog` and is not touched.
 */

/* ------------------------------------------------------------- @font-face */
/* Poppins faces the articles use that hub.css does not declare (it carries
   400-800 upright only): italic 400/700/900 for <em>, blockquotes and bold
   emphasis, upright 900 for <strong> inside bold headings (bolder than 700).
   The same self-hosted files the bundle declares; a face downloads only when a
   page uses it. Latin + latin-ext, like hub.css. */

@font-face { font-family: 'Poppins'; font-style: italic; font-weight: 400; font-display: swap; src: url(/wp-content/uploads/elementor/google-fonts/fonts/poppins-pxigyp8kv8jhgfvrjjlufntakpy.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: italic; font-weight: 400; font-display: swap; src: url(/wp-content/uploads/elementor/google-fonts/fonts/poppins-pxigyp8kv8jhgfvrjjluchta.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: italic; font-weight: 700; font-display: swap; src: url(/wp-content/uploads/elementor/google-fonts/fonts/poppins-pxidyp8kv8jhgfvrjjlmy15vgdeoceg.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: italic; font-weight: 700; font-display: swap; src: url(/wp-content/uploads/elementor/google-fonts/fonts/poppins-pxidyp8kv8jhgfvrjjlmy15vf9eo.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: italic; font-weight: 900; font-display: swap; src: url(/wp-content/uploads/elementor/google-fonts/fonts/poppins-pxidyp8kv8jhgfvrjjlm81xvgdeoceg.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: italic; font-weight: 900; font-display: swap; src: url(/wp-content/uploads/elementor/google-fonts/fonts/poppins-pxidyp8kv8jhgfvrjjlm81xvf9eo.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 900; font-display: swap; src: url(/wp-content/uploads/elementor/google-fonts/fonts/poppins-pxibyp8kv8jhgfvrlbt5z1jlfc-k.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 900; font-display: swap; src: url(/wp-content/uploads/elementor/google-fonts/fonts/poppins-pxibyp8kv8jhgfvrlbt5z1xlfq.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ------------------------------------------------------------ inheritance */
/* What <main class="blog"> inherited from the bundle's `body` and does not
   set itself: font smoothing (macOS), and NOT hub.css's optimizeLegibility. */

:where(.hub) .blog {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: auto;
}

/* ------------------------------------------------------- the reset, ported */

:where(.hub .blog) h1,
:where(.hub .blog) h2,
:where(.hub .blog) h3,
:where(.hub .blog) h4,
:where(.hub .blog) h5,
:where(.hub .blog) h6 {
  margin-block: 0.5rem 1rem;
  color: inherit;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: inherit;
}

:where(.hub .blog) h1 { font-size: 2.5rem; }
:where(.hub .blog) h2 { font-size: 2rem; }
:where(.hub .blog) h3 { font-size: 1.75rem; }
:where(.hub .blog) h4 { font-size: 1.5rem; }
:where(.hub .blog) h5 { font-size: 1.25rem; }
:where(.hub .blog) h6 { font-size: 1rem; }

:where(.hub .blog) p {
  margin-block: 0 0.9rem;
}

:where(.hub .blog) a {
  background-color: transparent;
  color: #c36;
  text-decoration: none;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
}

:where(.hub .blog) a:hover,
:where(.hub .blog) a:active {
  color: #336;
  text-decoration-thickness: auto;
}

:where(.hub .blog) b,
:where(.hub .blog) strong {
  font-weight: bolder;
}

:where(.hub .blog) img {
  border-style: none;
  height: auto;
  max-width: 100%;
}

/* (0,1,1), one class more than the bundle's `hr`: hub.css's `.hub *`
   (0,1,0) sets border-box and would otherwise win. Still no more than
   blog.css's `.blog-prose hr` (0,1,1), which loads later and keeps its say. */
:where(.hub) .blog hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}

:where(.hub .blog) ul,
:where(.hub .blog) ol,
:where(.hub .blog) li {
  background: transparent;
  border: 0;
  font-size: 100%;
  margin-block: 0;
  outline: 0;
  vertical-align: baseline;
}

:where(.hub .blog) table {
  background-color: transparent;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 0.9em;
  margin-block-end: 15px;
  width: 100%;
}

:where(.hub .blog) table td,
:where(.hub .blog) table th {
  border: 1px solid hsla(0, 0%, 50%, 0.502);
  line-height: 1.5;
  padding: 15px;
  vertical-align: top;
}

:where(.hub .blog) table th {
  font-weight: 700;
}

:where(.hub .blog) table thead th {
  font-size: 1em;
}

:where(.hub .blog) table thead:first-child tr:first-child td,
:where(.hub .blog) table thead:first-child tr:first-child th {
  border-block-start: 1px solid hsla(0, 0%, 50%, 0.502);
}

:where(.hub .blog) table tbody > tr:nth-child(odd) > td {
  background-color: hsla(0, 0%, 50%, 0.071);
}

:where(.hub .blog) table tbody tr:hover > td,
:where(.hub .blog) table tbody tr:hover > th {
  background-color: hsla(0, 0%, 50%, 0.102);
}
