/* Plain CSS: no framework, CDN, or build step. */
* {
  box-sizing: border-box;
}
body {
  background: #090d15;
  color: #e6edf5;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
svg {
  display: block;
  flex-shrink: 0;
}
button {
  background: none;
  border: 0;
}
h1 {
  margin: 0;
}
dialog:not([open]) {
  display: none;
}
/* USS Decker: dark command surfaces, ice blue type, amber navigation. */
:root {
  color-scheme: dark;
  --background: #090d15;
  --foreground: #e6edf5;
  --card: #101724;
  --card-foreground: #e6edf5;
  --popover: #111a28;
  --popover-foreground: #e6edf5;
  --primary: #efb15e;
  --primary-foreground: #0a101b;
  --secondary: #152134;
  --secondary-foreground: #dceafd;
  --muted: #152134;
  --muted-foreground: #a1afc2;
  --accent: #192638;
  --accent-foreground: #a6d9fb;
  --border: #28364b;
  --input: #28364b;
  --ring: #9bd5ff;
  --sidebar: #0c111c;
  --sidebar-foreground: #aebdd0;
  --sidebar-primary: #efb15e;
  --sidebar-primary-foreground: #0a101b;
  --sidebar-accent: #172436;
  --sidebar-accent-foreground: #aad9fb;
  --sidebar-border: #243147;
  --sidebar-ring: #9bd5ff;
  --radius: 0.3rem;
}
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}
a,
button {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  transition:
    color 0.18s,
    background 0.18s,
    border-color 0.18s;
}
button {
  cursor: pointer;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid #efb15e;
  outline-offset: 5px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.2;
}
h2 {
  font-size: clamp(1.65rem, 2.3vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}
h3 {
  font-size: 1.05rem;
  font-weight: 600;
}
p {
  color: #a8b7c9;
}
h2 span,
h1 span {
  color: #9ed3f6;
}
.site-main {
  background: #090d15;
  min-width: 0;
}
/* Top navigation bar */
.topbar {
  height: 76px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #243147;
  gap: 20px;
}
.topbar > div,
.topbar > a {
  display: flex;
  align-items: center;
  gap: 14px;
}
.topbar > div > span {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: #9cacc1;
}
.topbar b {
  color: #43546e;
  margin: 0 12px;
}
.topbar > a {
  font-size: 0.875rem;
  color: #efb15e;
  white-space: nowrap;
}
.topbar [data-slot="sidebar-trigger"] {
  color: #a5ccea;
}
.brand {
  padding: 42px 22px 38px;
  border-bottom: 1px solid #243147;
  margin-bottom: 24px;
}
.brand a {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
}
.brand svg {
  color: #efb15e;
  margin-bottom: 19px;
}
.brand strong {
  font-size: 1.35rem;
  letter-spacing: 0.09em;
  color: #b0dfff;
}
.brand span {
  font-size: 0.75rem;
  letter-spacing: 0.21em;
  margin-top: 5px;
  color: #8699b1;
}
[data-slot="sidebar-group"] {
  padding: 8px 17px 25px;
}
[data-slot="sidebar-group-label"] {
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  color: #7e91ad;
  padding-left: 12px;
  margin-bottom: 13px;
}
[data-slot="sidebar-menu"] {
  gap: 8px;
}
[data-slot="sidebar-menu-button"] {
  min-height: 46px;
  height: auto;
  font-size: 0.94rem;
  padding: 13px 12px;
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
  gap: 12px;
}
[data-slot="sidebar-menu-button"][data-active="true"] {
  border-left-color: #efb15e;
  background: #182438;
  color: #b5ddfc;
}
[data-slot="sidebar-menu-button"][data-active="true"] svg {
  color: #efb15e;
}
.sidebar-message {
  padding: 24px 20px 28px;
}
.small-rule {
  display: block;
  width: 35px;
  height: 3px;
  background: #efb15e;
  margin-bottom: 19px;
}
.sidebar-message p {
  color: #93abc4;
  font-size: 1.05rem;
}
.sidebar-message > span:last-child {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: #8393aa;
  display: block;
  margin-top: 24px;
}
/* Home banner and introduction */
.hero {
  position: relative;
  min-height: 530px;
  margin: 30px 36px 0;
  overflow: hidden;
  border: 1px solid #2a3a50;
  border-radius: 5px;
  background: #0b1422;
  isolation: isolate;
  display: flex;
  align-items: center;
}
.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
  z-index: -2;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(5, 12, 24, 0.95),
    rgba(5, 12, 24, 0.72) 36%,
    rgba(5, 12, 24, 0.02) 78%
  );
}
.hero-content {
  max-width: 560px;
  padding: 52px 46px 75px;
}
.eyebrow {
  color: #edb574;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  font-weight: 650;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.8rem, 4.8vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.015em;
  white-space: nowrap;
  color: #f0f5fc;
}
.hero h1 span {
  color: inherit;
}
.hero-subtitle {
  color: #bad9f2;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  line-height: 1.38;
  margin: 23px 0 17px;
  font-weight: 350;
}
.hero-copy {
  font-size: 1rem;
  max-width: 365px;
  color: #acbed3;
  line-height: 1.8;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  padding: 12px 20px;
  font-size: 0.875rem;
  font-weight: 650;
  border-radius: 3px;
  min-height: 47px;
}
.primary {
  background: #e8ab59;
  color: #10131c;
  border: 1px solid #e8ab59;
}
.primary:hover {
  background: #f5c584;
  border-color: #f5c584;
}
.hero .button {
  margin-top: 28px;
}
.hero-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #7d9bbc33;
  padding: 13px 23px;
  font-family: monospace;
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  color: #9eb7cc;
  background: #080f1c70;
}
.section {
  margin: 0 36px;
  padding: 39px 0;
}
.intro {
  display: grid;
  grid-template-columns: 0.85fr 1.3fr;
  gap: 55px;
  padding-top: 48px;
  padding-bottom: 31px;
}
.intro .eyebrow {
  margin-bottom: 14px;
}
.intro h2 {
  font-size: 2rem;
  line-height: 1.3;
}
.intro-body p + p {
  margin-top: 16px;
}
.intro-body {
  max-width: 780px;
}
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 36px;
  padding: 25px 0 30px;
  border-bottom: 1px solid #243147;
  gap: 25px;
}
.values article {
  display: flex;
  gap: 16px;
}
.values article > svg {
  color: #d6a76c;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}
.values h3 {
  color: #c7def3;
  font-size: 0.95rem;
}
.values p {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-top: 8px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 23px;
}
.section-heading .eyebrow {
  margin-bottom: 10px;
}
.text-link {
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
  color: #9ed3f6;
  font-size: 0.875rem;
}
.text-link:hover {
  color: #efb15e;
}
.empty-panel {
  border: 1px solid #29394d;
  background: #0e1622;
  display: flex;
  align-items: center;
  gap: 23px;
  padding: 28px;
  border-radius: 4px;
}
.empty-panel > svg {
  color: #75a9cb;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}
.empty-panel h3 {
  color: #cbdeee;
  font-weight: 500;
}
.empty-panel p {
  font-size: 0.9rem;
  margin-top: 8px;
}
.tag {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #bba078;
  border: 1px solid #493f32;
  padding: 6px 10px;
  white-space: nowrap;
  margin-left: auto;
  height: fit-content;
}
/* Site footer */
.footer {
  margin: 30px 36px 0;
  padding: 25px 0;
  border-top: 1px solid #243147;
  color: #8facc7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.footer > span {
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  white-space: nowrap;
}
.footer b {
  color: #efb15e;
  padding: 0 7px;
}
.footer p {
  font-size: 0.75rem;
  max-width: 410px;
  color: #8595aa;
}
.subpage {
  padding: 65px 36px;
  min-height: calc(100svh - 205px);
}
.subpage h1 {
  font-size: clamp(2.3rem, 4vw, 3.8rem);
  font-weight: 550;
  letter-spacing: -0.04em;
}
.page-intro {
  font-size: 1.06rem;
  max-width: 670px;
  margin-top: 22px;
}
.subpage .section {
  margin: 35px 0 0;
  padding: 28px 0;
}
.large-empty {
  border: 1px solid #29394d;
  background: #0e1622;
  padding: 70px 24px;
  text-align: center;
  border-radius: 4px;
}
.large-empty svg {
  margin: 0 auto 24px;
  color: #729ebf;
}
.large-empty h2 {
  font-size: 1.6rem;
  color: #bdd4e7;
}
.large-empty p {
  margin: 16px auto 0;
  max-width: 590px;
}
.login-panel {
  max-width: 660px;
  padding: 40px;
  margin-top: 40px;
  background: #0e1622;
  border: 1px solid #29394d;
  border-top: 3px solid #e8ab59;
  border-radius: 4px;
}
.login-panel > svg {
  color: #e8ab59;
  margin-bottom: 25px;
}
.login-panel h2 {
  margin-bottom: 18px;
}
.login-panel .button {
  margin: 28px 0 20px;
}
.fine-print {
  font-size: 0.8rem;
  max-width: 480px;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.photo-card {
  text-align: left;
  border: 1px solid #29394d;
  background: #101a28;
  border-radius: 5px;
  overflow: hidden;
}
.photo-card img {
  aspect-ratio: 4/3;
  width: 100%;
  object-fit: cover;
}
.photo-card span {
  display: block;
  padding: 15px;
  color: #c3dcf0;
}
.photo-dialog {
  max-width: min(1000px, 94vw) !important;
  background: #111a28;
}
.photo-dialog img {
  max-height: 70vh;
  object-fit: contain;
  width: 100%;
}
.event-list {
  display: grid;
  gap: 18px;
}
.event-card,
.event-detail {
  display: flex;
  gap: 25px;
  padding: 25px;
  background: #101a28;
  border: 1px solid #29394d;
}
.event-card > svg,
.event-detail > svg {
  color: #efb15e;
  flex-shrink: 0;
}
.event-card > svg:last-child {
  margin-left: auto;
}
.event-detail p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 13px;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 100;
  background: #efb15e;
  padding: 10px 20px;
  color: #0a101b;
}
.skip-link:focus {
  top: 10px;
}
/* Responsive layouts */
@media (min-width: 1700px) {
  .site-main > main {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
  }
  .hero {
    min-height: 600px;
  }
  .hero-art {
    object-position: center;
  }
  .hero-content {
    max-width: 620px;
  }
  .hero-copy {
    max-width: 390px;
  }
}
@media (max-width: 1150px) {
  .hero-content {
    padding-left: 30px;
  }
  .hero h1 {
    font-size: 3rem;
  }
  .hero-art {
    object-position: 60% center;
  }
  .values {
    gap: 18px;
  }
  .values article {
    gap: 10px;
  }
  .empty-panel .tag {
    display: none;
  }
  .intro {
    gap: 28px;
  }
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
@media (max-width: 767px) {
  .topbar {
    padding: 0 18px;
    height: 65px;
    gap: 10px;
  }
  .topbar > div > span {
    font-size: 0.65rem;
    letter-spacing: 0.06em;
  }
  .topbar b {
    margin: 0 5px;
  }
  .topbar > a {
    font-size: 0.8rem;
    gap: 5px;
  }
  .topbar > div {
    gap: 8px;
  }
  .hero {
    margin: 18px 18px 0;
    min-height: 555px;
    align-items: flex-end;
  }
  .hero-art {
    object-position: 67% center;
    opacity: 0.8;
  }
  .hero-shade {
    background: linear-gradient(0deg, #060d1a 0%, #061021a8 65%, #06102115);
  }
  .hero-content {
    padding: 155px 25px 80px;
    max-width: 100%;
  }
  .hero h1 {
    font-size: clamp(2.2rem, 8vw, 3.4rem);
    white-space: normal;
  }
  .hero-subtitle {
    font-size: 1.5rem;
    margin: 19px 0 14px;
  }
  .hero .eyebrow {
    margin-bottom: 13px;
  }
  .hero-caption {
    padding: 12px 16px;
    font-size: 0.6rem;
    gap: 15px;
  }
  .hero-caption span:last-child {
    max-width: 145px;
    text-align: right;
  }
  .section {
    margin: 0 20px;
    padding: 30px 0;
  }
  .intro {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 35px;
  }
  .intro h2 br {
    display: none;
  }
  .intro h2 span {
    margin-left: 6px;
  }
  .values {
    grid-template-columns: 1fr;
    gap: 25px;
    margin: 0 20px;
    padding: 15px 0 35px;
  }
  .values article {
    gap: 17px;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .section-heading h2 {
    font-size: 1.7rem;
  }
  .empty-panel {
    padding: 24px 20px;
    align-items: flex-start;
    gap: 16px;
  }
  .empty-panel h3 {
    line-height: 1.5;
  }
  .empty-panel p {
    font-size: 0.9rem;
  }
  .footer {
    margin: 22px 20px 0;
  }
  .subpage {
    padding: 40px 20px;
  }
  .subpage .section-heading {
    flex-direction: row;
    align-items: center;
  }
  .subpage .section-heading .tag {
    font-size: 0.6rem;
  }
  .large-empty {
    padding: 55px 23px;
  }
  .large-empty br {
    display: none;
  }
  .login-panel {
    padding: 27px;
  }
  .photo-grid {
    grid-template-columns: 1fr;
  }
  .event-detail {
    gap: 16px;
  }
  .event-detail h2 {
    font-size: 1.4rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* Sidebar navigation */
.decker-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 256px;
  background: #0c111c;
  border-right: 1px solid #243147;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 40;
}
.site-main {
  margin-left: 256px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.site-main main {
  flex: 1;
}
.nav-group {
  padding: 8px 17px 25px;
}
.nav-label {
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  color: #8d9eb7;
  padding-left: 12px;
  margin-bottom: 13px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 13px 12px;
  font-size: 0.94rem;
  border-left: 2px solid transparent;
  margin-bottom: 8px;
  border-radius: 0 4px 4px 0;
}
.nav-link:hover {
  background: #142033;
}
.nav-link[aria-current="page"] {
  border-left-color: #efb15e;
  background: #182438;
  color: #b5ddfc;
}
.nav-link[aria-current="page"] svg {
  color: #efb15e;
}
.sidebar-message {
  margin-top: auto;
}
.menu-toggle {
  display: none;
  padding: 8px;
}
.photo-grid button {
  padding: 0;
}
.photo-card:hover {
  border-color: #9ed3f6;
}
.event-detail p {
  display: block;
}
.event-card h3 {
  margin-bottom: 8px;
}
.event-card p {
  display: block;
}
#photo-viewer {
  width: min(1000px, 94vw);
  max-height: 92vh;
  overflow: auto;
  padding: 30px;
  background: #111a28;
  border: 1px solid #40506b;
  border-radius: 6px;
  color: #e6edf5;
}
#photo-viewer::backdrop {
  background: #000c;
}
#photo-title {
  padding-right: 38px;
  font-size: 1.5rem;
}
#photo-image {
  max-height: 65vh;
  object-fit: contain;
  width: 100%;
  margin: 22px 0;
}
#photo-caption {
  margin-top: 15px;
}
.viewer-close {
  position: absolute;
  right: 14px;
  top: 14px;
  padding: 10px;
}
.photo-fallback {
  display: block;
  padding: 20px;
  color: #a8b7c9;
}
.photo-card[hidden] {
  display: none;
}
@media (max-width: 767px) {
  .site-main {
    margin-left: 0;
  }
  .decker-sidebar {
    display: none;
    top: 65px;
    bottom: 0;
    width: min(290px, 90vw);
    box-shadow: 15px 0 50px #0008;
  }
  .menu-open .decker-sidebar {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #0c111c;
  }
  .brand {
    padding-top: 24px;
    padding-bottom: 24px;
  }
  .menu-open .site-main main {
    pointer-events: none;
  }
  #photo-viewer {
    padding: 25px 18px;
  }
}
@media (min-width: 768px) {
  .decker-sidebar {
    display: flex !important;
  }
}
/* USS Decker identity and grouped administration navigation. */
.brand .decker-logo {
  width: 100px;
  height: 100px;
  max-width: 100px;
  max-height: 100px;
  object-fit: contain;
  margin-bottom: 18px;
}
.admin-subnav {
  margin: 0 0 16px 23px;
  border-left: 1px solid #40516b;
  padding-left: 9px;
}
.admin-subnav .nav-link {
  font-size: 0.84rem;
  min-height: 38px;
  padding: 8px 10px;
  margin-bottom: 3px;
}
.admin-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 20px;
  margin-top: 30px;
}
.admin-category {
  display: block;
  padding: 24px;
  border: 1px solid #364b65;
  background: #101a28;
  border-radius: 6px;
}
.admin-category:hover {
  border-color: #efb15e;
}
.admin-category h2 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: #b5ddfc;
}
.profile-gallery {
  margin-top: 30px;
}
.profile-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 16px;
  margin-top: 18px;
}
.profile-gallery-grid figure {
  margin: 0;
  padding: 12px;
  border: 1px solid #364b65;
  border-radius: 5px;
  max-width: 320px;
}
.profile-gallery-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 3px;
}
.profile-gallery-grid figcaption {
  margin-top: 10px;
  font-weight: 600;
}
.profile-gallery-grid p {
  font-size: 0.85rem;
}

