/* ==========================================================================
   ICLAHE redesign stylesheet
   Naming convention : "lgah" prefix + PascalCase component names
   Token convention  : --lgah* camelCase custom properties
   Design seed       : 593962023
   Theme             : dark academic archive, forest ink with gold rules
   ========================================================================== */

/* ---- font import -------------------------------------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Tinos:ital,wght@0,400;0,700;1,400&display=swap");

/* ---- tokens ------------------------------------------------------------- */
:root {
  --lgahInk: #0b120f;
  --lgahInkRaised: #111d17;
  --lgahInkPanel: #16251d;
  --lgahGreen: #4cb583;
  --lgahGreenDeep: #2b7a52;
  --lgahGreenSoft: #1d3a2b;
  --lgahGold: #d7b45d;
  --lgahGoldSoft: #8f7636;
  --lgahParchment: #e9f0ea;
  --lgahMuted: #9db3a6;
  --lgahLine: #26392d;
  --lgahFocus: #f4dc8d;
  --lgahDanger: #e08a6b;
  --lgahRule: 1px solid var(--lgahLine);
  --lgahGutter: clamp(1rem, 4vw, 3rem);
  --lgahMax: 1180px;
  --lgahRadius: 4px;
  --lgahShadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  --lgahFont: "Tinos", "Times New Roman", Times, serif;
  --lgahEase: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---- reset -------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--lgahFont);
  font-size: clamp(1.02rem, 0.5vw + 0.95rem, 1.16rem);
  line-height: 1.72;
  color: var(--lgahParchment);
  background-color: var(--lgahInk);
  background-image: radial-gradient(circle at 12% 8%, rgba(76, 181, 131, 0.09), transparent 46%),
    radial-gradient(circle at 88% 0%, rgba(215, 180, 93, 0.07), transparent 42%);
  background-repeat: no-repeat;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--lgahGreen);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--lgahGold);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--lgahFocus);
  outline-offset: 3px;
  border-radius: 2px;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--lgahParchment);
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
}

h2 {
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
}

h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
}

p {
  margin: 0 0 1.05em;
}

ul,
ol {
  margin: 0 0 1.1em;
  padding-left: 1.35rem;
}

li {
  margin-bottom: 0.4em;
}

blockquote {
  margin: 1.4rem 0;
  padding: 0.9rem 1.3rem;
  border-left: 3px solid var(--lgahGoldSoft);
  background: rgba(215, 180, 93, 0.05);
  color: var(--lgahParchment);
  font-style: italic;
}

hr {
  border: 0;
  border-top: var(--lgahRule);
  margin: 2rem 0;
}

/* ---- utilities ---------------------------------------------------------- */
.lgahSkip {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 50;
  background: var(--lgahGold);
  color: #131313;
  padding: 0.55rem 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s var(--lgahEase);
}

.lgahSkip:focus {
  top: 0.75rem;
}

.lgahShell {
  max-width: var(--lgahMax);
  margin: 0 auto;
  padding: 0 var(--lgahGutter);
}

.lgahKicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lgahGold);
  border-bottom: 1px solid var(--lgahGoldSoft);
  padding-bottom: 0.35rem;
  margin-bottom: 1rem;
}

.lgahLead {
  font-size: 1.14em;
  color: var(--lgahParchment);
}

.lgahVisuallyHidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- top bar ------------------------------------------------------------ */
.lgahTopbar {
  background: #07100c;
  border-bottom: var(--lgahRule);
  font-size: 0.84rem;
  letter-spacing: 0.06em;
}

.lgahTopbarInner {
  max-width: var(--lgahMax);
  margin: 0 auto;
  padding: 0.4rem var(--lgahGutter);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  justify-content: space-between;
  align-items: center;
  color: var(--lgahMuted);
}

.lgahTopbarInner a {
  color: var(--lgahMuted);
  text-decoration: none;
}

.lgahTopbarInner a:hover {
  color: var(--lgahGold);
  text-decoration: underline;
}

/* ---- masthead ----------------------------------------------------------- */
.lgahMast {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 18, 15, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--lgahGoldSoft);
}

.lgahMastInner {
  max-width: var(--lgahMax);
  margin: 0 auto;
  padding: 0.85rem var(--lgahGutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lgahBrand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--lgahParchment);
}

