/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

@font-face {
  font-family: 'Phantom Sans';
  src:
    url('https://assets.hackclub.com/fonts/Phantom_Sans_0.7/Regular.woff') format('woff'),
    url('https://assets.hackclub.com/fonts/Phantom_Sans_0.7/Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Phantom Sans';
  src:
    url('https://assets.hackclub.com/fonts/Phantom_Sans_0.7/Italic.woff') format('woff'),
    url('https://assets.hackclub.com/fonts/Phantom_Sans_0.7/Italic.woff2') format('woff2');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Phantom Sans';
  src:
    url('https://assets.hackclub.com/fonts/Phantom_Sans_0.7/Bold.woff') format('woff'),
    url('https://assets.hackclub.com/fonts/Phantom_Sans_0.7/Bold.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

:root {
  --main-900: #0d2b45;
  --main-800: #203c56;
  --main-700: #544e68;
  --main-600: #8d697a;
  --main-500: #825138;
  --accent1: #d08159;
  --accent2: #ffaa5e;
  --accent3: #ffd4a3;
  --bg: #ffe4c6;

  --red: #ec3750;
}

/* Base retro body */
body {
  font-family: 'Pixelify Sans', sans-serif;
  font-optical-sizing: auto;
  background-color: var(--bg);
  color: var(--main-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  min-height: 100vh;
  /* subtle paper texture & scanlines for vintage feel */
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.02) 100%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.02) 0 1px, transparent 1px 6px);
}

/* Critical: Prevent body from ever becoming non-interactive during Turbo transitions */
html,
body {
  pointer-events: auto !important;
}

html[aria-busy='true'],
body[aria-busy='true'],
html[data-turbo-preview],
body[inert] {
  pointer-events: auto !important;
  cursor: default !important;
}

/* When a user has enabled custom fonts, switch the site to Pixelify/DynaPuff */
body.fonts-enabled {
  font-family: 'Pixelify Sans', sans-serif;
}

/* Use DynaPuff for headings when fonts are enabled for extra flair */
body.fonts-enabled h1,
body.fonts-enabled h2,
body.fonts-enabled h3 {
  font-family: 'Pixelify Sans', 'DynaPuff', sans-serif;
}

/* Dyslexic mode: use clear font when the user disables custom fonts */
body.dyslexic {
  font-family: 'Atkinson Hyperlegible Next', Arial, sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

/* Ensure headings and elements that force Pixelify also switch in dyslexic mode */
body.dyslexic h1,
body.dyslexic h2,
body.dyslexic h3 {
  font-family: 'Atkinson Hyperlegible Next', Arial, sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

/* Override utility class that forces Pixelify to respect dyslexic preference */
body.dyslexic .pixelify-sans {
  font-family: 'Atkinson Hyperlegible Next', Arial, sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

/* Utility: base class for Pixelify Sans — use modifier classes for weights (examples below) */
.pixelify-sans {
  font-family: 'Pixelify Sans', sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

.badge {
  border-radius: 0.5rem;
  padding: 4px 8px;
  font-size: 0.75rem;
}

.badge-admin {
  background: var(--red);
  color: #ffffff;
  border-color: var(--main-700);
}

/* Example modifier classes (can be generated by your build tooling):
   .pixelify-sans-400 { font-weight: 400; }
   .pixelify-sans-700 { font-weight: 700; }
*/

/* Layout helpers */

/* Layout helpers */
.retro-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Retro header / hero */
.retro-hero {
  padding: 36px 20px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  border-left: 8px solid var(--accent2);
  box-shadow: 8px 10px 0 var(--main-800);
  margin-bottom: 24px;
}

h1,
h2,
h3 {
  font-weight: 700;
  color: var(--main-900);
  letter-spacing: 1px;
  margin: 0 0 18px 0;
  /* two-tone drop shadow for retro signage */
  text-shadow:
    3px 3px 0 var(--accent3),
    6px 6px 0 rgba(0, 0, 0, 0.08);
}

h1 {
  font-size: 2.4rem;
}

h2 {
  font-size: 1.8rem;
}
h3 {
  font-size: 1.4rem;
}

a {
  font-size: 1.2rem;
}

/* Navigation */
.retro-navbar {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 20px;
  background: var(--main-900);
  color: var(--accent3);
  box-shadow: 0 6px 0 var(--main-800);
  height: 68px;
}
.retro-navbar a {
  color: var(--accent3);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 4px;
}
.retro-navbar a:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* Buttons */
.btn-retro {
  font-family: 'Pixelify Sans', sans-serif;
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--accent1), var(--accent2));
  color: var(--main-900);
  font-weight: 700;
  padding: 10px 16px;
  border: 3px solid var(--main-700);
  border-radius: 8px;
  box-shadow: 6px 8px 0 var(--main-800);
  text-decoration: none;
  transition: all 120ms ease-in-out;
}

.btn-retro:hover {
  transform: translateY(-2px) rotateZ(15deg);
  box-shadow: 8px 10px 0 var(--main-800);
  color: #ffffff; /* keep strong contrast on hover */
  animation: btn-bob 2.3s infinite ease-in;
}

#sign_out_btn:hover {
  color: #ffffff;
  animation: btn-bob 2.3s infinite ease-in;
  cursor: pointer;
  animation: btn-bob 2.3s infinite ease-in;
}

/* wishlist icon button – clean, minimal circular variant */
.btn-retro.wishlist-button {
  font-size: 0; /* hide text */
  width: 36px;
  height: 36px;
  padding: 0;
  background: #ffffff;
  border: 1px solid #ccc;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 120ms ease,
    border-color 120ms ease,
    transform 120ms ease;
}

.wishlist-icon {
  display: inline-block;
  color: #e74c3c;
  font-size: 1.2rem;
  line-height: 1;
  transform: rotate(45deg);
}

.btn-retro.wishlist-button:hover {
  background: #f7f7f7;
  border-color: #bbb;
  transform: translateY(-1px);
}

.btn-retro.wishlist-button:active {
  background: #eee;
  border-color: #aaa;
  transform: scale(0.95);
}

.wishlist-button {
  all: unset;
  font-size: 0; /* hide text */
  width: 36px;
  height: 36px;
  padding: 0;
  background: #ffffff;
  border: 1px solid #ccc;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 120ms ease;
  align-self: center;
  border-radius: 25%;
}

/* the wishlist button uses an SVG via <img> that relies on currentColor for its fill; the
   base button rule sets color:transparent to hide text, which also makes the icon vanish.
   restore a sensible color for any image inside so the SVG is visible and give it a
   definite size since the parent sets font-size:0 (1em would collapse to 0). */
.btn-retro.wishlist-button img,
.wishlist-button img {
  color: #000; /* dark icon; adjust as needed */
  width: 1.2rem; /* explicit dimensions override any em-based inline styling */
  height: 1.2rem;
}

/* align product action buttons inline */
.product-actions {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  /* ensure child forms also center their contents */
}

.product-actions form {
  display: inline-flex;
  margin: 0;
  padding: 0;
  align-items: center;
  vertical-align: middle;
  margin-top: 4px;
}

/* rails button_to wraps the button in a form; ensure forms don't force line break */
.product-actions form {
  display: inline-flex;
  margin: 0;
  padding: 0;
  align-items: center;
  text-decoration: none;
}

#sign_out_btn {
  font-weight: 800;
  padding: 8px 12px;
  font-size: 1.2rem;
  box-shadow: 8px 10px 0 var(--main-800);
  color: #ffffff;
  color: black;
  background: #ec3750;
  border: 2px solid var(--main-800);
  cursor: pointer;
  transition: all 120ms ease-in-out;
}

@keyframes btn-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.org-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  transition: all 0.2s ease-in-out;
  animation: btn-bob 2s infinite;
}

