/*
  ZEF - site styles
  Palette and motifs echo the original vphev.pl site: cornflower blue,
  the cyan stamp diamond from the logo, lime highlights and hatched rules.
  Type: a humanist serif for reading and headings, a sans for UI details.
*/

:root {
  --ink: #16213a;
  --body: #2c3854;
  --muted: #5d6a86;
  --paper: #f3f5fa;
  --surface: #ffffff;
  --periwinkle: #8fa9ec;
  --periwinkle-deep: #6f8ee0;
  --periwinkle-soft: #e7edfb;
  --indigo: #2b47a3;
  --cyan: #00aeef;
  --lime: #d6f25a;
  --line: #d6dcec;
  --line-soft: #e6eaf4;
  --shadow: 0 18px 40px rgba(26, 42, 92, 0.12);
  --radius: 6px;
  --max-width: 1160px;
  --font-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "URW Palladio L", Georgia, serif;
  --font-sans: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", "Trebuchet MS", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--body);
  font-family: var(--font-serif);
  font-size: 100%;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-size: 1.04rem;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--indigo);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a[href^="tel:"] {
  white-space: nowrap;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.005em;
}

h2 {
  font-size: 1.55rem;
}

h3 {
  font-size: 1.2rem;
}

address {
  font-style: normal;
}

/* Small decorative hatched rule, borrowed from the original site's "////" dividers. */
.hatch {
  --hatch-color: var(--periwinkle);
  display: block;
  width: 180px;
  height: 10px;
  margin: 1.4rem 0 0;
  background: repeating-linear-gradient(-60deg, var(--hatch-color) 0 3px, transparent 3px 10px);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-sans);
  padding: 0.6rem 0.8rem;
}

.skip-link:focus {
  top: 1rem;
}

/* Header and navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  width: min(100% - 2rem, var(--max-width));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.brand img {
  /* Round seal: keep it square so the 82px header does not grow. */
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.menu-button-lines,
.menu-button-lines::before,
.menu-button-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  content: "";
}

.menu-button-lines {
  position: relative;
}

.menu-button-lines::before {
  position: absolute;
  top: -7px;
}

.menu-button-lines::after {
  position: absolute;
  top: 7px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.site-nav a {
  min-height: 82px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0 0.6rem;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 0 0 transparent;
  transition: color 0.15s ease, box-shadow 0.15s ease;
}

.site-nav a:hover {
  color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--periwinkle);
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--lime), inset 0 -4px 0 var(--indigo);
}

/* Layout primitives */

.page-main {
  min-height: 70vh;
}

.section {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: 4rem 0;
}

.section-narrow {
  width: min(100% - 2rem, 900px);
}

/* Section kicker: italic serif with the logo's cyan stamp diamond. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.9rem;
  color: var(--indigo);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.3;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  background: var(--cyan);
  transform: rotate(45deg);
}

.page-title,
.hero-title {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.3rem, 4.6vw, 4.2rem);
  line-height: 1.04;
}

.page-title {
  font-size: clamp(2.1rem, 3.6vw, 3.3rem);
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.5vw, 1.28rem);
  line-height: 1.55;
  margin: 1.25rem 0 0;
}

/* Home hero on the cornflower blue band */

.hero {
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(255, 255, 255, 0.28), transparent 60%),
    linear-gradient(135deg, #a5b9f0 0%, var(--periwinkle) 55%, var(--periwinkle-deep) 100%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: 3.75rem 0 4.25rem;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 3.5rem;
  align-items: center;
}

.hero .eyebrow {
  color: var(--ink);
}

.hero .eyebrow::before {
  background: var(--lime);
}

.hero-title {
  color: var(--ink);
}

.hero .lead {
  color: rgba(22, 33, 58, 0.82);
}

.hero .hatch {
  --hatch-color: var(--lime);
}

.hero-copy {
  display: grid;
  gap: 1.5rem;
}

