/* ==================================================
   Fonts (self-hosted Nunito variable, SIL Open Font License)
================================================== */
/* latin-ext (čeština) */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('../fonts/nunito-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('../fonts/nunito-latin.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;
}

/* latin-ext italic */
@font-face {
  font-family: 'Nunito';
  font-style: italic;
  font-weight: 200 1000;
  font-display: swap;
  src: url('../fonts/nunito-italic-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin italic */
@font-face {
  font-family: 'Nunito';
  font-style: italic;
  font-weight: 200 1000;
  font-display: swap;
  src: url('../fonts/nunito-italic-latin.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;
}

/* ==================================================
   Variables
================================================== */
:root {
  --color-primary-teal: #0C7C7A;
  --color-dark-teal: #075B5A;
  --color-light-teal: #8FCBC7;
  --color-light-teal-10: rgba(143, 203, 199, 0.10);
  --color-light-teal-12: rgba(143, 203, 199, 0.12);
  --color-light-teal-15: rgba(143, 203, 199, 0.15);
  --color-light-teal-18: rgba(143, 203, 199, 0.18);
  --color-light-teal-20: rgba(143, 203, 199, 0.20);
  --color-light-teal-22: rgba(143, 203, 199, 0.22);
  --color-dark-teal-10: rgba(7, 91, 90, 0.10);
  --color-dark-teal-12: rgba(7, 91, 90, 0.12);
  --color-dark-teal-16: rgba(7, 91, 90, 0.16);
  --color-background: #F9FDFB;
  --color-body-text: #1A3433;

  --color-surface-overlay: rgba(143, 203, 199, 0.16);
  --color-surface-social: rgba(143, 203, 199, 0.12);

  --font-family-base: 'Nunito', sans-serif;
  --font-weight-h1-h2: 600;
  --font-weight-h3-plus: 500;
  --font-weight-body: 300;
  --font-weight-body-strong: 500;
  --font-size-body: 18px;
  --line-height-body: 1.65;

  --container-width-main: 1060px;
  --container-width-text: 660px;
  --container-width-navbar: 1000px;
  --container-width-footer: 1000px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  --transition-standard: 180ms ease;
  --transition-menu: 220ms ease;
  --duration-page-load: 340ms;
  --easing-page-load: cubic-bezier(.22, .61, .36, 1);

  --shadow-navbar: 0 8px 24px rgba(143, 203, 199, 0.10);
  --shadow-footer: 0 -8px 24px rgba(143, 203, 199, 0.10);
  --shadow-elevated: 0 14px 40px rgba(143, 203, 199, 0.16);
}

/* ==================================================
   Base / reset
================================================== */
html,
body {
  overflow-x: hidden;
}

/* clip (unlike hidden) doesn't make body a scroll container, so position: sticky keeps working */
@supports (overflow-x: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-family-base);
  background-color: var(--color-background);
  color: var(--color-body-text);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-body);
  line-height: var(--line-height-body);
}

h1,
h2,
h3,
p,
ul,
ol {
  margin-top: 0;
}

h1,
h2 {
  font-weight: var(--font-weight-h1-h2);
}

h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-h3-plus);
}

strong {
  font-weight: var(--font-weight-body-strong);
}

p,
ul,
ol,
label,
li {
  font-size: 18px;
}

a {
  color: var(--color-primary-teal);
  text-decoration: none;
  transition: color var(--transition-standard), background-color var(--transition-standard), transform var(--transition-standard);
}

a:hover {
  color: var(--color-dark-teal);
  text-decoration: none;
}

img,
svg {
  max-width: 100%;
}

button,
.btn,
input[type="submit"],
input[type="button"],
input[type="reset"] {
  transition:
    background-color var(--transition-standard),
    color var(--transition-standard),
    border-color var(--transition-standard),
    transform var(--transition-standard),
    box-shadow var(--transition-standard),
    opacity var(--transition-standard);
}

button {
  border: none;
  border-radius: var(--radius-sm);
  background-color: var(--color-primary-teal);
  color: var(--color-background);
  padding: 10px 16px;
  cursor: pointer;
  font-size: 1rem;
}

button:hover,
.btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover {
  transform: translateY(-1px);
}

button:hover {
  background-color: var(--color-dark-teal);
}

.button-link {
  display: inline-block;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background-color: var(--color-primary-teal);
  color: var(--color-background);
  font-size: 1rem;
  font-weight: 400;
  line-height: var(--line-height-body);
  cursor: pointer;
}

.button-link:hover {
  background-color: var(--color-dark-teal);
  color: var(--color-background);
  transform: translateY(-1px);
}

.button-link:active {
  transform: translateY(0) scale(0.98);
}

button:active,
.btn:active,
input[type="submit"]:active,
input[type="button"]:active,
input[type="reset"]:active {
  transform: translateY(0) scale(0.98);
}

/* ==================================================
   Accessibility
================================================== */
button:focus,
.btn:focus,
input[type="submit"]:focus,
input[type="button"]:focus,
input[type="reset"]:focus,
a:focus,
.navbar-toggler:focus,
.mobile-menu-close:focus {
  outline: none;
  box-shadow: none;
}

a:focus-visible,
.navbar-toggler:focus-visible,
.mobile-menu-close:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-light-teal);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

