/* Public home page */
.nav {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px;
  padding: 12px max(16px, calc((100vw - 1160px) / 2)); background: rgba(var(--night-rgb, 7, 13, 8), .82);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none !important; }
.brand span { display: flex; flex-direction: column; line-height: 1.05; }
.brand b { font: 700 17px var(--slab); letter-spacing: .03em; }
.brand small { margin-top: 3px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--brass); }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { color: var(--paper-dim); font-weight: 500; font-size: 14px; }
.links a:hover { color: var(--brass-hi); text-decoration: none; }

main { max-width: 1160px; margin: 0 auto; padding: 0 16px; }

.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 72px 0 40px; }
.hero h1 { font-size: clamp(36px, 5.6vw, 64px); margin: 16px 0 18px; }
.hero h1 span { color: var(--brass-hi); }
.lede { font-size: 17px; color: var(--paper-dim); max-width: 560px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-badge { position: relative; display: grid; place-items: center; }
.hero-badge img { position: relative; width: min(420px, 100%); height: auto; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .55)); animation: rise .9s ease-out both; }
.glow { position: absolute; inset: 10% 8%; border-radius: 50%; background: radial-gradient(circle, rgba(var(--hi-rgb, 224, 171, 98), .28), transparent 65%); filter: blur(10px); }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.97); } }

.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(var(--night-rgb, 7, 13, 8), .55); overflow: hidden; margin-bottom: 24px;
}
.facts div { padding: 22px 20px; border-right: 1px solid var(--line-soft); }
.facts div:last-child { border-right: 0; }
.facts b { display: block; font: 700 34px/1 var(--slab); color: var(--brass-hi); }
.facts span { font-size: 13px; color: var(--paper-dim); }

.section { padding: 72px 0 8px; }
.section-head { max-width: 640px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); margin-top: 10px; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pillars article { border-top: 2px solid var(--brass); padding: 20px 4px 0; }
.pillars .num { font: 700 13px var(--slab); color: var(--brass); letter-spacing: .1em; }
.pillars h3 { font-size: 22px; margin: 6px 0 8px; }
.pillars p { color: var(--paper-dim); margin: 0; }

.div-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.div-card {
  position: relative; padding: 22px 20px 20px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, rgba(var(--moss-rgb, 34, 64, 31), .55), rgba(var(--pine-rgb, 11, 22, 13), .85)); border: 1px solid var(--line-soft);
  transition: border-color .2s, transform .2s;
}
.div-card:hover { border-color: var(--line); transform: translateY(-2px); }
.div-card .tag { font: 700 30px/1 var(--slab); color: rgba(var(--brass-rgb, 193, 137, 63), .16); position: absolute; right: 16px; top: 14px; letter-spacing: .02em; }
.div-card .grp { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); }
.div-card h3 { font-size: 21px; margin: 6px 0 8px; }
.div-card p { color: var(--paper-dim); font-size: 14px; margin: 0 0 12px; }
.div-card .units { display: flex; flex-wrap: wrap; gap: 6px; }

.ladder { list-style: none; padding: 0; margin: 0; position: relative; display: grid; gap: 10px; }
.ladder::before { content: ''; position: absolute; left: 19px; top: 24px; bottom: 24px; width: 2px; background: linear-gradient(var(--brass), rgba(var(--brass-rgb, 193, 137, 63), .15)); }
.ladder > li { position: relative; display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 8px 24px; align-items: center; margin-left: 44px; padding: 16px 20px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: rgba(var(--night-rgb, 7, 13, 8), .45); }
.ladder > li::before { content: ''; position: absolute; left: -31px; top: 50%; width: 12px; height: 12px; margin-top: -6px; transform: rotate(45deg); background: var(--brass); box-shadow: 0 0 0 4px var(--pine, #0d150e); }
.ladder h4 { margin: 0; font: 700 18px var(--slab); }
.ladder h4 span { display: block; font: 600 11px var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--brass); margin-bottom: 4px; }
.ladder ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ladder ul li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font: 600 14px var(--sans); background: rgba(var(--brass-rgb, 193, 137, 63), .06); }
@media (max-width: 700px) { .ladder > li { grid-template-columns: 1fr; margin-left: 34px; } .ladder::before { left: 13px; } .ladder > li::before { left: -27px; } }