.btn-retro:active {
  transform: translateY(0);
  box-shadow: 4px 6px 0 var(--main-800);
}
.btn-retro:focus {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(255, 170, 94, 0.22),
    6px 8px 0 var(--main-800);
}
.btn-retro--outline {
  background: transparent;
  color: var(--main-900);
  border-width: 4px;
}

/* Disabled button variant */
.btn-retro-disabled {
  font: 'Pixelify Sans', sans-serif;
  display: inline-block;
  background: linear-gradient(180deg, #8d697a, #544e68);
  color: #cccccc;
  font-weight: 700;
  padding: 10px 16px;
  border: 3px solid var(--main-700);
  border-radius: 8px;
  box-shadow: 6px 8px 0 var(--main-800);
  text-decoration: none;
  cursor: not-allowed;
  opacity: 0.6;
  transition: all 120ms ease-in-out;
}

.btn-retro-disabled:hover {
  transform: none;
  box-shadow: 6px 8px 0 var(--main-800);
  color: #cccccc;
  animation: none;
}

.btn-retro-disabled:active {
  transform: none;
  box-shadow: 6px 8px 0 var(--main-800);
}

.btn-retro--outline {
  background: transparent;
  color: var(--main-900);
  border-width: 4px;
}

/* Cards */
.retro-card {
  background: rgba(255, 255, 255, 0.96);
  border: 3px solid var(--main-700);
  box-shadow: 10px 12px 0 var(--main-800);
  padding: 18px;
  border-radius: 8px;
}

/* Forms */
input[type='text'],
input[type='email'],
textarea,
select {
  padding: 10px 12px;
  border: 3px solid var(--main-700);
  background: linear-gradient(180deg, #fff, var(--accent3));
  color: var(--main-900);
  border-radius: 6px;
  outline: none;
}
input:focus,
textarea:focus,
select:focus {
  box-shadow: 0 0 0 4px rgba(255, 170, 94, 0.12);
}

/* Themed replacement for default browser validation popups */
.field-invalid {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 4px rgba(236, 55, 80, 0.18) !important;
}

.field-validation-warning {
  margin: 8px 0 0;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  box-sizing: border-box;
  border: 2px solid var(--red);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff4f6, #ffd9df);
  color: #7a1024;
  box-shadow: 4px 4px 0 var(--main-800);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
}

.field-validation-warning::before {
  content: '!';
  display: inline-flex;
  width: 1.1rem;
  height: 1.1rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--red);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  flex: 0 0 auto;
}

/* Badges / chips */
.badge-retro {
  display: inline-block;
  padding: 6px 10px;
  background: var(--accent3);
  color: var(--main-900);
  border: 2px solid var(--main-700);
  border-radius: 6px;
  font-weight: 700;
}

.no-style {
  all: unset;
  display: inline-block;
}

/* badge for fraud state: resets inherited styles and applies its own look */
.fraud-badge {
  color: #fff;
  background: var(--red);
  border: 2px solid var(--main-800);
  border-radius: 6px;
}

/* Links */
a {
  color: var(--accent1);
  text-decoration: none;
  border-bottom: 2px dashed rgba(0, 0, 0, 0.06);
}
a:hover {
  color: var(--accent2);
  text-decoration: underline;
}

/* Utility pixel / grid frame for retro look */
.pixel-frame {
  position: relative;
  padding: 12px;
  border: 4px solid var(--main-900);
  background-image:
    linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.03) 25%,
      transparent 25%,
      transparent 75%,
      rgba(255, 255, 255, 0.03) 75%,
      rgba(255, 255, 255, 0.03)
    ),
    linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.03) 25%,
      transparent 25%,
      transparent 75%,
      rgba(255, 255, 255, 0.03) 75%,
      rgba(255, 255, 255, 0.03)
    );
  background-size: 10px 10px;
}

