.wg-hero-carousel {
  position: relative;
  min-height: clamp(480px, 72vh, 760px);
  overflow: hidden;
  color: #fff;
  background: #171411;
}
.wg-hero-track {
  min-height: inherit;
}
.wg-hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  opacity: 0;
  visibility: hidden;
  transition: opacity .65s ease, visibility .65s ease;
}
.wg-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.wg-hero-media,
.wg-hero-media::after {
  position: absolute;
  inset: 0;
}
.wg-hero-media {
  overflow: hidden;
  background: #171411;
}
.wg-hero-media::after {
  content: "";
  z-index: 2;
  background: linear-gradient(90deg, rgba(10, 25, 19, .92), rgba(20, 19, 16, .54) 55%, rgba(20, 19, 16, .24));
}
.wg-hero-media img,
.wg-hero-media video,
.wg-hero-media iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  object-fit: cover;
  transform: scale(1.01);
}
.wg-hero-media iframe {
  pointer-events: none;
}
.wg-hero-content {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0 78px;
}
.wg-hero-content.center { text-align: center; }
.wg-hero-content.center > * { margin-left: auto; margin-right: auto; }
.wg-hero-content.right { text-align: right; }
.wg-hero-content.right > * { margin-left: auto; }
.wg-hero-content h1 {
  max-width: 900px;
  margin: 8px 0 18px;
  color: #fff;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1;
}
.wg-hero-content p {
  max-width: 690px;
  margin: 0 0 26px;
  color: rgba(255,255,255,.84);
  font-size: clamp(17px, 2vw, 21px);
}
.wg-hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 26px;
  width: min(1180px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  transform: translateX(-50%);
}
.wg-hero-controls button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 50%;
  color: #fff;
  background: rgba(10,25,19,.58);
  font-size: 22px;
  cursor: pointer;
}
.wg-hero-dots {
  display: flex;
  gap: 7px;
}
.wg-hero-dots button {
  width: 10px;
  height: 10px;
  min-height: 10px;
  padding: 0;
  background: rgba(255,255,255,.52);
}
.wg-hero-dots button.is-active {
  width: 28px;
  border-radius: 999px;
  background: #f0c45b;
}
.portal-record-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.portal-record {
  overflow: hidden;
  border: 1px solid rgba(37,33,29,.12);
  border-radius: 8px;
  background: rgba(255,253,248,.94);
  box-shadow: 0 12px 32px rgba(80,54,25,.08);
}
.portal-record-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e7dccb;
}
.portal-record-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portal-record-body { padding: 18px; }
.portal-record-body h3 { margin: 5px 0 9px; font-size: 21px; }
.portal-record-body p { margin: 0; color: #6f665d; }
.portal-detail-section { background: #f8f3e8; }
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 24px;
  align-items: start;
}
.detail-article { min-width: 0; }
.detail-card {
  display: block;
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid rgba(37,33,29,.12);
  border-radius: 8px;
  background: rgba(255,253,248,.96);
  box-shadow: 0 16px 38px rgba(80,54,25,.1);
}
.detail-card h1 {
  max-width: 980px;
  margin: 14px 0 10px;
  color: #171411;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.04;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: #6f665d;
  font-size: 14px;
  font-weight: 750;
}
.detail-body {
  margin-top: 18px;
  color: #25211d;
  font-size: 17px;
  line-height: 1.7;
}
.detail-body p { margin: 0 0 15px; }
.detail-body p:last-child { margin-bottom: 0; }
.detail-aside {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 104px;
}
.detail-media-shell {
  display: grid;
  gap: 14px;
  margin: 22px 0 28px;
}
.detail-media-shell.empty {
  min-height: 180px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(214,160,25,.82), rgba(31,122,58,.64)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.18) 0 8px, transparent 8px 16px);
}
.detail-media-frame {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(37,33,29,.14);
  border-radius: 8px;
  background: #111;
  box-shadow: 0 16px 34px rgba(37,33,29,.16);
}
.detail-media-frame img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  background: rgba(255,253,248,.96);
}
.detail-media-frame iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
}
.detail-media-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 10px;
}
.detail-media-rail button {
  min-height: 92px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0;
  background: rgba(255,253,248,.92);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(28,27,24,.08);
}
.detail-media-rail button.active { border-color: #c9962e; }
.detail-media-rail img {
  width: 100%;
  height: 100%;
  max-height: 118px;
  object-fit: contain;
}
.media-video-thumb {
  display: grid;
  place-items: center;
  min-height: 92px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(169,47,47,.92), rgba(23,59,43,.9)),
    repeating-linear-gradient(45deg, rgba(244,211,94,.18) 0 8px, transparent 8px 16px);
  font-weight: 900;
}
.portal-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.portal-card-grid .card,
.detail-aside .card {
  border: 1px solid rgba(37,33,29,.12);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255,253,248,.92);
}
.portal-card-grid h3,
.detail-aside h3 {
  margin: 0 0 8px;
  color: #173b2b;
  font-size: 17px;
}
.portal-card-grid p { margin: 0; color: #6f665d; }
.portal-detail-action { margin-top: 22px; }
.portal-related-list {
  display: grid;
  gap: 10px;
}
.portal-related-list a {
  display: block;
  border: 1px solid rgba(37,33,29,.1);
  border-radius: 8px;
  padding: 12px;
  color: #173b2b;
  background: rgba(255,248,231,.74);
  font-weight: 800;
  text-decoration: none;
}
.portal-data-state {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed rgba(37,33,29,.2);
  border-radius: 8px;
  color: #6f665d;
  background: rgba(255,253,248,.7);
  text-align: center;
}
.portal-ad-section {
  display: none;
  padding: 18px 0;
  background: rgba(255,253,248,.86);
}
.portal-ad-section.has-ads { display: block; }
.portal-ad-slot {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}
.portal-ad-carousel { overflow: hidden; }
.portal-ad-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .45s ease;
}
.portal-ad-item {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(37,33,29,.12);
  border-radius: 8px;
  color: #171411;
  background: #fff;
  box-shadow: 0 8px 24px rgba(37,33,29,.08);
}
.portal-ad-item > a {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.portal-ad-item img,
.portal-ad-item video,
.portal-ad-item iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
}
.portal-ad-label {
  position: absolute;
  z-index: 2;
  top: 5px;
  right: 7px;
  padding: 2px 5px;
  color: #fff;
  background: rgba(0,0,0,.64);
  font-size: 10px;
}
.portal-ad-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  height: 100%;
  padding: 10px clamp(14px, 2vw, 22px);
  background: linear-gradient(110deg, #fff 0 72%, #f0c45b 72% 100%);
  text-align: left;
}
.portal-ad-copy {
  min-width: 0;
  overflow: hidden;
}
.portal-ad-copy strong {
  display: block;
  margin-bottom: 4px;
  color: #173b2b;
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1.15;
}
.portal-ad-body {
  color: #514a43;
  font-size: clamp(11px, 1.2vw, 14px);
  line-height: 1.25;
}
.portal-ad-body p,
.portal-ad-body ul,
.portal-ad-body ol { margin: 0; }
.portal-ad-body ul,
.portal-ad-body ol { padding-left: 18px; }
.portal-ad-copy small {
  display: block;
  margin-top: 5px;
  color: #766d64;
  font-size: 10px;
  line-height: 1.1;
}
.portal-ad-action {
  flex: 0 0 auto;
  padding: 10px 16px;
  border-radius: 6px;
  color: #fff;
  background: #173b2b;
  font-weight: 700;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .wg-hero-carousel { min-height: 560px; }
  .wg-hero-content { padding-bottom: 96px; }
  .wg-hero-media::after { background: linear-gradient(180deg, rgba(10,25,19,.42), rgba(10,25,19,.94)); }
  .portal-record-grid { grid-template-columns: 1fr; }
  .detail-layout,
  .portal-card-grid { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
  .detail-card h1 { font-size: clamp(30px, 10vw, 44px); }
  .portal-ad-text {
    gap: 10px;
    padding: 12px;
    background: #fff;
  }
  .portal-ad-action { padding: 8px 10px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .wg-hero-slide { transition: none; }
}