/* command staff */
.team-tier { margin-bottom: 34px; }
.team-tier h3 { font-size: 22px; margin: 0 0 14px; }
.team-tier h3 span { display: block; font: 600 11px var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--brass); margin-bottom: 6px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.member { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-soft); background: linear-gradient(180deg, rgba(var(--moss-rgb, 34, 64, 31), .5), rgba(var(--pine-rgb, 11, 22, 13), .9)); transition: border-color .2s, transform .2s; }
.member:hover { border-color: var(--line); transform: translateY(-2px); }
.member > img, .member-ph { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--night, #0a120b); }
.member-ph { display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, rgba(var(--brass-rgb, 193, 137, 63), .16), transparent 65%), var(--night, #0a120b); }
.member-ph img { width: 42%; opacity: .55; }
.member-body { padding: 14px 16px 18px; text-align: center; }
.member-body h4 { font: 700 20px/1.2 var(--slab); color: var(--brass-hi); margin: 0; }
.member-rank { margin: 4px 0 0; color: var(--paper-dim); }
.member-pos { margin: 8px 0 0; font-size: 12.5px; color: var(--brass); letter-spacing: .02em; }
.member-bio { margin: 12px 0 0; font-size: 14px; color: var(--paper-dim); line-height: 1.55; text-align: left; white-space: pre-wrap; }

.join { padding-bottom: 80px; }
.join-card {
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding: 36px;
  border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(var(--moss-rgb, 34, 64, 31), .7), rgba(var(--night-rgb, 7, 13, 8), .9));
}
.join-card h2 { font-size: clamp(28px, 3.6vw, 40px); margin-top: 10px; }
.join-badge { width: 200px; height: auto; opacity: .95; transform: rotate(-6deg); filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .5)); }
.path { list-style: none; counter-reset: s; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.path li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; }
.path li::before {
  content: counter(s); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--brass); color: var(--brass-hi); font: 700 15px var(--slab);
}
.path b { font-family: var(--slab); font-size: 17px; }
.path span { color: var(--paper-dim); font-size: 14px; }

.foot { border-top: 1px solid var(--line-soft); background: rgba(var(--night-rgb, 7, 13, 8), .7); }
.foot-in { max-width: 1160px; margin: 0 auto; padding: 28px 16px; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; font-size: 13px; }
.foot p { margin: 0; }

@media (max-width: 860px) {
  .links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-top: 40px; text-align: left; }
  .hero-badge { order: -1; }
  .hero-badge img { width: 220px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div:nth-child(2) { border-right: 0; }
  .facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .pillars { grid-template-columns: 1fr; }
  .join-card { grid-template-columns: 1fr; padding: 24px; }
  .join-badge { display: none; }
  .foot-in { grid-template-columns: 1fr; }
}

/* framed portraits: same size for every picture, gold frame, larger text */
.team-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.member { padding: 10px; background: linear-gradient(160deg, rgba(var(--moss-rgb, 34, 64, 31), .6), rgba(var(--night-rgb, 7, 13, 8), .95)); border: 1px solid var(--line); box-shadow: 0 14px 30px rgba(0, 0, 0, .35); }
.member > img, .member-ph { aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; border-radius: 10px; border: 2px solid var(--brass-lo); outline: 1px solid rgba(var(--hi-rgb, 224, 171, 98), .35); outline-offset: 3px; }
.member-body { padding: 16px 8px 10px; }
.member-body h4 { font-size: 23px; }
.member-rank { font-size: 15px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); margin-top: 6px; }
.member-pos { font-size: 13px; color: var(--paper-dim); }
.member-bio { font-size: 14.5px; color: var(--paper); border-top: 1px solid var(--line-soft); padding-top: 12px; }
.team-tier h3 { font-size: 26px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }

/* Join button under "Pin on the star" */
.join-cta { margin-top: 22px; }
.join-cta .discord-ico { width: 18px; height: 18px; flex: none; }

/* Mission statement (official text) */
.mission { max-width: 860px; margin: 0 0 44px; }
.mission .lead { font: 600 clamp(19px, 2.3vw, 25px)/1.45 var(--slab); color: var(--paper); border-left: 3px solid var(--brass); padding-left: 18px; margin: 0 0 20px; }
.mission p { color: var(--paper-dim); line-height: 1.75; margin: 0 0 14px; }

/* two characters on one profile ("Hasan/Halae Kimbo"): one name and picture at a time */
[data-ped][hidden] { display: none !important; }
.member { position: relative; }
.member.two-ped { cursor: pointer; }
.member.two-ped:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.ped-sw { position: absolute; top: 10px; right: 10px; z-index: 1; padding: 3px 9px; border-radius: 999px; background: rgba(var(--night-rgb, 7, 13, 8), .82); border: 1px solid var(--line); color: var(--brass-hi); font: 600 11.5px var(--sans); letter-spacing: .04em; pointer-events: none; }

/* Finishing touches: rank plates with insignia, patch tags, soft brass glow (insignia drawn by home.js) */
/* chain of command: ranks as small brass plates with their insignia */
#command li li { display: inline-flex; align-items: center; gap: 7px; border-radius: 4px; padding: 5px 11px; font-weight: 600;
  border: 1px solid rgba(var(--brass-rgb, 193, 137, 63), .38); background: linear-gradient(180deg, rgba(var(--brass-rgb, 193, 137, 63), .14), rgba(var(--brass-rgb, 193, 137, 63), .04)); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 1px 2px rgba(0,0,0,.35); }
#command li li .ins svg, #command li li .ins img { height: 14px; width: auto; display: block; }
#command > * li > h4, #command ul > li { transition: border-color .2s, box-shadow .2s; }
#command ul > li:hover { border-color: rgba(var(--brass-rgb, 193, 137, 63), .32); box-shadow: 0 0 16px rgba(var(--brass-rgb, 193, 137, 63), .1); }
/* division cards: tag as an embroidered patch, soft glow on hover */
.div-card { transition: border-color .2s, box-shadow .2s, transform .2s; }
.div-card:hover { border-color: rgba(var(--brass-rgb, 193, 137, 63), .32); box-shadow: 0 0 18px rgba(var(--brass-rgb, 193, 137, 63), .12); transform: translateY(-2px); }
.div-card .tag { border-radius: 3px; padding: 3px 9px; font-weight: 600; letter-spacing: .02em;
  background: linear-gradient(180deg, color-mix(in srgb, currentColor 18%, transparent), color-mix(in srgb, currentColor 7%, transparent));
  border: 1px solid color-mix(in srgb, currentColor 55%, transparent); outline: 1px dashed color-mix(in srgb, currentColor 25%, transparent); outline-offset: -3px; }
