/* CONTENT 01 — material encyclopedia: homepage slider, /materialy overview and the 14 detail pages.
   Values mirror the approved live CDE (Utulno Eshop.dc.html, screens „Materiály — přehled“ and „Materiál — detail“,
   homepage section „Materiály srozumitelně“); see docs/CONTENT_01_MATERIALS.md. */

/* Shared text link and photo slots */
.ut-mat-link { color: var(--ut-color-clay); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s ease; }
.ut-mat-link:hover { color: var(--ut-color-ink); }
.ut-mat-slot__img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Keep intrinsic image dimensions from expanding the approved aspect-ratio boxes. */
.ut-mat-card__media > .ut-mat-slot__img, .ut-mat-slot > .ut-mat-slot__img { position: absolute; inset: 0; }
/* Prepared empty CDE slot: same box and sand background as the CDE image slot, no visible placeholder copy. */
.ut-mat-slot__empty { display: block; width: 100%; height: 100%; background: var(--ut-color-sand); }

/* Homepage slider („Materiály srozumitelně“) */
.ut-mat-slider { position: relative; }
.ut-mat-slider__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; }
.ut-mat-slider__copy { flex: 1 1 420px; min-width: 0; }
.ut-hp .ut-mat-slider__copy h2 { margin: 0 0 6px; }
.ut-mat-slider__intro { max-width: 64ch; margin: 0; color: #7b7064; font-size: 16px; line-height: 1.6; text-wrap: pretty; }
.ut-mat-slider__controls { display: flex; flex: none; gap: 10px; }
.ut-mat-slider__arrow { display: grid; width: 46px; height: 46px; place-items: center; padding: 0; border: 1px solid #d9ccba; border-radius: 999px; background: #fffcf7; cursor: pointer; transition: opacity .2s ease, background .2s ease; }
.ut-mat-slider__arrow[aria-disabled="true"] { cursor: default; opacity: .38; }
.ut-mat-slider__arrow svg { display: block; }
.no-js .ut-mat-slider__controls { display: none; }
/* Card count per viewport: ≥1280 px 4 (CDE default), 1100–1279 px 3, 640–1099 px 2, <640 px 1 + 12 % of the next card. */
.ut-mat-slider__track { --ut-mat-gap: 20px; display: flex; gap: var(--ut-mat-gap); margin: -8px -6px; padding: 8px 6px 14px; overflow-x: auto; list-style: none; overscroll-behavior-x: contain; scroll-behavior: smooth; scroll-padding-left: 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ut-mat-slider__track::-webkit-scrollbar { display: none; }
.ut-mat-slider__item { display: flex; flex: 0 0 calc((100% - (3 * var(--ut-mat-gap))) / 4); min-width: 0; scroll-snap-align: start; }
@media (max-width: 79.9375rem) { .ut-mat-slider__item { flex-basis: calc((100% - (2 * var(--ut-mat-gap))) / 3); } }
@media (max-width: 68.6875rem) { .ut-mat-slider__item { flex-basis: calc((100% - var(--ut-mat-gap)) / 2); } }
@media (max-width: 39.9375rem) { .ut-mat-slider__track { --ut-mat-gap: 16px; } .ut-mat-slider__item { flex-basis: calc((100% - var(--ut-mat-gap)) / 1.12); } }
.ut-mat-slide { display: flex; width: 100%; flex-direction: column; overflow: hidden; border: 1px solid var(--ut-color-line); border-radius: 10px; background: var(--ut-color-surface); color: inherit; text-decoration: none; transition: box-shadow .3s ease, transform .3s ease; }
.ut-mat-slide:hover { box-shadow: 0 14px 30px rgb(60 45 30 / 8%); color: inherit; transform: translateY(-3px); }
.ut-mat-slide__media { display: block; height: 190px; background: var(--ut-color-sand); }
.ut-mat-slide__body { display: flex; flex: 1 1 auto; flex-direction: column; align-items: flex-start; padding: 20px 22px 24px; }
.ut-hp .ut-mat-slide h3, .ut-mat-slide h3 { margin: 0; color: var(--ut-color-ink); font-family: var(--ut-font-display); font-size: 25px; font-weight: var(--ut-font-weight-regular); line-height: 1.2; }
.ut-mat-slide__desc { display: block; flex: 1 1 auto; margin: 8px 0 16px; color: #7b7064; font-size: 16px; line-height: 1.55; }
.ut-mat-slide__link, .ut-mat-card__link { color: var(--ut-color-clay); font-size: 15.5px; line-height: normal; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ut-mat-slider__all { margin-top: 18px; }
.ut-mat-slider__all a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ut-color-clay); font-size: 16.5px; line-height: normal; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Page frame: the canonical .ut-container (1280 px at 1440) is the CDE 1360 px frame; the detail is a nested
   composition matching the CDE 1240 px frame (content 1160 px). */
.ut-mat { padding-top: 26px; color: var(--ut-color-ink); }
.ut-mat-detail__composition { max-width: calc(77.5rem - (var(--ut-gutter) * 2)); margin-inline: auto; }
.ut-mat h2 { margin: 0 0 18px; color: var(--ut-color-ink); font-family: var(--ut-font-display); font-size: clamp(27px, 3vw, 36px); font-weight: var(--ut-font-weight-regular); line-height: 1.2; }
.ut-mat strong { color: var(--ut-color-ink); font-weight: 600; }

/* Breadcrumbs */
.ut-mat-breadcrumbs { margin-bottom: clamp(20px, 3vw, 32px); color: #7b7064; font-size: 14.5px; line-height: normal; }
.ut-mat-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0; padding: 0; list-style: none; }
.ut-mat-breadcrumbs a { color: #7b7064; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s ease; }
.ut-mat-breadcrumbs a:hover { color: var(--ut-color-ink); }
.ut-mat-breadcrumbs [aria-current] { color: var(--ut-color-ink); }

/* Overview hero */
.ut-mat-hero { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 84px) clamp(22px, 5vw, 76px); border-radius: 16px; background: var(--ut-color-sand); }
.ut-mat-hero__mark { position: absolute; right: clamp(-60px, -3vw, -10px); bottom: clamp(-60px, -4vw, -20px); width: auto; height: clamp(160px, 26vw, 340px); opacity: .07; pointer-events: none; }
.ut-mat-hero__copy { position: relative; max-width: 780px; }
.ut-mat-hero h1 { margin: 0 0 22px; color: var(--ut-color-ink); font-size: clamp(38px, 5.4vw, 66px); line-height: 1.06; text-wrap: balance; }
.ut-mat-hero__lead, .ut-mat-detail__lead { margin: 0; color: #4a4239; font-size: clamp(17.5px, 1.6vw, 20px); line-height: 1.65; text-wrap: pretty; }
.ut-mat-hero__lead { max-width: 62ch; }
.ut-mat-quick { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.ut-mat-quick a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border: 1px solid #d9ccba; border-radius: 999px; background: #fffcf7; color: var(--ut-color-ink); font-size: 15.5px; line-height: normal; text-decoration: none; transition: background .2s ease, border-color .2s ease; }
.ut-mat-quick a:hover { border-color: #b9a794; background: var(--ut-color-canvas); color: var(--ut-color-ink); }

/* Overview sections */
.ut-mat-section { margin-top: clamp(56px, 7vw, 96px); }
.ut-mat-overview__intro { max-width: 70ch; margin: 0 0 30px; color: #4a4239; font-size: 17.5px; line-height: 1.7; text-wrap: pretty; }
.ut-mat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.ut-mat-grid > li, .ut-mat-related > li { min-width: 0; list-style: none; }
@media (max-width: 68.6875rem) { .ut-mat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 39.9375rem) { .ut-mat-grid { grid-template-columns: minmax(0, 1fr); } }
.ut-mat-card { display: flex; height: 100%; flex-direction: column; overflow: hidden; border: 1px solid var(--ut-color-line); border-radius: 10px; background: var(--ut-color-surface); color: inherit; text-decoration: none; transition: box-shadow .3s ease, transform .3s ease; }
.ut-mat-card:hover { box-shadow: 0 14px 30px rgb(60 45 30 / 8%); color: inherit; transform: translateY(-3px); }
.ut-mat-card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--ut-color-sand); }
.ut-mat-card__body { display: flex; flex: 1 1 auto; flex-direction: column; align-items: flex-start; padding: 20px 22px 24px; }
.ut-mat-card__tag { padding: 5px 11px; border: 1px solid #e3d8c9; border-radius: 999px; color: var(--ut-color-muted); font-size: 13px; line-height: 1.35; }
.ut-mat-card h3 { margin: 14px 0 8px; color: var(--ut-color-ink); font-family: var(--ut-font-display); font-size: 25px; font-weight: var(--ut-font-weight-regular); line-height: 1.2; }
.ut-mat-card__desc { display: block; flex: 1 1 auto; margin: 0 0 18px; color: #7b7064; font-size: 16px; line-height: 1.55; }
.ut-mat-card--compact .ut-mat-card__body { padding: 16px 18px 20px; }
.ut-mat-card--compact h3 { font-size: 22px; }
.ut-mat-card--compact .ut-mat-card__desc { font-size: 15.5px; }
.ut-mat-panel__text { margin: 0 0 14px; color: #4a4239; font-size: 16.5px; line-height: 1.7; text-wrap: pretty; }
.ut-mat-use { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.ut-mat-use__item { padding: clamp(22px, 2.6vw, 30px) clamp(20px, 2.6vw, 30px) 14px; border: 1px solid var(--ut-color-line); border-radius: 14px; background: var(--ut-color-surface); }
.ut-mat-use__item h3, .ut-mat-names__panel h3 { margin: 0 0 12px; color: var(--ut-color-ink); font-family: var(--ut-font-display); font-size: 24px; font-weight: var(--ut-font-weight-regular); line-height: 1.25; }
.ut-mat-names { max-width: 880px; }
.ut-mat-names__text { max-width: 70ch; margin: 0 0 24px; color: #4a4239; font-size: 17.5px; line-height: 1.7; text-wrap: pretty; }
.ut-mat-names__panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; margin-top: 28px; }
.ut-mat-names__panel { padding: clamp(22px, 3vw, 34px) clamp(20px, 3vw, 36px) clamp(10px, 1.5vw, 18px); border: 1px solid var(--ut-color-line); border-radius: 14px; background: #f4ede2; }
.ut-mat-help { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.ut-mat-help > li { min-width: 0; }
.ut-mat-help__item { display: flex; height: 100%; flex-direction: column; gap: 10px; box-sizing: border-box; padding: 22px 0 6px; border-top: 1px solid #d9ccba; color: inherit; text-decoration: none; }
.ut-mat-help__title { color: var(--ut-color-ink); font-family: var(--ut-font-display); font-size: 24px; line-height: 1.25; }
a.ut-mat-help__item .ut-mat-help__title { text-decoration: underline; text-decoration-color: #c9b8a4; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.ut-mat-help__text { color: #4a4239; font-size: 16.5px; line-height: 1.65; }
.ut-mat-section--faq { max-width: 1080px; }

/* Tables (own horizontal scroll region; the page itself never scrolls sideways) */
.ut-mat-table { overflow-x: auto; border: 1px solid var(--ut-color-line); border-radius: 12px; background: var(--ut-color-surface); -webkit-overflow-scrolling: touch; }
.ut-mat-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.ut-mat-table thead th { padding: 14px 18px; border-bottom: 1px solid var(--ut-color-line); background: #f4ede2; color: var(--ut-color-muted); font-size: 13px; font-weight: var(--ut-font-weight-medium); letter-spacing: .1em; text-align: left; text-transform: uppercase; }
.ut-mat-table tbody th, .ut-mat-table tbody td { padding: 14px 18px; border-top: 1px solid #efe6da; text-align: left; vertical-align: top; }
.ut-mat-table tbody th { color: var(--ut-color-ink); font-weight: var(--ut-font-weight-medium); }
.ut-mat-table tbody td { color: #4a4239; }
.ut-mat-table__hint { display: none; margin: 10px 0 0; color: #7b7064; font-size: 14.5px; line-height: normal; }
@media (max-width: 47.4375rem) { .ut-mat-table__hint { display: block; } }
.ut-mat-table__after { margin-top: 18px; }

/* FAQ: open H3 questions with answers, two columns (CDE) */
.ut-mat-faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 30px clamp(24px, 3vw, 44px); }
.ut-mat-faq__item { padding-top: 20px; border-top: 1px solid #d9ccba; }
.ut-mat-faq__item h3 { margin: 0 0 10px; color: var(--ut-color-ink); font-family: var(--ut-font-display); font-size: 23px; font-weight: var(--ut-font-weight-regular); line-height: 1.3; }
.ut-mat-faq__answer { margin: 0 0 10px; color: #4a4239; font-size: 16.5px; line-height: 1.7; text-wrap: pretty; }

/* Detail head */
.ut-mat-detail__head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(28px, 4vw, 64px); align-items: center; }
.ut-mat-detail__intro { min-width: 0; }
.ut-mat-detail__tag { margin: 0 0 14px; color: #7b7064; font-size: 12.5px; letter-spacing: .12em; line-height: normal; text-transform: uppercase; }
.ut-mat-detail h1 { margin: 0 0 22px; color: var(--ut-color-ink); font-size: clamp(34px, 4.4vw, 54px); line-height: 1.1; text-wrap: balance; }
.ut-mat-detail__lead { max-width: 60ch; }
.ut-mat-detail__hero { position: relative; margin: 0; overflow: hidden; border-radius: 14px; background: var(--ut-color-sand); aspect-ratio: 3 / 2; }
@media (max-width: 39.9375rem) { .ut-mat-detail__hero { aspect-ratio: 4 / 3; } }
.ut-mat-detail__caption { position: absolute; right: 0; bottom: 0; left: 0; padding: 8px 12px; background: linear-gradient(to top, rgb(44 39 34 / 60%), rgb(44 39 34 / 0%)); color: #fffcf7; font-size: 13px; line-height: 1.4; }

/* Detail layout: sticky table of contents from 1060 px (header breakpoint), collapsible block below */
.ut-mat-detail__layout { display: block; margin-top: clamp(40px, 5vw, 72px); }
.ut-mat-toc { display: none; }
@media (min-width: 66.25rem) {
  .ut-mat-detail__layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(40px, 5vw, 88px); align-items: start; }
  .ut-mat-toc { position: sticky; top: 112px; display: block; }
  .ut-mat-toc-m { display: none; }
}
.ut-mat-toc__title { margin: 0 0 14px; color: #7b7064; font-size: 12.5px; letter-spacing: .12em; line-height: normal; text-transform: uppercase; }
.ut-mat-toc ol { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.ut-mat-toc a { display: block; padding: 8px 0 8px 14px; border-left: 2px solid var(--ut-color-line); color: #7b7064; font-size: 15px; line-height: 1.4; text-decoration: none; transition: color .2s ease, border-color .2s ease; }
.ut-mat-toc a[aria-current="location"] { border-left-color: var(--ut-color-clay); color: var(--ut-color-ink); }
.ut-mat-article { min-width: 0; max-width: 720px; }
.ut-mat-toc-m { margin-bottom: 36px; border: 1px solid var(--ut-color-line); border-radius: 12px; background: var(--ut-color-surface); }
.ut-mat-toc-m__toggle { display: flex; width: 100%; min-height: 52px; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border: 0; border-radius: 12px; background: transparent; color: var(--ut-color-ink); font: inherit; font-size: 16.5px; line-height: normal; text-align: left; cursor: pointer; }
.ut-mat-toc-m__toggle svg { display: block; flex: none; transition: transform .2s ease; }
.ut-mat-toc-m__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.no-js .ut-mat-toc-m__toggle { display: none; }
.ut-mat-toc-m__list { display: flex; flex-direction: column; margin: 0; padding: 4px 18px 14px; border-top: 1px solid #efe6da; list-style: none; }
.js .ut-mat-toc-m__list:not(.is-open) { display: none; }
.ut-mat-toc-m__list a { display: flex; min-height: 44px; align-items: center; border-bottom: 1px solid #f4ede2; color: #4a4239; font-size: 16px; line-height: 1.4; text-decoration: none; }

/* Detail sections */
.ut-mat-block { margin-top: clamp(52px, 6vw, 80px); }
.ut-mat-block--definition { margin-top: 0; }
.ut-mat-text { margin: 0 0 16px; color: #4a4239; font-size: 17.5px; line-height: 1.75; text-wrap: pretty; }
.ut-mat-definition { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px 32px; align-items: start; }
.ut-mat-definition__text { min-width: 0; }
.ut-mat-definition__p { margin: 0 0 16px; color: var(--ut-color-ink); font-size: 18.5px; line-height: 1.72; text-wrap: pretty; }
.ut-mat-definition__figure { position: relative; margin: 0; overflow: hidden; border-radius: 12px; background: var(--ut-color-sand); aspect-ratio: 1 / 1; }
.ut-mat-panel { padding: clamp(22px, 3vw, 34px) clamp(20px, 3vw, 36px) clamp(10px, 1.5vw, 18px); border: 1px solid; border-radius: 14px; }
.ut-mat-panel--limits, .ut-mat-panel--care { margin-top: 20px; }
.ut-mat-panel--benefits { border-color: #dce3d6; background: #eef1ea; }
.ut-mat-panel--limits { border-color: #ebd9cb; background: #f8f0ea; }
.ut-mat-panel--buying { border-color: var(--ut-color-line); background: var(--ut-color-surface); }
.ut-mat-panel--care { border-color: #e2d4be; background: var(--ut-color-sand); }
.ut-mat-panel__head { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; }
.ut-mat-panel__head h2 { margin: 0; }
.ut-mat-panel__icon { display: grid; width: 36px; height: 36px; flex: none; place-items: center; border-radius: 999px; }
.ut-mat-panel__icon svg { display: block; }
.ut-mat-panel--benefits .ut-mat-panel__icon { background: #dce3d6; }
.ut-mat-panel--limits .ut-mat-panel__icon { background: #efdccf; }
.ut-mat-panel--buying .ut-mat-panel__icon { background: var(--ut-color-sand); }
.ut-mat-panel--care .ut-mat-panel__icon { background: #e2d4be; }
.ut-mat-block--related { padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--ut-color-line); }
.ut-mat-related { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 16px; margin: 18px 0 0; padding: 0; list-style: none; }

@media (prefers-reduced-motion: reduce) {
  .ut-mat-slider__track { scroll-behavior: auto; }
  .ut-mat-slide, .ut-mat-card, .ut-mat-toc-m__toggle svg { transition: none; }
  .ut-mat-slide:hover, .ut-mat-card:hover { transform: none; }
}
