/* =========================
   BASE
========================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif !important;
  line-height: 1.6;
  color: #1f2937;  
}

.content {
  max-width: 900px;
  margin: 0 auto;

  padding: 0rem 1.25rem;

  /* padding-top: 7rem; */
}

.section {
  margin-bottom: 3rem;
}

/* =========================
   HERO
========================= */

.hero {
  xbackground: #111827;
  color: white;
  xpadding: 1.5rem 1.5rem;

  xflex-direction: column;
  xflex-wrap: nowrap;
  xalign-items: flex-start;

        /* 🌈 FULL PAGE IMMERSIVE BACKGROUND */
        background: radial-gradient(circle at top right,
            #ff007a 0%,
            #7a00ff 40%,
            #0b0614 100%);  
}

.hero-fixed {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  xbackground: #111827;
  color: white;

  xpadding: 1.5rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* inner alignment */
.hero-inner {
  flex: 1;
  min-width: 0;
  xmax-width: 900px; /*1000*/
  margin: 0 5px 0 20px;
}

/* title sizing */
.hero-fixed h1 {
  font-family: Acme, system-ui, sans-serif !important;
  font-size: 2rem;
  margin: 0 0 0.25rem;
  line-height: 1;
}

.hero-row {
  xmax-width: 1100px;
  margin: 0 auto;

  display: flex;
  align-items: center;
}

.hero-logo {
  flex: 0 0 auto;       /* do not grow, do not shrink */
  height: 80px;         /* control size here */
  width: auto;
  margin: 20px 20px 20px 5px;
  cursor: pointer;
  align-self: flex-start;  
}

@media (max-width: 600px) {
  .hero-logo {
    height: 40px;
    margin-left: 5px;
    margin-right: 5px;
  }
  
  .hero {
    padding: 1.0rem 0.5rem;
  }
  
}

.hero-fixed .subtitle {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.85;
}

.subtitle {
  opacity: 0.8;
}

/* =========================
   TYPOGRAPHY
========================= */

h1 {
  font-size: clamp(2rem, 3vw, 3rem);
}

h2 {
  font-size: clamp(1.3rem, 2vw, 2rem);
}

/* =========================
   IMAGES
========================= */

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 1rem 0;
}

/* =========================
   SPLIT LAYOUT
========================= */

.split {
  display: block;
}

@media (min-width: 900px) {
  .split {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
  }

  .split > div {
    flex: 1;
  }
}

/* =========================
   VIDEO
========================= */

.video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 1rem 0;
}

.video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
}

/* =========================
   ANNOTATED SCREENSHOTS SYSTEM
========================= */

.annotated-image {
  margin-top: 1rem;
}

/* image wrapper allows absolute positioning */
.image-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

/* markers (numbers on image) */
.marker {
  position: absolute;
  transform: translate(-50%, -50%);
  background: #ef4444;
  color: white;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: bold;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* markers (numbers on image) */
.marker_text {
  font-family: Acme, system-ui, sans-serif !important;
  position: absolute;
  transform: translate(-50%, -50%);
  color: white;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: bold;
}

/* explanation list */
.annotations {
  margin-top: 1rem;
  padding-left: 1.25rem;
}

.annotations li {
  margin-bottom: 0.5rem;
}

/* smaller inline list for split layouts */
.mini-list {
  margin-top: 1rem;
}

/* =========================
   CALLOUT (optional reuse)
========================= */

.callout {
  margin-left: 40px;
  background: #f3f4f6;
  padding: 1rem;
  border-left: 5px solid #111827;
  border-radius: 6px;
  color: #444;
}

/* =========================
   FOOTER
========================= */

.footer {
  text-align: center;
  padding: 0rem;
  opacity: 0.7;
}

////////////// TOC ///////////////

/* =========================
   BASE
========================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  color: #111827;
  background: #ffffff;
}

/* =========================
   GRID LAYOUT (CORE)
========================= */

.card-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;

  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* desktop = 3 columns */
@media (min-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =========================
   CARD STYLE
========================= */

.card {
  font-family: Acme, system-ui, sans-serif !important;

  display: block;
  text-decoration: none;
  color: inherit;


  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;

  background: #ddd;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* image */
.card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0px;
  margin: 0px;
}

/* title */
.card-title, .card-title-sm {
  padding: 1rem;
  font-size: 1.5rem;   /* “largish text” */
  font-weight: 600;
  text-align: center;
  position: relative;
}

.card-title-sm {
  font-size: 1.25rem;   /* smaller */
}

.card-tag {
  font-size: 1rem;   /* tiny */
  line-height: 1;
  padding: 4px;
  background: yellow;
  transform: rotate(15deg);
  position: absolute;
  color: red;
  font-weight: bold;
  z-index: 9999;
  top: 0px;
  right: 0px;
}
