/*
Theme Name: Couchmoment Magazin
Theme URI: https://couchmoment.de/
Author: Couchmoment
Description: Eigenständiges, leichtes Magazin-Theme für Couchmoment. Gutenberg-fähig und optional mit Elementor nutzbar.
Version: 1.0.3
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: couchmoment-magazin
*/

:root {
  --cm-orange: #f4511e;
  --cm-orange-dark: #d83b0b;
  --cm-ink: #17191f;
  --cm-muted: #666b75;
  --cm-line: #e5e7eb;
  --cm-surface: #ffffff;
  --cm-background: #f4f5f7;
  --cm-radius: 14px;
  --cm-shadow: 0 12px 32px rgba(23, 25, 31, 0.08);
  --cm-container: 1240px;
  --cm-reading: 800px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--cm-ink);
  background: var(--cm-background);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body.admin-bar .site-header {
  top: 32px;
}

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

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

a:hover,
a:focus {
  color: var(--cm-orange);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
input[type="submit"] {
  cursor: pointer;
}

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

.screen-reader-text:focus {
  z-index: 100000;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto !important;
  color: var(--cm-ink);
  background: #fff;
  border-radius: 6px;
}

.cm-container {
  width: min(calc(100% - 40px), var(--cm-container));
  margin-inline: auto;
}

.site-main {
  min-height: 55vh;
}

/* Header */
.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--cm-line);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr) 46px;
  align-items: center;
  min-height: 82px;
  gap: 22px;
}

.site-branding {
  min-width: 0;
}

.custom-logo-link,
.cm-default-logo {
  display: block;
  width: 225px;
  max-width: 100%;
}

.custom-logo {
  width: auto;
  max-width: 225px;
  max-height: 68px;
  object-fit: contain;
}

/* The supplied logo is intentionally kept unchanged. This frame only crops its white canvas. */
.cm-default-logo {
  position: relative;
  height: 70px;
  overflow: hidden;
}

.cm-default-logo img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 260px;
  max-width: none;
  height: 260px;
  transform: translate(-50%, -50%);
}

.primary-navigation {
  min-width: 0;
}

.primary-navigation ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-navigation li {
  position: relative;
}

.primary-navigation a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 10px;
  color: var(--cm-ink);
  font-size: 0.79rem;
  font-weight: 750;
  letter-spacing: 0.035em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.primary-navigation > div > ul > li.current-menu-item > a,
.primary-navigation > div > ul > li.current-menu-ancestor > a,
.primary-navigation a:hover,
.primary-navigation a:focus-visible {
  color: var(--cm-orange-dark);
}

.primary-navigation .menu-item-has-children > a::after {
  width: 7px;
  height: 7px;
  margin: -4px 0 0 7px;
  content: "";
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.primary-navigation .sub-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  display: block;
  visibility: hidden;
  width: 280px;
  padding: 10px;
  opacity: 0;
  background: #fff;
  border: 1px solid var(--cm-line);
  border-radius: 10px;
  box-shadow: var(--cm-shadow);
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.primary-navigation li:hover > .sub-menu,
.primary-navigation li:focus-within > .sub-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.primary-navigation .sub-menu a {
  min-height: 38px;
  padding: 9px 10px;
  font-size: 0.76rem;
  white-space: normal;
  border-radius: 6px;
}

.primary-navigation .sub-menu a:hover,
.primary-navigation .sub-menu a:focus-visible {
  background: #fff4ef;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
}

.cm-icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--cm-ink);
  background: transparent;
  border: 0;
  border-radius: 50%;
  place-items: center;
}

.cm-icon-button:hover,
.cm-icon-button:focus-visible {
  color: #fff;
  background: var(--cm-orange);
}

.cm-icon-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.menu-toggle {
  display: none;
}

.header-search {
  display: none;
  padding: 16px 0;
  background: #fff;
  border-top: 1px solid var(--cm-line);
}

.header-search.is-open {
  display: block;
}

.search-form {
  display: flex;
  width: 100%;
  gap: 8px;
}

.search-form label {
  flex: 1;
}

.search-field {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  color: var(--cm-ink);
  background: #fff;
  border: 1px solid #cfd3da;
  border-radius: 8px;
}

.search-submit,
.cm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  color: #fff;
  background: var(--cm-orange);
  border: 0;
  border-radius: 8px;
  font-weight: 750;
  text-decoration: none;
}

.search-submit:hover,
.search-submit:focus-visible,
.cm-button:hover,
.cm-button:focus-visible {
  color: #fff;
  background: var(--cm-orange-dark);
}

/* General sections */
.cm-section {
  padding: 54px 0;
}