.hero-copy .lead {
  margin-top: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.65rem 1.15rem;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--ink);
  color: #fff;
}

.button-primary:hover {
  background: var(--indigo);
}

.button-secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--indigo);
  color: var(--indigo);
}

.hero .button-secondary {
  border-color: rgba(255, 255, 255, 0.6);
}

/* Perforated stamp frame for the hero collage. */
.stamp-frame {
  position: relative;
  margin: 0;
  padding: 11px;
}

.stamp-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--surface);
  -webkit-mask: radial-gradient(circle 4px, transparent 97%, #000 100%) -7.5px -7.5px / 15px 15px round;
  mask: radial-gradient(circle 4px, transparent 97%, #000 100%) -7.5px -7.5px / 15px 15px round;
  filter: drop-shadow(0 18px 30px rgba(26, 42, 92, 0.22));
}

.hero-media {
  position: relative;
}

.hero-media img,
.hero-media-caption {
  position: relative;
  z-index: 1;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* Square ZEF stamp logo in the hero: the artwork already has perforated edges. */
.hero-logo {
  margin: 0;
  padding: 0 clamp(0.5rem, 4vw, 2.5rem);
}

.hero-logo img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(26, 42, 92, 0.22));
}

.hero-media-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--surface);
  padding: 0.8rem 0.6rem 0.4rem;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.86rem;
}

.hero-media-caption strong {
  flex: none;
  color: var(--ink);
  white-space: nowrap;
}

/* Meta strip below hero */

.meta-strip {
  width: min(100% - 2rem, var(--max-width));
  margin: -2rem auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(26, 42, 92, 0.08);
}

.meta-item {
  padding: 1.15rem 1.35rem;
}

.meta-item + .meta-item {
  border-left: 1px solid var(--line);
}

.meta-label {
  color: var(--muted);
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
}

.meta-value {
  display: block;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.45;
  margin-top: 0.25rem;
}

.meta-value a {
  color: var(--indigo);
}

/* Grids and cards */

.grid {
  display: grid;
  gap: 1.1rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-start {
  align-items: start;
}

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.5rem 1.5rem 1.4rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: var(--periwinkle);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card h2,
.card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.35rem;
}

.card p {
  color: var(--muted);
  margin: 0;
}

