/* ===================================
   GUINhub – EK 2026 themed layout
   With auto light/dark mode + Bootstrap Icons
   =================================== */

:root {
  /* EK Design Guide core palette (brand constants) */
  --ek-blue: #0038A8;          /* Business blue */
  --ek-blue-light: #0C53ED;    /* Business blue light */
  --ek-sand: #F8EDCA;          /* Daylight */
  --ek-yellow-soft: #E8D285;   /* Sunlit energy */
  --ek-green: #ACB504;         /* Campus green */
  --ek-teal: #33ABB5;          /* Poolside study */
  --ek-red: #FE4C61;           /* Academic fire */
  --ek-peach: #FCA28A;         /* Students blush */

  --ek-text: #333333;
  --ek-muted: #666666;

  --ek-surface: #FFFFFF;
  --ek-surface-soft: #FFF7E4;

  --ek-shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.10);

  /* THEME (LIGHT DEFAULT) */
  --page-bg: var(--ek-sand);
  --page-surface: var(--ek-surface);
  --page-surface-soft: var(--ek-surface-soft);
  --page-text: var(--ek-text);
  --page-muted: var(--ek-muted);
  --page-blue: var(--ek-blue);
  --page-blue-light: var(--ek-blue-light);
  --page-shadow: var(--ek-shadow-soft);
  --page-border-soft: rgba(0, 0, 0, 0.08);
  --page-primary-rgb: 0, 56, 168;
  --page-accent: #C43D52;
  --page-accent-rgb: 196, 61, 82;
  --page-support: #C43D52;
  --page-support-rgb: 196, 61, 82;
  --page-atmosphere-rgb: 196, 61, 82;
  --page-atmosphere-alpha: 0;
  --theme-on-primary: #FFFFFF;
  --page-pill-bg: rgba(0, 56, 168, 0.12);
  --page-pill-text: var(--page-text);
  --page-icon-color: var(--page-blue-light);
}

/* Automatic dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --page-bg: #0B1016;
    --page-surface: #10141B;
    --page-surface-soft: #141C26;
    --page-text: #E5E7EB;
    --page-muted: #9CA3AF;
    --page-blue: #7EA5FF;
    --page-blue-light: #AFC8FF;
    --page-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
    --page-border-soft: rgba(148, 163, 184, 0.35);
  }
}

/* ===================================
   Layout & Typography
   =================================== */

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--page-text);
  background:
    radial-gradient(circle at top left, rgba(var(--page-primary-rgb), 0.16), transparent 60%),
    var(--page-bg);
  -webkit-font-smoothing: antialiased;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: calc(100% - 72px);
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 16px 40px;
}

@media (min-width: 768px) {
  .page-wrapper {
    min-height: calc(100% - 96px);
    padding: 40px 24px 56px;
  }
}

/* ===================================
   Header
   =================================== */

.gh-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
}

.gh-title-row {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.gh-title {
  margin: 0;
  font-size: clamp(1.9rem, 2.1vw + 1.5rem, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--page-blue);
}

.gh-tagline {
  margin: 3px 0 0;
  font-size: 0.95rem;
  color: var(--page-muted);
}

.gh-menu {
  position: relative;
  flex-shrink: 0;
}

.gh-menu-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  font-size: 1.5rem;
}

.gh-settings-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 10;
  width: 320px;
  max-width: calc(100vw - 48px);
  box-sizing: border-box;
  padding: 16px;
  border-radius: 16px;
  background: var(--page-surface);
  border: 1px solid var(--page-border-soft);
  box-shadow: var(--page-shadow);
}

.gh-settings-panel:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gh-settings-title {
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--page-border-soft);
  font-size: 1rem;
  color: var(--page-text);
}

.gh-settings-panel .gh-theme-select {
  width: 100%;
  max-width: none;
}

.gh-theme-picker {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 0;
}

.gh-theme-label {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  color: var(--page-muted);
  text-transform: uppercase;
}

.gh-theme-select {
  appearance: none;
  border: 1px solid var(--page-border-soft);
  border-radius: 999px;
  background: var(--page-surface);
  color: var(--page-text);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 6px 28px 6px 10px;
  max-width: 240px;
}

.gh-theme-select:focus {
  outline: none;
  border-color: var(--page-blue-light);
  box-shadow: 0 0 0 2px rgba(var(--page-primary-rgb), 0.2);
}

/* ===================================
   Search
   =================================== */

.gh-search {
  margin: 18px 0 24px;
}

[hidden] {
  display: none !important;
}

.gh-search-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.gh-search-row form {
  flex: 0 1 380px;
  min-width: 0;
}

