/* Sighting detail page layout */
body > header { position: sticky; top: 0; z-index: 1200; }
body > header > .brand { margin-top: 0 !important; }
body > main { padding-top: 0; padding-bottom: 0; gap: .75rem; }
body > main .report-detail { margin-top: 0; }
.site-footer { margin-top: var(--content-footer-gap); }

/* Report detail (avistaje_detalle) */
.report-detail {
  max-width: 860px;
  width: 100%;
  margin: 1.5rem auto 0;
  padding: 0 1rem;
  overflow-x: clip;
}
.report-detail .card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.report-detail__shell {
  overflow: hidden;
}
.report-detail__main {
  display: grid;
  gap: 1rem;
}
.report-detail__left {
  display: contents;
}
.report-detail__left > .report-detail__policy {
  margin: 1rem 1rem 0;
}
.report-detail__secondary {
  display: grid;
  gap: 1rem;
  padding: 0 1rem 1rem;
}
/* In detalle, evitamos el lift hover de .card para que la foto no "salte". */
.report-detail .card:hover,
.report-detail .card:focus-within {
  transform: none;
}
.report-detail__cover {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  padding-bottom: 1.55rem;
  background: #374768;
  color: #fff;
}
.report-detail__cover-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: #374768;
}
.report-detail__cover-media img,
.report-detail__cover-media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.report-detail__cover-media video {
  object-position: center;
}
.report-detail__cover-fallback {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0f3551;
}
.report-detail__cover-empty {
  position: absolute;
  top: 42%;
  left: 50%;
  width: min(76%, 340px);
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: .55rem;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #94a3b8;
  font-weight: 700;
  text-align: center;
  box-shadow: none !important;
}
@media (max-width: 520px) {
  .report-detail__cover-empty {
    top: 39%;
    width: min(74%, 320px);
    padding: 0 !important;
  }
}
.report-detail__cover-empty-wave {
  display: block;
  font-size: 2rem;
  line-height: 1;
}
.report-detail__cover-empty-title {
  font-size: .98rem;
  font-weight: 800;
  text-transform: none !important;
  letter-spacing: 0;
}
.report-detail__cover-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(18,29,52,.08) 0%, rgba(18,29,52,.12) 42%, rgba(18,29,52,.56) 72%, rgba(18,29,52,.9) 100%),
    linear-gradient(90deg, rgba(18,29,52,.18) 0%, rgba(18,29,52,0) 42%, rgba(18,29,52,.2) 100%);
}
.report-detail__cover-top {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 2.35rem);
  left: 2.15rem;
  right: 2.15rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .65rem;
  z-index: 2;
}
.report-detail__cover-id {
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: .25rem .58rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(15,23,42,.32);
  color: rgba(255,255,255,.9);
  font-family: var(--font-main);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
  text-shadow: none;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
  backdrop-filter: blur(10px);
}
.report-detail__cover-actions {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  flex: 0 0 auto;
}
.report-detail__cover-icon,
.report-detail__cover-photo-action {
  appearance: none;
  padding: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.36);
  background: rgba(3,25,35,.5);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(0,0,0,.24);
  backdrop-filter: blur(10px);
  text-decoration: none;
  cursor: pointer;
}
.report-detail__cover-icon:hover,
.report-detail__cover-icon:focus,
.report-detail__cover-photo-action:hover,
.report-detail__cover-photo-action:focus {
  color: #fff;
  background: rgba(15,118,110,.72);
  border-color: rgba(255,255,255,.58);
}
.report-detail__cover-icon span,
.report-detail__cover-photo-action span,
.report-detail__meta-ico--credit {
  width: 18px;
  height: 18px;
  display: block;
  background: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.report-detail__cover-icon--map span {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='m15 18-6-2-5 2V5l5-2 6 2 5-2v13l-5 2Zm-1-1.75V6.75l-4-1.33v9.5l4 1.33Z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='m15 18-6-2-5 2V5l5-2 6 2 5-2v13l-5 2Zm-1-1.75V6.75l-4-1.33v9.5l4 1.33Z'/></svg>");
}
.report-detail__cover-icon--download span {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M11 4a1 1 0 1 1 2 0v8.17l2.59-2.58A1 1 0 0 1 17 11l-4.3 4.3a1 1 0 0 1-1.4 0L7 11a1 1 0 1 1 1.41-1.41L11 12.17V4Zm-6 13a1 1 0 0 1 1 1v1h12v-1a1 1 0 1 1 2 0v2a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1Z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M11 4a1 1 0 1 1 2 0v8.17l2.59-2.58A1 1 0 0 1 17 11l-4.3 4.3a1 1 0 0 1-1.4 0L7 11a1 1 0 1 1 1.41-1.41L11 12.17V4Zm-6 13a1 1 0 0 1 1 1v1h12v-1a1 1 0 1 1 2 0v2a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1Z'/></svg>");
}
.report-detail__cover-photo-action {
  position: absolute;
  right: 2rem;
  bottom: 1.55rem;
  z-index: 3;
  cursor: zoom-in;
}
.report-detail__cover-photo-action span {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M3 3h7v2H5v5H3V3Zm18 0v7h-2V5h-5V3h7ZM3 21v-7h2v5h5v2H3Zm18 0h-7v-2h5v-5h2v7Z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M3 3h7v2H5v5H3V3Zm18 0v7h-2V5h-5V3h7ZM3 21v-7h2v5h5v2H3Zm18 0h-7v-2h5v-5h2v7Z'/></svg>");
}
.report-detail__cover-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  container-type: inline-size;
  display: grid;
  gap: .55rem;
  text-shadow: none;
}
.report-detail__cover .report-detail__eyebrow {
  color: rgba(255,255,255,.78);
  font-size: .62rem;
  letter-spacing: .1em;
}
.report-detail__cover .report-detail__title {
  color: #fff;
  font-family: var(--font-main);
  font-size: min(1.95rem, 6.6cqw);
  font-weight: 900;
  line-height: .94;
  max-width: calc(100% - 1.6rem);
  flex-wrap: nowrap;
  align-items: flex-start;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0;
}
.report-detail__cover .report-detail__title-text {
  min-width: 0;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}