.card p + p {
  margin-top: 0.5rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.1rem;
  color: var(--indigo);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.card-link::after {
  content: "\2192";
  transition: transform 0.15s ease;
}

.card-link:hover::after {
  transform: translateX(3px);
}

/* Section heading row with a trailing link */

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.section-heading .card-link {
  margin-top: 0;
}

/* Numbered steps (home page) */

.section-steps {
  padding-top: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  counter-increment: step;
  border-top: 2px solid var(--periwinkle);
  padding-top: 1.1rem;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.4rem;
  color: var(--indigo);
  font-size: 1.15rem;
  font-style: italic;
}

.step h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.step p {
  margin: 0;
  color: var(--body);
}

.steps + p {
  margin: 2rem 0 0;
}

/* Subpage hero */

.page-hero {
  background:
    linear-gradient(90deg, var(--periwinkle-soft), rgba(231, 237, 251, 0.35)),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.page-hero .section {
  padding: 3.25rem 0 3rem;
}

.page-hero .button {
  margin-top: 0.5rem;
}

/* Content panels */

.content-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(1.4rem, 3vw, 2.25rem);
}

.content-panel + .content-panel,
.content-panel + .grid {
  margin-top: 1.1rem;
}

.content-panel h2 {
  margin: 0 0 1rem;
}

.content-panel h3 {
  margin: 1.5rem 0 0.5rem;
}

.content-panel p,
.content-panel li {
  color: var(--body);
}

.content-panel p {
  margin: 0 0 1rem;
}

.content-panel p:last-child {
  margin-bottom: 0;
}

.content-panel .grid {
  margin-top: 1.5rem;
}

.content-panel .grid h3 {
  margin-top: 0;
}

/* Compact fact grid (fees on the rules page) */

.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.fact {
  background: var(--surface);
  padding: 1rem 1.25rem;
}

.fact-label {
  display: block;
  color: var(--indigo);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.fact-value {
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.45;
}

/* Numbered rules with serif numerals */

.ordered-rules {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rule;
}

.ordered-rules li {
  position: relative;
  counter-increment: rule;
  padding-left: 2.2rem;
}

.ordered-rules li::before {
  content: counter(rule);
  position: absolute;
  left: 0;
  top: -0.05em;
  color: var(--indigo);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.5;
}

/* Expertise groups and tables */

.expertise-list {
  display: grid;
  gap: 1.5rem;
}

.expertise-group {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.expertise-group:first-child {
  border-top: 0;
  padding-top: 0;
}

.expertise-group h2 {
  margin: 0 0 0.75rem;
  color: var(--indigo);
  font-size: 1.4rem;
}

.expertise-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.expertise-table th,
.expertise-table td {
  border-bottom: 1px solid var(--line-soft);
  padding: 0.7rem 0.5rem;
  text-align: left;
  vertical-align: top;
}

.expertise-table th {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
}

.expertise-table td:first-child,
.expertise-table th:first-child {
  padding-left: 0;
}

.expertise-table td:last-child,
.expertise-table th:last-child {
  width: 26%;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding-right: 0;
}

.expertise-table th:last-child {
  color: var(--muted);
  font-size: 0.8rem;
}

/* Experts */

.expert-card {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.expert-card img {
  width: 116px;
  height: 116px;
  border: 1px solid var(--line);
  border-radius: 4px;
  object-fit: cover;
  padding: 3px;
  background: var(--surface);
}

/* Placeholder for experts without a portrait: initials on a periwinkle tile. */
.expert-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 116px;
  height: 116px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--periwinkle-soft);
  color: var(--indigo);
  font-size: 1.9rem;
  font-style: italic;
  letter-spacing: 0.04em;
}

.expert-card h2 {
  margin-bottom: 0.4rem;
}

.expert-card p {
  font-size: 0.95rem;
}

.expert-card .expert-scope {
  color: var(--body);
}

.expert-card .expert-note {
  color: var(--muted);
  font-size: 0.86rem;
}

.contact-list {
  display: grid;
  gap: 0.3rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--body);
}

.card .contact-list + .button {
  margin-top: 1.4rem;
}

/* Articles */

.article-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 1.5rem;
}

.article-toolbar .notice {
  flex: 1 1 320px;
  margin: 0;
}

.article-toolbar label {
  display: grid;
  flex: 0 0 340px;
  max-width: 100%;
  gap: 0.35rem;
}

.article-count {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.82rem;
}

.article-toolbar .eyebrow {
  margin: 0;
  font-size: 0.98rem;
}

.article-search {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.65rem 0.85rem;
}

.article-search:focus {
  border-color: var(--indigo);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.article-grid > .notice {
  grid-column: 1 / -1;
}

.article-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.article-card:hover {
  border-color: var(--periwinkle);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.article-card img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-bottom: 1px solid var(--line-soft);
}

/* Entries without a thumbnail get a flat "stamp" tile with the article type. */
.article-thumb-placeholder {
  display: flex;
  align-items: flex-end;
  aspect-ratio: 5 / 2;
  padding: 1rem 1.25rem;
  background:
    repeating-linear-gradient(-60deg, rgba(143, 169, 236, 0.35) 0 3px, transparent 3px 12px) right bottom / 160px 14px no-repeat,
    var(--periwinkle-soft);
  border-bottom: 1px solid var(--line-soft);
  color: var(--indigo);
  font-style: italic;
  font-size: 1.1rem;
}

.article-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.15rem 1.25rem 1.25rem;
}

.article-meta {
  color: var(--indigo);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
}

.article-body h2 {
  margin: 0.45rem 0 0.5rem;
  font-size: 1.22rem;
  line-height: 1.3;
}