.gh-search-input {
  box-sizing: border-box;
}

.gh-control {
  padding: 9px 13px;
  border: 1px solid var(--page-border-soft);
  border-radius: 999px;
  background: var(--page-surface);
  color: var(--page-text);
  font: inherit;
  cursor: pointer;
}

.gh-settings-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--page-text);
  font-size: 0.9rem;
  cursor: pointer;
}

.gh-favourites-empty {
  color: var(--page-muted);
  font-size: 0.9rem;
}

.gh-filter-panel:not([hidden]) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

:is(a, button, input, select):focus-visible {
  outline: 3px solid var(--page-accent);
  outline-offset: 4px;
}

.link-card:focus-within {
  border-color: var(--page-blue);
  box-shadow: var(--page-shadow);
}

.gh-favourite,
.gh-drag-handle {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--page-surface);
  color: var(--page-blue);
  cursor: pointer;
}

.link-card .gh-favourite .bi,
.link-card .gh-drag-handle .bi {
  font-size: 0.9rem;
  margin: 0;
  color: inherit;
}

.gh-drag-handle {
  display: grid;
  place-items: center;
  top: 50%;
  left: 1px;
  right: auto;
  width: 14px;
  height: 30px;
  transform: translateY(-50%);
  line-height: 1;
  background: transparent;
  cursor: grab;
  touch-action: none;
}

.gh-dragging {
  opacity: 0.6;
}

.gh-dragging .gh-drag-handle {
  cursor: grabbing;
}

.gh-drop-target {
  outline: 2px dashed var(--page-blue);
  outline-offset: 2px;
}

.gh-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.gh-section-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.gh-section-toggle > .bi-chevron-right {
  transition: transform 150ms ease-out;
}

.gh-section-toggle[aria-expanded="true"] > .bi-chevron-right {
  transform: rotate(90deg);
}

.gh-search-input {
  width: 100%;
  max-width: 380px;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid var(--page-border-soft);
  background: var(--page-surface);
  color: var(--page-text);
  font-size: 0.95rem;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
  outline: none;
  transition: 150ms ease-out;
}

.gh-search-input::placeholder {
  color: var(--page-muted);
}

.gh-search-input:focus {
  border-color: var(--page-blue-light);
  box-shadow: 0 0 0 2px rgba(var(--page-primary-rgb), 0.18);
  transform: translateY(-1px);
}

/* ===================================
   Section headers
   =================================== */

.gh-section {
  margin-bottom: 26px;
}

.retro-groups > .gh-section {
  --section-padding: 16px;
  padding: var(--section-padding);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.14);
}

@media (max-width: 639px) {
  .retro-groups > .gh-section {
    --section-padding: 12px;
  }
}

.gh-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.gh-section-title {
  font-size: 1.05rem;
  font-weight: 720;
  color: var(--page-blue);
}

.retro-groups > .gh-section > .gh-section-header {
  margin: calc(-1 * var(--section-padding)) calc(-1 * var(--section-padding)) 14px;
  padding: 12px var(--section-padding);
  border-bottom: 1px solid var(--page-border-soft);
  border-radius: 19px 19px 0 0;
  background: rgba(0, 0, 0, 0.12);
}

.retro-groups > .gh-section > .gh-section-header .gh-section-title {
  width: 100%;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.015em;
}

.retro-groups > .gh-section > .gh-section-header .gh-section-toggle {
  width: 100%;
  justify-content: space-between;
}

.retro-groups > .gh-section > .gh-section-header .gh-section-toggle > .bi-chevron-right {
  order: 1;
  font-size: 0.8rem;
  opacity: 0.7;
}

.gh-section-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(232, 210, 133, 0.9);
  color: var(--page-text);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===================================
   Link grid & cards WITH ICONS
   =================================== */

.link-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 640px) {
  .link-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (min-width: 960px) {
  .link-grid {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
}

/* CARD BASE */
.link-card {
  position: relative;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--page-surface);
  border: 1px solid var(--page-border-soft);
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  color: var(--page-blue);
  gap: 6px;
  transition: 150ms ease-out;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--page-primary-rgb), 0.28);
  box-shadow: var(--page-shadow);
  background: var(--page-surface-soft);
}

/* ICON */
.link-card i {
  font-size: 1.45rem;
  color: var(--page-icon-color);
  margin-bottom: 4px;
  transition: color 150ms;
}

.link-card:hover i {
  color: var(--page-blue);
}

/* TITLE + SUBTEXT */
.link-card-title {
  font-size: 0.92rem;
  font-weight: 640;
  display: flex;
  align-items: center;
  gap: 6px;
}