.lgahBrandMark {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
}

.lgahBrandText {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.lgahBrandName {
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.lgahBrandTag {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lgahGold);
}

.lgahNavToggle {
  display: none;
  background: transparent;
  border: 1px solid var(--lgahLine);
  color: var(--lgahParchment);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  border-radius: var(--lgahRadius);
}

.lgahNav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.lgahNavLink {
  display: block;
  padding: 0.55rem 0.7rem;
  font-size: 0.94rem;
  color: var(--lgahParchment);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s var(--lgahEase), color 0.18s var(--lgahEase);
}

.lgahNavLink:hover {
  color: var(--lgahGold);
  border-bottom-color: var(--lgahGold);
}

.lgahNavLink[aria-current="page"] {
  color: var(--lgahGold);
  border-bottom-color: var(--lgahGold);
}

/* ---- hero --------------------------------------------------------------- */
.lgahHero {
  border-bottom: var(--lgahRule);
  padding: clamp(2.4rem, 6vw, 5rem) 0 clamp(2rem, 5vw, 4rem);
}

.lgahHeroGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: start;
}

.lgahHeroTitle {
  margin-bottom: 0.5rem;
}

.lgahHeroTitle span {
  display: block;
  color: var(--lgahGold);
}

.lgahHeroActions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.lgahHeroAside {
  border: var(--lgahRule);
  border-top: 3px solid var(--lgahGreen);
  background: var(--lgahInkRaised);
  padding: 1.4rem 1.5rem;
  border-radius: var(--lgahRadius);
}

.lgahHeroAside h2 {
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lgahGold);
  margin-bottom: 0.9rem;
}

.lgahFactList {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lgahFactList li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px dotted var(--lgahLine);
  margin: 0;
}

.lgahFactList li:last-child {
  border-bottom: 0;
}

.lgahFactKey {
  color: var(--lgahMuted);
  font-size: 0.9rem;
}

.lgahFactVal {
  text-align: right;
  font-weight: 700;
}

/* ---- buttons ------------------------------------------------------------ */
.lgahBtn {
  display: inline-block;
  padding: 0.7rem 1.35rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #08120d;
  background: var(--lgahGreen);
  border: 1px solid var(--lgahGreen);
  border-radius: var(--lgahRadius);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s var(--lgahEase), background 0.15s var(--lgahEase);
}

.lgahBtn:hover {
  background: var(--lgahGold);
  border-color: var(--lgahGold);
  color: #08120d;
  transform: translateY(-1px);
}

.lgahBtnAlt {
  background: transparent;
  color: var(--lgahParchment);
  border-color: var(--lgahGoldSoft);
}

.lgahBtnAlt:hover {
  background: var(--lgahGold);
  color: #08120d;
  border-color: var(--lgahGold);
}

/* ---- bands and sections ------------------------------------------------- */
.lgahBand {
  padding: clamp(2.2rem, 5vw, 4rem) 0;
  border-bottom: var(--lgahRule);
}

.lgahBandTint {
  background: var(--lgahInkRaised);
}

.lgahBandHead {
  max-width: 62ch;
  margin-bottom: 2rem;
}

.lgahSplit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: start;
}

.lgahGrid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.lgahGrid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

/* ---- panels / cards ----------------------------------------------------- */
.lgahPanel {
  border: var(--lgahRule);
  background: var(--lgahInkPanel);
  border-radius: var(--lgahRadius);
  padding: 1.4rem 1.45rem;
  height: 100%;
}

.lgahPanelTop {
  border-top: 3px solid var(--lgahGoldSoft);
}

.lgahPanelGreen {
  border-top: 3px solid var(--lgahGreen);
}

.lgahPanel h3 {
  margin-bottom: 0.5rem;
}

.lgahPanelNum {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--lgahGold);
  margin-bottom: 0.3rem;
}

/* ---- track list --------------------------------------------------------- */
.lgahTracks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem 1.4rem;
}

.lgahTracks li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  margin: 0;
  border-bottom: 1px dotted var(--lgahLine);
}

.lgahTracks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--lgahGreen);
  transform: rotate(45deg);
}