.cm-section--white {
  background: #fff;
}

.cm-section__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.cm-section__heading h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
  line-height: 1.15;
}

.cm-section__heading a {
  flex: none;
  font-size: 0.9rem;
  font-weight: 750;
}

.cm-kicker,
.cm-category {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  color: var(--cm-orange-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.25;
  text-decoration: none;
  text-transform: uppercase;
}

/* Hero */
.cm-hero {
  padding: 32px 0 26px;
  background: #101217;
}

.cm-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(350px, 1fr);
  min-height: 590px;
  gap: 16px;
}

.cm-hero-main,
.cm-hero-small {
  position: relative;
  min-width: 0;
  overflow: hidden;
  color: #fff;
  background: #242730;
  border-radius: var(--cm-radius);
}

.cm-hero-main > a,
.cm-hero-small > a {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.cm-hero-main img,
.cm-hero-small img,
.cm-hero-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cm-hero-placeholder {
  background: linear-gradient(135deg, #2d313d, #17191f);
}

.cm-hero-main::after,
.cm-hero-small::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(180deg, rgba(10, 11, 14, 0.05) 15%, rgba(10, 11, 14, 0.92) 100%);
}

.cm-hero-content {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 30px;
}

.cm-hero-content h1,
.cm-hero-content h2 {
  margin: 0;
  color: #fff;
  line-height: 1.13;
}

.cm-hero-main h1 {
  max-width: 850px;
  font-size: clamp(2rem, 3.4vw, 3.35rem);
}

.cm-hero-content .cm-category {
  color: #fff;
  background: var(--cm-orange);
  padding: 5px 9px;
  border-radius: 5px;
}

.cm-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
}

.cm-hero-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cm-hero-small .cm-hero-content {
  padding: 18px;
}

.cm-hero-small h2 {
  display: -webkit-box;
  overflow: hidden;
  font-size: clamp(1rem, 1.35vw, 1.24rem);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.cm-hero-small .cm-hero-meta {
  display: none;
}

/* Cards and grids */
.cm-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.cm-card {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  background: var(--cm-surface);
  border: 1px solid var(--cm-line);
  border-radius: var(--cm-radius);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.cm-card:hover,
.cm-card:focus-within {
  box-shadow: var(--cm-shadow);
  transform: translateY(-3px);
}

.cm-card__image {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #e4e7ec;
}

.cm-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.cm-card:hover .cm-card__image img {
  transform: scale(1.025);
}

.cm-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e6e8ec, #cfd3da);
}

.cm-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.cm-card__title {
  margin: 0;
  font-size: clamp(1.15rem, 1.65vw, 1.38rem);
  line-height: 1.28;
}

.cm-card__title a {
  color: var(--cm-ink);
  text-decoration: none;
}

.cm-card__title a::after {
  position: absolute;
  inset: 0;
  content: "";
}

.cm-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 12px 0 0;
  color: var(--cm-muted);
  font-size: 0.93rem;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.cm-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: auto;
  padding-top: 16px;
  color: var(--cm-muted);
  font-size: 0.78rem;
}

.cm-feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.cm-feature-row .cm-card:first-child .cm-card__title {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

/* Streaming guide */
.cm-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cm-guide-card {
  position: relative;
  display: grid;
  min-height: 160px;
  overflow: hidden;
  padding: 22px;
  color: #fff;
  background: #1c1f27;
  border-radius: var(--cm-radius);
  place-items: end start;
  text-decoration: none;
}

.cm-guide-card::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(180deg, rgba(15, 16, 20, 0.04), rgba(15, 16, 20, 0.88));
}

.cm-guide-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cm-guide-card span {
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.25;
}

.cm-guide-card:hover,
.cm-guide-card:focus-visible {
  color: #fff;
  box-shadow: var(--cm-shadow);
  transform: translateY(-2px);
}