button:focus-visible,
.button-link:focus-visible,
.btn:focus-visible,
input[type="submit"]:focus-visible,
input[type="button"]:focus-visible,
input[type="reset"]:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px var(--color-background),
    0 0 0 6px var(--color-light-teal);
  border-radius: var(--radius-md);
}

/* ==================================================
   Motion
================================================== */
@keyframes page-fade-up {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content,
.homepage-main,
footer {
  animation: page-fade-up var(--duration-page-load) var(--easing-page-load) both;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ==================================================
   Layout / article content
================================================== */
.content {
  max-width: var(--container-width-text);
  margin: 0 auto;
  padding: 30px 30px 0;
}

.homepage-main {
  overflow: hidden;
}

article ul,
article ol {
  padding-left: 1.2em;
}

.tiles {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 20px;
  padding: 40px 20px;
}

.tile {
  flex: 1 1 250px;
  max-width: 300px;
  padding: 20px;
  border: 1px solid var(--color-dark-teal-10);
  border-radius: var(--radius-md);
  background: var(--color-background);
  text-align: center;
  box-shadow: var(--shadow-elevated);
}

.tile h3 {
  margin-bottom: 10px;
}

.tile p {
  min-height: 100px;
  margin-bottom: 12px;
}

.citations {
  font-size: 0.9em;
  margin-top: 40px;
  color: #555;
}

/* Skip link: hidden until focused with the keyboard */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background-color: var(--color-dark-teal);
  color: var(--color-background);
  font-weight: var(--font-weight-h3-plus);
  transform: translateY(-200%);
}

.skip-link:focus,
.skip-link:focus-visible {
  color: var(--color-background);
  transform: translateY(0);
}

main:focus {
  outline: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ==================================================
   OCD test (DOCS)
================================================== */
.test-lead {
  font-size: 1.08rem;
}

.test-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0 !important;
  list-style: none;
}

.test-facts li {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background-color: var(--color-light-teal-20);
  color: var(--color-dark-teal);
  font-size: 15px;
  font-weight: var(--font-weight-body-strong);
}

/* Steps: without JS everything stays on one page and step navigation is hidden */
.docs-step[hidden] {
  display: none !important;
}

.docs-app:not(.is-stepped) .docs-step__nav {
  display: none;
}

.docs-app:not(.is-stepped) .docs-domain {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--color-dark-teal-10);
}

.docs-step h2:focus {
  outline: none;
}

.docs-step__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--color-dark-teal-10);
}

.docs-step__nav--start {
  justify-content: flex-start;
  margin: 28px 0 32px;
  padding-top: 0;
  border-top: 0;
}

.docs-details__heading {
  margin: 8px 0 6px;
}

.docs-step__nav button {
  border: 0;
}

.docs-step__nav .btn-secondary-custom {
  border: 1px solid var(--color-dark-teal-12);
}

/* Text-style button for low-emphasis actions */
.docs-link-button {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--color-primary-teal);
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.docs-link-button:hover {
  background: none;
  color: var(--color-dark-teal);
  transform: none;
}

.docs-crisis .alert {
  margin-bottom: 0;
}

/* Area steps */
.docs-domain {
  scroll-margin-top: 24px;
}

.docs-dots {
  display: flex;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0 !important;
  list-style: none;
}

.docs-dots li {
  width: 32px;
  height: 6px;
  border-radius: var(--radius-pill);
  background-color: var(--color-light-teal-22);
}

.docs-dots li.is-done {
  background-color: var(--color-light-teal);
}

.docs-dots li.is-current {
  background-color: var(--color-primary-teal);
}

.docs-app:not(.is-stepped) .docs-dots {
  display: none;
}

.docs-domain__eyebrow {
  margin-bottom: 6px;
  color: var(--color-primary-teal);
  font-size: 14px;
  font-weight: var(--font-weight-body-strong);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-domain__title {
  margin-bottom: 20px;
  font-size: 1.6rem;
  line-height: 1.3;
}

.docs-examples {
  margin-bottom: 20px;
  padding: 18px 20px;
  border: 1px solid var(--color-dark-teal-10);
  border-radius: var(--radius-lg);
  background-color: var(--color-light-teal-12);
}

.docs-examples__title {
  margin-bottom: 6px;
}

.docs-examples ul {
  margin-bottom: 0;
}

.docs-examples li {
  font-size: 16px;
}

.docs-examples li + li {
  margin-top: 4px;
}

.docs-domain__intro {
  margin-bottom: 28px;
}

/* Error summary (GOV.UK pattern: list with links to each missing answer) */
.docs-error-summary {
  margin-bottom: 24px;
  padding: 14px 18px;
  border-left: 4px solid var(--color-primary-teal);
  border-radius: var(--radius-sm);
  background-color: var(--color-light-teal-20);
}

.docs-error-summary:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-light-teal);
}

.docs-error-summary__title {
  margin-bottom: 4px;
}

.docs-error-summary__list {
  margin: 0;
}

.docs-error-summary__list a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Questions */
.test-questions {
  margin: 0;
  padding: 0 !important;
  list-style: none;
}

.test-questions > li + li {
  margin-top: 32px;
}

.test-question {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  scroll-margin-top: 24px;
}

.test-question__legend {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: var(--font-weight-body-strong);
  line-height: 1.5;
}