/* Footer */
.retro-footer {
  width: 100%;
  color: var(--accent3);
  background: var(--main-900);
  box-shadow: 0 -6px 0 var(--main-800);
  margin-top: auto;
}

/* Small helpers */
.kv {
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.kv .label {
  font-weight: 700;
  color: var(--main-700);
}
.kv .value {
  color: var(--main-900);
}

/* Make sure code blocks have a retro monospace look */
code,
pre {
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  background: rgba(0, 0, 0, 0.03);
  padding: 4px 6px;
  border-radius: 4px;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .retro-hero {
    padding: 20px;
  }
  h1 {
    font-size: 1.6rem;
  }
  .retro-container {
    padding: 18px;
  }

  /* Featured project mobile adjustments */
  .featured-project {
    padding: 12px;
    border: 3px dashed rgba(0, 0, 0, 0.12);
  }

  .featured-project .featured-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .featured-project .featured-actions .btn-retro,
  .featured-project .featured-actions .btn-retro--outline {
    width: 100%;
    box-sizing: border-box;
  }
}

/* Project grid & cards (Flavortown-inspired layout) */
:root {
  --accent-gradient: linear-gradient(90deg, var(--accent1), var(--accent2));
  --retro-accent: rgba(255, 170, 94, 0.12);
}

.project-hero {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 24px;
  align-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  border: 6px solid var(--main-900);
  padding: 28px;
  border-radius: 12px;
  box-shadow: 12px 14px 0 var(--main-800);
}

.project-hero .hero-left {
  padding-right: 12px;
}
.project-hero .hero-right {
  min-height: 300px;
  align-self: start;
}

/* Ensure action controls inside the featured-actions row match visually (buttons and link-to buttons) */
.featured-project .featured-actions form {
  display: inline-block;
  margin: 0;
  padding: 0;
}
.featured-project .featured-actions .btn-retro,
.featured-project .featured-actions a.btn-retro,
.featured-project .featured-actions button.btn-retro,
.featured-project .featured-actions input.btn-retro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 48px; /* consistent vertical size */
  padding: 0 16px; /* horizontal padding kept for label spacing */
  line-height: 1;
  white-space: nowrap;
}
.featured-project .featured-actions .btn-retro {
  min-width: 110px;
}