/* leadership: insignia before the rank, brass ring and lift on hover */
.member { transition: border-color .2s, box-shadow .2s, transform .2s; }
.member:hover { border-color: rgba(var(--brass-rgb, 193, 137, 63), .32); box-shadow: 0 0 18px rgba(var(--brass-rgb, 193, 137, 63), .12); transform: translateY(-2px); }
.member-rank { display: flex; align-items: center; gap: 6px; }
.member-rank .ins svg, .member-rank .ins img { height: 14px; width: auto; display: block; }
/* buttons and the page */
.btn { transition: box-shadow .2s, border-color .2s, background-color .2s; } .btn:hover { box-shadow: 0 0 12px rgba(var(--brass-rgb, 193, 137, 63), .3); }
html { scrollbar-color: rgba(var(--brass-rgb, 193, 137, 63), .35) transparent; scrollbar-width: thin; } ::selection { background: rgba(var(--brass-rgb, 193, 137, 63), .35); color: #fff; }
.facts > * , .facts li { transition: border-color .2s; }
#command li li .ins-none { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid rgba(var(--brass-rgb, 193, 137, 63), .55); box-sizing: border-box; }
#command li li .ins img, .member-rank .ins img { height: 17px; }
.member-rank { justify-content: center; text-align: center; }
/* the rank line wraps like normal text when it is long ("Lieutenant Colonel" on a narrow card) */
.member-rank { display: block; text-align: center; }
.member-rank .ins { display: inline-block; vertical-align: -3px; margin-right: 6px; }
.member-rank .ins img, .member-rank .ins svg { display: inline-block; }

/* News (Public Information Office): posts, the gallery, the reader and the editor */
.news-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: none; }
.news-head > div:first-child { max-width: 640px; }
.news-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.news-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.news-card { display: flex; flex-direction: column; min-width: 0; background: var(--pine-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.news-card.wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.news-card.wide.no-media { display: flex; }
.nc-media { position: relative; background: rgba(0, 0, 0, .35); }
.nc-media .ni, .nc-media .nv, .nc-media .nv-frame { display: block; width: 100%; aspect-ratio: 16 / 10; }
.news-card.wide .nc-media .ni, .news-card.wide .nc-media .nv, .news-card.wide .nc-media .nv-frame { height: 100%; min-height: 300px; aspect-ratio: auto; }
.ni, .nv, .nc-th, .ng-pic { position: relative; padding: 0; border: 0; margin: 0; background: #0b0f0c; cursor: pointer; overflow: hidden; color: #fff; }
.ni img, .nv img, .nc-th img, .ng-pic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ni:hover img, .ng-pic:hover img, .nc-th:hover img { transform: scale(1.03); }
.nv-frame { border: 0; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.nv-play { position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .6); border: 2px solid rgba(255, 255, 255, .85); transition: transform .2s, background .2s; }
.nv-play svg { width: 28px; height: 28px; margin-left: 4px; }
.nv:hover .nv-play { transform: scale(1.08); background: rgba(var(--brass-rgb, 193, 137, 63), .75); }
.nv-play.sm { width: 30px; height: 30px; margin: -15px 0 0 -15px; border-width: 1.5px; }
.nv-play.sm svg { width: 14px; height: 14px; margin-left: 2px; }
.nc-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 14px 8px; font-size: 12.5px; color: #eee; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); pointer-events: none; }
.nc-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.news-card.wide .nc-body { padding: 26px 28px; justify-content: center; }
.nc-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; font-size: 12.5px; color: var(--muted, #9aa39a); }
.nc-meta span + span:not(.nc-kind)::before { content: '·'; margin-right: 12px; opacity: .6; }
.nc-pin, .nc-kind { font: 600 11px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brass-hi); }
.nc-pin + span::before, .nc-kind + span::before { content: none !important; }
.news-card h3 { margin: 0; font: 700 21px/1.25 var(--slab); color: var(--paper); }
.news-card.wide h3 { font-size: clamp(24px, 2.6vw, 32px); }
.nc-text { color: var(--paper-dim); font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.nc-text p { margin: 0 0 10px; } .nc-text p:last-child { margin: 0; }
.nc-read { align-self: flex-start; padding: 0; border: 0; background: none; font: 600 14px var(--sans); color: var(--brass-hi); cursor: pointer; }
.nc-read:hover { text-decoration: underline; }
.nc-thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.nc-th { width: 64px; height: 48px; border-radius: 6px; border: 1px solid var(--line); }
.nc-edit { display: flex; gap: 6px; margin-top: auto; padding-top: 10px; }
.nb { font: 600 12.5px var(--sans); color: var(--paper-dim); background: transparent; border: 1px solid var(--line); border-radius: 7px; padding: 5px 10px; cursor: pointer; }
.nb:hover:not([disabled]) { color: var(--paper); border-color: rgba(var(--brass-rgb, 193, 137, 63), .55); }
.nb[disabled] { opacity: .35; cursor: default; }
.nb.danger:hover, .nb.sure { color: #f0a29a; border-color: rgba(217, 106, 95, .6); }
.news-more { text-align: center; margin-top: 22px; }
.news-empty { padding: 26px; border: 1px dashed var(--line); border-radius: 12px; text-align: center; grid-column: 1 / -1; }

/* gallery: one row that scrolls sideways */
.news-gallery { margin: 0 0 26px; }
.ng-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.ng-head b { font: 700 18px var(--slab); color: var(--paper); }
.ng-head .muted { font-size: 13px; }
.ng-arrows { margin-left: auto; display: flex; gap: 6px; }
.ng-strip { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(170px, 22vw, 240px); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; overscroll-behavior-x: contain; }
.ng-pic { aspect-ratio: 4 / 3; border-radius: 10px; scroll-snap-align: start; border: 1px solid var(--line-soft); }

/* lightbox */
html.nl-open { overflow: hidden; }
.nl { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 56px 64px 24px; background: rgba(4, 6, 5, .92); }
.nl figure { margin: 0; display: grid; gap: 10px; justify-items: center; max-width: 100%; }
.nl figure img { max-width: min(1400px, 100%); max-height: calc(100dvh - 150px); object-fit: contain; border-radius: 6px; }
.nl figure .nv-frame { width: min(1100px, 88vw); }
.nl figcaption { text-align: center; color: #ddd; font-size: 14px; display: grid; gap: 2px; }
.nl figcaption span { color: #9a9a9a; font-size: 12.5px; }
.nl-x { position: absolute; top: max(10px, env(safe-area-inset-top)); right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .5); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; z-index: 2; }
.nl-x.in { position: sticky; float: right; top: 0; margin: -6px -6px 0 10px; width: 38px; height: 38px; font-size: 22px; color: var(--paper); background: var(--pine-2); border-color: var(--line); }
.nl-nav { position: absolute; top: 50%; width: 46px; height: 64px; margin-top: -32px; border: 0; border-radius: 8px; background: rgba(0, 0, 0, .45); color: #fff; font-size: 34px; cursor: pointer; }
.nl-nav.prev { left: 10px; } .nl-nav.next { right: 10px; }
.nl-x:hover, .nl-nav:hover { background: rgba(var(--brass-rgb, 193, 137, 63), .6); }

/* the reader, the editor and Who can post */
.nd { position: fixed; inset: 0; z-index: 80; display: grid; place-items: start center; padding: max(16px, 5vh) 16px 16px; background: rgba(0, 0, 0, .65); overflow-y: auto; overscroll-behavior: contain; }
.nd-card { position: relative; width: min(680px, 100%); background: var(--pine-2); border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.nd-card.reader { width: min(780px, 100%); padding: 28px 32px; }
.nd-card.small { width: min(460px, 100%); }
.nd-card h2 { margin: 6px 0 14px; font: 700 26px/1.2 var(--slab); }
.nd-card.reader h2 { font-size: clamp(26px, 3.4vw, 36px); }
.nd-act { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.nr-cover { margin: 0 -32px 18px; }
.nr-cover .ni, .nr-cover .nv, .nr-cover .nv-frame { display: block; width: 100%; aspect-ratio: 16 / 9; }
.nr-text { color: var(--paper); font-size: 16.5px; line-height: 1.75; overflow-wrap: anywhere; }
.nr-text p { margin: 0 0 14px; }
.nr-media { display: grid; gap: 14px; margin-top: 10px; }
.nr-media figure { margin: 0; }
.nr-media .ni, .nr-media .nv { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; }
.nr-media figcaption { font-size: 13px; color: var(--muted, #9aa39a); margin-top: 6px; }
.nr-upd { font-size: 12.5px; margin: 8px 0 0; }
.nf { display: grid; gap: 6px; margin-bottom: 14px; }
.nf > span { font-size: 13px; font-weight: 600; color: var(--paper-dim); }
.nin { width: 100%; box-sizing: border-box; font: 15px var(--sans); color: var(--paper); background: rgba(0, 0, 0, .25); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; }
.nin:focus { outline: none; border-color: rgba(var(--brass-rgb, 193, 137, 63), .7); }
textarea.nin { resize: vertical; line-height: 1.55; min-height: 120px; }
select.nin { appearance: auto; }
.ne-opts { display: grid; gap: 8px; margin-bottom: 14px; }
.nck { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted, #9aa39a); cursor: pointer; }
.nck input { margin-top: 3px; accent-color: var(--brass); }
.nck b { color: var(--paper); margin-right: 4px; }
.ne-media { display: grid; gap: 8px; }
.ne-m { display: grid; grid-template-columns: 72px 1fr auto; gap: 10px; align-items: center; }
.ne-th { position: relative; width: 72px; height: 50px; border-radius: 6px; overflow: hidden; background: #0b0f0c; border: 1px solid var(--line); color: #fff; }
.ne-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ne-cover { position: absolute; left: 3px; bottom: 3px; font: 600 9.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; background: rgba(0, 0, 0, .7); color: var(--brass-hi); padding: 1px 5px; border-radius: 3px; }
.ne-mv { display: flex; gap: 4px; }
.ne-add { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.ne-add .nin { flex: 1 1 200px; width: auto; }
.ne-up { cursor: pointer; }
.ne-err { min-height: 1em; margin: 0; font-size: 13.5px; color: #f0a29a; }
.n-toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 95; display: flex; gap: 12px; align-items: center; padding: 10px 14px; background: var(--pine-2); color: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 40px rgba(0, 0, 0, .5); font-size: 14px; }

@media (max-width: 820px) {
  .news-card.wide { display: flex; }
  .news-card.wide .nc-media .ni, .news-card.wide .nc-media .nv, .news-card.wide .nc-media .nv-frame { min-height: 0; aspect-ratio: 16 / 10; height: auto; }
  .news-card.wide .nc-body { padding: 18px 20px 20px; }
  .nl { padding: 56px 8px 16px; }
  .nl-nav { top: auto; bottom: 14px; margin: 0; height: 46px; }
  .nd { padding: 8px; place-items: center; }
  .nd-card { max-height: calc(100dvh - 16px); overflow-y: auto; padding: 18px 16px 0; }
  .nd-card.reader { padding: 18px 16px 0; }
  .nr-cover { margin: 0 -16px 16px; }
  .nd-act { position: sticky; bottom: 0; margin: 16px -16px 0; padding: 10px 16px max(10px, env(safe-area-inset-bottom)); background: var(--pine-2); border-top: 1px solid var(--line); }
  .nd-act > * { flex: 1; }
  .ne-m { grid-template-columns: 60px 1fr; }
  .ne-m .ne-mv { grid-column: 1 / -1; justify-content: flex-end; }
}
/* News, tidier with several posts: the newest is featured with a fixed-height picture (the whole picture shows,
   over a blurred copy of itself), and the rest sit as compact side-by-side cards, two per row */
.news-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr)); gap: 16px; }
.nc-media { overflow: hidden; }
.news-card .nc-media .ni, .news-card .nc-media .nv, .news-card .nc-media .nv-frame { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; }
.news-card.wide { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.news-card.wide .nc-media { min-height: clamp(260px, 24vw, 340px); }
.news-card.wide .nc-media::before { content: ''; position: absolute; inset: -30px; background: var(--bg, none) center / cover no-repeat; filter: blur(24px) brightness(.4) saturate(1.1); }
.news-card.wide .nc-media .ni { background: transparent; }
.news-card.wide .nc-media .ni img { object-fit: contain; }
.news-card.wide .nc-media .ni:hover img { transform: none; }
.news-card:not(.wide):not(.no-media) { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); }
.news-card:not(.wide) .nc-media { min-height: 190px; }
.news-card:not(.wide) .nc-body { padding: 16px 18px 18px; gap: 6px; }
.news-card:not(.wide) h3 { font-size: 19px; }
.news-card:not(.wide) .nc-text { font-size: 14.5px; line-height: 1.6; }
.news-card:not(.wide) .nc-th { width: 52px; height: 40px; }
.news-card:not(.wide) .nc-edit { padding-top: 8px; }
@media (max-width: 820px) {
  .news-card .nc-media, .news-card.wide .nc-media { min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) {
  .news-card:not(.wide):not(.no-media) { display: flex; }
}
/* News page, one post per page, the Gallery page and the home teaser */
@media (max-width: 1080px) and (min-width: 861px) { .links { gap: 15px; } }
.links a[aria-current="page"] { color: var(--paper); box-shadow: inset 0 -2px 0 var(--brass); padding-bottom: 3px; }
.news-card h3 a { color: inherit; text-decoration: none; }
.news-card h3 a:hover { color: var(--brass-hi); }
a.nc-read { text-decoration: none; }
a.nc-read:hover { text-decoration: underline; }
.news-more .na-n { display: inline-block; min-width: 22px; padding: 1px 7px; margin-left: 4px; border-radius: 999px; background: rgba(236, 228, 210, .1); font-size: 12px; }
.news-gallery { margin: 40px 0 0; }
.ng-all { margin-left: auto; font: 600 14px var(--sans); color: var(--brass-hi); text-decoration: none; }
.ng-all:hover { text-decoration: underline; }
.ng-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
a.ng-pic { display: block; aspect-ratio: 4 / 3; }
.news-page h1, .gal-page h1 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.08; margin: 10px 0 12px; color: var(--paper); }
.news-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 20px; }
.news-filter:empty { display: none; }
.nf-chip { padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--paper-dim); font: 600 13px var(--sans); cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.nf-chip:hover { color: var(--paper); border-color: var(--brass-hi); }
.nf-chip.on { background: var(--brass); border-color: var(--brass); color: var(--ink, #10131a); }
.np-wrap { max-width: 900px; margin: 0 auto; }
.np-back { display: inline-flex; gap: 6px; margin-bottom: 26px; font: 600 14px var(--sans); color: var(--brass-hi); text-decoration: none; }
.np-back:hover { text-decoration: underline; }
.np .nc-meta { font-size: 13.5px; }
.np-title { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.1; margin: 8px 0 24px; color: var(--paper); }
.np-cover { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: rgba(0, 0, 0, .35); isolation: isolate; }
.np-cover::before { content: ''; position: absolute; inset: -30px; z-index: -1; background: var(--bg, none) center / cover no-repeat; filter: blur(26px) brightness(.4) saturate(1.1); }
.np-cover .ni, .np-cover .nv, .np-cover .nv-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; }
.np-cover .ni img { object-fit: contain; }
.np-cover .ni:hover img { transform: none; }
.np-cap { margin: 8px 2px 0; font-size: 13px; color: var(--muted, #9aa39a); }
.np-text { margin-top: 28px; font-size: 17px; }
.np-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 28px; }
.np-media figure { margin: 0; min-width: 0; }
.np-media .ni, .np-media .nv { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; border: 1px solid var(--line-soft); }
.np-media .nv-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; }
.np-media figcaption { margin-top: 6px; font-size: 13px; color: var(--muted, #9aa39a); }
.np-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.np-ed { display: flex; gap: 6px; margin-left: auto; }
.np-more { margin-top: 60px; }
.np-more h2 { font-size: 24px; color: var(--paper); margin: 0 0 16px; }
.gx-sum { margin: 6px 0 0; font-size: 14px; }
.gx-sum:empty { display: none; }
.gx-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: min(74vh, 760px); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #07090b; isolation: isolate; outline: none; }
.gx-stage:focus-visible { box-shadow: 0 0 0 2px var(--brass-hi); }
.gx-loading { animation: gx-pulse 1.4s ease-in-out infinite alternate; }
@keyframes gx-pulse { from { opacity: .5; } to { opacity: 1; } }
.gx-bg { position: absolute; inset: -50px; z-index: -1; background: center / cover no-repeat; filter: blur(32px) brightness(.36) saturate(1.15); }
.gx-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: scale(1.012); transition: opacity .45s ease, transform 1.2s ease; cursor: zoom-in; }
.gx-img.in { opacity: 1; transform: none; }
.gx-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; padding: 14px 16px 30px; background: linear-gradient(rgba(0, 0, 0, .5), transparent); pointer-events: none; }
.gx-count { font: 600 13px var(--sans); letter-spacing: .1em; color: rgba(255, 255, 255, .65); }
.gx-count b { font: 700 24px var(--slab); letter-spacing: 0; color: #fff; margin-right: 2px; }
.gx-btns { margin-left: auto; display: flex; gap: 6px; pointer-events: auto; }
.gx-b { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(10, 10, 14, .45); color: #fff; cursor: pointer; backdrop-filter: blur(6px); }
.gx-b svg { width: 17px; height: 17px; }
.gx-b:hover { background: rgba(255, 255, 255, .16); }
.gx-nav { position: absolute; top: 50%; translate: 0 -50%; width: 48px; height: 48px; padding: 0 0 4px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(10, 10, 14, .45); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .2s, background .2s; backdrop-filter: blur(6px); }
.gx-nav:hover { background: rgba(255, 255, 255, .16); }
.gx-nav.prev { left: 14px; }
.gx-nav.next { right: 14px; }
.gx-stage:hover .gx-nav, .gx-stage:focus-within .gx-nav { opacity: 1; }
@media (hover: none) { .gx-nav { opacity: 1; width: 40px; height: 40px; font-size: 26px; } }
.gx-info { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 4px; padding: 46px 22px 20px; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); pointer-events: none; }
.gx-cap { font: 700 clamp(16px, 1.7vw, 21px)/1.3 var(--slab); color: #fff; }
.gx-from { font-size: 13px; color: rgba(255, 255, 255, .72); }
.gx-from a { color: #fff; text-decoration: underline; text-underline-offset: 2px; pointer-events: auto; }
.gx-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .08); }
.gx-bar i { display: block; width: 0; height: 100%; background: var(--brass-hi); }
.gx-stage.paused .gx-bar { opacity: 0; }
.gx-stage:fullscreen { max-height: none; aspect-ratio: auto; border: 0; border-radius: 0; }
.gx-hint { margin: 10px 2px 12px; font-size: 12.5px; }
.gx-strip { position: relative; display: flex; gap: 8px; overflow-x: auto; padding: 5px 2px 10px; scrollbar-width: thin; overscroll-behavior-x: contain; }
.gx-th { flex: 0 0 auto; width: 116px; aspect-ratio: 4 / 3; padding: 0; border: 1px solid var(--line-soft); border-radius: 8px; overflow: hidden; background: #0b0f0c; cursor: pointer; opacity: .5; transition: opacity .2s, transform .2s, box-shadow .2s; }
.gx-th img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gx-th:hover { opacity: .9; }
.gx-th.on { opacity: 1; transform: translateY(-3px); box-shadow: 0 0 0 2px var(--brass-hi); }
.gx-videos:empty { display: none; }
.gx-videos { margin-top: 52px; }
.gx-videos h2 { font-size: 26px; color: var(--paper); margin: 0 0 16px; }
.gx-vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.gx-v { margin: 0; min-width: 0; }
.gx-v .nv, .gx-v .nv-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; }
.gx-v figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; font-size: 14px; color: var(--paper); }
.gx-v figcaption a { font-size: 13px; color: var(--muted, #9aa39a); }
@media (max-width: 820px) {
  .ng-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ng-row > :nth-child(n+7) { display: none; }
  .gx-stage { aspect-ratio: 4 / 3; }
  .gx-th { width: 86px; }
  .gx-hint { display: none; }
  .gx-strip { margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) { .gx-img, .gx-th { transition: none; transform: none; } .gx-loading { animation: none; } }
@media (prefers-reduced-motion: reduce) { .ni img, .ng-pic img, .nc-th img, .nv-play { transition: none; } }