.test-question__number {
  flex: 0 0 auto;
  min-width: 2.2em;
  color: var(--color-primary-teal);
  font-variant-numeric: tabular-nums;
}

.test-question.is-unanswered .test-question__legend {
  color: var(--color-dark-teal);
}

.test-question.is-unanswered .test-question__text::before {
  content: "Chybí odpověď: ";
  color: var(--color-primary-teal);
}

.test-question.is-unanswered .choice-list {
  padding-left: 12px;
  border-left: 3px solid var(--color-primary-teal);
}

/* Answer choices: whole row is the click target, native radio stays focusable */
.choice-list {
  display: grid;
  gap: 8px;
}

.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--color-dark-teal-12);
  border-radius: var(--radius-md);
  background-color: var(--color-background);
  font-size: 17px;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color var(--transition-standard), border-color var(--transition-standard), box-shadow var(--transition-standard);
}

.choice:hover {
  border-color: var(--color-light-teal);
  background-color: var(--color-light-teal-10);
}

.choice__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.choice__value {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--color-dark-teal-16);
  border-radius: var(--radius-pill);
  color: var(--color-dark-teal);
  font-size: 15px;
  font-weight: var(--font-weight-body-strong);
  transition: background-color var(--transition-standard), border-color var(--transition-standard), color var(--transition-standard);
}

.choice:has(.choice__input:checked) {
  border-color: var(--color-primary-teal);
  background-color: var(--color-light-teal-20);
}

.choice__input:checked + .choice__value {
  border-color: var(--color-primary-teal);
  background-color: var(--color-primary-teal);
  color: var(--color-background);
}

.choice:has(.choice__input:focus-visible) {
  box-shadow:
    0 0 0 3px var(--color-background),
    0 0 0 5px var(--color-light-teal);
}

.ocd-error {
  margin: 16px 0 0;
  padding: 10px 14px;
  border-left: 4px solid var(--color-primary-teal);
  border-radius: var(--radius-sm);
  background-color: var(--color-light-teal-20);
  text-align: left;
}

/* Result */
.docs-result:focus {
  outline: none;
}

.docs-result__title {
  margin-bottom: 16px;
  font-size: 1.6rem;
  line-height: 1.3;
}

.docs-result__subtitle {
  margin: 32px 0 14px;
  font-size: 1.15rem;
}

.docs-score {
  margin-top: 24px;
  padding: 20px 22px;
  border: 1px solid var(--color-dark-teal-10);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
}

.docs-score__label {
  margin-bottom: 2px;
  font-size: 16px;
  font-weight: var(--font-weight-body-strong);
}

.docs-score__total {
  margin-bottom: 10px;
  color: var(--color-dark-teal);
  font-size: 2.6rem;
  font-weight: var(--font-weight-h1-h2);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.docs-score__max {
  color: var(--color-body-text);
  font-size: 1.1rem;
  font-weight: var(--font-weight-body);
}

.score-bar {
  position: relative;
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background-color: var(--color-light-teal-22);
}

.score-bar--large {
  height: 12px;
  overflow: visible;
}

/* Cut-off from the study, drawn across the bar */
.score-bar__mark {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  margin-left: -1px;
  border-radius: 1px;
  background-color: var(--color-dark-teal);
  box-shadow: 0 0 0 1.5px var(--color-background);
}

.docs-thresholds__intro {
  margin: 20px 0 8px;
  font-size: 16px;
  font-weight: var(--font-weight-body-strong);
}

.docs-thresholds {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 0 !important;
  list-style: none;
}

.docs-thresholds__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  line-height: 1.5;
}

.docs-thresholds__score {
  flex: 0 0 auto;
  min-width: 82px;
  padding: 1px 10px;
  border: 1px solid var(--color-dark-teal-16);
  border-radius: var(--radius-pill);
  color: var(--color-dark-teal);
  font-size: 15px;
  font-weight: var(--font-weight-body-strong);
  text-align: center;
}

.docs-thresholds__item.is-reached .docs-thresholds__score {
  border-color: var(--color-primary-teal);
  background-color: var(--color-primary-teal);
  color: var(--color-background);
}

.docs-thresholds__status {
  display: block;
  font-weight: var(--font-weight-body-strong);
}

.docs-score__note {
  color: #555;
  font-size: 15px;
}

.score-bar__fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background-color: var(--color-primary-teal);
  transition: width var(--transition-menu);
}

.docs-breakdown {
  display: grid;
  gap: 14px;
  margin-bottom: 0;
  padding: 0 !important;
  list-style: none;
}

.docs-breakdown__label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  font-size: 16px;
}

.docs-breakdown__value {
  flex: 0 0 auto;
  font-weight: var(--font-weight-body-strong);
  font-variant-numeric: tabular-nums;
}

.docs-result__help {
  margin-top: 28px;
}

.docs-result__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-bottom: 28px;
}

.docs-result__actions button.btn-primary-custom {
  border: 0;
}

.docs-answers__table {
  width: 100%;
  margin-top: 4px;
  border-collapse: collapse;
  font-size: 15px;
}

.docs-answers__table th,
.docs-answers__table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--color-dark-teal-10);
  text-align: left;
  vertical-align: top;
}

