.berry { padding-bottom: 4rem; }
.berry h1 { margin: .4em 0 .22em; font-size: clamp(2.4rem, 5.2vw, 4.7rem); line-height: 1.04; letter-spacing: -.05em; }
.berry h2 { margin: 0 0 .65em; font-size: clamp(1.45rem, 2.6vw, 2.25rem); line-height: 1.12; }
.berry h3 { margin: 1.2em 0 .45em; }
.berry-lead { max-width: 62ch; font-size: 1.12rem; margin: 0 0 2rem; }
.berry-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; gap: clamp(1rem, 4vw, 4rem); }
.berry-preview { margin: 0; border: 1px solid #d5dad6; border-radius: 12px; background: white; overflow: hidden; }
.berry-preview img { width: 100%; height: auto; display: block; }
.berry-preview figcaption { padding: .8rem 1rem; color: #48534e; background: #f3f5f2; font-size: .85rem; }
.berry-label { display: block; margin-bottom: .35rem; font-weight: 650; }
#berry-motif { width: 100%; padding: .75rem; border: 1px solid #829189; background: white; border-radius: .45rem; color: #14251e; font: inherit; }
.berry-config .fields > *, .berry-config input, .berry-config textarea { min-width: 0; max-width: 100%; }
.berry-config .actions { flex-wrap: wrap; }
.berry-gallery { margin: clamp(2.5rem, 6vw, 5rem) 0 2rem; }
.berry-series { margin-top: 1.6rem; }
.berry-tiles { display: grid; grid-template-columns: repeat(auto-fill,minmax(138px,1fr)); gap: .65rem; }
.berry-tile { text-align: left; min-width: 0; background: white; border: 1px solid #cbd4ce; border-radius: .5rem; padding: 0 0 .7rem; display: flex; flex-direction: column; font: inherit; color: #1d3127; cursor: pointer; overflow: hidden; }
.berry-tile img { width: 100%; height: auto; }
.berry-tile b, .berry-tile span { margin: 0 .75rem; }
.berry-tile span { font-size: .85rem; line-height: 1.3; }
.berry-tile[aria-pressed="true"] { border-color: #235d46; box-shadow: inset 0 0 0 2px #235d46; }
.berry-tile:focus-visible { outline: 3px solid #235d46; outline-offset: 3px; }
.berry-links { display: flex; gap: 1rem 2rem; flex-wrap: wrap; align-items: center; border-top: 1px solid #cbd4ce; padding-top: 1.2rem; }
@media (max-width: 760px) {
  .berry-layout { grid-template-columns: 1fr; }
  .berry-config .fields { grid-template-columns: minmax(0,1fr); }
  .berry-preview img { max-height: 300px; object-fit: contain; }
  .berry-tiles { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