.report-detail__cover .report-detail__meta {
  color: rgba(255,255,255,.96);
  opacity: 1;
  gap: .64rem 1.25rem;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: .86rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
  align-items: start;
}
.report-detail__cover .report-detail__meta-item {
  align-items: center;
  gap: .42rem;
  text-shadow: none;
}
.report-detail__cover .report-detail__meta-item--coords {
  flex-basis: 100%;
}
.report-detail__cover-location-text {
  display: grid;
  gap: .08rem;
}
.report-detail__cover-meta-main {
  display: block;
  line-height: 1.02;
  font-size: 1rem;
  font-weight: 700;
}
.report-detail__cover-meta-sub {
  display: block;
  margin-top: .16rem;
  color: rgba(255,255,255,.78);
  font-size: .68rem;
  line-height: 1.15;
  font-weight: 600;
}
.report-detail__cover-coords {
  display: block;
  color: rgba(255,255,255,.78);
  font-family: Consolas, 'Lucida Console', 'Courier New', monospace;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.1;
}
.report-detail__meta-ico--credit {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  opacity: .78;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 12a5 5 0 1 0-5-5 5 5 0 0 0 5 5Zm0 2c-4.42 0-8 2.24-8 5v1h16v-1c0-2.76-3.58-5-8-5Z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 12a5 5 0 1 0-5-5 5 5 0 0 0 5 5Zm0 2c-4.42 0-8 2.24-8 5v1h16v-1c0-2.76-3.58-5-8-5Z'/></svg>");
}
.report-detail__body > .report-detail__media--covered {
  display: none !important;
}
.report-detail__header {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  flex-wrap: wrap;
  gap:1rem;
  padding: 1.05rem 1.15rem 1.15rem;
  border-bottom: 1px solid rgba(14,116,144,.14);
  background:
    linear-gradient(135deg, rgba(14,116,144,.12), rgba(56,189,248,.08)),
    var(--card);
  min-width: 0;
  max-width: 100%;
}
.report-detail__hero-copy {
  display: grid;
  gap: .52rem;
  min-width: 0;
  flex: 1 1 300px;
}
.report-detail__eyebrow {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.report-detail__title {
  margin: 0;
  font-size: clamp(1.62rem, 8vw, 2.45rem);
  font-weight: 700;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  line-height: 1.2;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}
.report-detail__title-text {
  display: grid;
  gap: .12rem;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.report-detail__emoji { margin-right:0; flex:0 0 auto; align-self:center; }
.report-detail__meta {
  margin: 0;
  opacity: .8;
  font-size: .9rem;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .5rem;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}
.report-detail__hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.report-detail__hero-actions {
  display: flex;
  gap: .5rem;
  width: 100%;
}
.report-detail__hero-actions .popup-detail,
.report-detail__hero-actions .popup-share {
  flex: 1 1 0;
  justify-content: center;
  text-align: center;
}
.report-detail__meta-item { display: inline-flex; align-items: center; gap: .35rem; }
.report-detail__meta-dot { opacity: .6; }
.report-detail__meta-ico {
  width: 14px;
  height: 14px;
  display: inline-block;
  background: currentColor;
  opacity: .75;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}
.report-detail__meta-ico--calendar {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M7 2a1 1 0 0 1 1 1v1h8V3a1 1 0 1 1 2 0v1h1a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3h1V3a1 1 0 0 1 1-1Zm12 8H5v9a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-9Z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M7 2a1 1 0 0 1 1 1v1h8V3a1 1 0 1 1 2 0v1h1a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3h1V3a1 1 0 0 1 1-1Zm12 8H5v9a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-9Z'/></svg>");
}
.report-detail__meta-ico--location {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2a7 7 0 0 1 7 7c0 4.418-4.276 9.41-6.19 11.405a1.2 1.2 0 0 1-1.72 0C9.276 18.41 5 13.418 5 9a7 7 0 0 1 7-7Zm0 4a3 3 0 1 0 0 6 3 3 0 0 0 0-6Z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2a7 7 0 0 1 7 7c0 4.418-4.276 9.41-6.19 11.405a1.2 1.2 0 0 1-1.72 0C9.276 18.41 5 13.418 5 9a7 7 0 0 1 7-7Zm0 4a3 3 0 1 0 0 6 3 3 0 0 0 0-6Z'/></svg>");
}
.report-detail__meta-ico--coords {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm6.92 9h-3.1a16.7 16.7 0 0 0-1.05-5.04A8.03 8.03 0 0 1 18.92 11ZM12 4.04c.68.98 1.49 3.1 1.77 6.96H10.23C10.51 7.14 11.32 5.02 12 4.04ZM4.25 13h3.93c.12 1.92.48 3.67 1.05 5.04A8.03 8.03 0 0 1 4.25 13Zm3.93-2H5.08a8.03 8.03 0 0 1 4.15-5.04A16.7 16.7 0 0 0 8.18 11ZM12 19.96c-.68-.98-1.49-3.1-1.77-6.96h3.54c-.28 3.86-1.09 5.98-1.77 6.96Zm2.77-1.92A16.7 16.7 0 0 0 15.82 13h3.1a8.03 8.03 0 0 1-4.15 5.04Z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm6.92 9h-3.1a16.7 16.7 0 0 0-1.05-5.04A8.03 8.03 0 0 1 18.92 11ZM12 4.04c.68.98 1.49 3.1 1.77 6.96H10.23C10.51 7.14 11.32 5.02 12 4.04ZM4.25 13h3.93c.12 1.92.48 3.67 1.05 5.04A8.03 8.03 0 0 1 4.25 13Zm3.93-2H5.08a8.03 8.03 0 0 1 4.15-5.04A16.7 16.7 0 0 0 8.18 11ZM12 19.96c-.68-.98-1.49-3.1-1.77-6.96h3.54c-.28 3.86-1.09 5.98-1.77 6.96Zm2.77-1.92A16.7 16.7 0 0 0 15.82 13h3.1a8.03 8.03 0 0 1-4.15 5.04Z'/></svg>");
}
.report-detail__cover .report-detail__meta-ico {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  opacity: .96;
}
.report-detail__body { display:flex; flex-direction:column; gap:1rem; min-width: 0; max-width: 100%; }
.report-detail__species-explorer {
  display: grid;
  gap: .7rem;
  padding: .72rem;
  border: 1px solid rgba(37, 99, 235, .3);
  border-radius: 12px;
  background: rgba(37, 99, 235, .055);
}
.report-detail__species-explorer-identity {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: .65rem;
  align-items: center;
  min-width: 0;
}
.report-detail__species-explorer-eye {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #3b82f6 55%, #2388f4);
  box-shadow: 0 7px 16px rgba(37, 99, 235, .2);
}
.report-detail__species-explorer-eye svg,
.report-detail__species-explorer-link svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.report-detail__species-explorer-name {
  min-width: 0;
}
.report-detail__species-explorer-name strong,
.report-detail__species-explorer-name em {
  display: block;
}
.report-detail__species-explorer-name strong {
  overflow: hidden;
  color: var(--fg);
  font-size: .9rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.report-detail__species-explorer-name em {
  margin-top: .1rem;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.3;
}
.report-detail__species-explorer-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .55rem .8rem;
  border: 1px solid #3b82f6;
  border-radius: 9px;
  background: transparent;
  color: #2563eb;
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}
.report-detail__species-explorer-link:hover {
  background: rgba(59, 130, 246, .1);
  color: #1d4ed8;
}
.report-detail__species-explorer-link:focus-visible {
  outline: 3px solid rgba(59, 130, 246, .42);
  outline-offset: 2px;
}
.report-detail__media {
  border-radius:10px;
  overflow:hidden;
  background:#000;
  aspect-ratio: 16 / 9;
  position: relative;
}
.report-detail__media img,
.report-detail__media video {
  display:block;
  width:100%;
  height:100%;
}
.report-detail__media-open-gesture {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: zoom-in;
}
.report-detail__media img {
  object-fit:cover;
}
.report-detail__media video {
  object-fit:contain;
}
.report-detail__media-actions {
  position: absolute;
  right: .75rem;
  bottom: .75rem;
  z-index: 2;
}
.report-detail__media-open-btn {
  border-color: rgba(255,255,255,.45) !important;
  background: rgba(15,23,42,.55) !important;
  color: #fff !important;
  backdrop-filter: blur(6px);
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0 !important;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  line-height: 1;
}
.report-detail__media-open-btn:hover {
  background: rgba(15,23,42,.75) !important;
}
.report-detail__media-open-icon {
  width: 14px;
  height: 14px;
  display: block;
  background: currentColor;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M3 3h7v2H5v5H3V3Zm18 0v7h-2V5h-5V3h7ZM3 21v-7h2v5h5v2H3Zm18 0h-7v-2h5v-5h2v7Z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M3 3h7v2H5v5H3V3Zm18 0v7h-2V5h-5V3h7ZM3 21v-7h2v5h5v2H3Zm18 0h-7v-2h5v-5h2v7Z'/></svg>");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(2,6,23,.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.media-lightbox[hidden] {
  display: none !important;
}
.media-lightbox img {
  max-width: min(96vw, 1400px);
  max-height: 90vh;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center center;
  transform: none !important;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}
.media-lightbox__close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(15,23,42,.55);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.report-detail__media--empty {
  background: #0f3551;
  border: 0;
  padding: 1.4rem 1.2rem;
  color: #94a3b8;
  font-size: .92rem;
  font-weight: 700;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: .55rem;
  text-align: center;
  aspect-ratio: auto;
  min-height: 180px;
  overflow: hidden;
}
.report-detail__data-card {
  display: grid;
  gap: .75rem;
  padding: .75rem;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,.24);
  background: rgba(15,23,42,.025);
}
.report-detail__section-head {
  display: grid;
  gap: .48rem;
  margin: 0;
}
.report-detail__section-head h2 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: .42rem .55rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, .28);
  background: rgba(15, 23, 42, .04);
  color: #0f172a;
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
}
.report-detail__location-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: .42rem .55rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, .28);
  background: rgba(15, 23, 42, .04);
  color: #0f172a;
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
}
.card:hover .report-detail__section-head h2::after,
.card:focus-within .report-detail__section-head h2::after,
.report-detail__section-head h2::after,
.card:hover .report-detail__location-title::after,
.card:focus-within .report-detail__location-title::after,
.report-detail__location-title::after {
  content: none !important;
}
.report-detail__section-head p {
  margin: 0;
  color: rgba(15, 23, 42, .62);
  font-size: .82rem;
  line-height: 1.35;
}
.report-detail__info {
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:.65rem;
  margin:0;
}
.report-detail__info > div {
  min-width: 0;
  min-height: 0;
  padding: .72rem .78rem;
  border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  border-radius: 10px;
  background: rgba(148, 163, 184, .06);
  display: grid;
  align-content: start;
  justify-items: start;
  text-align: left;
  gap: .28rem;
}
.report-detail__info dt {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.25;
}
.report-detail__info dd {
  margin:0;
  font-size:.98rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.report-detail__environment {
  margin-top: .75rem;
  border-radius: 10px;
  border: 1px solid rgba(37, 99, 235, .18);
  background:
    radial-gradient(circle at 16% 0%, rgba(56, 189, 248, .18), transparent 42%),
    radial-gradient(circle at 100% 100%, rgba(37, 99, 235, .12), transparent 48%),
    rgba(248, 250, 252, .94);
  overflow: hidden;
}
.report-detail__environment-summary {
  list-style: none;
  cursor: pointer;
  padding: .82rem 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: .75rem;
  background: rgba(255, 255, 255, .42);
}
.report-detail__environment-summary::-webkit-details-marker {
  display: none;
}
.report-detail__environment-summary::after {
  content: "";
  flex: 0 0 auto;
  width: .56rem;
  height: .56rem;
  border-right: 2px solid rgba(37, 99, 235, .72);
  border-bottom: 2px solid rgba(37, 99, 235, .72);
  transform: rotate(45deg);
  transition: transform .18s ease;
}
.report-detail__environment[open] .report-detail__environment-summary::after {
  transform: rotate(225deg);
}
.card .report-detail__environment-title,
.report-detail__environment-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: .42rem .55rem;
  border-radius: 8px;
  border: 1px solid rgba(37, 99, 235, .22);
  background: rgba(219, 234, 254, .62);
  color: #1d4ed8;
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
}
.card .report-detail__environment-title::after,
.report-detail__environment-title::after {
  content: none !important;
}
.report-detail__environment-copy,
.report-detail__environment-meta {
  margin: .48rem 0 0;
  color: rgba(15, 23, 42, .66);
  font-size: .78rem;
  line-height: 1.35;
}
.report-detail__environment-panel {
  padding: .82rem 1rem 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
.report-detail__environment-group {
  min-width: 0;
  padding: .78rem .82rem;
  border-radius: 8px;
  border: 1px solid rgba(37, 99, 235, .13);
  background: rgba(255, 255, 255, .72);
}
.report-detail__environment-group h3 {
  margin: 0 0 .65rem;
  color: #1d4ed8;
  font-size: .74rem;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
}
.report-detail__environment-metrics {
  margin: 0;
  display: grid;
  gap: .42rem;
}
.report-detail__environment-metric {
  display: grid;
  grid-template-columns: minmax(6.6rem, 1fr) minmax(0, auto);
  align-items: center;
  gap: .55rem;
  min-width: 0;
}
.report-detail__environment-metric dt {
  color: rgba(15, 23, 42, .62);
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.25;
}
.report-detail__environment-metric dd {
  margin: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(4.6rem, 4.6rem);
  justify-content: flex-end;
  gap: .24rem;
  min-width: 0;
}
.report-detail__environment-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.45rem;
  width: 4.6rem;
  padding: .18rem .44rem;
  border-radius: 6px;
  border: 1px solid rgba(37, 99, 235, .16);
  background: rgba(37, 99, 235, .08);
  color: #0f2f5f;
  font-size: .8rem;
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
  overflow-wrap: anywhere;
  white-space: nowrap;
}
.report-detail__environment-chip-value {
  min-width: 0;
}
.report-detail__environment-chip-unit {
  margin-left: .18rem;
  font-size: .72em;
  font-weight: 650;
  opacity: .68;
}
.report-detail__environment-meta {
  grid-column: 1 / -1;
  margin-top: -.1rem;
}
.report-detail__location-box {
  margin-top: .75rem;
  padding: .75rem;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(0,0,0,.02);
  display: grid;
  gap: .48rem;
}
.report-detail__location-map {
  width: fit-content;
  margin-top: .38rem;
  padding: .34rem .7rem;
  border-radius: 999px;
  background: #0f766e;
  color: #fff;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.2;
}
.report-detail__location-map:hover,
.report-detail__location-map:focus {
  color: #fff;
  background: #115e59;
}
.report-detail__location-row {
  margin: 0;
  font-size: .9rem;
  line-height: 1.35;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem;
}
.report-detail__coords-row {
  margin: .08rem 0 0;
  padding-left: 1.1rem;
  font-size: .82rem;
  line-height: 1.25;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .42rem;
}
.report-detail__coords-label {
  color: var(--muted);
  font-weight: 600;
}
.report-detail__locality {
  font-weight: 600;
}
.report-detail__observation-point-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .42rem;
}
.report-detail__observation-point-pill {
  display: inline-flex;
  align-items: center;
  padding: .16rem .5rem;
  border-radius: 999px;
  border: 1px solid rgba(13,71,161,.35);
  background: var(--color-primary, #1976d2);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(25,118,210,.24);
}
.report-detail__coords-link {
  display: inline-flex;
  align-items: center;
  padding: .16rem .48rem;
  border-radius: 999px;
  border: 1px solid rgba(13,71,161,.35);
  background: var(--color-primary, #1976d2);
  color: #fff;
  text-decoration: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(25,118,210,.24);
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.report-detail__coords-link:hover,
.report-detail__coords-link:focus {
  background: var(--color-primary-dark, #0d47a1);
  border-color: rgba(13,71,161,.55);
  color: #fff;
  box-shadow: 0 3px 8px rgba(13,71,161,.32);
}
.report-detail__coords-link:focus-visible {
  outline: 2px solid rgba(37,99,235,.35);
  outline-offset: 1px;
}
.report-detail__coords-link.is-static {
  cursor: default;
}
[data-theme="dark"] .report-detail__coords-link {
  color: #fff;
  background: var(--color-primary, #1976d2);
  border-color: rgba(96,165,250,.38);
}
[data-theme="dark"] .report-detail__observation-point-pill {
  color: #fff;
  background: var(--color-primary, #1976d2);
  border-color: rgba(96,165,250,.38);
}
[data-theme="dark"] .report-detail__coords-link:hover,
[data-theme="dark"] .report-detail__coords-link:focus {
  color: #fff;
  background: var(--color-primary-dark, #0d47a1);
  border-color: rgba(147,197,253,.6);
}
[data-theme="dark"] .report-detail__media--empty {
  background: #0f3551;
  color: rgba(226, 232, 240, .82);
}
.report-detail__coords {
  margin:0;
  font-size:.85rem;
  opacity:.85;
}
.report-detail__comment {
  margin:0;
  font-size:.95rem;
  line-height:1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.report-detail__comment--free-text {
  white-space: pre-wrap;
  hyphens: auto;
}
.report-detail__comment-box {
  margin-top:.75rem;
  padding:.75rem 1rem;
  border-radius:10px;
  background:rgba(0,0,0,.02);
  border:1px solid rgba(0,0,0,.06);
}
.report-detail__secondary > .report-detail__comment-box {
  margin-top: 0;
}
.report-detail__comment-accordion {
  padding: 0;
  overflow: hidden;
}
.report-detail__comment-accordion-summary {
  list-style: none;
  cursor: pointer;
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  font-weight: 600;
  font-size: .9rem;
}
.report-detail__comment-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: .42rem .55rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, .28);
  background: rgba(15, 23, 42, .04);
  color: inherit;
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.2;
}
.report-detail__comment-accordion-copy {
  display: block;
  margin-top: .48rem;
  color: rgba(15, 23, 42, .66);
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.35;
}
.report-detail__comment-accordion-summary::-webkit-details-marker {
  display: none;
}
.report-detail__comment-accordion-summary::after {
  content: "";
  flex: 0 0 auto;
  width: .5rem;
  height: .5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: .65;
  transform: rotate(45deg);
  transition: transform .18s ease;
}
.report-detail__comment-accordion[open] .report-detail__comment-accordion-summary::after {
  transform: rotate(225deg);
}
.report-detail__comment-accordion .report-detail__comment {
  padding: 0 1rem 1rem;
}
.report-detail__source-box {
  border-color: rgba(14,116,144,.24);
  background: rgba(236,254,255,.55);
}
.report-detail__credit-card {
  display: grid;
  gap: .18rem;
  text-decoration: none;
  color: #f8fbff;
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
  border-color: rgba(147,197,253,.7);
  box-shadow: 0 10px 24px rgba(14, 116, 144, .22);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.report-detail__credit-card:hover,
.report-detail__credit-card:focus {
  color: #fff;
  border-color: rgba(191,219,254,.95);
  box-shadow: 0 12px 28px rgba(14, 116, 144, .32);
  transform: translateY(-1px);
}
.report-detail__credit-card:focus-visible {
  outline: 3px solid rgba(96,165,250,.45);
  outline-offset: 2px;
}
.report-detail__credit-card .report-detail__comment-title {
  margin-bottom: 0;
  color: rgba(255,255,255,.86);
}
.report-detail__credit-name {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.report-detail__credit-type {
  width: fit-content;
  margin-top: .16rem;
  padding: .14rem .5rem;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  color: rgba(255,255,255,.92);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.25;
}
.report-detail__policy {
  border: 1px solid rgba(148,163,184,.24);
  border-radius: 12px;
  padding: .9rem 1rem;
  background: #fff;
}
.report-detail__policy--right {
  display: none;
}
.report-detail__policy .policy-badge {
  margin: 0;
  width: fit-content;
  box-shadow: none;
}
.report-detail__policy-body {
  margin-top: .6rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  display: grid;
  gap: .6rem;
}
.report-detail__policy-block { display: grid; gap: .2rem; }
.report-detail__policy-title {
  font-size: .72rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  opacity: .6;
}
.report-detail__policy-text { font-size: .9rem; line-height: 1.4; }
.report-detail__policy-list { margin: 0; padding: 0; font-size: .9rem; line-height: 1.4; list-style: none; }
.report-detail__policy-list li { margin: .2rem 0; }
.report-detail__policy[data-policy="observacion_segura"] {
  border-color: rgba(34,197,94,.3);
  background: rgba(220,252,231,.86);
  color: #14532d;
}
.report-detail__policy[data-policy="observacion_segura"] .policy-badge {
  border-color: rgba(34,197,94,.35);
  background: rgba(240,253,244,.88);
  color: #166534;
}
.report-detail__policy[data-policy="sensible"],
.report-detail__policy[data-policy="no_molestar"] {
  border-color: rgba(245,158,11,.34);
  background: rgba(254,243,199,.88);
  color: #78350f;
}
.report-detail__policy[data-policy="sensible"] .policy-badge,
.report-detail__policy[data-policy="no_molestar"] .policy-badge {
  border-color: rgba(245,158,11,.38);
  background: rgba(255,251,235,.9);
  color: #92400e;
}
.report-detail__policy[data-policy="en_peligro"] {
  border-color: rgba(244,63,94,.34);
  background: rgba(255,228,230,.9);
  color: #881337;
}
.report-detail__policy[data-policy="en_peligro"] .policy-badge {
  border-color: rgba(244,63,94,.4);
  background: rgba(255,241,242,.9);
  color: #9f1239;
}
.report-detail__policy[data-policy] .report-detail__policy-title {
  opacity: .72;
}
[data-theme="dark"] .report-detail__policy {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.12);
}
[data-theme="dark"] .report-detail__comment-accordion-copy {
  color: rgba(226, 232, 240, .72);
}
[data-theme="dark"] .report-detail__policy-body { background: transparent; border-color: transparent; }
[data-theme="dark"] .report-detail__policy[data-policy="observacion_segura"] {
  background: rgba(22,101,52,.24);
  border-color: rgba(34,197,94,.34);
  color: #dcfce7;
}
[data-theme="dark"] .report-detail__policy .policy-badge[data-policy="no_molestar"] {
  background: rgba(127,29,29,.45);
  border-color: rgba(248,113,113,.55);
  color: #fee2e2;
}
[data-theme="dark"] .report-detail__policy .policy-badge[data-policy="en_peligro"] {
  background: rgba(190,18,60,.45);
  border-color: rgba(244,63,94,.6);
  color: #ffe4e6;
}
[data-theme="dark"] .report-detail__policy .policy-badge[data-policy="sensible"] {
  background: rgba(120,53,15,.45);
  border-color: rgba(245,158,11,.55);
  color: #fde68a;
}
[data-theme="dark"] .report-detail__policy .policy-badge[data-policy="observacion_segura"] {
  background: rgba(22,101,52,.45);
  border-color: rgba(34,197,94,.55);
  color: #bbf7d0;
}
[data-theme="dark"] .report-detail__policy[data-policy="sensible"],
[data-theme="dark"] .report-detail__policy[data-policy="no_molestar"] {
  background: rgba(120,53,15,.28);
  border-color: rgba(245,158,11,.34);
  color: #fef3c7;
}
[data-theme="dark"] .report-detail__policy[data-policy="en_peligro"] {
  background: rgba(136,19,55,.28);
  border-color: rgba(244,63,94,.36);
  color: #ffe4e6;
}
[data-theme="dark"] .report-detail .card {
  background: var(--card);
  border-color: var(--border);
  box-shadow: none;
}
[data-theme="dark"] .report-detail__comment-box {
  background:rgba(255,255,255,.04);
  border-color:rgba(255,255,255,.15);
}
[data-theme="dark"] .report-detail__credit-card {
  background: linear-gradient(135deg, #2563eb, #0284c7);
  border-color: rgba(147,197,253,.45);
  color: #f8fbff;
}
[data-theme="dark"] .report-detail__credit-card:hover,
[data-theme="dark"] .report-detail__credit-card:focus {
  border-color: rgba(191,219,254,.75);
  color: #fff;
}
[data-theme="dark"] .report-detail__location-box {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.16);
}
[data-theme="dark"] .report-detail__location-title {
  color: #f8fafc;
  background: rgba(15, 23, 42, .16);
  border-color: rgba(148, 163, 184, .28);
}
[data-theme="dark"] .report-detail__info > div {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.14);
}
[data-theme="dark"] .report-detail__data-card {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.15);
}
[data-theme="dark"] .report-detail__species-explorer {
  border-color: rgba(96, 165, 250, .28);
  background: rgba(37, 99, 235, .09);
}
[data-theme="dark"] .report-detail__species-explorer-link {
  color: #60a5fa;
}
[data-theme="dark"] .report-detail__section-head h2 {
  color: #f8fafc;
  background: rgba(15, 23, 42, .16);
  border-color: rgba(148, 163, 184, .28);
}
[data-theme="dark"] .report-detail__section-head p {
  color: rgba(226, 232, 240, .68);
}
[data-theme="dark"] .report-detail__environment {
  background:
    radial-gradient(circle at 16% 0%, rgba(14, 165, 233, .22), transparent 42%),
    radial-gradient(circle at 100% 100%, rgba(37, 99, 235, .22), transparent 48%),
    rgba(15, 23, 42, .72);
  border-color: rgba(96, 165, 250, .24);
}
[data-theme="dark"] .report-detail__environment-title {
  color: #bfdbfe;
  border-color: rgba(96, 165, 250, .3);
  background: rgba(30, 64, 175, .32);
}
[data-theme="dark"] .report-detail__environment-summary::after {
  border-color: rgba(147, 197, 253, .84);
}
[data-theme="dark"] .report-detail__environment-summary {
  background: rgba(15, 23, 42, .22);
}
[data-theme="dark"] .report-detail__environment-copy,
[data-theme="dark"] .report-detail__environment-meta {
  color: rgba(226, 232, 240, .72);
}
[data-theme="dark"] .report-detail__environment-group {
  background: rgba(15, 23, 42, .46);
  border-color: rgba(148, 163, 184, .18);
}
[data-theme="dark"] .report-detail__environment-group h3 {
  color: #93c5fd;
}
[data-theme="dark"] .report-detail__environment-metric dt {
  color: rgba(203, 213, 225, .68);
}
[data-theme="dark"] .report-detail__environment-chip {
  background: rgba(14, 165, 233, .12);
  border-color: rgba(125, 211, 252, .18);
  color: #f8fafc;
}
.report-detail__comment-title {
  font-weight:600;
  font-size:.9rem;
  margin-bottom:.25rem;
}
.report-detail__technical-list {
  display: grid;
  gap: .75rem;
}
.report-detail__validation-list {
  display: grid;
  gap: .75rem;
  color: #f8fbff;
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
  border-color: rgba(147,197,253,.7);
  box-shadow: 0 10px 24px rgba(14, 116, 144, .22);
}
.report-detail__validation-list .report-detail__comment-title {
  margin-bottom: 0;
  color: rgba(255,255,255,.92);
}
[data-theme="dark"] .report-detail__validation-list {
  background: linear-gradient(135deg, #2563eb, #0284c7);
  border-color: rgba(147,197,253,.45);
  color: #f8fbff;
}
.report-detail__technical-item {
  display: grid;
  gap: .35rem;
  padding-top: .65rem;
  border-top: 1px solid rgba(148,163,184,.25);
}
.report-detail__validation-item {
  display: grid;
  gap: .35rem;
  padding-top: .65rem;
  border-top: 1px solid rgba(255,255,255,.25);
}
.report-detail__technical-item:first-of-type {
  padding-top: 0;
  border-top: 0;
}
.report-detail__validation-item:first-of-type {
  padding-top: 0;
  border-top: 0;
}
.report-detail__technical-head {
  display: flex;
  justify-content: space-between;
  gap: .6rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}
.report-detail__validation-head {
  display: flex;
  justify-content: flex-start;
  gap: .6rem;
  flex-wrap: wrap;
  color: rgba(255,255,255,.76);
  font-size: .78rem;
  font-weight: 700;
}
.report-detail__technical-type {
  color: var(--brand);
}
.report-detail__technical-author {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}
.report-detail__validation-list .report-detail__technical-author {
  color: rgba(255,255,255,.92);
}
.report-detail__technical-accordion {
  margin-top: .45rem;
  border: 1px dashed rgba(59,130,246,.45);
  border-radius: 10px;
  padding: .35rem .78rem .72rem;
  background: rgba(37,99,235,.08);
}
.report-detail__technical-accordion-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .45rem;
  font-weight: 800;
  margin: 0;
  padding: .25rem 0;
}
.report-detail__technical-accordion-summary::-webkit-details-marker {
  display: none;
}
.report-detail__technical-accordion-summary::before {
  content: "+";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(59,130,246,.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  line-height: 1;
}
.report-detail__technical-accordion[open] .report-detail__technical-accordion-summary::before {
  content: "-";
}
.report-detail__technical-accordion-help {
  margin: .28rem 0 .65rem;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.45;
}
.report-detail__collaboration-form {
  display: grid;
  gap: .7rem;
}
.report-detail__collaboration-form > .button,
.report-detail__technical-accordion > .button {
  width: 100%;
  justify-content: center;
  font-size: .92rem;
}
.report-detail__technical-accordion > .button {
  margin-top: .7rem;
}
.report-detail__technical-form {
  display: grid;
  gap: .65rem;
}
.report-detail__technical-form p {
  display: grid;
  gap: .32rem;
  margin: 0;
}
.report-detail__technical-form label {
  font-size: .86rem;
  font-weight: 700;
}
.report-detail__technical-form select,
.report-detail__technical-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .65rem .72rem;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
}
.report-detail__technical-form .helptext {
  color: var(--muted);
  font-size: .8rem;
}
.report-detail__technical-form .errorlist {
  margin: 0;
  padding-left: 1.1rem;
  color: #b91c1c;
}
.report-detail__validation-form {
  display: grid;
  gap: .5rem;
  padding: .65rem 0 0;
  border-top: 1px solid rgba(148,163,184,.25);
}
.report-detail__validation-check {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.35;
}
.report-detail__validation-check input {
  width: 18px;
  height: 18px;
  margin-top: .08rem;
  accent-color: var(--brand);
}
.report-detail__validation-help,
.report-detail__validation-state {
  margin: 0;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.45;
}
.report-detail__validation-state {
  margin-top: .65rem;
  font-weight: 800;
  color: #15803d;
}
[data-theme="dark"] .report-detail__validation-state {
  color: #86efac;
}
.report-detail__celebration {
  margin-bottom: 1rem;
  padding: .9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(14, 116, 144, .25);
  background: linear-gradient(135deg, #ecfeff, #eff6ff);
  color: #0f172a;
}
.report-detail__celebration-title {
  font-size: .98rem;
  font-weight: 700;
}
.report-detail__celebration-text {
  margin-top: .2rem;
  font-size: .88rem;
  color: #0f172a;
}
.share-modal {
  position: fixed;
  inset: 0;
  z-index: 1600;
  padding: 1rem;
  display: grid;
  place-items: center;
}
.share-modal[hidden] {
  display: none !important;
}
.share-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 6, 23, .72);
  cursor: pointer;
}
.share-modal__dialog {
  position: relative;
  width: min(940px, 100%);
  max-height: 92vh;
  overflow: auto;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,.38);
  background: #0b1220;
  box-shadow: 0 24px 56px rgba(2, 6, 23, .55);
  z-index: 1;
}
.share-modal__close {
  position: sticky;
  top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 10px 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.35);
  background: rgba(15,23,42,.82);
  color: #e2e8f0;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.share-modal .report-share {
  margin-top: 0;
  border: 0;
  border-radius: 16px;
  padding: 1.1rem;
}
.share-modal .report-share-card__media img {
  max-height: min(58vh, 520px);
}
.report-share {
  margin-top: .75rem;
  padding: .9rem;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, .2);
  background: linear-gradient(180deg, rgba(239,246,255,.95), rgba(248,250,252,.95));
  display: grid;
  gap: .75rem;
}
.report-share__header {
  display: grid;
  gap: .2rem;
}
.report-share__title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e3a8a;
}
.report-share__text {
  margin: 0;
  font-size: .88rem;
  color: #334155;
}
.report-share__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
}
.report-share__actions .btn,
.report-share__actions .popup-share {
  margin: 0;
}
.report-share__secondary {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
}
.report-share__secondary[hidden] {
  display: none !important;
}
.report-share__feedback {
  margin: 0;
  min-height: 1.1rem;
  font-size: .82rem;
  color: #475569;
}
.report-share__feedback[data-tone="ok"] {
  color: #166534;
}
.report-share__feedback[data-tone="error"] {
  color: #b91c1c;
}
.report-share-card {
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.report-share-card__media img {
  width: 100%;
  max-width: min(100%, 320px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}
.report-share-card__media--empty {
  min-height: 180px;
  margin: .8rem .8rem 0;
  padding: 1.2rem 1rem;
  border: 2px dashed rgba(148,163,184,.45);
  border-radius: 12px;
  background: #f8fafc;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: .35rem;
  text-align: center;
}
.report-share-card__empty-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(148,163,184,.2);
  border: 1px solid rgba(148,163,184,.35);
  position: relative;
  color: #64748b;
}
.report-share-card__empty-icon::before {
  content: "";
  position: absolute;
  inset: 9px;
  opacity: .8;
  background: no-repeat center/contain;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='currentColor' d='M18.3 5.7a1 1 0 0 1 0 1.4L13.4 12l4.9 4.9a1 1 0 1 1-1.4 1.4L12 13.4l-4.9 4.9a1 1 0 1 1-1.4-1.4L10.6 12 5.7 7.1a1 1 0 1 1 1.4-1.4L12 10.6l4.9-4.9a1 1 0 0 1 1.4 0Z'/></svg>");
}
.report-share-card__empty-title {
  font-size: .96rem;
  font-weight: 700;
  color: #0f172a;
}
.report-share-card__empty-text {
  font-size: .82rem;
  color: #475569;
  line-height: 1.35;
  max-width: 34ch;
}
.report-share-card__body {
  padding: .7rem .8rem .8rem;
  display: grid;
  gap: .22rem;
}
.report-share-card__eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748b;
}
.report-share-card__title {
  font-size: .9rem;
  font-weight: 700;
  color: #0f172a;
}
.report-share-card__reporter {
  font-size: .8rem;
  font-weight: 600;
  color: #475569;
}
.report-share-card__description {
  font-size: .82rem;
  color: #334155;
  line-height: 1.35;
}
.report-share-card__brand {
  font-size: .76rem;
  font-weight: 700;
  color: #1d4ed8;
}
.report-detail__actions {
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 120px));
  justify-content:end;
  gap: .5rem;
  width: 100%;
  margin-left: auto;
  align-self: stretch;
}
.report-detail__actions:not(:has(.report-detail__edit-link)) {
  grid-template-columns: repeat(2, minmax(0, 120px));
}
.report-detail__footer {
  margin-top:.75rem;
  display:grid;
  justify-items:end;
  gap:.75rem;
}
.report-detail__actions .popup-detail,
.report-detail__actions .popup-share {
  margin: 0;
}

