@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,600;0,700;0,800;1,700;1,800&display=swap");

/*
  THE PLAYER LAB
  File: css/style.css
  Version: 0.1.5
  Updated: 2026-08-21

  PURPOSE
  Provides the visual styling for The Player Lab.

  DESIGN SYSTEM
  Dark Lab
  - Dark charcoal application background
  - Layered dark panels
  - Electric blue primary accent
  - Color-coded badge levels
  - Responsive desktop and mobile layouts

  CHANGELOG
0.1.5 - Refined badge description interaction styling
      - Removed the expand indicator from desktop badge cards
      - Kept desktop badge descriptions on natural hover
      - Added mobile-only + / − expand indicators
      - Positioned the mobile badge level and expand indicator inline
      - Preserved aligned badge-card layout across mobile results
0.1.4 - Added responsive badge description interactions
      - Added desktop hover behavior for badge descriptions
      - Added mobile tap-expanded badge description styling
      - Preserved existing badge card alignment
      - Preserved Bronze, Silver, Gold, and Hall of Fame card styling
0.1.3 - Refined Player Lab header icon styling
      - Added sizing and alignment for the laboratory flask icon
      - Increased icon size for better balance with the header text
      - Applied the Dark Lab blue accent color to the SVG icon
      - Maintained responsive header alignment
0.1.2 - Refined header layout and branding
      - Removed obsolete game-version card styles
      - Updated brand subtitle styling
      - Added emphasized styling for Player Creation & Analysis
      - Simplified header presentation
0.1.1 - Refined header and badge-level styling
      - Centered the NBA 2K26 version pill text
      - Updated Legend badge color from cyan to red
      - Added stronger per-level badge card borders
      - Added subtle per-level background tinting
      - Added hover glow effects for Bronze, Silver, Gold,
        Hall of Fame, and Legend badge cards
0.1.0 - Initial Dark Lab UI
        - Added global color system
        - Added application header styling
        - Added panel and form styling
        - Added attribute input grid
        - Added measurement input styling
        - Added primary and secondary buttons
        - Added badge level colors
        - Added badge result cards
        - Added responsive mobile layout
*/


/* ======================================================
   DARK LAB COLOR SYSTEM
====================================================== */

:root {

  /* Backgrounds */
  --bg-main: #0e1117;
  --bg-panel: #161b22;
  --bg-panel-secondary: #1f2630;
  --bg-input: #10151c;

  /* Borders */
  --border-primary: #2a3441;
  --border-hover: #3a4758;

  /* Text */
  --text-primary: #f5f7fa;
  --text-secondary: #9ba6b2;
  --text-muted: #6f7b88;

  /* Brand */
  --accent-primary: #3b82f6;
  --accent-primary-hover: #2563eb;
  --accent-soft: #14233a;

  /* Attribute category colors */
  --category-finishing: #3b82f6;
  --category-shooting: #39c66b;
  --category-playmaking: #f28c38;
  --category-defense: #e84a5f;
  --category-rebounding: #8b5cf6;
  --category-physicals: #e6a57e;
  
  /* Badge levels */
  --badge-bronze: #c8753d;
  --badge-bronze-bg: #2c1b13;

  --badge-silver: #c2cad4;
  --badge-silver-bg: #222831;

  --badge-gold: #f2c94c;
  --badge-gold-bg: #302811;

  --badge-hof: #bb6bd9;
  --badge-hof-bg: #281634;

  /* Status */
  --danger: #ff5a67;

  /* Layout */
  --content-width: 1400px;
  --panel-radius: 12px;
}


/* ======================================================
   RESET
====================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;

  background:
    radial-gradient(
      circle at top left,
      rgba(59, 130, 246, 0.08),
      transparent 28%
    ),
    var(--bg-main);

  color: var(--text-primary);

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  font-size: 16px;
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}


/* ======================================================
   SHARED CONTAINER
====================================================== */

.container {
  width: min(
    calc(100% - 40px),
    var(--content-width)
  );

  margin: 0 auto;
}


/* ======================================================
   APP HEADER
====================================================== */

.app-header {
  border-bottom: 1px solid var(--border-primary);
  background: rgba(14, 17, 23, 0.94);

  position: sticky;
  top: 0;
  z-index: 100;

  backdrop-filter: blur(12px);
}

.app-header .container {
  min-height: 82px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 24px;
}
/* ======================================================
   PLAYER LAB BRAND WORDMARK
====================================================== */