/* Signed-out visitors do not see crew navigation or member submission forms. */
.crew-operations[hidden],
section[hidden] {
  display: none !important;
}
#submit-photo-section,
#submit-event-section {
  margin: 20px clamp(20px, 4vw, 40px);
}

/* Event banners preserve the full supplied artwork. */
.event-detail {
  flex-direction: column;
}
.event-banner {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  background: #080d16;
  border-radius: 4px;
  margin-bottom: 16px;
}
.content-image {
  display: block;
  width: 100%;
  max-width: 480px;
  max-height: 320px;
  object-fit: contain;
  margin: 12px 0;
  border-radius: 4px;
}
/* Signed-in member header, including narrow phone layouts. */
.topbar .header-account {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  flex-shrink: 0;
}
.header-account-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #efb15e;
  font-size: 0.875rem;
  white-space: nowrap;
}
.header-avatar {
  display: block;
  width: 32px;
  height: 32px;
  max-width: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #172436;
  border: 1px solid #53627b;
}
.header-signout {
  padding: 8px 10px;
  min-height: 40px;
  border: 1px solid #53627b;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  color: #dceafd;
}
.header-signout:hover {
  background: #192638;
}
.header-status {
  position: absolute;
  right: 0;
  top: 100%;
  max-width: 280px;
  background: #0c111c;
  color: #ffb3b3;
  font-size: 0.8rem;
  z-index: 60;
}
.header-status:empty {
  display: none;
}
@media (max-width: 1000px) {
  .topbar.member-signed-in > div:not(.header-account) > span {
    display: none;
  }
}
@media (max-width: 480px) {
  .topbar .header-account {
    gap: 8px;
  }
  .header-account-link {
    font-size: 0.8rem;
    gap: 6px;
  }
  .header-signout {
    padding: 7px 8px;
  }
  .header-avatar {
    width: 28px;
    height: 28px;
  }
}