/* Force right alignment for detail page actions even if external rules/extensions inject flex-start */
.report-detail__footer {
  display: grid !important;
  justify-items: end !important;
}
.report-detail__actions {
  display: grid !important;
  justify-content: end !important;
  text-align: right !important;
}
.report-detail__actions .report-detail__edit-link.popup-detail {
  min-height: 40px;
  justify-content: center;
  font-weight: 800;
  background: #0f172a;
  border-color: #0f172a;
  color: #fff !important;
  box-shadow: none;
}
.report-detail__actions .report-detail__edit-link.popup-detail:hover,
.report-detail__actions .report-detail__edit-link.popup-detail:focus {
  background: #1e293b;
  border-color: #1e293b;
  color: #fff !important;
}
[data-theme="dark"] .report-detail__actions .report-detail__edit-link.popup-detail {
  background: #f8fafc;
  border-color: #f8fafc;
  color: #0f172a !important;
}
[data-theme="dark"] .report-detail__actions .report-detail__edit-link.popup-detail:hover,
[data-theme="dark"] .report-detail__actions .report-detail__edit-link.popup-detail:focus {
  background: #e2e8f0;
  border-color: #e2e8f0;
  color: #0f172a !important;
}
.report-detail__actions .popup-detail,
.report-detail__actions .popup-share {
  display: inline-flex !important;
  width: 100%;
  min-width: 0;
  justify-content: center;
  float: none !important;
  clear: none;
  margin: 0 !important;
}
@media (max-width: 900px){
  .report-detail__info { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px){
  .report-detail__actions,
  .report-detail__actions:not(:has(.report-detail__edit-link)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch !important;
  }
  .report-detail__actions .report-detail__edit-link.popup-detail {
    grid-column: 1 / -1;
  }
}
@media (min-width: 760px){
  .report-detail__hero-actions {
    width: auto;
    flex: 0 0 auto;
  }
  .report-detail__hero-actions .popup-detail,
  .report-detail__hero-actions .popup-share {
    flex: 0 0 auto;
    min-width: 112px;
  }
}
@media (min-width: 1024px){
  .report-detail {
    max-width: 1160px;
    padding: 0 1.25rem;
  }
  .report-detail__shell {
    display: grid;
    gap: 1rem;
    padding: 1rem;
  }
  .report-detail__main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 1rem;
  }
  .report-detail__left {
    display: grid;
    gap: 1rem;
    align-content: start;
    min-width: 0;
    height: 100%;
  }
  .report-detail__left > .report-detail__policy {
    margin: 0;
  }
  .report-detail__policy--left-fallback {
    display: none;
  }
  .report-detail__policy--right {
    display: grid;
    align-content: start;
    align-self: stretch;
    height: 100%;
  }
  .report-detail__cover {
    border-radius: 10px;
  }
  .card .report-detail__body {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    align-content: stretch;
    padding: 0;
    height: 100%;
  }
  .report-detail__environment {
    align-self: stretch;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
  }
  .report-detail__environment-summary {
    cursor: default;
    pointer-events: none;
  }
  .report-detail__environment-summary::after {
    content: none;
  }
  .report-detail__environment-panel {
    align-content: start;
  }
  .report-detail__secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
  }
  .report-detail__comment-accordion,
  .report-detail__credit-block,
  .report-detail__secondary-full,
  .report-detail__source-box,
  .report-detail__technical-list,
  .report-detail__validation-list,
  .report-detail__collaboration-box,
  .report-detail__secondary > .report-detail__footer {
    grid-column: 1 / -1;
  }
  .report-detail__secondary > .report-detail__species-explorer {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .report-detail__species-explorer-link {
    min-width: 220px;
    padding-inline: 1rem;
  }
}
@media (max-width: 640px){
  .report-detail {
    padding: 0 .65rem;
  }
  .report-detail__cover {
    aspect-ratio: 4 / 5;
    min-height: 0;
    max-height: none;
    padding: 1.35rem;
    padding-bottom: 1rem;
    border-radius: 0;
  }
  .report-detail__cover-top {
    top: calc(env(safe-area-inset-top, 0px) + 1.25rem);
    left: 1.25rem;
    right: 1.25rem;
    gap: .35rem;
  }
  .report-detail__cover-id {
    min-height: 24px;
    padding: .22rem .5rem;
    font-size: .6rem;
  }
  .report-detail__cover-icon,
  .report-detail__cover-photo-action {
    width: 26px;
    height: 26px;
  }
  .report-detail__cover-photo-action {
    right: 1.2rem;
    bottom: 1rem;
  }
  .report-detail__header { flex-direction: column; align-items:flex-start; }
  .report-detail__title { align-self: stretch; }
  .report-detail__title {
    font-size: 1.48rem;
    flex-wrap: wrap;
    gap: .45rem;
  }
  .report-detail__title-text {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  .report-detail__meta {
    text-align: left;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: .35rem;
    font-size: .86rem;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
  }
  .report-detail__meta-item { min-width: 0; }
  .report-detail__meta-item:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .report-detail__meta-dot { flex: 0 0 auto; opacity: .45; }
  .report-detail__meta-ico { width: 12px; height: 12px; }
  .report-detail__cover .report-detail__title {
    font-size: min(1.36rem, 6cqw);
    line-height: .94;
    flex-wrap: nowrap;
  }
  .report-detail__cover .report-detail__scientific {
    font-size: clamp(.78rem, 3vw, .92rem);
  }
  .report-detail__cover .report-detail__meta {
    flex-wrap: wrap;
    white-space: normal;
    overflow: visible;
    font-size: .68rem;
    row-gap: .36rem;
    column-gap: .86rem;
  }
  .report-detail__cover-meta-main { font-size: .78rem; }
  .report-detail__cover-meta-sub { font-size: .58rem; }
  .report-detail__cover-coords { font-size: .68rem; }
  .report-detail__cover .report-detail__meta-ico {
    flex-basis: 14px;
    width: 14px;
    height: 14px;
  }
  .report-detail__cover .report-detail__meta-item,
  .report-detail__cover .report-detail__meta-item:last-child {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    max-width: 100%;
  }
}
@media (max-width: 375px){
  .report-detail__meta { font-size: .82rem; }
}
@media (max-width: 330px){
  .report-detail__meta {
    flex-wrap: wrap;
    white-space: normal;
    overflow: visible;
    row-gap: .25rem;
  }
  .report-detail__meta-item,
  .report-detail__meta-item:last-child {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  .report-detail__meta-dot { display: none; }
}
@media (max-width: 520px){
  .report-detail__info { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .report-detail__info > div {
    min-height: 88px;
    padding: .58rem .46rem;
    align-content: start;
  }
  .report-detail__info dt {
    max-width: 100%;
    font-size: clamp(.58rem, 2.8vw, .66rem);
    line-height: 1.15;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  .report-detail__info dd {
    font-size: clamp(.78rem, 3.4vw, .88rem);
    line-height: 1.18;
  }
  .report-detail__environment {
    border-radius: 8px;
  }
  .report-detail__environment-summary {
    padding: .78rem;
  }
  .report-detail__environment-panel {
    padding: 0 .78rem .78rem;
    grid-template-columns: 1fr;
    gap: .62rem;
  }
  .report-detail__environment-metric {
    gap: .5rem;
  }
}
[data-theme="dark"] .report-detail__celebration {
  border-color: rgba(56, 189, 248, .35);
  background: linear-gradient(135deg, rgba(6, 78, 59, .4), rgba(30, 64, 175, .4));
  color: #e2e8f0;
}
[data-theme="dark"] .report-detail__celebration-text {
  color: #cbd5e1;
}
[data-theme="dark"] .share-modal__backdrop {
  background: rgba(2, 6, 23, .8);
}
[data-theme="dark"] .share-modal__dialog {
  border-color: rgba(148,163,184,.45);
}
[data-theme="dark"] .share-modal__close {
  border-color: rgba(148,163,184,.45);
  background: rgba(15,23,42,.95);
}
[data-theme="dark"] .report-share {
  border-color: rgba(96, 165, 250, .35);
  background: linear-gradient(180deg, rgba(15,23,42,.7), rgba(30,41,59,.7));
}
[data-theme="dark"] .report-share__title {
  color: #bfdbfe;
}
[data-theme="dark"] .report-share__text,
[data-theme="dark"] .report-share__feedback {
  color: #cbd5e1;
}
[data-theme="dark"] .report-share__feedback[data-tone="ok"] {
  color: #86efac;
}
[data-theme="dark"] .report-share__feedback[data-tone="error"] {
  color: #fca5a5;
}
[data-theme="dark"] .report-share-card {
  background: rgba(15,23,42,.9);
  border-color: rgba(148,163,184,.35);
}
[data-theme="dark"] .report-share-card__title {
  color: #e2e8f0;
}
[data-theme="dark"] .report-share-card__reporter {
  color: #cbd5e1;
}
[data-theme="dark"] .report-share-card__description {
  color: #cbd5e1;
}
[data-theme="dark"] .report-detail__header {
  background:
    linear-gradient(135deg, rgba(14,116,144,.22), rgba(56,189,248,.08)),
    var(--card);
  border-color: rgba(255,255,255,.12);
}
[data-theme="dark"] .report-detail__source-box {
  background: rgba(14,116,144,.14);
  border-color: rgba(103,232,249,.22);
}
[data-theme="dark"] .report-share-card__eyebrow {
  color: #94a3b8;
}
[data-theme="dark"] .report-share-card__brand {
  color: #93c5fd;
}
[data-theme="dark"] .report-share-card__media--empty {
  background: rgba(15,23,42,.65);
  border-color: rgba(148,163,184,.4);
}
[data-theme="dark"] .report-share-card__empty-icon {
  background: rgba(148,163,184,.16);
  border-color: rgba(148,163,184,.35);
  color: #94a3b8;
}
[data-theme="dark"] .report-share-card__empty-title {
  color: #e2e8f0;
}
[data-theme="dark"] .report-share-card__empty-text {
  color: #cbd5e1;
}
[data-theme="dark"] .report-detail__media--empty {
  background: #0f3551;
  color: #94a3b8;
}
.report-detail__media-empty-icon {
  font-size: 2rem;
  line-height: 1;
}
.report-detail__media-empty-title { font-weight: 700; font-size: .98rem; }