.link-card-sub {
  font-size: 0.78rem;
  color: var(--page-muted);
}

/* ===================================
   Roles card
   =================================== */

.roles-card {
  margin-top: 4px;
  padding: 12px;
  border-radius: 12px;
  background: var(--page-surface-soft);
  border: 1px solid var(--page-border-soft);
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.roles-title {
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--page-blue);
  margin-bottom: 6px;
}

.roles-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.roles-table th,
.roles-table td {
  padding: 4px 6px;
}

.roles-table th {
  text-align: left;
  color: var(--page-muted);
  border-bottom: 1px solid var(--page-border-soft);
}

.roles-table td {
  border-bottom: 1px solid var(--page-border-soft);
}

.roles-table tr:last-child td {
  border-bottom: none;
}

/* ===================================
   E25 Columns
   =================================== */

.e25-columns {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 40px;
  margin-top: 20px;
  position: relative;
}

.e25-columns::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(var(--page-primary-rgb), 0.18);
}

.e25-column h3 {
  margin-top: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--page-blue);
}

@media (max-width: 700px) {
  .e25-columns {
    grid-template-columns: 1fr;
  }
  .e25-columns::before {
    display: none;
  }
}

/* ===================================
   Collapsibles
   =================================== */

.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.collapsible-header {
  cursor: pointer;
}

/* ===================================
   Footer
   =================================== */

.gh-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--page-border-soft);
  font-size: 0.8rem;
  color: var(--page-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  flex-wrap: wrap;
}

.gh-logo-filter {
  position: absolute;
}

.gh-footer img {
  height: 66px;
  max-width: 100%;
  object-fit: contain;
  filter: url(#ek-logo-colour);
}
.gh-secret-theme-trigger {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.gh-secret-theme-trigger:hover {
  color: var(--page-blue);
}
.gh-secret-theme-trigger:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--page-blue);
  outline-offset: 2px;
}

/* ===================================
   Global links
   =================================== */

a {
  color: var(--page-blue-light);
}

a:hover {
  color: var(--page-blue);
}

/* ==========================================
   GUINhub-style buttons (like original)
   ========================================== */

/* Back to natural card height per content */
.link-grid {
  grid-auto-rows: auto;
}

/* Card base – similar to original GUINhub */
.link-card {
  --card-enter-order: 0;
  min-height: 0;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--page-surface);
  border: 1px solid var(--page-border-soft);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  color: var(--page-blue);
  animation: card-enter 420ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(var(--card-enter-order) * 55ms);
  transition:
    background 0.2s ease-out,
    color 0.2s ease-out,
    transform 0.2s ease-out,
    box-shadow 0.2s ease-out,
    border-color 0.2s ease-out;
}

.link-grid .link-card:nth-child(2) { --card-enter-order: 1; }
.link-grid .link-card:nth-child(3) { --card-enter-order: 2; }
.link-grid .link-card:nth-child(4) { --card-enter-order: 3; }
.link-grid .link-card:nth-child(5) { --card-enter-order: 4; }
.link-grid .link-card:nth-child(6) { --card-enter-order: 5; }
.link-grid .link-card:nth-child(7) { --card-enter-order: 6; }
.link-grid .link-card:nth-child(8) { --card-enter-order: 7; }
.link-grid .link-card:nth-child(n + 9) { --card-enter-order: 8; }

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .link-card {
    animation: none;
  }
}

/* Make the whole card clickable and keep left layout */
.link-card a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.link-card a[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Icon like the old version */
.link-card i {
  font-size: 1.7rem;
  margin-bottom: 8px;
  color: var(--page-icon-color);
}

/* Title + subtext similar to old GUINhub */
.link-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 3px;
}

.link-card-sub {
  font-size: 0.8rem;
  color: var(--page-muted);
}