.brand-lockup {
  display: flex;
  align-items: center;

  width: auto;

  gap: 14px;
}

.brand-icon {
  width: 50px;
  height: 50px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 50px;

  overflow: visible;
}

.brand-icon img {
  display: block;

  width: 46px;
  height: 46px;

  min-width: 46px;
  min-height: 46px;

  object-fit: contain;
}


/* ======================================================
   WORDMARK STRUCTURE
====================================================== */

.brand-wordmark {
  display: flex;
  flex-direction: column;

  flex: 1 1 auto;
  min-width: 220px;
}

.brand-eyebrow {
  display: flex;
  align-items: center;

  gap: 8px;

  width: 100%;

  margin-bottom: -2px;
}

.brand-the {
  color: #aeb7c2;

  font-family:
    "Barlow Condensed",
    sans-serif;

  font-size: 0.72rem;
  font-weight: 700;

  letter-spacing: 0.34em;

  line-height: 1;

  white-space: nowrap;
}

.brand-top-rule {
  flex: 0 0 105px;

  height: 1px;

  background:
    linear-gradient(
      to right,
      rgba(174, 183, 194, 0.75),
      rgba(174, 183, 194, 0.08)
    );
}


/* ======================================================
   MAIN TITLE
====================================================== */

.brand-title {
  display: flex;
  align-items: baseline;

  gap: 7px;

  font-family:
    "Barlow Condensed",
    sans-serif;

  font-size: 2.15rem;
  font-style: italic;
  font-weight: 800;

  line-height: 0.98;

  letter-spacing: -0.035em;

  text-transform: uppercase;

  white-space: nowrap;

  padding-right: 8px;
  overflow: visible;

  filter:
    drop-shadow(
      0 2px 1px rgba(0, 0, 0, 0.35)
    );
}


/* PLAYER */

.brand-player {
  display: inline-block;
padding-right: 4px;
  background:
    linear-gradient(
      to bottom,
      #ffffff 0%,
      #f4f4f4 45%,
      #c8cdd2 100%
    );

  -webkit-background-clip: text;
  background-clip: text;

  -webkit-text-fill-color: transparent;

  color: transparent;

  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08);
}


/* LAB */

.brand-lab {
  display: inline-block;
padding-right: 8px;
  background:
    linear-gradient(
      to bottom,
      #dfff4f 0%,
      #b9ef32 50%,
      #86c91f 100%
    );

  -webkit-background-clip: text;
  background-clip: text;

  -webkit-text-fill-color: transparent;

  color: transparent;

  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05);
}


/* ======================================================
   BOTTOM WORDMARK RULE
====================================================== */

.brand-bottom-rule {
  width: 145px;
  height: 2px;

  margin-top: 4px;

  background:
    linear-gradient(
      to right,
      #aeb7c2 0%,
      #c6cbd0 45%,
      #b9ef32 100%
    );

  opacity: 0.9;
}


/* ======================================================
   BRAND SUBTITLE
====================================================== */

.brand-subtitle {
  margin: 5px 0 0;

  color: var(--text-secondary);

  font-size: 0.72rem;
  font-weight: 600;

  letter-spacing: 0.035em;

  line-height: 1.2;

  white-space: nowrap;
}/* ======================================================
   MAIN LAYOUT
====================================================== */

main.container {
  padding-top: 30px;
  padding-bottom: 40px;
}

.panel {
  margin-bottom: 24px;

  padding: 24px;

  border: 1px solid var(--border-primary);
  border-radius: var(--panel-radius);

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.015),
      transparent
    ),
    var(--bg-panel);

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.18);
}


/* ======================================================
   SECTION HEADERS
====================================================== */

.section-header {
  margin-bottom: 22px;
}

.section-header h2 {
  margin: 0;

  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-header p {
  margin: 6px 0 0;

  max-width: 760px;

  color: var(--text-secondary);

  font-size: 0.9rem;
}


/* ======================================================
   FORMS
====================================================== */

.form-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;

  min-width: 0;
}

.form-group label,
.attribute-field label {
  margin-bottom: 7px;

  color: var(--text-secondary);

  font-size: 0.95rem;
  font-weight: 600;
}