.docs-answers__table td:first-child {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.docs-answers__table thead th {
  font-weight: var(--font-weight-body-strong);
}

.docs-answers__domain th {
  padding-top: 14px;
  color: var(--color-dark-teal);
  font-weight: var(--font-weight-body-strong);
}

.ocd-result__note {
  margin: 20px 0;
  font-size: 0.9em;
}

.docs-print-header {
  display: none;
}

/* Fold-outs (scoring, source, instructions) */
.docs-more {
  display: grid;
  gap: 10px;
  margin-top: 48px;
}

.docs-details {
  margin: 0 0 16px;
  padding: 0 20px;
  border: 1px solid var(--color-dark-teal-10);
  border-radius: var(--radius-md);
  scroll-margin-top: 24px;
}

.docs-more .docs-details {
  margin-bottom: 0;
}

.docs-details summary {
  margin: 0 -20px;
  padding: 12px 20px;
  color: var(--color-dark-teal);
  font-weight: var(--font-weight-body-strong);
  cursor: pointer;
}

.docs-details summary:focus-visible {
  outline: 2px solid var(--color-light-teal);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.docs-details[open] {
  padding-bottom: 16px;
}

.docs-details li,
.docs-details p {
  font-size: 16px;
}

.test-source {
  color: #555;
}

.test-source p {
  font-size: 15px;
  overflow-wrap: anywhere;
}

@media (max-width: 575px) {
  .docs-domain__title,
  .docs-result__title {
    font-size: 1.35rem;
  }

  .choice {
    gap: 12px;
    padding: 10px 12px;
    font-size: 16px;
  }

  /* Stack the step buttons with the main action on top */
  .docs-step__nav:not(.docs-step__nav--start) {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .docs-result__actions .btn-primary-custom {
    width: 100%;
  }
}

/* Print: a clean one-page summary to take to an appointment */
@media print {
  .page-test-ocd .navbar,
  .page-test-ocd .mobile-menu-overlay,
  .page-test-ocd .site-footer,
  .page-test-ocd .skip-link,
  .page-test-ocd h1,
  .docs-step__nav,
  .docs-result__actions,
  .docs-result__help,
  .docs-crisis,
  .docs-more {
    display: none !important;
  }

  .page-test-ocd .content {
    max-width: none;
    padding: 0;
    animation: none;
  }

  .docs-print-header {
    display: block;
    margin-bottom: 16px;
    font-size: 13px;
    color: #555;
  }

  .docs-score {
    box-shadow: none;
  }

  .score-bar,
  .score-bar__fill,
  .score-bar__mark,
  .docs-thresholds__score {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .docs-details {
    border: 0;
    padding: 0;
  }

  .docs-details summary {
    margin: 0;
    padding: 12px 0 4px;
    list-style: none;
  }

  .docs-answers__table tr {
    break-inside: avoid;
  }
}

/* ==================================================
   Alerts / notices
================================================== */
.alert {
  position: relative;
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
}

.alert-warning {
  color: var(--color-body-text);
  background-color: var(--color-light-teal-20);
  border-color: var(--color-primary-teal);
}

.alert p {
  margin-bottom: calc(var(--line-height-body) * 1em);
}

.alert p.alert__title {
  margin-bottom: 0;
}

/* ==================================================
   Buttons / link helpers
================================================== */
.btn-primary-custom,
.btn-secondary-custom,
.tile-button-link,
.navbar-cta,
.site-footer__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 18px;
  font-weight: var(--font-weight-h3-plus);
  line-height: 1.2;
  text-decoration: none;
}

.btn-primary-custom,
.tile-button-link,
.navbar-cta {
  background-color: var(--color-primary-teal);
  color: var(--color-background) !important;
}

.btn-primary-custom:hover,
.tile-button-link:hover,
.navbar-cta:hover {
  background-color: var(--color-dark-teal);
  color: var(--color-background) !important;
}

.btn-secondary-custom {
  border: 1px solid var(--color-dark-teal-12);
  background-color: transparent;
  color: var(--color-dark-teal) !important;
}

.btn-secondary-custom:hover {
  background-color: var(--color-light-teal-18);
  color: var(--color-dark-teal) !important;
}

.site-footer__button {
  background-color: var(--color-dark-teal);
  color: var(--color-background);
}

.site-footer__button:hover {
  background-color: var(--color-primary-teal);
  color: var(--color-background);
}

/* ==================================================
   Navbar
================================================== */
.navbar {
  box-sizing: border-box;
  width: 100%;
  padding: 20px 30px;
  background: transparent;
  border-bottom: 1px solid var(--color-dark-teal-10);
  box-shadow: var(--shadow-navbar);
}

.navbar-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: var(--container-width-navbar);
  margin: 0 auto;
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: var(--color-primary-teal);
  transition: color var(--transition-standard);
}

.custom-logo-link:hover {
  color: var(--color-dark-teal);
}

.logo {
  display: block;
  width: auto;
  height: 46px;
  max-width: 100%;
  margin: 0;
}

.navbar-menu-class,
.navbar-nav ul {
  margin: 0;
  padding: 0;
}

.navbar-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.navbar-nav li {
  position: relative;
  display: inline-block;
  margin-left: 8px;
  font-size: 18px;
}

.navbar-nav li a {
  display: inline-block;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: var(--color-body-text) !important;
  font-size: 18px;
  font-weight: var(--font-weight-h3-plus);
}

.navbar-nav li a:hover {
  color: var(--color-primary-teal) !important;
  background-color: var(--color-light-teal-12);
}

.navbar-nav li a.active,
.navbar-nav li a[aria-current="page"] {
  color: var(--color-dark-teal) !important;
  background-color: var(--color-light-teal-20);
}

.navbar-cta {
  margin-left: 18px;
}

.navbar-dark .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%230C7C7A' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-toggler {
  padding: 4px 0 4px 8px;
  border: none;
  box-shadow: none;
  background: transparent;
}

/* ==================================================
   Mobile menu overlay
================================================== */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 96px 28px 40px;
  background: var(--color-surface-overlay);
  backdrop-filter: blur(10px);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-menu), visibility var(--transition-menu);
}