.featured-project {
  display: block;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), var(--accent3));
  border: 4px solid var(--main-700);
  padding: 18px;
  border-radius: 10px;
  box-shadow: 10px 12px 0 var(--main-800);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 cards per row on wide screens */
  gap: 20px;
  margin-top: 22px;
}

@media (max-width: 1000px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  position: relative; /* allow absolutely positioned ribbon */
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.94));
  border: 3px solid var(--main-700);
  box-shadow: 8px 10px 0 var(--main-800);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 14px 16px 0 var(--main-800);
}

.project-media {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.02));
}
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

/* Compact thumbnail variant for project cards */
.project-media--thumb {
  height: 120px;
  max-height: 120px;
  overflow: hidden;
}
.project-media--thumb img.project-thumb {
  width: auto;
  height: 100%;
  display: block;
  object-fit: cover;
  max-width: 320px;
}

.project-content {
  padding: 12px 16px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.project-title {
  font-size: 1.05rem;
  margin: 0 0 8px 0;
  font-weight: 800;
  color: var(--main-900);
}
.project-desc {
  color: var(--main-700);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.tech-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.tech {
  font-weight: 700;
  padding: 6px 8px;
  background: var(--accent3);
  border: 2px solid var(--main-700);
  border-radius: 6px;
  color: var(--main-900);
  font-size: 0.8rem;
}

.cta-row {
  display: flex;
  gap: 8px;
  margin-top: auto;
  align-items: center;
}
.cta-row .btn-retro {
  padding: 8px 12px;
  border-radius: 6px;
}

/* small ribbon for badges */
.ribbon {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent1);
  color: var(--main-900);
  padding: 6px 10px;
  font-weight: 900;
  border-radius: 6px;
  transform: rotate(-8deg);
  box-shadow: 6px 8px 0 rgba(0, 0, 0, 0.06);
  z-index: 3;
}

/* Status variants for ribbons */
.ribbon.shipped {
  background: rgba(34, 197, 94, 0.95);
  color: #ffffff;
}

.ribbon.unshipped {
  background: var(--accent1);
  color: var(--main-900);
}

/* subtle animated shimmer for featured project media */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2.6s linear infinite;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* small utility for centered callouts similar to flavortown */
.callout {
  padding: 14px 18px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 2px dashed rgba(0, 0, 0, 0.04);
}

/* Mobile tweaks */
@media (max-width: 900px) {
  .project-hero {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .project-hero .hero-right {
    min-height: auto;
    margin-top: 12px;
  }
  .project-hero .hero-left {
    padding-right: 0;
  }
  .cta-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .project-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 420px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
  .retro-navbar {
    padding: 10px;
    gap: 6px;
  }
}

/* Flash / tiered styles */
/* Pass (green) */
.callout[data-flash='pass'],
.callout[data-flash='notice'],
.callout[data-flash='success'] {
  border-color: rgba(34, 197, 94, 0.12);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  color: #064e3b;
  border-style: solid;
  border-width: 2px;
}
/* Info (grey) */
.callout[data-flash='info'] {
  border-color: rgba(107, 114, 128, 0.12);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  color: #374151;
  border-style: solid;
  border-width: 2px;
}
/* Warn (amber) */
.callout[data-flash='warn'],
.callout[data-flash='warning'] {
  border-color: rgba(245, 158, 11, 0.12);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  color: #92400e;
  border-style: solid;
  border-width: 2px;
}
/* Error (red) */
.callout[data-flash='error'],
.callout[data-flash='alert'],
.callout[data-flash='danger'] {
  border-color: rgba(220, 38, 38, 0.12);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  color: #991b1b;
  border-style: solid;
  border-width: 2px;
}

/* Improve spacing of main area and keep footer attached */
main.retro-container {
  flex: 1 0 auto;
  width: 100%;
  padding-top: 22px;
  padding-bottom: 22px;
}
body > header + .retro-container {
  margin-top: 12px;
}

/* Orders */
.order-card {
  /* Desktop / PC: preserve old visual style */
  border: 2px solid var(--main-700);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  background-color: var(--main-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: Arial, sans-serif;
}

.order-details div,
.order-status div {
  margin-bottom: 8px;
}

.order-details strong,
.order-status strong {
  color: var(--main-900);
}

.order-actions {
  margin-top: 8px;
}

@media (max-width: 600px) {
  .order-card {
    flex-direction: column;
    align-items: stretch;
  }

  .order-status {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
  }

  .order-status .btn-retro,
  .order-status .btn-retro--outline {
    width: 100%;
    box-sizing: border-box;
  }
}

/* Small site title style */
.site-title {
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--accent3);
}

.spacer_cross {
  display: block;
  width: 90%;
  height: 10px;
  left: 5%;
  border-bottom: 2px solid rgba(0, 0, 0, 0.5);
}

/* Markdown task-list styling (pixel checkbox for - [x] / - [ ]) */
li.task-list-item {
  list-style: none; /* remove default bullet */
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.25rem;
}

/* visual checkbox box — uses pixel-art SVG backgrounds for checked/unchecked */
.task-list-item-checkbox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  box-sizing: border-box;
  border-radius: 2px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
}

.task-list-item-pixel {
  display: block;
  width: 22px;
  height: 22px;
  image-rendering: pixelated;
}
.task-list-item-fallback {
  color: transparent;
  font-size: 0;
}
/* unchecked pixel box — use inline image; remove legacy background outline */
.task-list-item--unchecked .task-list-item-checkbox {
  background-image: none;
  background-color: transparent;
  border: none;
}

/* checked pixel box — use inline image; remove legacy background outline */
.task-list-item--checked .task-list-item-checkbox {
  background-image: none;
  background-color: transparent;
  border: none;
}

/* small visually-hidden helper for screen-readers */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.task-list-item-label {
  display: inline-block;
}