input,
select {
  width: 100%;
  min-height: 44px;

  padding: 10px 12px;

  border: 1px solid var(--border-primary);
  border-radius: 8px;

  outline: none;

  background: var(--bg-input);
  color: var(--text-primary);

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

input:hover,
select:hover {
  border-color: var(--border-hover);
}

input:focus,
select:focus {
  border-color: var(--accent-primary);

  box-shadow:
    0 0 0 3px rgba(59, 130, 246, 0.15);

  background: #111821;
}

input::placeholder {
  color: var(--text-muted);
}

select {
  cursor: pointer;
}


/* ======================================================
   HEIGHT / WINGSPAN
====================================================== */

.measurement-group {
  display: grid;

  grid-template-columns:
    minmax(60px, 1fr)
    auto
    minmax(60px, 1fr)
    auto;

  align-items: center;

  gap: 8px;
}

.measurement-group span {
  color: var(--text-secondary);

  font-size: 0.78rem;
  font-weight: 600;
}

.measurement-group input {
  min-width: 0;

  text-align: center;
}

.section-header .attribute-helper {
  display: flex;
  align-items: center;
  gap: 5px;

  margin: 6px 0 0;

  color: var(--text-muted);

  font-size: 0.65rem;
  font-weight: 500;
  line-height: 1.2;

  opacity: 0.7;
}

.section-header .attribute-helper-icon {
  width: 12px;
  height: 12px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 12px;

  border: 1px solid currentColor;
  border-radius: 50%;

  font-size: 0.45rem;
  font-weight: 800;
  line-height: 1;
}

/* ======================================================
   ATTRIBUTE CATEGORIES
====================================================== */

.attribute-category {
  padding-top: 6px;
  padding-bottom: 24px;

  margin-bottom: 18px;

  border-bottom: 1px solid var(--border-primary);
}

.attribute-category:last-of-type {
  border-bottom: 0;
}

.attribute-category h3 {
  margin: 0 0 16px;

  display: flex;
  align-items: center;

  gap: 10px;

  color: var(--text-primary);

  font-size: 0.82rem;
  font-weight: 800;

  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.attribute-category h3::before {
  content: "";

  width: 4px;
  height: 16px;

  border-radius: 999px;

  background: var(--accent-primary);
}

.attribute-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 14px;
}

.attribute-field {
  min-width: 0;
}

.attribute-field input {
  font-weight: 700;
  font-size: 1rem;

  text-align: center;
}

/* ======================================================
   ATTRIBUTE CATEGORY COLORS
====================================================== */

/* Finishing */

.attribute-category:has(#closeShot) h3 {
  color: var(--category-finishing);
}

.attribute-category:has(#closeShot) h3::before {
  background: var(--category-finishing);
}

.attribute-category:has(#closeShot) input:focus {
  border-color: var(--category-finishing);

  box-shadow:
    0 0 0 3px rgba(59, 130, 246, 0.15);
}


/* Shooting */

.attribute-category:has(#midRangeShot) h3 {
  color: var(--category-shooting);
}

.attribute-category:has(#midRangeShot) h3::before {
  background: var(--category-shooting);
}

.attribute-category:has(#midRangeShot) input:focus {
  border-color: var(--category-shooting);

  box-shadow:
    0 0 0 3px rgba(57, 198, 107, 0.15);
}


/* Playmaking */

.attribute-category:has(#passAccuracy) h3 {
  color: var(--category-playmaking);
}

.attribute-category:has(#passAccuracy) h3::before {
  background: var(--category-playmaking);
}

.attribute-category:has(#passAccuracy) input:focus {
  border-color: var(--category-playmaking);

  box-shadow:
    0 0 0 3px rgba(242, 140, 56, 0.15);
}


/* Defense */

.attribute-category-defense h3 {
  color: var(--category-defense);
}

.attribute-category-defense h3::before {
  background: var(--category-defense);
}

.attribute-category-defense input:focus {
  border-color: var(--category-defense);

  box-shadow:
    0 0 0 3px rgba(232, 74, 95, 0.15);
}


/* Rebounding */

.attribute-category-rebounding h3 {
  color: var(--category-rebounding);
}

.attribute-category-rebounding h3::before {
  background: var(--category-rebounding);
}

.attribute-category-rebounding input:focus {
  border-color: var(--category-rebounding);

  box-shadow:
    0 0 0 3px rgba(139, 92, 246, 0.15);
}


/* Physicals */

.attribute-category:has(#speed) h3 {
  color: var(--category-physicals);
}

.attribute-category:has(#speed) h3::before {
  background: var(--category-physicals);
}

.attribute-category:has(#speed) input:focus {
  border-color: var(--category-physicals);

  box-shadow:
    0 0 0 3px rgba(230, 165, 126, 0.15);
}

/* ======================================================
   BUTTONS
====================================================== */

.calculator-actions {
  display: flex;
  align-items: center;

  gap: 12px;

  margin-top: 8px;
}

.primary-button,
.secondary-button {
  min-height: 46px;

  padding: 0 20px;

  border-radius: 8px;

  font-weight: 700;

  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.primary-button {
  border: 1px solid var(--accent-primary);

  background: var(--accent-primary);
  color: #ffffff;

  box-shadow:
    0 8px 20px rgba(59, 130, 246, 0.18);
}

.primary-button:hover {
  background: var(--accent-primary-hover);

  border-color: var(--accent-primary-hover);

  transform: translateY(-1px);
}

.secondary-button {
  border: 1px solid var(--border-primary);

  background: transparent;
  color: var(--text-secondary);
}

.secondary-button:hover {
  border-color: var(--border-hover);

  background: var(--bg-panel-secondary);

  color: var(--text-primary);
}

.randomize-button {
  border: 1px solid #a7db2a;

  background:
    linear-gradient(
      to bottom,
      #d5f94a,
      #a9dd2c
    );

  color: #10150c;

  font-weight: 800;

  box-shadow:
    0 6px 16px rgba(169, 221, 44, 0.12);
}

.randomize-button:hover {
  border-color: #92c624;

  background:
    linear-gradient(
      to bottom,
      #c8ed3f,
      #94c925
    );

  color: #0d1209;

  transform: translateY(-1px);

  box-shadow:
    0 8px 18px rgba(169, 221, 44, 0.18);
}
/* ======================================================
   RESULTS PANEL
====================================================== */

.results-panel {
  min-height: 220px;
}

/* ======================================================
   BADGE LEVEL
====================================================== */

.badge-level {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 28px;

  padding: 4px 10px;

  border: 1px solid transparent;
  border-radius: 999px;

  font-size: 0.72rem;
  font-weight: 800;

  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ======================================================
   BRONZE
====================================================== */

.badge-level.bronze {
  border-color: rgba(200, 117, 61, 0.5);

  background: var(--badge-bronze-bg);
  color: var(--badge-bronze);
}


/* ======================================================
   SILVER
====================================================== */

.badge-level.silver {
  border-color: rgba(194, 202, 212, 0.4);

  background: var(--badge-silver-bg);
  color: var(--badge-silver);
}


/* ======================================================
   GOLD
====================================================== */

.badge-level.gold {
  border-color: rgba(242, 201, 76, 0.5);

  background: var(--badge-gold-bg);
  color: var(--badge-gold);
}


/* ======================================================
   HALL OF FAME
====================================================== */

.badge-level.hall-of-fame {
  border-color: rgba(187, 107, 217, 0.55);

  background: var(--badge-hof-bg);
  color: var(--badge-hof);
}

/* ======================================================
   RESULTS SUMMARY
====================================================== */

.results-summary {
  margin-bottom: 20px;

  padding: 12px 14px;

  border: 1px solid var(--border-primary);
  border-radius: 8px;

  background: var(--bg-input);
}

.results-summary p {
  margin: 0;

  color: var(--text-secondary);

  font-size: 0.9rem;
}

.results-summary strong {
  color: var(--text-primary);
}


/* ======================================================
   RESULTS BY CATEGORY
====================================================== */

.badge-category-results {
  margin-top: 26px;
}

.badge-category-results > h3 {
  margin: 0 0 12px;

  display: flex;
  align-items: center;

  gap: 10px;

  color: var(--text-primary);

  font-size: 0.88rem;
  font-weight: 800;

  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-category-results > h3::before {
  content: "";

  width: 4px;
  height: 16px;

  border-radius: 999px;

  background: var(--text-primary);
}


/* ======================================================
   BADGE RESULT CATEGORY COLORS
====================================================== */

.badge-category-finishing > h3 {
  color: var(--category-finishing);
}

.badge-category-finishing > h3::before {
  background: var(--category-finishing);
}


.badge-category-shooting > h3 {
  color: var(--category-shooting);
}

.badge-category-shooting > h3::before {
  background: var(--category-shooting);
}


.badge-category-playmaking > h3 {
  color: var(--category-playmaking);
}

.badge-category-playmaking > h3::before {
  background: var(--category-playmaking);
}


.badge-category-defense > h3 {
  color: var(--category-defense);
}

.badge-category-defense > h3::before {
  background: var(--category-defense);
}


.badge-category-rebounding > h3 {
  color: var(--category-rebounding);
}

.badge-category-rebounding > h3::before {
  background: var(--category-rebounding);
}


.badge-category-physicals > h3 {
  color: var(--category-physicals);
}

.badge-category-physicals > h3::before {
  background: var(--category-physicals);
}

/* ======================================================
   BADGE RESULTS GRID
====================================================== */

.badge-results-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 12px;
}

/* ======================================================
   BADGE RESULT CARDS
====================================================== */

.badge-result-card {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  min-height: 64px;

  padding: 12px 14px;

  border: 1px solid var(--border-primary);
  border-radius: 9px;

  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.018),
      transparent
    ),
    var(--bg-input);

  transition:
    border-color 0.15s ease,
    transform 0.15s ease,
    background 0.15s ease;
}

.badge-result-card:hover {
  border-color: var(--border-hover);

  background: var(--bg-panel-secondary);

  transform: translateY(-1px);
}

.badge-result-name {
  min-width: 0;

  color: var(--text-primary);

  font-size: 0.88rem;
  font-weight: 700;
}

/* ======================================================
   BADGE DESCRIPTIONS
====================================================== */

.badge-result-card.has-description {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto
    18px;

  align-items: center;

  column-gap: 8px;

  cursor: pointer;
}


/* Badge name */

.badge-result-card.has-description
> .badge-result-name {
  grid-column: 1;
  grid-row: 1;
}


/* Badge level */

.badge-result-card.has-description
> .badge-level {
  grid-column: 2;
  grid-row: 1;
}


/* + / − indicator */

.badge-result-card.has-description
> .badge-result-toggle {
  display: inline-flex;

  grid-column: 3;
  grid-row: 1;

  align-items: center;
  justify-content: center;

  width: 18px;
  height: 18px;

  margin: 0;

  color: var(--text-muted);

  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;

  opacity: 0.8;
}


/* Description hidden until clicked/tapped */

.badge-result-card.has-description
> .badge-result-description {
  display: none;

  grid-column: 1 / -1;
  grid-row: 2;

  margin-top: 8px;

  color: var(--text-secondary);

  font-size: 0.8rem;
  line-height: 1.4;
}


/* Expanded state */

.badge-result-card.has-description.is-expanded
> .badge-result-description {
  display: block;
}
/* ======================================================
   BADGE RESULT CARD LEVEL COLORS
====================================================== */

/* Bronze */

.badge-result-card:has(.badge-level.bronze) {
  border-color: rgba(200, 117, 61, 0.45);

  background:
    linear-gradient(
      135deg,
      rgba(200, 117, 61, 0.08),
      transparent 65%
    ),
    var(--bg-input);

  box-shadow:
    inset 0 0 18px rgba(200, 117, 61, 0.04);
}

.badge-result-card:has(.badge-level.bronze):hover {
  border-color: rgba(200, 117, 61, 0.8);

  box-shadow:
    0 0 18px rgba(200, 117, 61, 0.12),
    inset 0 0 18px rgba(200, 117, 61, 0.06);
}


/* Silver */

.badge-result-card:has(.badge-level.silver) {
  border-color: rgba(194, 202, 212, 0.4);

  background:
    linear-gradient(
      135deg,
      rgba(194, 202, 212, 0.07),
      transparent 65%
    ),
    var(--bg-input);

  box-shadow:
    inset 0 0 18px rgba(194, 202, 212, 0.03);
}

.badge-result-card:has(.badge-level.silver):hover {
  border-color: rgba(194, 202, 212, 0.75);

  box-shadow:
    0 0 18px rgba(194, 202, 212, 0.1),
    inset 0 0 18px rgba(194, 202, 212, 0.05);
}


/* Gold */

.badge-result-card:has(.badge-level.gold) {
  border-color: rgba(242, 201, 76, 0.5);

  background:
    linear-gradient(
      135deg,
      rgba(242, 201, 76, 0.09),
      transparent 65%
    ),
    var(--bg-input);

  box-shadow:
    inset 0 0 18px rgba(242, 201, 76, 0.04);
}

.badge-result-card:has(.badge-level.gold):hover {
  border-color: rgba(242, 201, 76, 0.85);

  box-shadow:
    0 0 20px rgba(242, 201, 76, 0.14),
    inset 0 0 18px rgba(242, 201, 76, 0.06);
}


/* Hall of Fame */

.badge-result-card:has(.badge-level.hall-of-fame) {
  border-color: rgba(187, 107, 217, 0.55);

  background:
    linear-gradient(
      135deg,
      rgba(187, 107, 217, 0.1),
      transparent 65%
    ),
    var(--bg-input);

  box-shadow:
    inset 0 0 20px rgba(187, 107, 217, 0.05);
}

.badge-result-card:has(.badge-level.hall-of-fame):hover {
  border-color: rgba(187, 107, 217, 0.9);

  box-shadow:
    0 0 22px rgba(187, 107, 217, 0.18),
    inset 0 0 20px rgba(187, 107, 217, 0.07);
}


/* ======================================================
   EMPTY RESULTS
====================================================== */

.empty-results {
  padding: 26px;

  border: 1px dashed var(--border-primary);
  border-radius: 9px;

  background: rgba(255, 255, 255, 0.01);

  text-align: center;
}

.empty-results p {
  margin: 0;

  color: var(--text-muted);

  font-size: 0.9rem;
}


/* ======================================================
   FOOTER
====================================================== */

.app-footer {
  padding: 22px 0 30px;

  border-top: 1px solid var(--border-primary);

  color: var(--text-muted);

  font-size: 0.78rem;
}

.app-footer p {
  margin: 0;
}


/* ======================================================
   NUMBER INPUT CLEANUP
====================================================== */

input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  margin: 0;

  -webkit-appearance: none;
}