.mobile-menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  /* Visible immediately on open so focus can move into the menu */
  transition: opacity var(--transition-menu), visibility 0s;
}

.mobile-menu-overlay a {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 4px 0;
  padding: 14px 18px;
  border-radius: 10px;
  color: var(--color-body-text);
  font-size: 1.5rem;
  font-weight: var(--font-weight-h3-plus);
}

.mobile-menu-overlay a:hover {
  color: var(--color-primary-teal);
  background-color: var(--color-light-teal-15);
}

.mobile-menu-overlay a.active,
.mobile-menu-overlay a[aria-current="page"] {
  color: var(--color-dark-teal);
  background-color: var(--color-light-teal-22);
}

.mobile-menu-overlay .navbar-cta {
  width: 100%;
  max-width: 320px;
  margin-top: 18px;
  margin-left: 0;
}

.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 0 4px;
  border: none;
  background: transparent;
  color: var(--color-body-text);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

.mobile-menu-close:hover {
  background: transparent;
  color: var(--color-dark-teal);
  transform: scale(1.04);
}

/* ==================================================
   Homepage
================================================== */
.home-shell {
  box-sizing: border-box;
  max-width: var(--container-width-main);
  margin: 0 auto;
  padding: 0 30px;
}

.home-section {
  position: relative;
  padding: 88px 0;
}

.home-section--tiles {
  padding-top: 68px;
}

.home-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 96px);
  padding: 56px 0 72px;
}

.home-hero::after {
  content: "";
  position: absolute;
  left: -10vw;
  right: -10vw;
  bottom: -18px;
  height: 36px;
  border-bottom: 1px solid var(--color-dark-teal-10);
  border-bottom-left-radius: 50% 100%;
  border-bottom-right-radius: 50% 100%;
  box-shadow: var(--shadow-navbar);
  pointer-events: none;
}

.home-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  width: 100%;
}

.home-hero__content {
  display: flex;
  flex-direction: column;
}

.home-hero__inner {
  width: 100%;
}

.home-hero__bottom-hint {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.home-scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--color-dark-teal);
  opacity: 0.68;
}

.home-scroll-cue:hover {
  color: var(--color-dark-teal);
  opacity: 1;
  transform: translateY(1px);
}