/* ---- timeline ----------------------------------------------------------- */
.lgahTimeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--lgahLine);
}

.lgahTimeline li {
  position: relative;
  padding: 0 0 1.5rem 1.6rem;
  margin: 0;
}

.lgahTimeline li::before {
  content: "";
  position: absolute;
  left: -0.47rem;
  top: 0.45rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--lgahGold);
  border: 2px solid var(--lgahInk);
}

.lgahTime {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lgahGreen);
  margin-bottom: 0.2rem;
}

/* ---- table -------------------------------------------------------------- */
.lgahTableWrap {
  overflow-x: auto;
  border: var(--lgahRule);
  border-radius: var(--lgahRadius);
}

.lgahTable {
  width: 100%;
  border-collapse: collapse;
  min-width: 540px;
}

.lgahTable caption {
  text-align: left;
  padding: 0.8rem 1rem;
  color: var(--lgahGold);
  font-weight: 700;
  background: var(--lgahInkPanel);
}

.lgahTable th,
.lgahTable td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--lgahLine);
  vertical-align: top;
}

.lgahTable thead th {
  background: var(--lgahGreenSoft);
  color: var(--lgahParchment);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.lgahTable tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}

@media (max-width: 620px) {
  .lgahTableWrap {
    overflow-x: visible;
    border: 0;
  }

  .lgahTable {
    min-width: 0;
  }

  .lgahTable thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .lgahTable,
  .lgahTable tbody,
  .lgahTable tr,
  .lgahTable td {
    display: block;
    width: 100%;
  }

  .lgahTable tbody tr {
    border: var(--lgahRule);
    border-radius: var(--lgahRadius);
    margin-bottom: 0.8rem;
    background: var(--lgahInkPanel);
    padding: 0.35rem 0;
  }

  .lgahTable td {
    border-bottom: 0;
    padding: 0.4rem 1rem;
  }

  .lgahTable td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lgahGold);
    margin-bottom: 0.15rem;
  }
}

/* ---- callout / note ----------------------------------------------------- */
.lgahCallout {
  border: 1px solid var(--lgahGoldSoft);
  border-left: 4px solid var(--lgahGold);
  background: rgba(215, 180, 93, 0.06);
  padding: 1.1rem 1.3rem;
  border-radius: var(--lgahRadius);
  margin: 1.4rem 0;
}

.lgahCallout p:last-child {
  margin-bottom: 0;
}

.lgahNote {
  font-size: 0.9rem;
  color: var(--lgahMuted);
}

/* ---- breadcrumb --------------------------------------------------------- */
.lgahCrumb {
  font-size: 0.86rem;
  color: var(--lgahMuted);
  padding: 1rem 0 0;
}

.lgahCrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}

.lgahCrumb li::after {
  content: "/";
  margin-left: 0.4rem;
  color: var(--lgahGoldSoft);
}

.lgahCrumb li:last-child::after {
  content: "";
}

.lgahCrumb a {
  color: var(--lgahMuted);
  text-decoration: none;
}

.lgahCrumb a:hover {
  color: var(--lgahGold);
  text-decoration: underline;
}

/* ---- page header -------------------------------------------------------- */
.lgahPageHead {
  padding: clamp(1.6rem, 4vw, 2.8rem) 0 1.6rem;
  border-bottom: var(--lgahRule);
}

.lgahPageHead p {
  max-width: 70ch;
}

/* ---- prose -------------------------------------------------------------- */
.lgahProse h2 {
  margin-top: 1.9rem;
  padding-top: 1rem;
  border-top: var(--lgahRule);
}

.lgahProse h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.lgahProse h3 {
  color: var(--lgahGold);
  margin-top: 1.5rem;
}

/* ---- accordion ---------------------------------------------------------- */
.lgahAcc {
  border: var(--lgahRule);
  border-radius: var(--lgahRadius);
  overflow: hidden;
}

.lgahAcc details {
  border-bottom: var(--lgahRule);
  background: var(--lgahInkRaised);
}

.lgahAcc details:last-child {
  border-bottom: 0;
}