/* ======================================================
   TABLET
====================================================== */

@media (max-width: 1050px) {

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

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

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


/* ======================================================
   MOBILE
====================================================== */

@media (max-width: 700px) {

  .container {
    width: min(
      calc(100% - 24px),
      var(--content-width)
    );
  }

 /* Mobile brand lockup */

.brand {
  width: 100%;
  min-width: 0;
}

.brand-lockup {
  width: 100%;
  gap: 10px;
}

.brand-wordmark {
  min-width: 0;
}

.brand-icon {
  width: 42px;
  height: 42px;

  flex: 0 0 42px;
}

.brand-icon img {
  width: 40px;
  height: 40px;

  min-width: 40px;
  min-height: 40px;
}

.brand-title {
  font-size: 1.65rem;

  padding-right: 6px;
  overflow: visible;
}

.brand-the {
  font-size: 0.62rem;
}

.brand-top-rule {
  flex: 0 0 68px;
}

.brand-bottom-rule {
  width: 100px;
}  

.brand-subtitle {
  font-size: 0.62rem;
  white-space: nowrap;
}

.app-header .container {
  min-height: 82px;

  padding-top: 10px;
  padding-bottom: 10px;

  align-items: center;
}
  main.container {
    padding-top: 18px;
  }

  .panel {
    padding: 18px;

    margin-bottom: 16px;
  }

  .section-header h2 {
    font-size: 1.05rem;
  }

  .form-grid,
  .attribute-grid,
  .badge-results-grid {
    grid-template-columns: 1fr;
  }

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

  .calculator-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .badge-result-card {
    min-height: 58px;
  }
}
/* ======================================================
   MOBILE BADGE CARD FINAL LAYOUT OVERRIDE
====================================================== */

@media (max-width: 700px) {

  .badge-result-card.has-description {
    display: grid;

    grid-template-columns:
      minmax(0, 1fr)
      auto
      18px;

    align-items: center;

    column-gap: 8px;
  }

  .badge-result-card.has-description
  > .badge-result-name {
    grid-column: 1;
    grid-row: 1;
  }

  .badge-result-card.has-description
  > .badge-level {
    grid-column: 2;
    grid-row: 1;
  }

  .badge-result-card.has-description
  > .badge-result-toggle {
    display: inline-flex;

    grid-column: 3;
    grid-row: 1;

    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;

    margin: 0;

    color: var(--text-muted);

    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;

    opacity: 0.8;
  }

  .badge-result-card.has-description
  > .badge-result-description {
    display: none !important;

    grid-column: 1 / -1;
    grid-row: 2;

    margin-top: 8px;
  }

  .badge-result-card.has-description.is-expanded
  > .badge-result-description {
    display: block !important;
  }
}