.cm-guide-card--prime { background: linear-gradient(135deg, #00a8e1, #14213d); }
.cm-guide-card--netflix { background: linear-gradient(135deg, #e50914, #190305); }
.cm-guide-card--disney { background: linear-gradient(135deg, #1533a1, #07143f); }
.cm-guide-card--paramount { background: linear-gradient(135deg, #1769ff, #092a6d); }
.cm-guide-card--sky { background: linear-gradient(135deg, #ff5a2a, #4c1689); }
.cm-guide-card--rtl { background: linear-gradient(135deg, #f0248d, #6723d6); }
.cm-guide-card--apple { background: linear-gradient(135deg, #5b5d64, #101114); }
.cm-guide-card--hbo { background: linear-gradient(135deg, #6d39bf, #191027); }
.cm-guide-card--magenta { background: linear-gradient(135deg, #e20074, #4a0026); }

/* Archives */
.cm-page-header {
  padding: 38px 0;
  background: #fff;
  border-bottom: 1px solid var(--cm-line);
}

.cm-page-header h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
}

.cm-page-header p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--cm-muted);
}

.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.page-numbers {
  display: grid;
  min-width: 42px;
  min-height: 42px;
  padding: 6px 11px;
  color: var(--cm-ink);
  background: #fff;
  border: 1px solid var(--cm-line);
  border-radius: 8px;
  place-items: center;
  text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover,
.page-numbers:focus-visible {
  color: #fff;
  background: var(--cm-orange);
  border-color: var(--cm-orange);
}

/* Single article */
.cm-breadcrumbs {
  padding: 14px 0;
  color: var(--cm-muted);
  font-size: 0.83rem;
}

.cm-breadcrumbs a {
  color: var(--cm-muted);
}

.cm-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 34px;
  padding-bottom: 60px;
}

.cm-article-layout--no-sidebar {
  display: block;
}

.cm-article {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--cm-line);
  border-radius: var(--cm-radius);
}

.cm-article-layout--no-sidebar .cm-article {
  max-width: 940px;
  margin-inline: auto;
}

.cm-article__header,
.cm-article__content,
.cm-article__footer {
  width: min(calc(100% - 64px), var(--cm-reading));
  margin-inline: auto;
}

.cm-article__header {
  padding: 54px 0 30px;
}

.cm-article__title {
  margin: 0;
  font-size: clamp(2.05rem, 4.7vw, 3.65rem);
  letter-spacing: -0.035em;
  line-height: 1.07;
}

.cm-article__lead {
  margin: 22px 0 0;
  color: #454a54;
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  font-weight: 500;
  line-height: 1.65;
}

.cm-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
  margin-top: 20px;
  color: var(--cm-muted);
  font-size: 0.82rem;
}

.cm-article__featured {
  margin: 0;
  background: #e4e7ec;
}

.cm-article__featured img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.cm-article__featured figcaption {
  padding: 8px 16px;
  color: var(--cm-muted);
  font-size: 0.76rem;
  text-align: right;
}

.cm-article__content {
  padding: 42px 0 48px;
}

.cm-article__content > :first-child {
  margin-top: 0;
}

.cm-article__content h2,
.cm-article__content h3,
.cm-article__content h4 {
  margin: 1.65em 0 0.55em;
  line-height: 1.22;
}

.cm-article__content h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
}

.cm-article__content h3 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}

.cm-article__content p,
.cm-article__content ul,
.cm-article__content ol,
.cm-article__content blockquote {
  margin-top: 0;
  margin-bottom: 1.25em;
}

.cm-article__content blockquote {
  padding: 16px 0 16px 22px;
  color: #3f444d;
  border-left: 4px solid var(--cm-orange);
}

.cm-article__content .alignwide {
  width: min(1040px, calc(100vw - 48px));
  max-width: none;
  margin-right: 50%;
  margin-left: 50%;
  transform: translateX(-50%);
}

.cm-article__content .alignfull {
  width: 100vw;
  max-width: none;
  margin-right: 50%;
  margin-left: 50%;
  transform: translateX(-50%);
}

.cm-article__content iframe {
  max-width: 100%;
}

/* Keep legacy WordPress images and captions inside the reading column. */
.cm-article__content .wp-caption,
.cm-article__content .wp-block-image,
.cm-article__content figure {
  max-width: 100%;
}

.cm-article__content .wp-caption {
  width: auto !important;
}

.cm-article__content img {
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.cm-article__content .aligncenter {
  margin-right: auto;
  margin-left: auto;
}

.cm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 42px;
}

.cm-tags a {
  padding: 5px 10px;
  color: var(--cm-muted);
  background: var(--cm-background);
  border-radius: 6px;
  font-size: 0.78rem;
  text-decoration: none;
}

.cm-sidebar {
  position: sticky;
  top: 104px;
}

.cm-widget {
  padding: 22px;
  margin-bottom: 18px;
  background: #fff;
  border: 1px solid var(--cm-line);
  border-radius: var(--cm-radius);
}

.cm-widget__title,
.cm-widget .widget-title {
  margin: 0 0 14px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.cm-widget ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.cm-widget li + li {
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid var(--cm-line);
}

.cm-widget a {
  color: var(--cm-ink);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

/* Keep long category and archive dropdown labels inside the sidebar card. */
.cm-widget select {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 9px 36px 9px 11px;
  color: var(--cm-ink);
  background-color: #fff;
  border: 1px solid var(--cm-line);
  border-radius: 7px;
}

.cm-related {
  padding: 52px 0 60px;
  border-top: 1px solid var(--cm-line);
}

/* Pages and Elementor */
.cm-page-content {
  padding: 44px 0 64px;
}

.cm-page-shell {
  padding: 46px;
  background: #fff;
  border: 1px solid var(--cm-line);
  border-radius: var(--cm-radius);
}

.cm-page-shell > h1 {
  margin-top: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
}

.page-template-template-full-width .cm-page-shell,
.cm-elementor-page .cm-page-shell {
  width: 100%;
  max-width: none;
  padding: 0;
  background: transparent;
  border: 0;
}

.elementor-page .site-main,
.elementor-page .cm-page-content {
  overflow: visible;
}

.elementor-page .cm-page-content {
  padding-top: 0;
  padding-bottom: 0;
}

.cm-empty-state {
  padding: 58px 30px;
  background: #fff;
  border-radius: var(--cm-radius);
  text-align: center;
}

/* Footer */
.site-footer {
  color: #d9dce2;
  background: #111318;
}

.site-footer__main {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(2, minmax(160px, 1fr));
  gap: 50px;
  padding: 54px 0;
}

.site-footer__brand {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1rem;
}

.site-footer p {
  max-width: 440px;
  margin: 0;
  color: #aeb3bd;
  font-size: 0.9rem;
}

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

.site-footer li + li {
  margin-top: 7px;
}

.site-footer a {
  color: #d9dce2;
  font-size: 0.88rem;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--cm-orange);
}

.site-footer__bottom {
  padding: 18px 0;
  color: #8f949e;
  border-top: 1px solid #292c34;
  font-size: 0.78rem;
}

/* Responsive */
@media (max-width: 1180px) {
  .site-header__inner {
    grid-template-columns: 225px minmax(0, 1fr) auto;
  }

  .menu-toggle {
    display: grid;
  }

  .primary-navigation {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - 82px);
    overflow-y: auto;
    padding: 12px 20px 24px;
    background: #fff;
    border-top: 1px solid var(--cm-line);
    box-shadow: var(--cm-shadow);
  }

  .primary-navigation.is-open {
    display: block;
  }

  .primary-navigation ul {
    display: block;
  }

  .primary-navigation a {
    justify-content: space-between;
    padding: 12px 10px;
    white-space: normal;
  }

  .primary-navigation .sub-menu {
    position: static;
    display: block;
    visibility: visible;
    width: auto;
    padding: 0 0 0 14px;
    opacity: 1;
    border: 0;
    box-shadow: none;
    transform: none;
  }
}

@media (max-width: 920px) {
  .cm-hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .cm-hero-main {
    min-height: 500px;
  }

  .cm-hero-side {
    min-height: 500px;
  }

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

  .cm-feature-row {
    grid-template-columns: 1fr 1fr;
  }

  .cm-feature-row .cm-card:first-child {
    grid-column: 1 / -1;
  }

  .cm-article-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .cm-sidebar {
    position: static;
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .cm-container {
    width: min(calc(100% - 28px), var(--cm-container));
  }

  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 72px;
    gap: 8px;
  }

  .site-branding {
    max-width: 195px;
  }

  .cm-default-logo {
    width: 195px;
    height: 62px;
  }

  .cm-default-logo img {
    width: 225px;
    height: 225px;
  }

  .custom-logo {
    max-width: 195px;
    max-height: 58px;
  }

  .header-actions {
    gap: 0;
  }

  .primary-navigation {
    max-height: calc(100vh - 72px);
  }

  .cm-hero {
    padding-top: 16px;
  }

  .cm-hero-main {
    min-height: 420px;
  }

  .cm-hero-side {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    min-height: auto;
  }

  .cm-hero-small {
    min-height: 235px;
  }

  .cm-hero-content,
  .cm-hero-small .cm-hero-content {
    padding: 20px;
  }

  .cm-card-grid,
  .cm-guide-grid,
  .cm-feature-row {
    grid-template-columns: 1fr;
  }

  .cm-feature-row .cm-card:first-child {
    grid-column: auto;
  }

  .cm-section {
    padding: 40px 0;
  }

  .cm-section__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .cm-article__header,
  .cm-article__content,
  .cm-article__footer {
    width: min(calc(100% - 36px), var(--cm-reading));
  }

  .cm-article__header {
    padding-top: 34px;
  }

  .cm-article__content {
    padding-top: 30px;
  }

  .cm-page-shell {
    padding: 28px 20px;
  }

  .site-footer__main {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 42px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