.article-body p {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0 0 1.1rem;
}

.article-body .button {
  margin-top: auto;
  align-self: flex-start;
}

.notice {
  border-left: 4px solid var(--lime);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--periwinkle-soft);
  color: var(--body);
  padding: 1rem 1.15rem;
}

.section > .notice {
  margin: 1.1rem 0 0;
}

/* Footer */

.site-footer {
  border-top: 3px solid var(--lime);
  background: var(--periwinkle-soft);
}

.footer-inner {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: 1.75rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.88rem;
}

.footer-note {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  max-width: 640px;
  margin: 0;
  line-height: 1.5;
}

/* The flag PNG has a wide white margin; crop it down to the flag itself. */
.footer-flag {
  position: relative;
  flex: none;
  width: 28px;
  height: 20px;
  margin-top: 0.15rem;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 0 0 1px var(--line);
}

.footer-flag img {
  position: absolute;
  left: -8px;
  top: -12px;
  width: 44px;
  height: 44px;
  max-width: none;
}

.footer-note a {
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--indigo);
  text-decoration: underline;
}

/* Responsive */

@media (max-width: 1080px) {
  .site-nav a {
    font-size: 0.8rem;
    padding-inline: 0.4rem;
  }
}

/* Header collapses to the hamburger menu */
@media (max-width: 1000px) {
  .header-inner {
    min-height: 70px;
  }

  .brand img {
    width: 54px;
    height: 54px;
  }

  .menu-button {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);
    display: none;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100vh - 100% - 1.5rem);
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 0.45rem;
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav a {
    justify-content: space-between;
    width: 100%;
    min-height: 46px;
    border-radius: 4px;
    font-size: 0.95rem;
    padding: 0 0.85rem;
  }

  .site-nav a:hover {
    box-shadow: none;
    background: var(--periwinkle-soft);
  }

  .site-nav a[aria-current="page"] {
    box-shadow: inset 3px 0 0 var(--lime), inset 4px 0 0 var(--indigo);
    background: var(--periwinkle-soft);
  }
}

/* Single-column layouts */
@media (max-width: 900px) {
  .hero-inner,
  .grid-2,
  .grid-3,
  .steps,
  .fact-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    gap: 2.5rem;
  }

  .hero-logo {
    width: min(100%, 420px);
    margin: 0 auto;
    padding: 0;
  }

  .meta-strip {
    grid-template-columns: 1fr;
  }

  .meta-item + .meta-item {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  body {
    font-size: 1rem;
  }

  .section {
    padding: 2.75rem 0;
  }

  .hero-inner {
    padding: 2.25rem 0 3.5rem;
  }

  .hero-actions,
  .article-toolbar,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .article-toolbar label {
    flex-basis: auto;
  }

  .button {
    width: 100%;
  }

  .article-body .button {
    align-self: stretch;
  }

  .expert-card {
    grid-template-columns: 1fr;
  }

  .expertise-table,
  .expertise-table tbody,
  .expertise-table tr,
  .expertise-table th,
  .expertise-table td {
    display: block;
    width: 100%;
  }

  .expertise-table thead {
    display: none;
  }

  .expertise-table tr {
    border-bottom: 1px solid var(--line-soft);
    padding: 0.55rem 0;
  }

  .expertise-table tr:last-child {
    border-bottom: 0;
  }

  .expertise-table td {
    border: 0;
    padding: 0.1rem 0;
  }

  .expertise-table td:last-child {
    width: auto;
    color: var(--indigo);
  }

  /* The header row is hidden on phones, so label the expert cell inline. */
  .expertise-table td:last-child::before {
    content: "Ekspert: ";
    color: var(--muted);
    font-weight: 400;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .card,
  .article-card,
  .card-link::after {
    transition: none;
  }

  .button:hover,
  .card:hover,
  .article-card:hover {
    transform: none;
  }
}