.lgahAcc summary {
  cursor: pointer;
  padding: 1rem 1.2rem;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.lgahAcc summary::-webkit-details-marker {
  display: none;
}

.lgahAcc summary::after {
  content: "+";
  color: var(--lgahGold);
  font-size: 1.3rem;
  line-height: 1;
}

.lgahAcc details[open] summary::after {
  content: "\2212";
}

.lgahAccBody {
  padding: 0 1.2rem 1.2rem;
}

/* ---- forms -------------------------------------------------------------- */
.lgahForm {
  display: grid;
  gap: 1.1rem;
}

.lgahField {
  display: grid;
  gap: 0.35rem;
}

.lgahLabel {
  font-weight: 700;
  font-size: 0.95rem;
}

.lgahReq {
  color: var(--lgahGold);
}

.lgahInput,
.lgahSelect,
.lgahTextarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--lgahParchment);
  background: #0a130f;
  border: 1px solid var(--lgahLine);
  border-radius: var(--lgahRadius);
  padding: 0.65rem 0.8rem;
  width: 100%;
}

.lgahInput::placeholder,
.lgahTextarea::placeholder {
  color: #6f8779;
}

.lgahTextarea {
  min-height: 8rem;
  resize: vertical;
}

.lgahFieldRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.lgahCheck {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.95rem;
}

.lgahCheck input {
  margin-top: 0.35rem;
}

.lgahFormStatus {
  font-weight: 700;
  padding: 0.7rem 1rem;
  border-radius: var(--lgahRadius);
  border: 1px solid var(--lgahLine);
  display: none;
}

.lgahFormStatus[data-state="ok"] {
  display: block;
  border-color: var(--lgahGreen);
  color: var(--lgahGreen);
}

.lgahFormStatus[data-state="err"] {
  display: block;
  border-color: var(--lgahDanger);
  color: var(--lgahDanger);
}

/* ---- footer ------------------------------------------------------------- */
.lgahFoot {
  background: #07100c;
  border-top: 2px solid var(--lgahGoldSoft);
  padding: clamp(2rem, 4vw, 3rem) 0 1.5rem;
  margin-top: 0;
}

.lgahFootGrid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.6rem;
}

.lgahFoot h2 {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lgahGold);
  margin-bottom: 0.8rem;
}

.lgahFootList {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lgahFootList li {
  margin-bottom: 0.45rem;
}

.lgahFootList a {
  color: var(--lgahMuted);
  text-decoration: none;
}

.lgahFootList a:hover {
  color: var(--lgahGold);
  text-decoration: underline;
}

.lgahFootBrand p {
  color: var(--lgahMuted);
  font-size: 0.95rem;
  max-width: 38ch;
}

.lgahFootBar {
  border-top: var(--lgahRule);
  margin-top: 2rem;
  padding-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  color: var(--lgahMuted);
  font-size: 0.85rem;
}

/* ---- misc --------------------------------------------------------------- */
.lgahDivider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--lgahGoldSoft);
  margin: 1.5rem 0;
}

.lgahDivider::before,
.lgahDivider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--lgahLine);
}

.lgahMeta {
  font-size: 0.86rem;
  color: var(--lgahMuted);
}

.lgahTagRow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
}

.lgahTag {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lgahGold);
  border: 1px solid var(--lgahGoldSoft);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
}

/* ---- responsive --------------------------------------------------------- */
@media (max-width: 980px) {
  .lgahHeroGrid,
  .lgahSplit,
  .lgahGrid3,
  .lgahGrid2,
  .lgahFootGrid {
    grid-template-columns: minmax(0, 1fr);
  }

  .lgahTracks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lgahNavToggle {
    display: inline-block;
  }

  .lgahNav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #0a130f;
    border-bottom: 1px solid var(--lgahGoldSoft);
    padding: 0.4rem var(--lgahGutter) 1rem;
    display: none;
  }

  .lgahNav[data-open="true"] {
    display: flex;
  }

  .lgahNavLink {
    border-bottom: 1px solid var(--lgahLine);
    padding: 0.85rem 0.2rem;
  }
}

@media (max-width: 620px) {
  .lgahTracks {
    grid-template-columns: minmax(0, 1fr);
  }

  .lgahFieldRow {
    grid-template-columns: minmax(0, 1fr);
  }

  .lgahFactList li {
    flex-direction: column;
    gap: 0.15rem;
  }

  .lgahFactVal {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
