.cdb-header { position: relative; z-index: 20; margin: 0; background: #fff; color: #24211f; border-bottom: 1px solid #eee9e4; }
.cdb-header__inner {
  width: min(79rem, calc(100% - 2 * clamp(1rem, 5vw, 4rem)));
  margin-inline: auto;
  padding-block: 1.05rem;
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
  gap: 1rem 1.75rem;
  align-items: center;
}
.cdb-header a { color: inherit; text-decoration: none; }
.cdb-header a:hover, .cdb-header summary:hover { text-decoration: underline; text-underline-offset: .25em; }
.cdb-header__brand { font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.1; font-weight: 650; letter-spacing: -.035em; }
.cdb-header__nav, .cdb-header__tools, .cdb-header__languages { display: flex; align-items: center; gap: clamp(.65rem, 1.45vw, 1.35rem); }
.cdb-header__nav { justify-content: center; font-size: .95rem; }
.cdb-header__tools { justify-content: flex-end; font-size: .85rem; }
.cdb-header__nav [aria-current="page"] { text-decoration: underline; text-underline-offset: .35em; }
.cdb-header__languages { gap: .55rem; padding-inline-start: .65rem; border-inline-start: 1px solid #dcd4cd; }
.cdb-header__languages [aria-current="page"] { font-weight: 700; }
.cdb-header__search { position: relative; }
.cdb-header__search summary { display: block; cursor: pointer; list-style: none; }
.cdb-header__search summary::-webkit-details-marker { display: none; }
.cdb-header__search form { position: absolute; z-index: 1; inset-block-start: calc(100% + .8rem); inset-inline-end: 0; display: flex; gap: .5rem; width: min(20rem, 72vw); padding: .65rem; background: #fff; border: 1px solid #dcd4cd; border-radius: .4rem; box-shadow: 0 8px 20px #25180716; }
.cdb-header__search input[type="search"] { flex: 1; min-width: 0; padding: .4rem .55rem; font: inherit; }
.cdb-header__search button { font: inherit; cursor: pointer; }
@media (max-width: 980px) {
  .cdb-header__inner { grid-template-columns: 1fr auto; }
  .cdb-header__nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; flex-wrap: wrap; }
  .cdb-header__tools { grid-column: 2; grid-row: 1; flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .cdb-header__inner { grid-template-columns: 1fr; gap: .8rem; }
  .cdb-header__nav, .cdb-header__tools { grid-column: 1; grid-row: auto; justify-content: flex-start; }
  .cdb-header__search form { inset-inline: 0 auto; box-sizing: border-box; }
}
body:has(.cdb-header__languages) .trp-floating-switcher { display: none; }

.cdb-about, .cdb-magazine {
  --cdb-page-title-size: clamp(2.25rem, 4.8vw, 4.3rem);
  --cdb-page-title-line: 1.08;
  --cdb-section-title-size: clamp(1.7rem, 3.2vw, 2.85rem);
  --cdb-editorial-body-size: 1rem;
  --cdb-editorial-body-line: 1.6;
}

.cdb-footer { margin: 0; border-top: 1px solid #e8dfd4; color: #2e2822; background: #faf8f5; }
.cdb-footer__inner { width: min(76rem, calc(100% - 2 * clamp(1rem, 5vw, 4rem))); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem; padding-block: clamp(2rem, 4vw, 3.5rem); }
.cdb-footer__identity { display: flex; flex-direction: column; gap: .75rem; align-items: flex-start; }
.cdb-footer a { color: inherit; text-decoration: none; }
.cdb-footer a:hover { text-decoration: underline; text-underline-offset: .23em; }
.cdb-footer__brand { font-size: clamp(1.35rem, 2.2vw, 1.8rem); font-weight: 650; line-height: 1.1; letter-spacing: -.035em; }
.cdb-footer__copyright { color: #665c54; font-size: .82rem; }
.cdb-footer__group h2 { margin: 0 0 .65rem; font-size: .95rem; font-weight: 650; }
.cdb-footer__group ul { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; font-size: .9rem; }
.cdb-footer__group li { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .cdb-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