.home-scroll-cue__chevron {
  width: 14px;
  height: 14px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.home-scroll-cue__chevron--second {
  margin-top: -6px;
  opacity: 0.72;
}

.home-eyebrow {
  margin-bottom: 12px;
  color: var(--color-primary-teal);
  font-size: 15px;
  font-weight: var(--font-weight-h3-plus);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.home-hero h1 {
  max-width: 12ch;
  margin-bottom: 20px;
  color: var(--color-body-text);
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.home-hero__lead {
  max-width: 620px;
  margin-bottom: 28px;
  color: var(--color-body-text);
  font-size: 1.2rem;
  line-height: 1.65;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.home-hero__visual {
  display: flex;
  justify-content: flex-end;
}

/* Let the <img> stay the flex item, as before the <picture> wrapper */
.home-hero__visual picture {
  display: contents;
}

/* The hero image of the pre-campaign homepage (index.php); remove with it.
   height: auto keeps the ratio when max-width shrinks the width set in HTML. */
.home-hero__image {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
}

@media (max-width: 900px) {
  .home-hero__image {
    max-width: 420px;
  }
}

/* The campaign deck in place of the hero image (deck styles live in the campaign block).
   The hero is a flex container; unlike the image, the deck has no natural width,
   so the shell must take the full width itself. */
.home-hero > .home-shell {
  width: 100%;
}

.home-hero__visual .nehra-hero__visual {
  width: 100%;
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .home-hero__visual .nehra-hero__visual {
    justify-content: flex-start;
  }
}

.home-section__intro {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.home-section__intro h2 {
  margin-bottom: 12px;
  color: var(--color-body-text);
}

.home-section__intro p {
  margin-bottom: 0;
  color: var(--color-body-text);
  font-size: 1.08rem;
  line-height: 1.65;
}

.home-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}

.home-tile {
  padding: 28px 24px;
  border: 1px solid var(--color-dark-teal-10);
  border-radius: var(--radius-lg);
  background: var(--color-background);
  text-align: left;
  box-shadow: var(--shadow-elevated);
}

.home-tile h3,
.home-tile p,
.home-section__intro h2,
.home-section__intro p {
  color: var(--color-body-text);
}

.home-tile h3 {
  margin-bottom: 12px;
}

.home-tile p {
  margin-bottom: 18px;
}

.support-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 36px;
  border-radius: var(--radius-xl);
  background: var(--color-primary-teal);
  color: var(--color-background);
  box-shadow: var(--shadow-elevated);
}

.support-box h2,
.support-box p {
  color: var(--color-background);
}

.support-box h2 {
  margin-bottom: 12px;
}

.support-box p {
  max-width: 720px;
  margin-bottom: 0;
}

.support-box .btn-primary-custom {
  white-space: nowrap;
  background: var(--color-background);
  color: var(--color-dark-teal) !important;
}

.support-box .btn-primary-custom:hover {
  background: var(--color-light-teal-20);
  color: var(--color-dark-teal) !important;
}

/* ==================================================
   Support / donations
================================================== */

.support-contact {
  margin-top: 10px;
}

/* ==================================================
   Footer
================================================== */
.site-footer {
  margin-top: 70px;
  padding: 0 30px;
  border-top: 1px solid var(--color-dark-teal-12);
  color: var(--color-body-text);
  box-shadow: var(--shadow-footer);
}

.homepage .site-footer,
.homepage footer {
  margin-top: 0;
}

.site-footer__inner {
  max-width: var(--container-width-footer);
  margin: 0 auto;
  padding: 42px 0 18px;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 1fr;
  align-items: start;
  gap: 42px;
}

.site-footer__logo-link {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--color-body-text);
}

.site-footer__logo-link:hover {
  color: var(--color-body-text);
}

.site-footer__logo-text {
  font-size: 32px;
  line-height: 1;
  font-weight: var(--font-weight-h1-h2);
  letter-spacing: -0.02em;
}

.site-footer__description,
.site-footer__support-text {
  color: var(--color-body-text);
  font-size: 18px;
  line-height: 1.6;
}

.site-footer__description {
  max-width: 360px;
  margin: 0 0 18px;
}

.site-footer__support-text {
  max-width: 320px;
  margin: 0 0 18px;
}

.site-footer__heading {
  margin: 0 0 14px;
  color: var(--color-body-text);
  font-size: 22px;
  line-height: 1.3;
  font-weight: var(--font-weight-h3-plus);
}

.site-footer__menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__menu li + li {
  margin-top: 10px;
}

.site-footer__menu a {
  color: var(--color-body-text);
  font-size: 18px;
}

.site-footer__menu a:hover {
  color: var(--color-primary-teal);
  text-decoration: underline;
}

.site-footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-dark-teal-12);
  border-radius: var(--radius-pill);
  background: var(--color-surface-social);
  color: var(--color-body-text);
}

.site-footer__social-link:hover {
  color: var(--color-body-text);
  transform: translateY(-1px);
}

.site-footer__social-link svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.site-footer__bottom {
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid var(--color-dark-teal-16);
}

.site-footer__legal {
  margin: 0;
  color: var(--color-body-text);
  font-size: 14px;
  line-height: 1.6;
}

footer {
  padding-top: 0;
  padding-bottom: 15px;
  color: var(--color-body-text);
}

