/* ManualeReef Atlas MOLLI v286 scoped gallery. */
.mr-molli-gallery{border:1px solid #c8dfe9;border-radius:18px;padding:clamp(12px,2.5vw,24px);margin:22px 0;background:#f2f9fc;color:#0c3a54;min-width:0}
.mr-molli-gallery-header>span{font-weight:800;letter-spacing:.09em;font-size:11px;color:#08749a}
.mr-molli-gallery-header h2{font-family:Georgia,serif;font-size:clamp(22px,3vw,32px);color:#062f47;margin:7px 0 10px}
.mr-molli-gallery-header p{font-size:13px;line-height:1.6;color:#325d70;max-width:800px}
.mr-molli-gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:18px}
.mr-molli-gallery-figure{margin:0;border:1px solid #c7dfe9;border-radius:14px;overflow:hidden;min-width:0;background:#fff}
.mr-molli-gallery-zoom{border:0;background:#06283e;display:block;width:100%;padding:0;cursor:zoom-in}
.mr-molli-gallery-zoom img{display:block;width:100%;height:clamp(180px,24vw,310px);object-fit:cover}
.mr-molli-gallery-zoom:focus-visible{outline:3px solid #e9b84c;outline-offset:-3px}
.mr-molli-gallery-figure figcaption{padding:12px 13px 13px;display:flex;flex-direction:column;gap:5px}
.mr-molli-gallery-figure strong{font-size:14px;line-height:1.3;color:#123e53}
.mr-molli-gallery-figure small{font-size:10px;font-weight:700;letter-spacing:.03em;color:#216783}
.mr-molli-gallery-overlay{position:fixed;inset:0;z-index:99999;background:rgba(0,18,32,.94);display:flex;flex-direction:column;justify-content:center;align-items:center;padding:56px 16px 22px;gap:14px}
.mr-molli-gallery-overlay img{max-width:96vw;max-height:76vh;object-fit:contain;border:1px solid #2ca5c8;border-radius:12px}
.mr-molli-gallery-overlay p{color:#f4f8fc;font-size:13px;line-height:1.4;text-align:center}
.mr-molli-gallery-close{position:absolute;right:clamp(16px,4vw,48px);top:15px;width:42px;height:42px;border:1px solid #74d2e5;border-radius:12px;background:#03263a;color:#fff;font-size:30px;cursor:pointer}
body.mr-molli-modal-open{overflow:hidden}
@media(max-width:650px){.mr-molli-gallery-grid{grid-template-columns:1fr;gap:12px}.mr-molli-gallery-zoom img{height:auto;max-height:380px;object-fit:contain}}

/* ManualeReef v288 species-linked soft coral knowledge */
.mr-molli-notes{margin:20px 0;padding:22px;border:1px solid #b9dce7;border-radius:17px;background:#f4fafb;color:#12384c;min-width:0}
.mr-molli-notes-eyebrow{color:#087a9a;font-size:11px;font-weight:800;letter-spacing:.1em}
.mr-molli-notes h2{color:#093752;font-size:clamp(20px,2vw,26px);line-height:1.3;margin:9px 0 15px}
.mr-molli-notes-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.mr-molli-notes-card{background:#fff;border:1px solid #d5e8ef;border-radius:11px;padding:16px}
.mr-molli-notes-card h3{color:#06324b;font-size:16px;margin:0 0 8px}
.mr-molli-notes-card p{color:#344f5d;font-size:14px;line-height:1.7;margin:0}
.mr-molli-notes-source{background:#fff4d7;color:#252e37;border-radius:9px;margin:14px 0 0;padding:12px 15px;font-size:13px;line-height:1.65}
.mr-molli-notes-source a{color:#045580;font-weight:750;text-decoration:underline}
.mr-molli-notes-caveat{color:#4b6878;font-size:12px;line-height:1.55;margin:12px 0 0}
@media(max-width:680px){.mr-molli-notes{padding:13px}.mr-molli-notes-grid{grid-template-columns:1fr}.mr-molli-notes-card{padding:13px}}


/* v296: independent species views, no hero repeat */
.mr-molli-gallery-grid.mr-gallery-count-1{grid-template-columns:minmax(0, min(100%,630px));justify-content:start}
.mr-molli-gallery-grid.mr-gallery-count-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.mr-molli-gallery-grid.mr-gallery-count-1 .mr-molli-gallery-zoom img{height:auto;max-height:350px;object-fit:contain;background:#eaf3f9}
@media(max-width:850px){.mr-molli-gallery-grid.mr-gallery-count-3{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.mr-molli-gallery-grid.mr-gallery-count-3{grid-template-columns:1fr}}

/* v296 chapter style and labels */
.mr296-crossref{margin:16px 0 22px;border:1px solid #c9e3ed;border-radius:15px;background:#f1f9fc;padding:18px 22px;color:#20495e}
.mr296-crossref h2{font-family:Georgia,serif;font-size:clamp(19px,2vw,25px);margin:7px 0}
.mr296-crossref p{font-size:14px;line-height:1.7;margin:10px 0 12px}
.mr296-eyebrow{color:#08749a;font-size:11px;letter-spacing:.1em;font-weight:800}
.mr296-crossref a{color:#036b97;text-decoration:underline;font-weight:800;font-size:13px}
.mr296-hero-ai-tag{display:block;width:100%;color:#174f65;background:#eef8fb;font-size:11px;line-height:1.5;padding:7px 11px;box-sizing:border-box}
.mr296-related img{object-fit:cover}
.mr296-related .similar-grid a span{line-height:1.4;overflow-wrap:anywhere}
.mr296-anchor{display:block;scroll-margin-top:115px}
@media(max-width:600px){.mr296-crossref{padding:13px 15px}}

/* v297 comparative morphology diagram (non-diagnostic) */
.mr297-diagram{margin:16px 0 18px;padding:clamp(12px,2vw,19px);border:1px solid #bfdbe8;border-radius:14px;background:#fff;color:#1a4155}
.mr297-diagram h3{font:700 clamp(18px,2vw,23px)/1.3 Georgia,serif;margin:0 0 8px;color:#123a50}
.mr297-diagram p{font-size:13px;line-height:1.7;color:#3b6074;margin:0 0 12px}
.mr297-diagram-scroll{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:12px}
.mr297-diagram-scroll img{display:block;width:100%;min-width:740px;height:auto;background:#f2f9fc}
.mr297-companion{border:1px solid #c6dde7;border-radius:13px;background:#f2f9fc;margin:18px 0;padding:17px;color:#173d52;line-height:1.65}
.mr297-companion strong{font-size:15px}.mr297-companion p,.mr297-companion a{font-size:13px}.mr297-companion a{color:#035c81;text-decoration:underline;font-weight:800}
@media(max-width:650px){.mr297-diagram{padding:11px}.mr297-diagram-scroll:before{content:'Scorri per vedere le tre morfologie →';font-size:11px;display:block;padding:8px;background:#e9f2f7;color:#24516a}}

/* v298: Briareum synonym comparison and extended Clavularia anatomy comparison */
.mr298-names{border:1px solid #c9e0e9;border-radius:17px;background:#f3f9fc;padding:clamp(15px,2.2vw,23px);color:#153f55;margin:22px 0 28px;overflow:hidden}
.mr298-eyebrow{color:#a46d14;font-size:12px;letter-spacing:.09em;font-weight:850}
.mr298-names h2{font-family:Georgia,serif!important;font-size:clamp(21px,2.2vw,29px)!important;line-height:1.3;color:#0d3149!important}
.mr298-names p{font-size:14px!important;line-height:1.75!important;color:#34556a!important}
.mr298-names h3{font-size:17px;font-weight:800;color:#153c53}
.mr298-table-wrap{overflow-x:auto;max-width:100%;border:1px solid #d3e4ed;border-radius:12px}
.mr298-table{width:100%;min-width:625px;background:white;border-collapse:collapse;font-size:13px;line-height:1.65;color:#163e53}
.mr298-table th,.mr298-table td{padding:12px 14px;border-bottom:1px solid #dbe9f0;text-align:left;vertical-align:top}
.mr298-table thead th{background:#0e3b54;color:#fff}.mr298-table tbody th{background:#e9f3f8;font-weight:800;width:20%}
.mr298-lookalike{margin:17px 0 0;padding:13px 17px;background:#fff;border-left:4px solid #c59439;border-radius:10px}
.mr298-names a{color:#075d84!important;text-decoration:underline;font-weight:700}
.mr298-compare-hint{border-left:4px solid #bf8d33;padding:10px 12px;background:#fffaf0;color:#344c59;font-size:13px;line-height:1.65}
@media(max-width:600px){.mr298-names{padding:12px}.mr298-table{min-width:570px}}

/* v298 visual audit - clear visual status of retained versus withdrawn coral illustrations */
.mr298-media-audit{background:#f3f9fc;border:1px solid #c5dee9;border-left:5px solid #c29743;border-radius:14px;padding:clamp(13px,2.1vw,22px);margin:18px 0 25px;color:#153e54;line-height:1.7;clear:both}
.mr298-media-audit h2{font:700 clamp(20px,2.2vw,29px)/1.3 Georgia,serif;color:#0d364d;margin:6px 0 13px}
.mr298-media-audit p{font-size:14px!important;color:#32566b!important;line-height:1.75!important;margin:10px 0!important}
.mr298-media-audit a{color:#095a81!important;font-weight:700;text-decoration:underline}

/* v299 | Side-by-side observational morphotypes in Atlas */
.mr299-reef-observation{margin:18px 0 24px;padding:clamp(13px,2vw,23px);border:1px solid #c7e0ea;border-radius:15px;background:#fff}
.mr299-reef-observation h3{font-family:Georgia,serif;font-size:clamp(19px,2.2vw,27px);line-height:1.3;color:#0f384f;margin:8px 0 13px}
.mr299-reef-observation p{font-size:14px!important;line-height:1.75!important;color:#35576a!important}
.mr299-two-morphs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:14px 0 20px}
.mr299-morph{background:#f2f8fc;border:1px solid #ccdfeb;border-radius:13px;padding:15px}
.mr299-morph:first-child{border-top:4px solid #6a448d}.mr299-morph:last-child{border-top:4px solid #a597d0}
.mr299-morph span{color:#113f58;display:block;font-size:14px;font-weight:850}.mr299-morph p{margin-bottom:0}
.mr299-check{border-left:4px solid #bf933c;padding:11px 15px;background:#fff9ec;border-radius:6px}
.mr299-readmore a{display:block;background:#082f4a;color:#fff!important;border-radius:11px;padding:13px 16px;font-size:14px;text-decoration:none;font-weight:800}
.mr299-ref{font-size:12px!important;color:#3c6174}
@media(max-width:700px){.mr299-two-morphs{grid-template-columns:1fr}}
