/* =========================
   Global Reset & Defaults
   ========================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "baskerville", Arial, Helvetica, sans-serif;
  background-color: #0b0e11;
  color: #e3e6eb;
  line-height: 1.15;
}


/* =========================
   varape btn
   ========================= */

/* RESET + COPY : style force, sans toucher au HTML */
button#reset-losses.btn.ghost,
button#copy-report-btn.btn.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 22px;
  border-radius: 8px;

  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;

  cursor: pointer;

  background: #c7a45d !important;
  color: #000000 !important;
  border: 1px solid #c7a45d !important;

  transition: all 0.25s ease;
}

button#reset-losses.btn.ghost:hover,
button#copy-report-btn.btn.ghost:hover {
  background: #000000 !important;
  color: #c7a45d !important;
  border-color: #c7a45d !important;
}

button#reset-losses.btn.ghost:active,
button#copy-report-btn.btn.ghost:active {
  transform: translateY(1px);
}

button#reset-losses.btn.ghost:focus,
button#copy-report-btn.btn.ghost:focus {
  outline: none;
}

#copy-report-btn.btn.ghost.copied {
  background: #000000;
  color: #c7a45d;
}
/* =========================
   Splash Overlay (REQUIRED)
   ========================= */

#splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;

  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

#splash-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#splash-overlay.dismiss {
  transform: translateY(-100%);
  transition: transform 0.6s ease;
}

/* =========================
   Overall Layout
   ========================= */

.layout {
  display: flex;
  min-height: 100vh;
}

/* =========================
   Sidebar Navigation
   ========================= */

.sidebar {
  width: 230px;
  background-color: #151a20;
  padding: 1.5rem 1rem;
  border-right: 1px solid #2a313a;
}

.clan-logo {
  text-align: center;
  margin-bottom: 1.5rem;
}

.clan-logo img {
  max-width: 160px;
  width: 100%;
  height: auto;
}

.sidebar nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar nav li {
  margin-bottom: 0.65rem;
}

.sidebar nav a {
  display: block;
  padding: 0.45rem 0.6rem;
  color: #e3e6eb;
  text-decoration: none;
  border-left: 3px solid transparent;
}

.sidebar nav a:hover {
  background-color: #1c222a;
  border-left-color: #c7a45d;
}

/* =========================
   Main Content Area
   ========================= */

.content {
  flex: 1;
  padding: 2.25rem;
  max-width: 1200px;
}

/* =========================
   Header
   ========================= */

header h1 {
  margin-top: 0;
  margin-bottom: 0.35rem;
  font-size: 1.9rem;
  letter-spacing: 0.03em;
  line-height: 1.25;
}

.tagline {
  color: #9aa3b2;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* =========================
   Sections & Text
   ========================= */

section {
  margin-bottom: 2.2rem;
}

section h2 {
  margin-bottom: 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #2a313a;
  color: #c7a45d;
  font-size: 24px;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* =========================
   Lists
   ========================= */

ul {
  padding-left: 1.2rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.4rem;
}

ul ul li {
  margin-bottom: 0.1rem;
}


/* =========================
   Loss Calculator Layout
   ========================= */

.loss-inputs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.base-costs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.loss-card,
.troop-unit-card,
.troop-base-cost-card {
  background-color: none;
  border: non;
  padding: 10px;
}

.base-cost-card {
  background-color: #black;
  border: 1px solid #2A2A2A;
  padding: 0.6rem;
}

.base-cost-card label {
  display: block;
  font-size: 17px;
  color: white;
  margin-bottom: 0.25rem;
}

.base-cost-card input {
  width: 100%;
  background-color: #0b0e11;
  border: 1px solid #2A2A2A;
  color: #e3e6eb;
  padding: 0.3rem 0.35rem;
}

/* =========================
   Tables
   ========================= */

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border: 1px solid #2a313a;
  padding: 0.4rem 0.5rem;
  text-align: left;
}

th {
  color: #c7a45d;
  background-color: #151a20;
}

/* =========================
   Footer
   ========================= */

footer {
  margin-top: 3rem;
  font-size: 0.8rem;
  color: #9aa3b2;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 900px) {
  .tutorials-grid {
    grid-template-columns: 1fr;
  }

  .loss-inputs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #2a313a;
  }

  .content {
    padding: 1.5rem;
  }
}

/* =========================
   Global Link Styling
   ========================= */


