/*
  RYBY 19.0.7 — GLOBAL SECTION COHESION
  Scope: gallery, analytics, intelligence, fisheries, expeditions and "more".
  No database or application-logic changes.
*/

html[data-ryby-global="19.0.7"] {
  --ry1907-forest: #0b2017;
  --ry1907-forest-2: #132d22;
  --ry1907-forest-3: #1b392c;
  --ry1907-cream: #e7dfd1;
  --ry1907-cream-soft: #d6cebf;
  --ry1907-gold: #c7a451;
  --ry1907-gold-soft: #ead791;
  --ry1907-line: rgba(225, 203, 137, .16);
  --ry1907-line-soft: rgba(255, 255, 255, .06);
  --ry1907-text: #f0eadf;
  --ry1907-text-soft: rgba(240, 234, 223, .62);
}

/* Shared section rhythm */
html[data-ryby-global="19.0.7"]
:is(.trophy-gallery, .analytics, .intelligence, .fisheries, .expeditions, .ry17-more) {
  position: relative;
  isolation: isolate;
  padding-top: 104px !important;
  padding-bottom: 108px !important;
}

html[data-ryby-global="19.0.7"]
:is(.trophy-gallery, .intelligence, .fisheries, .ry17-more) {
  color: var(--ry1907-text);
  background:
    radial-gradient(circle at 10% 8%, rgba(142, 154, 91, .08), transparent 28%),
    radial-gradient(circle at 90% 88%, rgba(190, 154, 72, .07), transparent 30%),
    linear-gradient(180deg, #10261c 0%, #091b13 100%) !important;
}

html[data-ryby-global="19.0.7"]
:is(.analytics, .expeditions) {
  color: #173027;
  background:
    radial-gradient(circle at 12% 10%, rgba(115, 126, 85, .09), transparent 28%),
    radial-gradient(circle at 88% 86%, rgba(185, 151, 77, .06), transparent 32%),
    linear-gradient(180deg, #d6cec0 0%, #c8beae 100%) !important;
}

/* Shared heading geometry */
html[data-ryby-global="19.0.7"]
:is(.trophy-gallery, .analytics, .intelligence, .fisheries, .expeditions, .ry17-more)
:is(.section-heading, .gallery-heading, .atlas-heading) {
  width: min(100%, 1320px);
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 34px !important;
  align-items: end !important;
  gap: 28px !important;
}

html[data-ryby-global="19.0.7"]
:is(.trophy-gallery, .intelligence, .fisheries, .ry17-more)
:is(.section-heading, .gallery-heading, .atlas-heading) h2 {
  color: var(--ry1907-text) !important;
  text-shadow: none !important;
  font-size: clamp(48px, 4.1vw, 66px) !important;
  letter-spacing: -.035em;
}

html[data-ryby-global="19.0.7"]
:is(.analytics, .expeditions)
:is(.section-heading, .gallery-heading, .atlas-heading) h2 {
  color: #173027 !important;
  text-shadow: none !important;
  font-size: clamp(48px, 4.1vw, 66px) !important;
  letter-spacing: -.035em;
}

html[data-ryby-global="19.0.7"]
:is(.trophy-gallery, .intelligence, .fisheries, .ry17-more)
:is(.section-heading, .gallery-heading, .atlas-heading) > p {
  max-width: 470px;
  color: var(--ry1907-text-soft) !important;
  font-size: 12px !important;
  line-height: 1.78 !important;
}

html[data-ryby-global="19.0.7"]
:is(.analytics, .expeditions)
:is(.section-heading, .gallery-heading, .atlas-heading) > p {
  max-width: 470px;
  color: #59675f !important;
  font-size: 12px !important;
  line-height: 1.78 !important;
}

/* Shared dark cards */
html[data-ryby-global="19.0.7"]
:is(.gallery-toolbar,
    .gallery-empty,
    .intelligence-command,
    .intelligence-matrix > *,
    .fishery-atlas-summary,
    .fishery-atlas-tabs,
    .fishery-atlas-layout > *,
    .ry17-more-grid > a) {
  border-radius: 18px !important;
  border: 1px solid var(--ry1907-line) !important;
  background:
    radial-gradient(circle at 100% 0, rgba(173, 186, 103, .08), transparent 34%),
    linear-gradient(155deg, rgba(27, 52, 39, .98), rgba(10, 27, 19, .995)) !important;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, .18),
    inset 0 1px 0 rgba(255, 255, 255, .025) !important;
}

/* Shared light cards */
html[data-ryby-global="19.0.7"]
:is(.season-explorer,
    .session-truth,
    .analytics-grid > *,
    .moments > *) {
  border-radius: 18px !important;
  border: 1px solid rgba(25, 48, 37, .13) !important;
  background:
    radial-gradient(circle at 100% 100%, rgba(255, 255, 255, .08), transparent 30%),
    linear-gradient(145deg, rgba(255,255,255,.25), rgba(255,255,255,.12)) !important;
  box-shadow:
    0 16px 38px rgba(25, 42, 33, .08),
    inset 0 1px 0 rgba(255,255,255,.34) !important;
}

/* Gallery */
html[data-ryby-global="19.0.7"] .gallery-toolbar {
  padding: 22px 24px !important;
}

html[data-ryby-global="19.0.7"] .gallery-live-count strong,
html[data-ryby-global="19.0.7"] .gallery-toolbar label {
  color: var(--ry1907-gold-soft) !important;
}

html[data-ryby-global="19.0.7"] .gallery-toolbar select,
html[data-ryby-global="19.0.7"] .season-explorer select {
  min-height: 44px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(229, 207, 139, .18) !important;
  background: rgba(5, 20, 13, .54) !important;
  color: var(--ry1907-text) !important;
}

html[data-ryby-global="19.0.7"] .gallery-grid {
  gap: 16px !important;
}

html[data-ryby-global="19.0.7"] .gallery-grid > * {
  border-radius: 17px !important;
  overflow: hidden;
  border: 1px solid rgba(230, 209, 145, .15) !important;
  box-shadow: 0 18px 42px rgba(0,0,0,.18) !important;
}

/* Analytics */
html[data-ryby-global="19.0.7"] .season-explorer,
html[data-ryby-global="19.0.7"] .session-truth {
  padding: 24px !important;
}

html[data-ryby-global="19.0.7"] .analytics-grid {
  gap: 16px !important;
}

html[data-ryby-global="19.0.7"] .analytics-grid > * {
  min-height: 164px;
  padding: 22px !important;
}

html[data-ryby-global="19.0.7"] .analytics-grid h3,
html[data-ryby-global="19.0.7"] .season-explorer h3,
html[data-ryby-global="19.0.7"] .session-truth h3 {
  color: #173027 !important;
}

/* Intelligence */
html[data-ryby-global="19.0.7"] .intelligence-command,
html[data-ryby-global="19.0.7"] .intelligence-matrix > * {
  padding: 24px !important;
}

html[data-ryby-global="19.0.7"] .intelligence-matrix {
  gap: 16px !important;
}

html[data-ryby-global="19.0.7"] .intelligence-label,
html[data-ryby-global="19.0.7"] .intelligence-command h3,
html[data-ryby-global="19.0.7"] .intelligence-matrix h3 {
  color: var(--ry1907-gold-soft) !important;
}

html[data-ryby-global="19.0.7"] .intelligence-command p,
html[data-ryby-global="19.0.7"] .intelligence-matrix p {
  color: var(--ry1907-text-soft) !important;
}

/* Fisheries */
html[data-ryby-global="19.0.7"] .fishery-atlas-summary {
  padding: 22px !important;
  gap: 12px !important;
}

html[data-ryby-global="19.0.7"] .fishery-atlas-tabs {
  padding: 12px !important;
}

html[data-ryby-global="19.0.7"] .fishery-atlas-tabs button {
  min-height: 42px !important;
  border-radius: 11px !important;
  color: rgba(240,234,223,.62) !important;
}

html[data-ryby-global="19.0.7"] .fishery-atlas-tabs button.active {
  color: #13251c !important;
  background: linear-gradient(135deg, #ead58d, #c4a04b) !important;
}

html[data-ryby-global="19.0.7"] .fishery-atlas-layout {
  gap: 16px !important;
}

/* Expeditions */
html[data-ryby-global="19.0.7"] .moments {
  gap: 16px !important;
}

html[data-ryby-global="19.0.7"] .moments > * {
  overflow: hidden;
}

html[data-ryby-global="19.0.7"] .moments img {
  filter: saturate(.94) contrast(1.02);
}

/* More section */
html[data-ryby-global="19.0.7"] .ry17-more-grid {
  gap: 14px !important;
}

html[data-ryby-global="19.0.7"] .ry17-more-grid > a {
  min-height: 104px;
  padding: 20px !important;
  color: var(--ry1907-text) !important;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease !important;
}

html[data-ryby-global="19.0.7"] .ry17-more-grid > a:hover {
  transform: translateY(-3px);
  border-color: rgba(231, 210, 147, .30) !important;
  box-shadow:
    0 24px 52px rgba(0,0,0,.24),
    inset 0 1px 0 rgba(255,255,255,.03) !important;
}

html[data-ryby-global="19.0.7"] .ry17-more-grid > a small {
  color: var(--ry1907-text-soft) !important;
}

/* Controls */
html[data-ryby-global="19.0.7"]
:is(.gallery-load-more, .season-reset, .explorer-clear, .atlas-more) {
  min-height: 44px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(228, 205, 137, .28) !important;
}

/* Mobile */
@media (max-width: 980px) {
  html[data-ryby-global="19.0.7"]
  :is(.trophy-gallery, .analytics, .intelligence, .fisheries, .expeditions, .ry17-more)
  :is(.section-heading, .gallery-heading, .atlas-heading) {
    align-items: start !important;
  }
}

@media (max-width: 680px) {
  html[data-ryby-global="19.0.7"]
  :is(.trophy-gallery, .analytics, .intelligence, .fisheries, .expeditions, .ry17-more) {
    padding-top: 78px !important;
    padding-bottom: 84px !important;
  }

  html[data-ryby-global="19.0.7"]
  :is(.trophy-gallery, .analytics, .intelligence, .fisheries, .expeditions, .ry17-more)
  :is(.section-heading, .gallery-heading, .atlas-heading) h2 {
    font-size: clamp(42px, 12vw, 54px) !important;
  }

  html[data-ryby-global="19.0.7"]
  :is(.gallery-toolbar, .season-explorer, .session-truth, .intelligence-command, .fishery-atlas-summary) {
    padding: 18px !important;
    border-radius: 15px !important;
  }

  html[data-ryby-global="19.0.7"] .ry17-more-grid > a {
    min-height: 88px;
    border-radius: 15px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-ryby-global="19.0.7"] .ry17-more-grid > a {
    transition: none !important;
  }
}