/* Hover behaviour: blue pill with white text, like before */
.link-card:hover {
  background: var(--page-blue);
  color: var(--theme-on-primary);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.link-card:hover i,
.link-card:hover .link-card-title,
.link-card:hover .link-card-sub {
  color: var(--theme-on-primary);
}

/* Keep all non-semester cards the same compact size as EK */
.gh-section--compact-grid .link-card {
  box-sizing: border-box;
  height: 96px;
  padding: 14px 16px;
}

.gh-section--compact-grid .link-card i {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.gh-section--compact-grid .link-card-title {
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.gh-section--compact-grid .link-card-sub {
  font-size: 0.76rem;
}

/* Non-semester sections use full-width, equal-height cards */
.gh-section--compact-grid .link-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  grid-auto-rows: 1fr;
}

@media (min-width: 960px) {
  .gh-section--compact-grid .link-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .link-grid,
  .gh-section--compact-grid .link-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  }

  .gh-section--compact-grid .link-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr));
  }

  .link-card {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

.semester-divider {
  display: none;
}

@media (min-width: 900px) {
  .semester-link-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .semester-divider {
    display: block;
    grid-column: 1 / -1;
    height: 0;
    margin: 2px 0 4px;
    border-top: 1px solid var(--page-border-soft);
  }
}

/* ==========================================
   FIX: Section pills should match theme properly
   ========================================== */

/* LIGHT MODE */
.gh-section-pill {
  background: var(--page-pill-bg);
  color: var(--page-pill-text);
  border: 1px solid var(--page-border-soft);
}

/* DARK MODE */
@media (prefers-color-scheme: dark) {
  .gh-section-pill {
    background: var(--page-pill-bg);
    color: var(--page-pill-text);
    border: 1px solid var(--page-border-soft);
    backdrop-filter: blur(6px); /* Adds a subtle premium EK glassy effect */
  }
}

/* Fix tiled background / gradient */
body {
  isolation: isolate;
  background-color: var(--page-bg);
  background-image:
    radial-gradient(circle at 24% 22%, rgba(var(--page-primary-rgb), 0.16), transparent 58%),
    radial-gradient(circle at 76% 24%, rgba(var(--page-atmosphere-rgb), var(--page-atmosphere-alpha)), transparent 42%);
  background-repeat: no-repeat;
  background-position: 0% 0%, 100% 100%;
  background-attachment: fixed;
  background-size: 130% 130%;
  animation: gradient-drift 32s ease-in-out infinite alternate;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: url("https://www.ek.dk/media/2pxnlzmm/ek_sekundaert-logo_business-blue_rgb.png") center / min(88vw, 1300px) auto no-repeat;
  content: "";
  filter: url(#ek-logo-colour);
  opacity: 0.035;
  pointer-events: none;
}

@keyframes gradient-drift {
  0% {
    background-position: 0% 0%, 100% 100%;
  }
  50% {
    background-position: 12% 8%, 86% 92%;
  }
  100% {
    background-position: 20% 14%, 78% 84%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
  }
}

.gh-snow-toggle:not([hidden]),
.gh-music-toggle:not([hidden]) {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--page-text);
  font-size: 0.86rem;
  cursor: pointer;
}

.gh-snow-toggle input,
.gh-music-toggle input {
  accent-color: var(--page-blue);
}

.gh-music-status {
  flex-basis: 100%;
  color: var(--page-text);
  font-size: 0.86rem;
}

.gh-snow {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  z-index: 100;
}

.gh-snowflake {
  position: absolute;
  top: -32px;
  width: 28px;
  height: 32px;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 32px;
  text-align: center;
  color: #FFFFFF;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  animation: christmas-snowfall linear infinite;
}

@keyframes christmas-snowfall {
  from {
    transform: translate3d(0, -32px, 0) rotate(0deg);
  }
  to {
    transform: translate3d(var(--snow-drift), calc(100vh + 64px), 0) rotate(180deg);
  }
}

.gh-halloween .gh-snowflake,
.gh-summer .gh-snowflake,
.gh-canada .gh-snowflake {
  top: -48px;
  width: 48px;
  height: 48px;
  line-height: 48px;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.gh-halloween .gh-snowflake:nth-child(odd) {
  animation-name: halloween-flight;
}

@keyframes halloween-flight {
  0% {
    transform: translate3d(-24px, -48px, 0) rotate(-12deg);
  }
  35% {
    transform: translate3d(40px, 35vh, 0) rotate(14deg);
  }
  70% {
    transform: translate3d(-40px, 70vh, 0) rotate(-14deg);
  }
  100% {
    transform: translate3d(var(--snow-drift), calc(100vh + 96px), 0) rotate(12deg);
  }
}

@media (max-width: 639px) {
  .gh-summer .gh-snowflake:nth-child(n + 13),
  .gh-halloween .gh-snowflake:nth-child(n + 17),
  .gh-canada .gh-snowflake:nth-child(n + 19),
  .gh-snowflake:nth-child(n + 25) {
    display: none;
    animation: none;
  }
}

.gh-summer .gh-snowflake {
  animation-name: summer-breeze;
  text-shadow: none;
}

.gh-canada .gh-snowflake {
  animation-name: canada-flurry;
  width: auto;
  min-width: 48px;
  color: #B51F35;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}
.gh-canada .gh-snowflake.gh-canada-word {
  min-width: 0;
  width: auto;
  padding: 0 6px;
  white-space: nowrap;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem !important;
  font-weight: 800;
  color: #176344;
}
@keyframes canada-flurry {
  0% {
    transform: translate3d(-28px, -48px, 0) rotate(-16deg);
  }
  50% {
    transform: translate3d(32px, 48vh, 0) rotate(18deg);
  }
  100% {
    transform: translate3d(var(--snow-drift), calc(100vh + 96px), 0) rotate(-12deg);
  }
}

@keyframes summer-breeze {
  0% {
    transform: translate3d(-20px, calc(100vh + 96px), 0) rotate(-10deg);
  }
  35% {
    transform: translate3d(30px, 65vh, 0) rotate(8deg);
  }
  70% {
    transform: translate3d(-20px, 30vh, 0) rotate(-8deg);
  }
  100% {
    transform: translate3d(var(--snow-drift), -48px, 0) rotate(10deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gh-snow-toggle:not([hidden]),
  .gh-snow {
    display: none;
  }

  .gh-snowflake {
    animation: none;
  }
}

.retro-menu-bar,
.retro-welcome {
  display: none;
}

/* Early Internet '97 */
html[data-theme-id="early-internet-97"] body {
  font-family: Verdana, Arial, sans-serif;
  color: #000000;
  background-color: #008080;
  background-image: none;
  animation: none;
}

html[data-theme-id="early-internet-97"] body::before {
  display: none;
}

html[data-theme-id="early-internet-97"] .page-wrapper {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 1440px;
  min-height: 100%;
  margin: 0 auto;
  padding: 0 12px 24px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

html[data-theme-id="early-internet-97"] .gh-header {
  grid-column: 1 / -1;
  align-items: center;
  margin: 0 -12px;
  padding: 8px 12px;
  border-bottom: 2px solid #FFFFFF;
  background: #000080;
}

html[data-theme-id="early-internet-97"] .gh-title {
  font-family: Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  color: #FFFFFF;
  text-shadow: none;
  font-size: 1.15rem;
}

html[data-theme-id="early-internet-97"] .gh-tagline {
  color: #FFFFFF;
  font-family: Arial, sans-serif;
  font-weight: 400;
  font-size: 0.82rem;
}

html[data-theme-id="early-internet-97"] .retro-menu-bar [data-mac-menu],
html[data-theme-id="mac-os-7"] .retro-menu-bar [data-windows-menu] {
  display: none;
}

html[data-theme-id="early-internet-97"] .retro-menu-bar {
  display: flex;
  gap: 24px;
  margin: -12px -12px 0;
  padding: 5px 16px;
  border-bottom: 2px groove #FFFFFF;
  background: #C0C0C0;
  color: #000000;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
}

html[data-theme-id="early-internet-97"] .retro-welcome {
  display: block;
  margin: 8px 0 18px;
  padding: 8px;
  border: 2px outset #FFFFFF;
  background: #FFFFFF;
  text-align: center;
}

html[data-theme-id="early-internet-97"] .retro-marquee {
  overflow: hidden;
  padding: 7px 0;
  border: 2px inset #808080;
  background: #000080;
  color: #FFFFFF;
  font-family: Arial, sans-serif;
  font-weight: 700;
  white-space: nowrap;
}

html[data-theme-id="early-internet-97"] .retro-marquee span {
  display: inline-block;
  min-width: max-content;
  animation: retro-marquee-scroll 24s linear infinite;
}

@keyframes retro-marquee-scroll {
  from { transform: translateX(100vw); }
  to { transform: translateX(-100%); }
}

html[data-theme-id="early-internet-97"] .retro-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 9px;
  font-family: Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
}

html[data-theme-id="early-internet-97"] .retro-mail-button,
html[data-theme-id="early-internet-97"] .retro-visitor,
html[data-theme-id="early-internet-97"] .retro-browser-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  box-sizing: border-box;
  padding: 4px 7px;
  border: 2px outset #FFFFFF;
  background: #C0C0C0;
  color: #000000;
  text-decoration: none;
}

html[data-theme-id="early-internet-97"] .retro-mail-button:hover {
  background: #D4D0C8;
  color: #000000;
}

html[data-theme-id="early-internet-97"] .retro-browser-badge img {
  display: block;
  width: 24px;
  height: 24px;
}

html[data-theme-id="early-internet-97"] .retro-envelope {
  display: inline-block;
  color: #000080;
  font-size: 1.1rem;
  animation: retro-envelope-spin 2.8s linear infinite;
}

@keyframes retro-envelope-spin {
  to { transform: rotate(360deg); }
}

html[data-theme-id="early-internet-97"] .retro-under-construction {
  padding: 6px 8px;
  border: 2px outset #FFE34D;
  background: repeating-linear-gradient(135deg, #FFE34D 0 8px, #17122A 8px 16px);
  color: #111111;
}

html[data-theme-id="early-internet-97"] .retro-visitor strong {
  color: #000080;
}

html[data-theme-id="early-internet-97"] .gh-search-input,
html[data-theme-id="early-internet-97"] .gh-control,
html[data-theme-id="early-internet-97"] .gh-theme-select {
  border: 2px inset #808080;
  border-radius: 0;
  background: #FFFFFF;
  color: #000000;
  box-shadow: none;
}

html[data-theme-id="early-internet-97"] .gh-search {
  margin: 0 0 6px;
}

html[data-theme-id="early-internet-97"] .gh-control {
  border-style: outset;
}

html[data-theme-id="early-internet-97"] .retro-groups {
  column-count: 2;
  column-gap: 12px;
}

html[data-theme-id="early-internet-97"] .retro-groups > .gh-section {
  box-sizing: border-box;
  align-self: start;
  min-width: 0;
  display: inline-block;
  width: 100%;
  margin: 0 0 12px;
  padding: 4px;
  border: 3px ridge #C0C0C0;
  border-radius: 0;
  background: #FFFFFF;
  box-shadow: 2px 2px 0 #000000;
  break-inside: avoid;
}

html[data-theme-id="early-internet-97"] #portal-status {
  margin: 0 0 10px;
}

html[data-theme-id="early-internet-97"] .retro-groups > .gh-section > .gh-section-header {
  margin: -4px -4px 4px;
  padding: 9px 12px;
  border: 0;
  border-bottom: 2px solid #000000;
  border-radius: 0;
  background: #000080;
}

html[data-theme-id="early-internet-97"] .retro-groups > .gh-section > .gh-section-header .gh-section-title {
  color: #FFFFFF;
  font-family: Arial, sans-serif;
  font-weight: 800;
}

html[data-theme-id="early-internet-97"] .retro-groups > .gh-section > .gh-section-header .gh-section-toggle {
  color: inherit;
}

html[data-theme-id="early-internet-97"] .gh-section-toggle > .bi-chevron-right {
  color: #FFFFFF;
}

html[data-theme-id="early-internet-97"] .link-card {
  justify-content: flex-start;
  align-items: center;
  height: auto;
  min-height: 82px;
  padding: 28px 4px 6px;
  border: 1px solid transparent;
  border-radius: 0;
  background: #FFFFFF;
  color: #000000;
  box-shadow: none;
  animation: none;
  text-align: center;
}

html[data-theme-id="early-internet-97"] .gh-section--compact-grid .link-card {
  height: auto;
  min-height: 82px;
  padding: 28px 4px 6px;
}

html[data-theme-id="early-internet-97"] .link-card .gh-favourite {
  top: 3px;
  right: 3px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px outset #FFFFFF;
  border-radius: 0;
  background: #C0C0C0;
  color: #000080;
}

html[data-theme-id="early-internet-97"] .link-card .gh-favourite .bi {
  font-size: 0.75rem;
}

html[data-theme-id="early-internet-97"] .link-card a {
  align-items: center;
  text-align: center;
}

html[data-theme-id="early-internet-97"] .link-card i {
  color: #000080;
  font-size: 2rem;
  margin: 0 0 5px;
}

html[data-theme-id="early-internet-97"] .gh-section--compact-grid .link-card i {
  font-size: 2rem;
  margin: 0 0 5px;
}

html[data-theme-id="early-internet-97"] .gh-section--compact-grid .link-grid {
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  grid-auto-rows: auto;
  gap: 2px;
}

html[data-theme-id="early-internet-97"] .link-card-sub {
  color: #404040;
  font-size: 0.7rem;
}

html[data-theme-id="early-internet-97"] .link-card:hover {
  transform: none;
  border: 1px dotted #000000;
  background: #000080;
  color: #FFFFFF;
  box-shadow: none;
}

html[data-theme-id="early-internet-97"] .link-card:hover .gh-favourite,
html[data-theme-id="early-internet-97"] .link-card:hover .gh-drag-handle {
  background: #C0C0C0;
  color: #000080;
}

html[data-theme-id="early-internet-97"] .link-card:hover i,
html[data-theme-id="early-internet-97"] .link-card:hover .link-card-title,
html[data-theme-id="early-internet-97"] .link-card:hover .link-card-sub {
  color: #FFFFFF;
}

html[data-theme-id="early-internet-97"] .roles-card {
  border-radius: 0;
  background: #FFFFFF;
}

html[data-theme-id="early-internet-97"] .gh-footer {
  border-top: 2px solid #808080;
  color: #000000;
}

@media (max-width: 639px) {
  html[data-theme-id="early-internet-97"] .page-wrapper {
    padding: 0 8px 16px;
  }

  html[data-theme-id="early-internet-97"] .gh-header {
    margin: 0 -8px;
  }

  html[data-theme-id="early-internet-97"] .retro-menu-bar {
    margin: -12px -8px 0;
  }

  html[data-theme-id="early-internet-97"] .retro-groups {
    column-count: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-theme-id="early-internet-97"] .retro-marquee span,
  html[data-theme-id="early-internet-97"] .retro-envelope {
    animation: none;
  }
}

/* Macintosh System 7 */
html[data-theme-id="mac-os-7"] body {
  font-family: Chicago, Geneva, Arial, sans-serif;
  color: #000000;
  background-color: #FFFFFF;
  background-image: repeating-conic-gradient(#FFFFFF 0% 25%, #000000 0% 50%);
  background-size: 4px 4px;
  animation: none;
}

html[data-theme-id="mac-os-7"] body::before {
  display: none;
}

html[data-theme-id="mac-os-7"] .page-wrapper {
  box-sizing: border-box;
  display: block;
  width: min(100% - 24px, 1440px);
  max-width: 1440px;
  min-height: calc(100% - 24px);
  margin: 12px auto;
  padding: 0 10px 18px;
  border: 2px solid #000000;
  background: #E5E5E5;
  box-shadow: 3px 3px 0 #000000;
}

html[data-theme-id="mac-os-7"] .gh-header {
  align-items: center;
  margin: 0 -10px;
  padding: 6px 12px;
  border-bottom: 2px solid #000000;
  background: repeating-linear-gradient(
    to bottom,
    #FFFFFF 0,
    #FFFFFF 1px,
    #D0D0D0 1px,
    #D0D0D0 2px
  );
}

html[data-theme-id="mac-os-7"] .gh-title {
  color: #000000;
  font-family: Chicago, Geneva, Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0;
  text-shadow: none;
}

html[data-theme-id="mac-os-7"] .gh-tagline {
  color: #000000;
  font-size: 0.8rem;
}

html[data-theme-id="mac-os-7"] .retro-menu-bar {
  display: flex;
  gap: 20px;
  margin: 0 -10px 12px;
  padding: 5px 14px;
  border-bottom: 2px solid #000000;
  background: #FFFFFF;
  color: #000000;
  font-family: Chicago, Geneva, Arial, sans-serif;
  font-size: 0.88rem;
}

html[data-theme-id="mac-os-7"] .retro-welcome {
  display: block;
  margin: 0 0 12px;
  padding: 7px;
  border: 2px solid #000000;
  background: #FFFFFF;
  text-align: center;
}

html[data-theme-id="mac-os-7"] .retro-marquee {
  overflow: hidden;
  padding: 6px 0;
  border: 1px solid #000000;
  background: repeating-linear-gradient(
    to bottom,
    #FFFFFF 0,
    #FFFFFF 1px,
    #D0D0D0 1px,
    #D0D0D0 2px
  );
  color: #000000;
  font-weight: 700;
  white-space: nowrap;
}

html[data-theme-id="mac-os-7"] .retro-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 8px;
  font-size: 0.68rem;
  font-weight: 700;
}

html[data-theme-id="mac-os-7"] .retro-mail-button,
html[data-theme-id="mac-os-7"] .retro-visitor,
html[data-theme-id="mac-os-7"] .retro-browser-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  box-sizing: border-box;
  padding: 3px 7px;
  border: 1px solid #000000;
  background: #E5E5E5;
  color: #000000;
  text-decoration: none;
}

html[data-theme-id="mac-os-7"] .retro-browser-badge img {
  width: 22px;
  height: 22px;
  filter: grayscale(1);
}

html[data-theme-id="mac-os-7"] .retro-under-construction {
  padding: 5px 7px;
  border: 1px solid #000000;
  background: #E5E5E5;
  color: #000000;
}

html[data-theme-id="mac-os-7"] .gh-search {
  margin: 0 0 10px;
}

html[data-theme-id="mac-os-7"] .gh-search-input,
html[data-theme-id="mac-os-7"] .gh-control,
html[data-theme-id="mac-os-7"] .gh-theme-select {
  border: 2px inset #808080;
  border-radius: 0;
  background: #FFFFFF;
  color: #000000;
  box-shadow: none;
}

html[data-theme-id="mac-os-7"] .gh-control {
  border-style: outset;
}

html[data-theme-id="mac-os-7"] .retro-groups {
  column-count: 2;
  column-gap: 12px;
}

html[data-theme-id="mac-os-7"] .retro-groups > .gh-section {
  display: inline-block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0 0 12px;
  padding: 4px;
  border: 3px double #000000;
  border-radius: 0;
  background: #FFFFFF;
  box-shadow: 2px 2px 0 #000000;
  break-inside: avoid;
}

html[data-theme-id="mac-os-7"] .retro-groups > .gh-section > .gh-section-header {
  margin: -4px -4px 4px;
  padding: 7px 10px;
  border: 0;
  border-bottom: 2px solid #000000;
  border-radius: 0;
  background: repeating-linear-gradient(
    to bottom,
    #FFFFFF 0,
    #FFFFFF 1px,
    #D0D0D0 1px,
    #D0D0D0 2px
  );
}

html[data-theme-id="mac-os-7"] .retro-groups > .gh-section > .gh-section-header .gh-section-title,
html[data-theme-id="mac-os-7"] .retro-groups > .gh-section > .gh-section-header .gh-section-toggle {
  color: #000000;
  font-family: Chicago, Geneva, Arial, sans-serif;
  font-weight: 700;
}

html[data-theme-id="mac-os-7"] .retro-groups > .gh-section > .gh-section-header .gh-section-toggle {
  flex-direction: row-reverse;
  justify-content: center;
  position: relative;
}

html[data-theme-id="mac-os-7"] .retro-groups > .gh-section > .gh-section-header .gh-section-toggle > .bi-chevron-right {
  position: absolute;
  left: 0;
}

html[data-theme-id="mac-os-7"] .gh-section-toggle > .bi-chevron-right {
  color: #000000;
}

html[data-theme-id="mac-os-7"] .gh-section--compact-grid .link-grid {
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  grid-auto-rows: auto;
  gap: 2px;
}

html[data-theme-id="mac-os-7"] .link-card,
html[data-theme-id="mac-os-7"] .gh-section--compact-grid .link-card {
  justify-content: flex-start;
  align-items: center;
  height: auto;
  min-height: 82px;
  padding: 28px 4px 6px;
  border: 1px solid transparent;
  border-radius: 0;
  background: #FFFFFF;
  color: #000000;
  box-shadow: none;
  animation: none;
  text-align: center;
}

html[data-theme-id="mac-os-7"] .link-card a {
  align-items: center;
  text-align: center;
}

html[data-theme-id="mac-os-7"] .link-card i,
html[data-theme-id="mac-os-7"] .gh-section--compact-grid .link-card i {
  margin: 0 0 5px;
  color: #000000;
  font-size: 2rem;
  filter: grayscale(1);
}

html[data-theme-id="mac-os-7"] .link-card-sub {
  color: #404040;
  font-size: 0.7rem;
}

html[data-theme-id="mac-os-7"] .link-card .gh-favourite {
  top: 3px;
  right: 3px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px outset #FFFFFF;
  border-radius: 0;
  background: #E5E5E5;
  color: #000000;
}

html[data-theme-id="mac-os-7"] .link-card .gh-favourite .bi {
  font-size: 0.75rem;
}

html[data-theme-id="mac-os-7"] .link-card:hover {
  transform: none;
  border: 1px dotted #000000;
  background: #000000;
  color: #FFFFFF;
  box-shadow: none;
}

html[data-theme-id="mac-os-7"] .link-card:hover i,
html[data-theme-id="mac-os-7"] .link-card:hover .link-card-title,
html[data-theme-id="mac-os-7"] .link-card:hover .link-card-sub {
  color: #FFFFFF;
}

html[data-theme-id="mac-os-7"] .link-card:hover .gh-favourite {
  background: #E5E5E5;
  color: #000000;
}

html[data-theme-id="mac-os-7"] .roles-card {
  border: 1px solid #000000;
  border-radius: 0;
  background: #FFFFFF;
}

html[data-theme-id="mac-os-7"] .gh-footer {
  border-top: 2px solid #000000;
  color: #000000;
}

@media (max-width: 639px) {
  html[data-theme-id="mac-os-7"] .page-wrapper {
    width: calc(100% - 16px);
    margin: 8px auto;
    padding: 0 6px 12px;
  }

  html[data-theme-id="mac-os-7"] .gh-header {
    margin: 0 -6px;
  }

  html[data-theme-id="mac-os-7"] .retro-menu-bar {
    gap: 14px;
    margin: 0 -6px 10px;
  }

  html[data-theme-id="mac-os-7"] .retro-groups {
    column-count: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-theme-id="mac-os-7"] .retro-marquee span {
    animation: none;
  }
}
