/*
Theme Name: Casino Wertung
Description: Theme for Casino Wertung (CH / de-CH). Swiss palette - alpine slate for structure, glacier blue for links, a muted Swiss red for action - on a snow-tinted page, with Swiss cross and mountain-ridge motifs as decor. Allowed blocks only: headings, text, tables, lists, pros/cons, full-width image, author quote.
Version: 1.0.0
Author: WP-generator
Text Domain: wpgen
*/

/* Nunito Sans, variable, self-hosted. Two files cover every weight from 300 to 800. */
@font-face {
  font-family: "Nunito Sans";
  src: url("assets/fonts/nunito-var.woff2") format("woff2-variations"),
       url("assets/fonts/nunito-var.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("assets/fonts/nunito-var-italic.woff2") format("woff2-variations"),
       url("assets/fonts/nunito-var-italic.woff2") format("woff2");
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
}

:root {
  /* National colours with fixed jobs that never swap: alpine slate =
     structure, glacier blue = link and action, a muted Swiss red = emphasis.
     The flag red is knocked back a long way: the pure #FF0000 of the cross next
     to a casino table reads as an alarm, not as a brand. */
  --ink: #1C2530;
  --ink-2: #232E3B;
  --ink-3: #2E3B4A;
  --hero-bg: linear-gradient(158deg, #2E3B4A 0%, #1C2530 55%, #0D1218 100%);
  --alp: #8FB8D6;
  --alp-deep: #2F6F99;
  --alp-dark: #24566F;
  --edel: #C0392F;
  --edel-deep: #8E2A24;

  --font: "Nunito Sans", "Avenir Next", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --text: #202830;
  --muted: #69737F;
  --line: #DCE0E6;
  --line-soft: #EDEFF3;
  --card: #ffffff;
  --page: #F2F4F7;
  --tint: #F9FAFC;
  --pro: #E6F1EA;
  --pro-line: #2A7A52;
  --con: #FAEAE8;
  --con-line: #A33C33;

  --radius: 10px;
  --radius-lg: 16px;
  --maxw: 1180px;

  --note-icon: url('/wp-content/themes/wpgen-CH/assets/mascot.svg');
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 400 18px/1.66 var(--font);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -.35px; }

img { max-width: 100%; height: auto; }
a { color: var(--alp-deep); }

.cw-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------------- header ---------------- */

.cw-top { background: var(--ink); }

/* Logo sits on the left and the nav below it: a centred wordmark is what every
   competitor does, and the brand should not look borrowed. */
.cw-top-row {
  position: relative;
  display: flex;
  align-items: center;
  padding: 15px 0;
}

.cw-toggle {
  display: none;
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  padding: 11px 9px;
  background: none;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  cursor: pointer;
}
.cw-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .22s ease, opacity .18s ease;
}
.cw-toggle span + span { margin-top: 5px; }
.cw-toggle:hover { border-color: var(--edel); }
.cw-toggle:hover span { background: var(--edel); }
/* open state: the three bars fold into a cross */
.cw-toggle.cw-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cw-toggle.cw-open span:nth-child(2) { opacity: 0; }
.cw-toggle.cw-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.cw-brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.cw-brand-ico {
  width: 48px; height: 48px; flex: 0 0 48px;
  border-radius: 12px;
  background: #fff;
  border: 2px solid var(--edel);
  padding: 3px;
  display: flex; align-items: center; justify-content: center;
}
.cw-brand-ico img { width: 100%; height: 100%; object-fit: contain; display: block; }

.cw-brand-txt { display: block; line-height: 1; }
.cw-brand-txt .cw-brand-r1 {
  display: block; color: #96B2C8; font-size: 12px; font-weight: 700;
  letter-spacing: 2.6px; margin-right: -2.6px; text-transform: uppercase;
  margin-bottom: 5px;
}
/* Wordmark: "Casino" in Swiss red, "Wertung" in white, on one line. */
.cw-brand-txt .cw-brand-r2 { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.6px; }
.cw-brand-txt .cw-brand-r2 b { color: var(--edel); font-weight: 800; }
.cw-brand-txt .cw-brand-r2 i { color: #fff; font-weight: 400; font-style: normal; }

/* The nav carries no accent stripe of its own: the flag already runs along the
   bottom of the hero, and a second one here made the header read as two bands. */
.cw-nav {
  border-top: 1px solid rgba(255, 255, 255, .09);
}
.cw-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.cw-nav a {
  display: block; color: #CFDCE6; text-decoration: none; font-size: 15px; font-weight: 600;
  padding: 13px 14px;
}
.cw-nav a:hover { color: #fff; }
.cw-nav .current-menu-item > a { color: var(--edel); }

/* Dropdown: opens on click (assets/nav.js), never on hover. */
.cw-nav li { position: relative; }

/* Metrics copied from `.cw-nav a`: otherwise the item with a caret sits lower
   than its neighbours and the whole row shifts. */
.cw-nav-btn {
  display: flex; align-items: center; gap: 7px;
  background: none; border: 0; cursor: pointer;
  color: #CFDCE6; font: 600 15px/1.66 var(--font);
  padding: 13px 14px;
}
.cw-nav-btn:hover, .menu-item-has-children.cw-open > .cw-nav-btn { color: #fff; }

.cw-nav-arrow {
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .18s ease;
}
.menu-item-has-children.cw-open .cw-nav-arrow { transform: rotate(-135deg) translate(-2px, -2px); }

.cw-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  min-width: 236px;
  margin: 0;
  padding: 7px 0;
  list-style: none;
  background: var(--ink-2);
  border: 1px solid #245943;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, .4);
}
.menu-item-has-children.cw-open > .sub-menu { display: block; }

.cw-nav .sub-menu a {
  padding: 10px 16px;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
}
.cw-nav .sub-menu a:hover { background: var(--ink-3); color: var(--edel); }

/* ---------------- menu on narrow screens ---------------- */

@media (max-width: 900px) {
  .cw-toggle { display: block; }

  /* The panel is opened by the button; closed, it takes up no space at all. */
  .cw-nav {
    display: none;
    max-height: calc(100vh - 86px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .cw-nav.cw-open { display: block; animation: cw-unfold .22s ease-out; }

  .cw-nav ul { display: block; }
  .cw-nav li { position: static; border-bottom: 1px solid rgba(255, 255, 255, .07); }
  .cw-nav li:last-child { border-bottom: 0; }
  .cw-nav a, .cw-nav .cw-nav-btn { display: block; width: 100%; padding: 14px 4px; font-size: 16px; text-align: left; }
  .cw-nav .cw-nav-btn { display: flex; justify-content: space-between; }
  .cw-nav .current-menu-item > a { color: var(--edel); }

  /* Inside the panel the submenu expands in place, without absolute positioning. */
  .cw-nav .sub-menu {
    position: static;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: rgba(0, 0, 0, .25);
    margin: 0 -22px;
    padding: 4px 22px 8px;
  }
  .cw-nav .sub-menu a { padding: 11px 12px; font-size: 15px; }

  /* While the menu is open the page underneath does not scroll. */
  body.cw-nav-locked { overflow: hidden; }
}

@keyframes cw-unfold {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ---------------- hero ---------------- */

.cw-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(760px 420px at 6% -30%, rgba(192, 57, 47, .22), transparent 62%),
    var(--hero-bg);
  color: #fff; padding: 34px 0 44px;
}
.cw-hero .cw-wrap { position: relative; z-index: 2; }

/* Mascot on the right of the first screen.
   Three rules keep it from reading as "someone peeking round a corner": it sits
   entirely inside the dark area, fades out downwards through a mask, and has
   almost no contrast. This is background, not illustration. */
.cw-hero::before {
  content: "";
  position: absolute;
  right: 40px;
  bottom: 26px;
  width: 236px;
  height: 236px;
  background: url("assets/mascot.svg") no-repeat center / contain;
  opacity: .13;
  transform: rotate(4deg);
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, rgba(0, 0, 0, .25) 90%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 58%, rgba(0, 0, 0, .25) 90%, transparent 100%);
  z-index: 1;
  pointer-events: none;
  animation: cw-mascot-in 1s ease-out both;
}
/* On an author page the portrait stands on the right: two faces side by side is one too many. */
.cw-hero-author::before { display: none; }

@keyframes cw-mascot-in {
  from { opacity: 0; transform: translate(18px, 10px) rotate(12deg); }
  to   { opacity: .13; transform: rotate(4deg); }
}

/* Flat national-colour baseline instead of a diagonal cut: a straight edge is
   easier to read and does not eat 60px of vertical space on a phone. Green and
   gold in the proclaimed order, gold given the narrower share so the band reads
   as a rule and not as a flag. */
.cw-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 7px;
  background: linear-gradient(90deg, var(--alp-deep) 0 62%, var(--edel) 62%);
  pointer-events: none;
}

/* Alpine ridge over the hero: the Matterhorn-Dent-Blanche skyline plus a faint
   Swiss cross, sitting in the top right at a few per cent opacity. Decor, not
   illustration - at full strength it competes with the headline. It rides on
   the hero background as an extra layer, so no template needs an extra element,
   and it is switched off on a phone where the headline already fills the dark
   area. */
.cw-hero {
  background-image:
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20260%20150'%3E%3Cpath%20d='M0%20150%20L46%2086%20L70%20104%20L112%2036%20L150%2096%20L176%2072%20L214%20122%20L260%2088%20L260%20150%20Z'%20fill='%23ffffff'%20fill-opacity='0.13'/%3E%3Cpath%20d='M112%2036%20L134%2072%20L112%2064%20L92%2076%20Z'%20fill='%23ffffff'%20fill-opacity='0.3'/%3E%3Cpath%20d='M214%2014%20h14%20v12%20h12%20v14%20h-12%20v12%20h-14%20v-12%20h-12%20v-14%20h12%20z'%20fill='%23ffffff'%20fill-opacity='0.18'/%3E%3C/svg%3E"),
    radial-gradient(760px 420px at 6% -30%, rgba(192, 57, 47, .20), transparent 62%),
    var(--hero-bg);
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: right 4% bottom 0, 0 0, 0 0;
  background-size: 300px auto, auto, auto;
}
@media (max-width: 900px) {
  .cw-hero { background-image: radial-gradient(760px 420px at 6% -30%, rgba(192, 57, 47, .20), transparent 62%), var(--hero-bg); }
}

.cw-hero .cw-crumbs { font-size: 14px; color: #9FB3C6; margin-bottom: 18px; }
.cw-hero .cw-crumbs a { color: #9FB3C6; text-decoration: none; }
.cw-hero .cw-crumbs a:hover { color: var(--edel); }

.cw-hero-flat .cw-hero-grid { grid-template-columns: 1fr; }
.cw-hero-flat h1 { max-width: 22ch; }
.cw-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 30px; align-items: center; }
.cw-hero h1 {
  font-size: clamp(30px, 4.5vw, 46px);
  line-height: 1.08; margin: 0 0 16px; font-weight: 800; letter-spacing: -1px;
}
.cw-hero p.cw-standfirst { max-width: 64ch; font-size: clamp(16px, 1.35vw, 19px); font-weight: 400; color: #DCE4EC; margin: 0 0 22px; }
.cw-hero p.cw-standfirst strong { color: #fff; font-weight: 700; }
.cw-hero-art { border-radius: var(--radius-lg); overflow: hidden; }

.cw-shortcuts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 26px; }
.cw-shortcut {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radius); padding: 16px 12px; text-align: center;
  color: #fff; text-decoration: none; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .5px;
}
.cw-shortcut:hover { background: rgba(255, 255, 255, .11); border-color: var(--edel); }
.cw-shortcut .cw-shortcut-ico { display: block; font-size: 24px; margin-bottom: 8px; }

/* ---------------- author blocks ---------------- */

.cw-byline { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; margin-top: 22px; }
.cw-byline .cw-byline-person { display: flex; align-items: center; gap: 11px; }
.cw-byline img, .cw-author img {
  border-radius: 50%; background: var(--ink-3); object-fit: cover; flex: 0 0 auto;
}
.cw-byline img { width: 42px; height: 42px; border: 2px solid rgba(192, 57, 47, .5); }
.cw-author img { width: 74px; height: 74px; }
.cw-byline .cw-byline-meta { font-size: 13.5px; line-height: 1.4; color: #E6ECF3; }
.cw-byline .cw-byline-meta .cw-byline-role { color: #A6B6C6; }
.cw-byline .cw-byline-meta a { color: #fff; font-weight: 700; text-decoration: none; }
.cw-byline .cw-byline-meta a:hover { color: var(--edel); }

.cw-author {
  position: relative;
  overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--alp-deep);
  border-radius: var(--radius);
  padding: 24px; display: flex; gap: 18px; align-items: flex-start; margin: 34px 0;
}
/* The same mascot as in the hero, only fainter: the author card stops being a
   blank rectangle and rhymes with the first screen. */
.cw-author::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -26px;
  width: 168px;
  height: 168px;
  background: url("assets/mascot.svg") no-repeat center / contain;
  opacity: .06;
  transform: rotate(6deg);
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 92%);
          mask-image: linear-gradient(to bottom, #000 50%, transparent 92%);
  pointer-events: none;
}
@media (max-width: 640px) {
  /* In a narrow card the mascot eats the space the text needs. */
  .cw-author::after { display: none; }
}
.cw-author > * { position: relative; z-index: 1; }
.cw-author .cw-author-body { flex: 1; }
.cw-author h2 { margin: 0 0 6px; font-size: 20px; padding-left: 0; border-left: 0; }
.cw-author .cw-byline-role { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.cw-author p { margin: 0 0 10px; }
.cw-author .cw-author-link { font-weight: 700; text-decoration: none; }
.cw-author .cw-author-link:hover { text-decoration: underline; }

/* Pull quote: gold rule on top, not a left border — the quote reads as a
   separate voice in the text rather than as an indented aside.
   Two selectors on purpose: .cw-quote is what wpgen_author_quote() prints,
   while a quote written in the page text arrives from the block converter as a
   plain blockquote.wp-block-quote and has to get the same treatment. */
.cw-quote,
.cw-text blockquote {
  border: 0;
  border-top: 3px solid var(--alp-deep);
  background: var(--tint);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 20px 24px; margin: 30px 0; font-size: 19px; font-style: italic; color: #1E2E26;
}
.cw-text blockquote p { margin: 0; }
.cw-text blockquote p + p { margin-top: 12px; }
.cw-quote footer, .cw-text blockquote cite {
  display: block; margin-top: 12px; font-size: 14px; font-style: normal; color: var(--muted);
}

/* ---------------- content ---------------- */

.cw-main { padding: 30px 0 10px; }
.cw-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 32px; }

/* H2 sits above a two-tone rule, glacier into Swiss red: the section reads as a
   new start without the heading being pushed off the text column. */
.cw-text h2 {
  position: relative;
  font-size: 27px; margin: 42px 0 18px; padding-bottom: 12px;
  letter-spacing: -.5px; line-height: 1.22;
}
/* The rule under an H2 is an alpine ridge rather than a straight bar: the same
   two-tone split, drawn along a mountain skyline. Inline SVG, so the peaks need
   no clip-path arithmetic that could ride up into the text. */
.cw-text h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 104px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20104%2016'%3E%3Cdefs%3E%3ClinearGradient%20id='g'%20x1='0'%20x2='1'%20y1='0'%20y2='0'%3E%3Cstop%20offset='0.58'%20stop-color='%232F6F99'/%3E%3Cstop%20offset='0.58'%20stop-color='%23C0392F'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath%20d='M2%2013%20L20%205%20L32%2011%20L52%202%20L68%2012%20L80%206%20L102%2013'%20fill='none'%20stroke='url%28%23g%29'%20stroke-width='3.4'%20stroke-linejoin='round'%20stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left bottom / 104px 16px;
}
.cw-text h3 { position: relative; padding-left: 20px; }
.cw-text h3::before {
  content: ""; position: absolute; left: 0; top: .36em;
  width: 13px; height: 13px;
  background: var(--edel);
  border-radius: 2px;
  clip-path: polygon(38% 0, 62% 0, 62% 38%, 100% 38%, 100% 62%, 62% 62%, 62% 100%, 38% 100%, 38% 62%, 0 62%, 0 38%, 38% 38%);
}
.cw-text h3 { font-size: 21px; margin: 28px 0 10px; }
.cw-text h2:first-child, .cw-text h3:first-child { margin-top: 0; }
.cw-text p { margin: 0 0 17px; }
.cw-text > *:first-child { margin-top: 0; }
.cw-text > *:last-child { margin-bottom: 0; }
.cw-text figure.wp-block-table { margin: 0 0 24px; overflow-x: auto; }
.cw-text figure.wp-block-table table { margin: 0; }
.cw-text ul.wp-block-list, .cw-text ol.wp-block-list { margin: 0 0 18px; padding-left: 22px; }
.cw-text ul, .cw-text ol { margin: 0 0 18px; padding-left: 22px; }
.cw-text li { margin-bottom: 8px; }
.cw-text li::marker { color: var(--edel-deep); font-weight: 700; }

/* Table with an ink header row: the first row is a label strip, not another
   shaded cell, so a wide comparison stays readable while scrolling sideways. */
.cw-text table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 16px; }
.cw-text th, .cw-text td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; }
.cw-text th { background: var(--ink); color: #fff; font-weight: 700; border-color: var(--ink); }
.cw-text thead tr { border-bottom: 3px solid var(--edel); }
.cw-text tr:nth-child(even) td { background: var(--tint); }

/* Images in the text share the radius of the cards and tables:
   .cw-figure is the classic editor, .wp-block-image is Gutenberg. */
.cw-text figure.cw-figure,
.cw-text figure.wp-block-image { margin: 30px 0; }
.cw-text figure.cw-figure img,
.cw-text figure.wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(14, 42, 36, .09);
  transition: box-shadow .25s ease, transform .25s ease;
}
.cw-text figure.cw-figure img:hover,
.cw-text figure.wp-block-image img:hover {
  box-shadow: 0 14px 30px rgba(14, 42, 36, .17);
  transform: translateY(-2px);
}
.cw-scales { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 26px 0; }
.cw-scales > div { border-radius: var(--radius); padding: 18px 20px; }
.cw-scales .cw-pro { background: var(--pro); border: 1px solid var(--pro-line); }
.cw-scales .cw-con { background: var(--con); border: 1px solid var(--con-line); }
.cw-scales h3 { margin: 0 0 10px; font-size: 17px; }
.cw-scales .cw-pro h3 { color: #17603B; }
.cw-scales .cw-con h3 { color: #A33C33; }
.cw-scales ul { margin: 0; padding-left: 20px; }

.cw-faq h3 { font-size: 19px; margin: 22px 0 8px; }
.cw-faq p { margin: 0 0 14px; }

/* Accordion: H3 + paragraph in the content are turned into a clickable block by the script. */
.cw-faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 10px;
  overflow: hidden;
}
.cw-faq-item.cw-open { border-color: var(--edel); box-shadow: 0 2px 12px rgba(14, 42, 36, .07); }

.cw-faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  padding: 16px 18px;
  font: 800 17px/1.4 var(--font);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.cw-faq-btn:hover { background: var(--tint); }
.cw-faq-btn-txt { flex: 1; }

.cw-faq-ico {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  position: relative;
  border-radius: 7px;
  background: var(--line-soft);
  transition: transform .18s ease, background .18s ease;
}
.cw-faq-ico::before, .cw-faq-ico::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 2px;
  margin: -1px 0 0 -5.5px;
  background: var(--ink);
  border-radius: 2px;
}
.cw-faq-ico::after { transform: rotate(90deg); transition: opacity .18s ease; }
.cw-faq-item.cw-open .cw-faq-ico { background: var(--edel); }
.cw-faq-item.cw-open .cw-faq-ico::after { opacity: 0; }

.cw-faq-answer { display: none; padding: 0 18px 16px; }
.cw-faq-item.cw-open .cw-faq-answer { display: block; }
.cw-faq-answer p { margin: 0 0 10px; }
.cw-faq-answer p:last-child { margin-bottom: 0; }

/* ---------------- footer ---------------- */

.cw-foot { background: var(--ink); color: #BFCDDA; margin-top: 44px; padding: 36px 0 26px; font-size: 15px; }
/* Five columns: brand, sections, games, editorial and legal, outside help. The
   header menu is deliberately short, so the footer is what gives full access. */
.cw-foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 28px; }
.cw-foot h4 { color: var(--edel); font-size: 14px; margin: 0 0 13px; text-transform: uppercase; letter-spacing: 1px; }
.cw-foot ul { list-style: none; margin: 0; padding: 0; }
.cw-foot li { margin-bottom: 8px; }
.cw-foot a { color: #BFCDDA; text-decoration: none; }
.cw-foot a:hover { color: var(--edel); }
.cw-foot-note { border-top: 1px solid #2E3B4A; margin-top: 28px; padding-top: 18px; font-size: 13px; color: #7D8C9B; }
.cw-age {
  display: inline-block; border: 2px solid var(--edel); color: var(--edel); border-radius: 50%;
  width: 36px; height: 36px; line-height: 32px; text-align: center;
  font-weight: 800; font-size: 12px; margin-right: 10px; vertical-align: middle;
}

/* ---------------- responsive ---------------- */

@media (max-width: 980px) {
  .cw-hero { padding: 24px 0 34px; }
  /* On a tablet the mascot shrinks: at full size it takes over the first screen. */
  .cw-hero::before { width: 168px; height: 168px; right: 16px; bottom: 20px; opacity: .12; }
  .cw-hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .cw-hero-art { order: 2; max-width: 440px; margin: 0 auto; width: 100%; }
  .cw-shortcuts { grid-template-columns: repeat(2, 1fr); margin-top: 22px; }
  .cw-shortcut { padding: 14px 10px; font-size: 12px; }
  .cw-foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .cw-hero-flat h1 { max-width: none; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .cw-wrap { padding: 0 16px; }

  .cw-hero-art { max-width: 340px; }
  .cw-hero p.cw-standfirst { font-size: 16px; }
  /* On a phone the text takes the full width: a decorative mascot only gets in the way. */
  .cw-hero::before { display: none; }
  .cw-byline { gap: 14px; margin-top: 18px; }
  .cw-byline .cw-byline-person { flex: 1 1 100%; }

  .cw-main { padding: 22px 0 6px; }
  .cw-panel { padding: 20px 16px; }
  .cw-text h2 { font-size: 22px; margin: 28px 0 10px; padding-left: 12px; border-left-width: 4px; }
  .cw-text h3 { font-size: 19px; }
  .cw-scales { grid-template-columns: 1fr; }
  .cw-author { flex-direction: column; }
  .cw-foot-grid { grid-template-columns: 1fr; }
  .cw-text table { display: block; overflow-x: auto; }
}

/* ---------------- author profile pages ---------------- */

.cw-profile {
  display: flex; gap: 24px; align-items: flex-start;
  background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; margin: 0 0 28px;
}
.cw-profile img {
  width: 160px; height: 160px; border-radius: 50%;
  object-fit: cover; background: var(--ink-3); flex: 0 0 auto;
  border: 4px solid #fff; box-shadow: 0 6px 18px rgba(14, 42, 36, .12);
}
.cw-profile .cw-author-body { flex: 1; min-width: 0; }
.cw-profile .cw-byline-role { font-size: 16px; font-weight: 600; color: var(--text); margin: 0 0 14px; }
.cw-profile ul.cw-profile-info { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.cw-profile ul.cw-profile-info li {
  padding: 8px 0; border-top: 1px solid var(--line); margin: 0;
  display: flex; gap: 10px; flex-wrap: wrap;
}
.cw-profile ul.cw-profile-info li:first-child { border-top: 0; padding-top: 0; }
.cw-profile ul.cw-profile-info strong { flex: 0 0 210px; color: var(--muted); font-weight: 600; }

.cw-profile.cw-profile-mini { margin: 0 0 18px; padding: 20px 22px; }
.cw-profile.cw-profile-mini img { width: 120px; height: 120px; }
.cw-profile.cw-profile-mini h3 { margin: 0 0 4px; font-size: 20px; }
.cw-profile.cw-profile-mini h3 a { text-decoration: none; }
.cw-profile.cw-profile-mini .cw-byline-role { font-size: 14px; color: var(--muted); font-weight: 600; margin: 0 0 10px; }
.cw-profile.cw-profile-mini p { margin: 0 0 10px; }
.cw-profile.cw-profile-mini .cw-author-link { font-weight: 700; text-decoration: none; }

/* ---------------- self-assessment test ---------------- */

.cw-test { margin: 26px 0 32px; }
.cw-test-app {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--tint); padding: 26px 28px;
}
.cw-test-head h3 { margin: 0 0 4px; font-size: 20px; }
.cw-test-progress { margin: 0 0 18px; font-size: 14px; color: var(--muted); }

/* The separator is drawn with ::before rather than border-top: a legend with
   display:flex stops "breaking" the fieldset border and the rule runs through the text. */
.cw-test-question { border: 0; margin: 0; padding: 0 0 4px; }
.cw-test-question + .cw-test-question::before {
  content: ""; display: block; height: 1px; background: var(--line); margin: 18px 0;
}
.cw-test-question legend { display: flex; gap: 10px; padding: 0; margin-bottom: 12px; float: left; width: 100%; }
.cw-test-question .cw-test-options { clear: both; }
.cw-test-question legend .cw-test-num {
  flex: 0 0 26px; height: 26px; border-radius: 8px; background: var(--line-soft);
  color: var(--muted); font-size: 14px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.cw-test-question.cw-test-done legend .cw-test-num { background: var(--edel); color: var(--ink); }
.cw-test-question legend .cw-test-txt { font-weight: 600; }

.cw-test-question .cw-test-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cw-test-question .cw-test-options input { position: absolute; opacity: 0; width: 0; height: 0; }
.cw-test-question .cw-test-options label {
  display: block; text-align: center; cursor: pointer; user-select: none;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  padding: 10px 8px; font-size: 14px; line-height: 1.3;
}
.cw-test-question .cw-test-options label:hover { border-color: var(--alp-deep); }
.cw-test-question .cw-test-options input:checked + label {
  background: var(--alp-deep); border-color: var(--alp-deep); color: #fff; font-weight: 600;
}
.cw-test-question .cw-test-options input:focus-visible + label { outline: 2px solid var(--edel); outline-offset: 2px; }

.cw-test-submit, .cw-test-restart {
  margin-top: 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--alp-deep); color: #fff; font-family: inherit;
  font-size: 16px; font-weight: 800; padding: 13px 26px;
}
.cw-test-submit:hover:enabled, .cw-test-restart:hover { background: var(--alp-dark); }
.cw-test-submit:disabled { background: #CED6DF; color: #758D82; cursor: not-allowed; }
.cw-test-note { margin: 12px 0 0; font-size: 13.5px; color: var(--muted); }

.cw-test-result { display: none; }
.cw-test-result.cw-test-visible { display: block; margin-top: 26px; padding-top: 24px; border-top: 2px solid var(--line); }
.cw-test-badge { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-radius: var(--radius); color: #fff; }
.cw-test-badge .cw-test-badge-title { font-size: 21px; font-weight: 800; }
.cw-test-badge .cw-test-badge-score { font-size: 14px; opacity: .92; }
.cw-test-badge.cw-n0 { background: #1F7A4D; }
.cw-test-badge.cw-n1 { background: #6FA046; }
.cw-test-badge.cw-n2 { background: #A33329; }
.cw-test-badge.cw-n3 { background: var(--alp-deep); }

.cw-test-scale-wrap { margin: 18px 0 6px; }
.cw-test-scale { width: 100%; height: auto; display: block; }
.cw-test-scale .cw-test-g-score { font-family: var(--font); font-size: 21px; font-weight: 800; fill: var(--ink); }
.cw-test-scale .cw-test-g-band { font-family: var(--font); font-size: 13px; fill: #4F6A5E; }
.cw-test-scale .cw-test-g-axis { font-family: var(--font); font-size: 12.5px; fill: #7F8E9C; }

.cw-test-intro { margin: 6px 0 18px; }
.cw-test-parts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 0 0 12px; }
.cw-test-part .cw-test-part-head { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 6px; }
.cw-test-part .cw-test-part-label { color: var(--muted); }
.cw-test-part .cw-test-part-value { font-weight: 700; }
.cw-test-part .cw-test-part-track { height: 12px; border-radius: 6px; background: var(--line-soft); overflow: hidden; }
.cw-test-part .cw-test-part-fill { height: 100%; border-radius: 6px; }
.cw-test-parts-note { font-size: 15px; color: var(--muted); margin: 0 0 20px; }
.cw-test-result h4 { font-size: 18px; margin: 0 0 10px; }
.cw-test-actions { margin: 0 0 18px; padding-left: 22px; }
.cw-test-actions li { margin-bottom: 8px; }
.cw-test-final-note { font-size: 14px; color: var(--muted); margin: 0; }

@media (max-width: 640px) {
  .cw-profile { flex-direction: column; padding: 18px 16px; }
  .cw-profile img { width: 120px; height: 120px; }
  .cw-profile ul.cw-profile-info li { display: block; }
  .cw-profile ul.cw-profile-info strong { display: block; flex: none; }

  .cw-test-app { padding: 18px 14px; }
  .cw-test-question .cw-test-options { grid-template-columns: 1fr 1fr; }
  .cw-test-submit, .cw-test-restart { width: 100%; }
  .cw-test-parts { grid-template-columns: 1fr; }
  /* The svg scales with its viewBox, so on a narrow screen the labels have to
     grow in user units, otherwise they become unreadable. */
  .cw-test-scale .cw-test-g-score { font-size: 30px; }
  .cw-test-scale .cw-test-g-band { font-size: 19px; }
  .cw-test-scale .cw-test-g-axis { font-size: 17px; }
  .cw-test-part .cw-test-part-head { display: block; }
  .cw-test-part .cw-test-part-value { display: block; margin-top: 2px; }
}

/* ---------- "How we test": the site-wide method block ----------
   Three layout variants, chosen per site (config key: test_flow).
   The colours come from the variables, so the block always wears the palette
   of the domain it runs on instead of dragging a foreign one along.        */

.cw-method { margin: 32px 0 0; padding: 26px 0 0; border-top: 1px solid var(--line); }
.cw-method-title { font-size: 22px; margin: 0 0 6px; letter-spacing: -.4px; }
.cw-method-intro { color: var(--muted); font-size: 16px; margin: 0 0 22px; max-width: 78ch; }
.cw-method-more { margin: 18px 0 0; font-size: 15px; }
.cw-method-ico { width: 24px; height: 24px; display: block; }

/* --- "rail" variant: four steps on a shared line --- */

.cw-method-rail .cw-method-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.cw-method-rail .cw-method-step { position: relative; padding: 0 14px; text-align: center; margin: 0; }
.cw-method-rail .cw-method-step::before {
  content: ""; position: absolute; top: 27px; left: 0; right: 50%;
  border-top: 2px solid var(--line);
}
.cw-method-rail .cw-method-step::after {
  content: ""; position: absolute; top: 27px; left: 50%; right: 0;
  border-top: 2px solid var(--line);
}
.cw-method-rail .cw-method-step:first-child::before,
.cw-method-rail .cw-method-step:last-child::after { display: none; }
.cw-method-rail .cw-method-disc {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 16px;
  background: var(--ink); color: #fff;
}
/* White on gold misses the minimum contrast ratio, so that icon is dark. */
.cw-method-rail .cw-step-clock .cw-method-disc { background: var(--edel); color: var(--ink); }
.cw-method-rail .cw-method-num {
  position: absolute; right: -6px; bottom: -6px;
  width: 22px; height: 22px; border-radius: 7px;
  background: #fff; color: var(--ink);
  border: 2px solid var(--line);
  font-size: 12px; font-weight: 800; line-height: 18px; text-align: center;
}
.cw-method-rail .cw-method-body { display: block; margin-top: 13px; }
.cw-method-rail .cw-method-step-title { display: block; font-size: 16px; line-height: 1.3; }
.cw-method-rail .cw-method-note { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; margin-top: 4px; }
.cw-method-rail .cw-method-detail { display: block; font-size: 14px; line-height: 1.5; margin-top: 8px; text-align: left; }

/* --- "tiles" variant: four dense tiles, no connecting line --- */

.cw-method-tiles .cw-method-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.cw-method-tiles .cw-method-step {
  position: relative; overflow: hidden; margin: 0;
  padding: 16px 16px 18px;
  background: var(--ink); color: #fff; border-radius: var(--radius);
}
.cw-method-tiles .cw-step-clock { background: linear-gradient(158deg, var(--ink-3) 0%, var(--ink) 70%); }
.cw-method-tiles .cw-method-disc { display: block; color: var(--edel); }
.cw-method-tiles .cw-method-num {
  position: absolute; right: 10px; top: 2px;
  font-size: 44px; font-weight: 800; line-height: 1;
  color: #fff; opacity: .12;
}
.cw-method-tiles .cw-method-body { display: block; margin-top: 12px; }
.cw-method-tiles .cw-method-step-title { display: block; font-size: 16px; line-height: 1.3; }
.cw-method-tiles .cw-method-note { display: block; color: #BCCEDE; font-size: 14px; line-height: 1.45; margin-top: 4px; }
.cw-method-tiles .cw-method-detail { display: block; color: #D8E2EC; font-size: 14px; line-height: 1.5; margin-top: 8px; }

/* --- "stopwatch" variant: one solid SVG, labels inside the drawing --- */

.cw-method-figure { margin: 0; }
.cw-method-svg { width: 100%; height: auto; display: block; }
.cw-method-svg-v { display: none; }

@media (max-width: 860px) {
  .cw-method-rail .cw-method-steps, .cw-method-tiles .cw-method-steps { grid-template-columns: 1fr 1fr; }
  .cw-method-rail .cw-method-step { padding-bottom: 20px; }
  .cw-method-rail .cw-method-step:nth-child(2)::after,
  .cw-method-rail .cw-method-step:nth-child(3)::before { display: none; }
}
@media (max-width: 560px) {
  .cw-method-rail .cw-method-steps, .cw-method-tiles .cw-method-steps { grid-template-columns: 1fr; }
  .cw-method-rail .cw-method-step { display: flex; gap: 14px; text-align: left; padding: 0 0 18px; }
  .cw-method-rail .cw-method-step::before, .cw-method-rail .cw-method-step::after { display: none; }
  .cw-method-rail .cw-method-step:not(:last-child) .cw-method-disc::after {
    content: ""; position: absolute; left: 50%; top: 54px; height: 34px;
    border-left: 2px solid var(--line);
  }
  .cw-method-rail .cw-method-disc { flex: 0 0 54px; }
  .cw-method-rail .cw-method-body { margin-top: 2px; }
  .cw-method-svg-h { display: none; }
  .cw-method-svg-v { display: block; }
}

/* The "where the evidence stopped" box: a short log of what went wrong inside a review.
   The icon is the site mascot, set through --note-icon, because every domain
   has its own. No JS: this is a static block that must behave identically
   across dozens of domains. */
.cw-log {
  position: relative;
  border: 1px solid var(--line);
  border-left: 4px solid var(--alp-deep);
  border-radius: var(--radius);
  background: var(--tint);
  padding: 16px 18px 14px 62px;
  margin: 24px 0;
}
.cw-log::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 16px;
  width: 30px;
  height: 30px;
  background: var(--note-icon, none) center/contain no-repeat;
  opacity: .95;
}
.cw-log h4 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}
.cw-log p { margin: 0 0 10px; }
.cw-log p:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .cw-log { padding: 14px 14px 12px 14px; }
  .cw-log::before { position: static; display: block; margin-bottom: 8px; }
}

/* Index of child pages on a hub. Rendered by the theme, so the styles live
   here: the mechanism is shared, the contents differ per site. */
.cw-index { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.cw-index h2 { margin: 0 0 14px; }
.cw-index ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.cw-index li { line-height: 1.5; }
.cw-index a { font-weight: 700; text-decoration: none; }
.cw-index a:hover { text-decoration: underline; }
.cw-index span { display: block; color: var(--muted); font-size: 15px; }
@media (max-width: 720px) { .cw-index ul { grid-template-columns: 1fr; } }

/* Hub page that is nothing but a list of articles (wpgen_listing_hub) */
.cw-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cw-list-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.cw-list-kicker { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--alp-deep); }
.cw-list-title { font-size: 20px; font-weight: 800; line-height: 1.3; text-decoration: none; color: var(--text); }
.cw-list-title:hover { color: var(--alp-deep); }
.cw-list-txt { margin: 0; color: var(--muted); line-height: 1.55; }
.cw-list-foot { margin-top: auto; padding-top: 10px; display: flex; gap: 16px; color: var(--muted); font-size: 14px; }
.cw-list-empty { color: var(--muted); margin: 0; }
@media (max-width: 720px) { .cw-list { grid-template-columns: 1fr; } }
/* On a listing hub the outer card is redundant: the article cards are the content. */
.cw-text:has(> .cw-list), .cw-text:has(> .cw-list-empty) { background: none; border: 0; padding: 0; }

/* ---------------- disclaimer under the byline ---------------- */

.cw-notice {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 13px;
  line-height: 1.55;
  color: #ABBCCC;
  max-width: 82ch;
}
.cw-notice-age {
  display: inline-block;
  margin-right: 7px;
  padding: 1px 8px;
  border: 1px solid var(--edel);
  border-radius: 6px;
  color: var(--edel);
  font-weight: 800;
  font-size: 12px;
}

/* ---------------- portrait on the author page ---------------- */

.cw-hero-author .cw-wrap { position: relative; }
.cw-portrait {
  position: absolute; right: 0; top: 46px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.cw-portrait img {
  width: 190px; height: 190px; border-radius: 50%; object-fit: cover;
  border: 4px solid rgba(192, 57, 47, .4);
  box-shadow: 0 14px 34px rgba(6, 20, 31, .5);
}
.cw-portrait .cw-portrait-city { font-size: 13px; color: #A6B6C6; letter-spacing: .3px; }
.cw-hero-author h1, .cw-hero-author p.cw-standfirst { max-width: 30ch; }

@media (max-width: 900px) {
  .cw-portrait { position: static; align-items: flex-start; margin-top: 18px; }
  .cw-portrait img { width: 128px; height: 128px; }
  .cw-hero-author h1, .cw-hero-author p.cw-standfirst { max-width: none; }
}

/* ---------------- trust badge strip above the footer ---------------- */

/* The strip sits flush against the footer: the footer's own top margin would
   otherwise leave a light gap and the strip would float on its own. */
.cw-badges + .cw-foot { margin-top: 0; }

.cw-badges { background: var(--tint); border-top: 1px solid var(--line); padding: 22px 0; }
.cw-badges ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.cw-badges a, .cw-badges .cw-badge-fixed {
  display: flex; align-items: center; gap: 11px;
  min-width: 184px; padding: 11px 16px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: var(--ink);
}
.cw-badges a:hover { border-color: var(--alp-deep); }
.cw-badges a:hover .cw-badge-ico { color: var(--alp-deep); }
.cw-badges .cw-badge-ico { flex: 0 0 auto; color: var(--edel-deep); }
.cw-badges .cw-badge-txt { display: flex; flex-direction: column; min-width: 0; }
.cw-badges .cw-badge-name { font-weight: 800; font-size: 15px; letter-spacing: .3px; line-height: 1.2; }
.cw-badges .cw-badge-note { font-size: 12px; color: var(--muted); margin-top: 2px; }

@media (max-width: 720px) {
  .cw-badges { padding: 14px 0; }
  .cw-badges a, .cw-badges .cw-badge-fixed { min-width: calc(50% - 5px); padding: 9px 12px; }
  .cw-badges .cw-badge-note { font-size: 11px; }
}

/* ---------------- in-content CTA banner and explanatory schemes ---------------- */

.cw-board { display: block; margin: 32px 0; }
.cw-board img {
  display: block; width: 100%; height: auto; border-radius: var(--radius-lg);
  box-shadow: 0 12px 28px rgba(14, 42, 36, .15);
}
.cw-board--light img { box-shadow: 0 10px 24px rgba(14, 42, 36, .09); }

.cw-scheme { margin: 30px 0; }
.cw-scheme img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); }

@media (max-width: 640px) {
  .cw-board { margin: 22px 0; }
  .cw-board img { border-radius: var(--radius); }

  /* Four labelled steps squeezed into 340px turn into 5px type. The scheme
     scrolls sideways instead, the same way a wide table does in this theme. */
  .cw-scheme {
    margin: 20px -16px;
    padding: 0 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .cw-scheme img { width: 720px; max-width: none; }
}

/* Eight top-level items do not fit a row at 15px with 14px padding, so the
   desktop header packs a little tighter. Submenus stay comfortable. */
@media (min-width: 981px) {
  .cw-nav a, .cw-nav .cw-nav-btn { font-size: 14.5px; padding: 12px 11px; }
  .cw-nav .sub-menu a { font-size: 14px; padding: 9px 16px; }
}

/* ---------------- motion: hover and entrance ----------------
   One rule: animation signals that something is clickable and never gets in the
   way of reading. So everything is short (0.2-0.3 s) and nothing shifts layout. */

.cw-brand-ico img { transition: transform .3s ease; }
.cw-brand:hover .cw-brand-ico img { transform: rotate(-6deg) scale(1.06); }

.cw-nav a, .cw-nav .cw-nav-btn { transition: color .18s ease, background .18s ease; }

.cw-text a { transition: color .18s ease; }
.cw-text p a { text-underline-offset: 3px; }
.cw-text p a:hover { color: var(--alp-dark); }

/* Cards: a slight lift and shadow, the border picks up the accent. */
.cw-list-item, .cw-badges a, .cw-author {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.cw-list-item:hover {
  transform: translateY(-3px);
  border-color: var(--edel);
  box-shadow: 0 10px 26px rgba(14, 42, 36, .09);
}
.cw-badges a:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(14, 42, 36, .09); }

.cw-board img { transition: transform .25s ease, box-shadow .25s ease; }
.cw-board:hover img { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(14, 42, 36, .2); }

.cw-text tbody tr { transition: background .18s ease; }
.cw-text tbody tr:hover td { background: #EDF1F5; }

.cw-method-rail .cw-method-disc { transition: transform .22s ease, box-shadow .22s ease; }
.cw-method-rail .cw-method-step:hover .cw-method-disc {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(14, 42, 36, .22);
}

.cw-faq-btn { transition: background .18s ease; }
.cw-faq-item { transition: border-color .2s ease, box-shadow .2s ease; }

/* The first screen appears with a minimal shift: heading, lead and byline. */
.cw-hero h1,
.cw-hero p.cw-standfirst,
.cw-hero .cw-byline { animation: cw-rise .55s ease-out both; }
.cw-hero p.cw-standfirst { animation-delay: .08s; }
.cw-hero .cw-byline { animation-delay: .16s; }

@keyframes cw-rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* Whoever turned animations off in their system does not see them here either. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .cw-hero h1, .cw-hero p.cw-standfirst, .cw-hero .cw-byline { opacity: 1; transform: none; }
  .cw-hero::before { opacity: .13; transform: rotate(4deg); }
}