/* ==================================================
   Responsive
================================================== */
@media (max-width: 900px) {
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  .site-footer__description {
    max-width: 100%;
  }

  .home-hero {
    min-height: auto;
    padding: 34px 0 28px;
  }

  .home-hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .home-hero__visual {
    justify-content: flex-start;
  }

  .home-tiles {
    grid-template-columns: 1fr;
  }

  .support-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 575px) {
  .navbar,
  .site-footer,
  .content,
  .home-shell {
    padding-left: 20px;
    padding-right: 20px;
  }

  .navbar-wrapper {
    width: 100%;
    max-width: none;
  }

  .navbar-nav li {
    margin-top: 6px;
    margin-left: 0;
  }

  .navbar-nav li a {
    padding: 8px 0;
  }

  .navbar-cta {
    width: 100%;
    margin-top: 14px;
    margin-left: 0;
  }

  .mobile-menu-overlay {
    padding: 88px 20px 32px;
  }

  .mobile-menu-overlay a {
    padding: 13px 16px;
    font-size: 1.35rem;
  }

  .mobile-menu-overlay .navbar-cta {
    font-size: 1rem;
  }

  .mobile-menu-close {
    top: 20px;
    right: 20px;
    font-size: 2rem;
  }

  .site-footer__inner {
    padding: 34px 0 18px;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer__logo-text {
    font-size: 28px;
  }

  .site-footer__heading {
    margin-bottom: 10px;
    font-size: 20px;
  }

  .site-footer__legal {
    font-size: 13px;
  }

  .home-section {
    padding: 56px 0;
  }

  .home-section--tiles {
    padding-top: 52px;
  }

  .home-hero {
    min-height: calc(100svh - 84px);
    padding: 28px 0 24px;
  }

  .home-hero h1 {
    max-width: none;
  }

  .home-hero__lead {
    font-size: 1.08rem;
  }

  .home-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary-custom,
  .btn-secondary-custom,
  .tile-button-link,
  .site-footer__button {
    width: 100%;
  }

  .home-tile {
    padding: 24px 20px;
  }

  .support-box {
    padding: 28px 22px;
  }
}

/* ==================================================
   Campaign headline "Karetní hra, / kterou nelze dohrát" (homepage + /karetni-nehra/)
   The second line stays whole: the font is sized from the column width.
   "kterou nelze dohrát" is ~8.6× the font size wide; 8.8 leaves a little room.
================================================== */
@supports (font-size: 1cqi) {
  .home-hero__inner,
  .nehra-hero__head {
    container-type: inline-size;
  }

  .home-hero h1.home-hero__title--campaign {
    max-width: none;
    font-size: min(4.2rem, 100cqi / 8.8);
  }

  .nehra-hero__head .nehra-title {
    font-size: min(4.25rem, 100cqi / 8.8);
  }

  .title-line {
    white-space: nowrap;
  }
}

/* ==================================================
   Campaign: OCD: Karetní nehra (/karetni-nehra/)
   Colour per view stays within: background, dark teal, plus one of
   primary teal / body text / light teal (light teal never for small text)
================================================== */
.page-nehra {
  --nehra-text: 680px;
}

/* Same width and side padding as the site navbar, so the page lines up with the logo */
.nehra-wrap {
  box-sizing: border-box;
  max-width: calc(var(--container-width-navbar) + 60px);
  margin: 0 auto;
  padding-left: 30px;
  padding-right: 30px;
}

.nehra-text {
  max-width: var(--nehra-text);
}

.nehra p {
  margin-bottom: 1.1em;
}

.nehra [id] {
  scroll-margin-top: 24px;
}

.nehra a {
  color: var(--color-dark-teal);
  font-weight: var(--font-weight-body-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Type */
.nehra-title {
  margin-bottom: 40px;
  color: var(--color-dark-teal);
  font-size: clamp(2.4rem, 1rem + 4vw, 4.25rem);
  font-weight: var(--font-weight-h1-h2);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.nehra-h2 {
  margin: 56px 0 16px;
  color: var(--color-dark-teal);
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.4rem);
  font-weight: var(--font-weight-h1-h2);
  line-height: 1.2;
}

/* Hero */
.nehra-hero {
  padding: 56px 0 64px;
}

/* One centre line for the whole page: title, deck, text, then the story column below */
.nehra-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 40px;
}

.nehra-hero__head,
.nehra-hero__body {
  text-align: center;
}

.nehra-hero .nehra-title {
  margin-bottom: 0;
}

.nehra p.nehra-hero__after {
  margin-left: auto;
  margin-right: auto;
}

.nehra-actions {
  justify-content: center;
}

.nehra p.nehra-hero__after {
  max-width: 30em;
  margin-bottom: 32px;
}

.nehra-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.nehra .nehra-btn {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  box-sizing: border-box;
  padding: 14px 24px;
  border: 2px solid var(--color-dark-teal);
  border-radius: var(--radius-md);
  background-color: var(--color-dark-teal);
  color: var(--color-background);
  font-size: 18px;
  line-height: 1.2;
  text-decoration: none;
}

.nehra .nehra-btn:hover {
  border-color: var(--color-primary-teal);
  background-color: var(--color-primary-teal);
  color: var(--color-background);
}

.nehra .nehra-btn--secondary {
  border-color: var(--color-primary-teal);
  background-color: transparent;
  color: var(--color-dark-teal);
}

.nehra .nehra-btn--secondary:hover {
  border-color: var(--color-dark-teal);
  background-color: transparent;
  color: var(--color-dark-teal);
}

.nehra .nehra-btn:focus-visible {
  outline: 3px solid var(--color-dark-teal);
  outline-offset: 3px;
}

.nehra p.nehra-date {
  margin: 20px 0 0;
  color: var(--color-dark-teal);
  font-size: 16px;
  font-weight: var(--font-weight-body-strong);
}

.nehra-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

/* The deck: card back, rules card and the 32 cards, proportioned like the print (63 × 88 mm).
   Sizes are in cqi = % of the card width, so the card scales as one piece. */
.nehra-hero__visual {
  display: flex;
  justify-content: center;
}

.nehra-deck {
  width: 100%;
  max-width: 320px;
}

.nehra-deck[hidden],
.nehra-photo[hidden] {
  display: none;
}

/* Two card backs peeking out underneath suggest the rest of the pile */
.nehra-deck__pile {
  position: relative;
  isolation: isolate;
}

.nehra-deck__pile::before,
.nehra-deck__pile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 14px;
  background-color: var(--color-dark-teal);
}

.nehra-deck__pile::before {
  transform: translate(7px, 7px) rotate(2.5deg);
  opacity: 0.55;
}

.nehra-deck__pile::after {
  transform: translate(3px, 3px) rotate(1deg);
  opacity: 0.8;
}

.nehra-deck__card {
  container-type: inline-size;
  cursor: pointer;
}

.nehra-card {
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  aspect-ratio: 63 / 88;
  overflow: hidden;
  border-radius: 5cqi;
  box-shadow: 0 18px 40px rgba(7, 91, 90, 0.16), 0 2px 6px rgba(7, 91, 90, 0.1);
  text-align: left; /* never inherit a centred page */
  user-select: none;
}

.nehra-card--face {
  padding: 13cqi 7cqi 7cqi 8cqi;
  background-color: #fff;
  color: var(--color-dark-teal);
}

.nehra-card--back,
.nehra-card--rules {
  background-color: var(--color-dark-teal);
  color: var(--color-background);
}

.nehra-card__items {
  display: grid;
  gap: 5.6cqi;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nehra-card__items li {
  display: flex;
  gap: 2.6cqi;
  font-size: 7.3cqi;
  font-weight: 400;
  line-height: 1.28;
}

.nehra-card__items li.is-strong {
  font-weight: 600;
}

.nehra-card__box {
  position: relative;
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 1.18em;
  height: 1.18em;
  margin-top: 0.05em;
  border: 0.75cqi solid currentColor;
  border-radius: 0.2em;
}

.nehra-card__box.is-checked::after {
  content: "";
  position: absolute;
  top: 0.1em;
  left: 0.36em;
  width: 0.3em;
  height: 0.6em;
  border: solid currentColor;
  border-width: 0 0.75cqi 0.75cqi 0;
  transform: rotate(45deg);
}

.nehra-card__number {
  margin: auto 0 0;
  padding-bottom: 2.5cqi;
  border-bottom: 1cqi dotted currentColor;
  font-size: 6.4cqi;
  line-height: 1;
  text-align: right;
}

.nehra-card__rule {
  display: block;
  width: 100%;
  border-top: 1cqi dotted currentColor;
}

/* Back: "OCD", dotted line, ☑ Karetní nehra, logo */
.nehra-card--back {
  align-items: center;
  padding: 24cqi 8cqi 9cqi;
}

.nehra-card__brand {
  font-size: 30cqi;
  font-weight: 500;
  line-height: 1;
}

.nehra-card--back .nehra-card__rule {
  margin: 5cqi 0 4cqi;
}

.nehra-card__name {
  display: flex;
  align-items: center;
  gap: 2.2cqi;
  font-size: 10.6cqi;
  line-height: 1;
}

.nehra-card__logo {
  width: 26cqi;
  height: auto;
  margin-top: auto;
}

/* Rules */
.nehra-card--rules {
  padding: 12cqi 7cqi 8cqi 8cqi;
}

.nehra-card__title {
  margin: 0 0 4cqi;
  font-size: 9cqi;
  font-weight: 500;
  line-height: 1.2;
}

.nehra-card--rules .nehra-card__items {
  gap: 3.6cqi;
  margin-top: 6cqi;
}

.nehra-card--rules .nehra-card__items li {
  font-size: 6.6cqi;
  font-weight: 300; /* light on dark reads heavier than it is */
}

.nehra-card--rules .nehra-card__items li.is-strong {
  font-weight: 600;
}

/* Dealing and shuffling */
@keyframes nehra-deal {
  from {
    opacity: 0;
    transform: translate(-5%, -3%) rotate(-4deg);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.nehra-card.is-dealt {
  animation: nehra-deal 260ms ease-out both;
}

@keyframes nehra-shuffle {
  0%,
  100% {
    transform: none;
  }

  25% {
    transform: translateX(-4%) rotate(-3deg);
  }

  50% {
    transform: translateX(4%) rotate(3deg);
  }

  75% {
    transform: translateX(-2%) rotate(-1deg);
  }
}

.nehra-deck__pile.is-shuffling {
  animation: nehra-shuffle 450ms ease-in-out;
}

/* Quiet text controls: the card itself is the main thing to click */
.nehra-deck__controls {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 24px;
}

.nehra-deck__action,
.nehra-deck__action:hover {
  padding: 6px 2px;
  border: 0;
  background: none;
  color: var(--color-dark-teal);
  transform: none;
}

.nehra-deck__action {
  font-size: 16px;
  font-weight: var(--font-weight-body-strong);
  text-decoration: underline;
  text-decoration-color: var(--color-dark-teal-16);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: text-decoration-color var(--transition-standard);
}

.nehra-deck__action:hover {
  text-decoration-color: currentColor;
}

.nehra-deck__action:focus-visible {
  outline: 2px solid var(--color-dark-teal);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

/* About */
.nehra-about {
  padding: 24px 0 96px;
}

/* The story reads as one column in the middle of the page */
.nehra-about .nehra-text {
  margin-left: auto;
  margin-right: auto;
}

.nehra-figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  max-width: var(--nehra-text);
  margin: 32px auto 40px;
}

.nehra p.nehra-figure {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.nehra-figure__lead {
  color: var(--color-dark-teal);
  font-size: 16px;
  font-weight: var(--font-weight-body-strong);
}

.nehra-figure__value {
  margin-bottom: 8px;
  color: var(--color-dark-teal);
  font-size: clamp(3rem, 2rem + 4vw, 4.75rem);
  font-weight: var(--font-weight-h1-h2);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.nehra-press__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nehra-press__list li + li {
  margin-top: 8px;
}

.nehra p.nehra-note {
  margin: 48px 0 0;
  font-size: 15px;
}

.nehra-press__meta {
  margin-left: 6px;
  font-size: 15px;
}

/* Responsive */
@media (max-width: 575px) {
  .nehra-wrap {
    padding-left: 20px;
    padding-right: 20px;
  }

  .nehra-hero {
    padding: 32px 0 56px;
  }

  .nehra-title {
    margin-bottom: 32px;
  }

  .nehra-actions {
    flex-direction: column;
  }

  .nehra .nehra-btn {
    justify-content: center;
    width: 100%;
  }

  .nehra-about {
    padding: 8px 0 64px;
  }

  .nehra-figures {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}
