/* Isla Noctis: styles for blocks, colours and layouts added with Noctis Studio. Loaded on every page, for everyone. */

/* Text */
.nx-al-center { text-align: center; margin-inline: auto; }
.nx-al-right { text-align: right; margin-left: auto; }
.nx-c-cyan { color: var(--cyan, #4fd8e8); }
.nx-c-gold { color: var(--amber, #e8953c); }
.nx-c-red { color: var(--red, #e5484d); }
.nx-c-green { color: var(--green, #6cc644); }
.nx-c-muted { color: var(--muted, #93aab1); }
.nx-small { font-size: .88em; }
.nx-big { font-size: 1.3em; font-weight: 600; line-height: 1.35; }
.nx-huge { font-size: clamp(1.6em, 4.2vw, 2.4em); font-weight: 700; line-height: 1.15; }
mark { background: rgba(232, 149, 60, .3); color: inherit; padding: 0 .15em; border-radius: 2px; }
blockquote:not([class]) { margin: 0 0 1rem; padding: .35rem 0 .35rem 1.1rem; border-left: 3px solid var(--line, #1f3a44); color: var(--muted, #93aab1); font-style: italic; max-width: 68ch; }
blockquote.nx-al-center:not(.nx-note) { border-left: 0; padding-left: 0; }

/* Spacing */
.nx-sp-0 { margin-block: 0 .25rem !important; }
.nx-sp-2 { margin-block: 1.75rem !important; }
main > section.nx-sp-0 { margin-block: -1.5rem 0 !important; }
main > section.nx-sp-2 { margin-block: 1.5rem !important; padding-block: .5rem; }

/* Section looks */
.nx-look-panel { background: var(--panel, #102027); border: 1px solid var(--line, #1f3a44); padding: 1.25rem 1.5rem; }
.nx-look-glow { background: radial-gradient(120% 140% at 0% 0%, rgba(79, 216, 232, .12), transparent 60%), var(--panel, #102027);
  border: 1px solid rgba(79, 216, 232, .35); box-shadow: 0 10px 40px rgba(79, 216, 232, .08); padding: 1.25rem 1.5rem; }
.nx-look-line { border-left: 3px solid var(--cyan, #4fd8e8); padding-left: 1.25rem; }
.nx-look-panel > :last-child, .nx-look-glow > :last-child { margin-bottom: 0; }

/* Widths (pictures, videos) */
.nx-w-75 { max-width: 75%; margin-inline: auto; }
.nx-w-50 { max-width: 50%; margin-inline: auto; }
.nx-w-33 { max-width: 33.333%; margin-inline: auto; }
@media (max-width: 40rem) { .nx-w-75, .nx-w-50, .nx-w-33 { max-width: 100%; } }

/* Notices */
.nx-note { margin: 0 0 1rem; padding: .7rem 1rem; border-left: 4px solid var(--amber, #e8953c); background: rgba(232, 149, 60, .1); max-width: 68ch; }
.nx-note.nx-tone-tip { border-left-color: var(--green, #6cc644); background: rgba(108, 198, 68, .1); }
.nx-note.nx-tone-warn { border-left-color: var(--red, #e5484d); background: rgba(229, 72, 77, .12); }
.nx-note.nx-tone-info { border-left-color: var(--blue, #4fa8e6); background: rgba(79, 168, 230, .1); }

/* Lists with ticks and numbered steps */
.nx-checks { list-style: none; padding-left: 0 !important; }
.nx-checks > li { position: relative; padding-left: 1.75rem; }
.nx-checks > li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  border: 1px solid rgba(108, 198, 68, .65); background: rgba(108, 198, 68, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236cc644' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 68% no-repeat; }
.nx-steps { list-style: none; padding-left: 0 !important; counter-reset: nxstep; }
.nx-steps > li { counter-increment: nxstep; position: relative; padding-left: 2.7rem; min-height: 2rem; margin-bottom: .9rem; }
.nx-steps > li::before { content: counter(nxstep); position: absolute; left: 0; top: -.1rem; width: 1.95rem; height: 1.95rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--panel, #102027); border: 2px solid var(--cyan, #4fd8e8); color: var(--cyan, #4fd8e8);
  font: 600 .95rem/1 var(--head, "Oswald", sans-serif); }

/* Buttons */
.nx-buttons { display: flex; flex-wrap: wrap; gap: .6rem; }
.nx-buttons.nx-al-center { justify-content: center; }
.nx-buttons.nx-al-right { justify-content: flex-end; }
.btn.nx-btn-alt { background: transparent; color: var(--text, #dbe7ea); box-shadow: inset 0 0 0 2px var(--line, #1f3a44); }
.btn.nx-btn-alt:hover { background: transparent; color: var(--cyan, #4fd8e8); box-shadow: inset 0 0 0 2px var(--cyan, #4fd8e8); }
.btn.nx-btn-gold { background: var(--amber, #e8953c); color: #1d1004; }
.btn.nx-btn-gold:hover { background: #f2aa5f; color: #1d1004; }

/* Pictures */
.nx-figure { margin: 0 0 1.1rem; border: 1px solid var(--line, #1f3a44); background: #050d12; }
.nx-figure img { width: 100%; }
.nx-figure figcaption { padding: .5rem .75rem; color: var(--muted, #93aab1); font-size: .92rem; border-top: 1px solid var(--line, #1f3a44); }

/* Cards and gallery */
.nx-cards { list-style: none; padding: 0 !important; margin: 1rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; max-width: none !important; }
.nx-cards > li { background: var(--panel, #102027); border: 1px solid var(--line, #1f3a44); border-top: 3px solid var(--cyan, #4fd8e8); padding: .8rem 1rem; margin: 0; min-width: 0; }
.nx-cards > li > h3 { margin: 0 0 .4rem; }
.nx-cards > li > p { margin: 0 0 .5rem; }
.nx-cards > li > :last-child { margin-bottom: 0; }
.nx-cards > li > img:first-child, .nx-cards > li > figure:first-child { margin: -.8rem -1rem .75rem; max-width: none; width: calc(100% + 2rem); }
.nx-cards > li::marker { content: ""; }
.nx-gallery { list-style: none; padding: 0 !important; margin: 1rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .75rem; max-width: none !important; }
.nx-gallery > li { margin: 0; border: 1px solid var(--line, #1f3a44); background: #050d12; }
.nx-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

/* Columns */
.nx-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); gap: 1.25rem 1.75rem; margin: 1rem 0; }
@media (min-width: 48rem) {
  .nx-cols.nx-cols-wl { grid-template-columns: 2fr 1fr; }
  .nx-cols.nx-cols-wl:has(> :nth-child(3)) { grid-template-columns: 2fr 1fr 1fr; }
  .nx-cols.nx-cols-wr { grid-template-columns: 1fr 2fr; }
  .nx-cols.nx-cols-wr:has(> :nth-child(3)) { grid-template-columns: 1fr 1fr 2fr; }
}
.nx-col { min-width: 0; }
.nx-col > h3:first-child { margin-top: 0; }
.nx-col > :last-child { margin-bottom: 0; }

/* Questions that open */
.nx-faq { border: 1px solid var(--line, #1f3a44); background: var(--panel, #102027); margin: 0 0 .6rem; max-width: 68ch; }
.nx-faq > summary { cursor: pointer; list-style: none; position: relative; padding: .8rem 2.75rem .8rem 1rem; font: 600 1.05rem/1.3 var(--head, "Oswald", sans-serif);
  text-transform: uppercase; letter-spacing: .02em; color: var(--cyan, #4fd8e8); }
.nx-faq > summary::-webkit-details-marker { display: none; }
.nx-faq > summary::after { content: "+"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font: 400 1.4rem/1 var(--body, sans-serif); color: var(--muted, #93aab1); }
.nx-faq[open] > summary::after { content: "−"; }
.nx-faq > :not(summary) { margin-inline: 1rem; }
.nx-faq > :last-child { margin-bottom: .9rem; }

/* Video */
.nx-video { position: relative; aspect-ratio: 16 / 9; margin: 0 0 1.1rem; border: 1px solid var(--line, #1f3a44); background: #050d12; }
.nx-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.nx-video:has(iframe[src="about:blank"]) { display: none; }

/* Tables */
.table-scroll:has(> .nx-table) { margin: 0 0 1rem; }
table.nx-table { background: var(--panel, #102027); border: 1px solid var(--line, #1f3a44); }
.nx-table th, .nx-table td { padding: .55rem .75rem; }
.nx-table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .02); }

/* Divider and space */
.nx-divider { border: 0; height: 1px; margin: 1.5rem 0; background: linear-gradient(90deg, transparent, var(--line, #1f3a44) 12%, var(--line, #1f3a44) 88%, transparent); }
.nx-spacer { height: 2.5rem; }
.nx-spacer.nx-gap-s { height: 1.25rem; }
.nx-spacer.nx-gap-l { height: 5rem; }

/* Site look (Studio version 4): a banner picture chosen in the Studio, lined up as chosen; the banner held still */
.banner.nx-pic img { object-position: var(--nx-banner-focus, 50% 38%); }
.banner.nx-pic #banner-gl { display: none !important; }
.banner.still img, .banner.still #banner-gl { animation: none !important; transform: none !important; }
.banner.still .mist, .banner.still #banner-spores { display: none !important; }

/* Dinosaurs page cards (version 4: in the site's own look; the stats come from Dino cards in the Studio) */
.species-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 1rem; margin: 1rem 0; align-items: start; }
.species { --diet: var(--cyan, #4fd8e8); background: var(--panel, #102027); border: 1px solid var(--line, #1f3a44); border-top: 3px solid var(--diet); min-width: 0; scroll-margin-top: 4rem; }
.species.carn { --diet: var(--red, #e5484d); }
.species.herb { --diet: var(--green, #6cc644); }
.species.omni { --diet: var(--blue, #4fa8e6); }
.species-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line, #1f3a44); }
.species-img.left { object-position: left; }
.species header { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .75rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line, #1f3a44); }
.species h3 { margin: 0; flex: 1 1 auto; font-size: 1.35rem; color: var(--diet); overflow-wrap: anywhere; }
.species .tier { font: 500 .8rem/1 var(--head, "Oswald", sans-serif); letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #93aab1); }
.species .ability { flex-basis: 100%; font: 600 .8rem/1.25 var(--body, sans-serif); color: var(--amber, #e8953c); text-transform: uppercase; letter-spacing: .05em; }
.species .stat-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.species .stat-table th, .species .stat-table td { padding: .4rem .45rem; text-align: right; font-size: .93rem; border-bottom: 0; }
.species .stat-table th:first-child { text-align: left; padding-left: 1rem; }
.species .stat-table td:last-child, .species .stat-table thead th:last-child { padding-right: 1rem; }
.species .stat-table thead th { font: 500 .78rem/1 var(--head, "Oswald", sans-serif); letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #93aab1); padding-top: .7rem; border-bottom: 1px solid var(--line, #1f3a44); }
.species .stat-table thead th:nth-child(3), .species .stat-table td:nth-child(3) { color: var(--amber, #e8953c); }
.species .stat-table tbody th { font-weight: 600; color: var(--muted, #93aab1); }
.species .stat-table tbody tr + tr { border-top: 1px solid var(--line, #1f3a44); }
.species .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: .6rem 0 0; background: var(--line, #1f3a44); border-block: 1px solid var(--line, #1f3a44); }
.species .facts div { background: var(--bg, #0a1418); padding: .55rem .7rem; display: grid; gap: .3rem; min-width: 0; }
.species .facts dt { font: 500 .75rem/1 var(--head, "Oswald", sans-serif); letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #93aab1); }
.species .facts dd { margin: 0; font: 600 1.05rem/1.15 var(--head, "Oswald", sans-serif); overflow-wrap: anywhere; }
.species .facts dd.hl { color: var(--cyan, #4fd8e8); }
.species .diet-list { margin: 0; padding: .7rem 1rem .9rem; display: grid; gap: .5rem; }
.species .diet-row dt { font: 500 .78rem/1 var(--head, "Oswald", sans-serif); letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #93aab1); margin-bottom: .2rem; }
.species .diet-row dt b { color: var(--diet); font-weight: 600; text-transform: none; }
.species .diet-row dd { margin: 0; font-size: .93rem; }
.species .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 30rem) { .species .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
