.species-editorial { max-width: 960px; margin: 3rem auto; padding: 1rem 2rem; color: var(--ink, #e9fbf7); background: rgba(4, 26, 36, .96); border: 1px solid var(--line); border-radius: 18px; }
.species-editorial section { padding: 1.6rem 0; border-top: 1px solid var(--line); }
.species-editorial h2 { margin: 0 0 1.25rem; font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
.species-editorial h3 { font-size: 1.05rem; margin: 1.2rem 0 .5rem; }
.editorial-prose { white-space: pre-line; line-height: 1.8; overflow-wrap: anywhere; }
.editorial-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.editorial-table-wrap table { border-collapse: collapse; width: 100%; min-width: 520px; text-align: left; font-size: .95rem; }
.editorial-table-wrap caption { text-align: left; padding: .8rem 1rem; font-weight: 600; background: #0b3343; }
.editorial-table-wrap th, .editorial-table-wrap td { padding: .8rem 1rem; border-top: 1px solid var(--line); vertical-align: top; }
.editorial-table-wrap thead { background: #123e4b; }
.editorial-citation { margin-left: .35em; white-space: nowrap; }
.editorial-note, .editorial-review { font-size: .85rem; color: #aac9cd; line-height: 1.6; }
.profile-distribution > .editorial-note { margin: .7rem 1rem; }
.editorial-references { padding-left: 1.4rem; }
.editorial-references li { margin: .8rem 0; line-height: 1.6; overflow-wrap: anywhere; scroll-margin-top: 7rem; }
.editorial-references small { display: block; color: #aac9cd; }
.editorial-editor { min-width: 0; }
.editorial-locale { border: 1px solid var(--line); border-radius: 10px; padding: 1rem; min-width: 0; }
.editorial-locale summary { font-size: 1.15rem; font-weight: 650; cursor: pointer; }
.editorial-locale section { margin: 1.5rem 0; }
.editorial-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.editorial-row label { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.editorial-row [data-editorial-remove] { justify-self: start; }
.editorial-alt-row { display: flex; gap: 1rem; align-items: center; margin: 1rem 0; }
.editorial-alt-row img { width: 80px; height: 60px; object-fit: contain; }
.editorial-alt-row span { flex: 1; min-width: 0; }
.editorial-alt-row input { display: block; width: 100%; }
@media (max-width: 600px) {
  .species-editorial { margin: 2rem 0; padding: .5rem 1rem; }
  .editorial-row { grid-template-columns: 1fr; }
  .editorial-locale { padding: .75rem; }
}

/* Recorded species details follow the ocean panels of the profile. */
.species-editorial { max-width: none; margin: 2rem 0; padding: 0; background: none; border: 0; border-radius: 0; }
.species-editorial section { margin: 0 0 1.2rem; padding: 1.4rem 1.5rem; background: linear-gradient(135deg, rgba(4, 35, 48, .96), rgba(1, 23, 35, .94)); border: 1px solid rgba(156, 228, 234, .28); border-radius: 18px; box-shadow: 0 18px 45px rgba(0, 12, 22, .2); }
.editorial-section-heading { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.editorial-section-heading h2 { margin: 0 0 .35rem; font-family: Georgia, serif; }
.editorial-section-heading p { margin: 0; color: #c1dbe3; font-size: .9rem; line-height: 1.6; }
.editorial-section-icon { flex: 0 0 42px; display: grid; place-items: center; width: 42px; height: 44px; font-size: 1.8rem; color: #8cf4f5; border: 1px solid #3994aa; border-radius: 12px; background: #093c4d; }
.editorial-measurements { display: grid; gap: 1.5rem; align-items: center; }
.editorial-measurements.has-diagram { grid-template-columns: minmax(220px, .85fr) minmax(0, 1.25fr); }
.editorial-size-diagram { margin: 0; padding: .5rem 1rem; text-align: center; }
.editorial-size-diagram img { display: block; width: 100%; height: 210px; object-fit: contain; }
.editorial-ruler { position: relative; height: 16px; margin: .4rem 0; border-left: 2px solid #86edf0; border-right: 2px solid #86edf0; }
.editorial-ruler::before { position: absolute; content: ''; left: 0; right: 0; top: 7px; border-top: 2px solid #86edf0; }
.editorial-size-diagram strong { font-size: 1.3rem; }
.editorial-size-diagram small, .editorial-table-wrap small { display: block; margin-top: .3rem; font-size: .8rem; font-weight: 400; color: #aecbd4; line-height: 1.55; }
.editorial-table-wrap table { min-width: 0; }
.editorial-table-wrap caption { background: transparent; }
.editorial-table-wrap th, .editorial-table-wrap td { padding: .85rem 1rem; vertical-align: middle; }
.editorial-table-wrap tbody tr:first-child > * { border-top: 0; }
.editorial-table-wrap th { width: 65%; font-weight: 500; }
.editorial-table-wrap td { border-left: 1px solid var(--line); }
.editorial-table-wrap td strong { white-space: nowrap; font-size: 1.15rem; }
.editorial-faq { display: grid; grid-template-columns: minmax(180px, .65fr) minmax(0, 1.35fr); gap: 1.2rem; align-items: start; padding: 1rem 1.15rem; margin: .6rem 0; border: 1px solid rgba(138, 212, 228, .3); border-radius: 11px; background: rgba(13, 62, 79, .35); }
.editorial-faq h3 { margin: 0; font-size: .95rem; line-height: 1.65; }
.editorial-faq p { margin: 0; font-size: .9rem; line-height: 1.7; color: #c1dbe3; }
@media (max-width: 700px) {
  .species-editorial section { padding: 1.1rem; }
  .editorial-measurements.has-diagram, .editorial-faq { grid-template-columns: 1fr; }
  .editorial-faq { gap: .5rem; }
  .editorial-size-diagram { max-width: 360px; width: 100%; margin: auto; }
  .editorial-table-wrap th, .editorial-table-wrap td { padding: .75rem .6rem; }
}
.species-editorial .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.editorial-section-icon { width: 56px; height: 56px; flex-basis: 56px; background: #03465b; border-color: #096077; color: #50e8ed; border-radius: 12px; }
.editorial-section-icon svg { width: 36px; height: 36px; }
.editorial-measurements.has-diagram { grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); }
.editorial-fish-frame { height: 180px; overflow: hidden; }
.editorial-fish-frame img { height: 100%; transform: scale(1.85); }
.editorial-table-wrap th, .editorial-table-wrap td { padding: 1.2rem 1rem; }
.editorial-faq { display: block; padding: 0; background: rgba(3,62,81,.6); border-color: #125266; }
.editorial-faq summary { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0,1.35fr) 18px; gap: 1.2rem; align-items: center; padding: 1rem 1.15rem; cursor: pointer; list-style: none; }
.editorial-faq summary::-webkit-details-marker { display: none; }
.editorial-faq .editorial-prose { font-size: .9rem; color: #c1dbe3; line-height: 1.7; }
.editorial-faq:not([open]) .editorial-prose { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.editorial-faq-arrow { width: 18px; height: 18px; fill: none; stroke: #b1e4ee; stroke-width: 2; }
.editorial-faq[open] .editorial-faq-arrow { transform: rotate(90deg); }
@media(max-width:700px) { .editorial-measurements.has-diagram { grid-template-columns: 1fr; } .editorial-faq summary { grid-template-columns: minmax(0,1fr) 18px; gap: .5rem; } .editorial-faq .editorial-prose { grid-column: 1; grid-row: 2; } .editorial-faq-arrow { grid-column: 2; grid-row: 1; } }

/* Compact measurements panel. */
.species-editorial .editorial-size-section { padding: .75rem 1rem; }
.editorial-size-section .editorial-section-heading { gap: .8rem; margin-bottom: .4rem; }
.editorial-size-section h2 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); }
.editorial-size-section .editorial-section-heading p { font-size: .85rem; }
.editorial-size-section .editorial-section-icon { width: 40px; height: 40px; flex-basis: 40px; }
.editorial-size-section .editorial-section-icon svg { width: 26px; height: 26px; }
.editorial-size-section .editorial-measurements { gap: 1rem; }
.editorial-size-section .editorial-size-diagram { max-width: 260px; width: 100%; justify-self: center; padding: .25rem .75rem; }
.editorial-size-section .editorial-fish-frame { height: 85px; }
.editorial-size-section .editorial-size-diagram strong { font-size: 1.1rem; }
.editorial-size-section .editorial-table-wrap table { font-size: .9rem; }
.editorial-size-section .editorial-table-wrap th, .editorial-size-section .editorial-table-wrap td { padding: .55rem .7rem; }
.editorial-size-section .editorial-table-wrap td strong { font-size: 1rem; }
@media (max-width: 700px) {
  .species-editorial .editorial-size-section { padding: .75rem; }
  .editorial-size-section .editorial-size-diagram { max-width: 230px; }
  .editorial-size-section .editorial-fish-frame { height: 80px; }
  .editorial-size-section .editorial-table-wrap th, .editorial-size-section .editorial-table-wrap td { padding: .5rem .55rem; }
}
