:root {
  color-scheme: dark;
  --bg: #0b0c10;
  --panel: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.10);
  --text: rgba(255,255,255,0.9);
  --muted: rgba(255,255,255,0.65);
  --hero-strip-h: 184px;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 16px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.small { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }

/* Header */
.hero {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.fitfeb-vertical {
  font-size: 2.0rem;
  width: 44px;
  min-width: 44px;

  height: var(--hero-strip-h); 
  min-height: 0; 

  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 4px 16px;
}

.pill {
  width: 100%;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;

  height: var(--hero-strip-h);   /* NEW: matches fitfeb-vertical exactly */

  padding: 14px 20px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
}


.fitfeb-vertical span {
  display: inline-block;
  transform: rotate(-90deg);
  letter-spacing: 0.12em;
  font-weight: 800;
  opacity: 0.95;
  white-space: nowrap;
}

/* .hero-main {
  flex: 1;
  padding: 4px 2px;
} */

h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.dayline {
  /* margin-top: 6px; */
  display: flex;
  gap: 10px;
  align-items: flex-start; /* was baseline */
  flex-wrap: wrap;
}

.pill-main {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.0;
}

.pill-sub {
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.2;
}


.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Sections */
.section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

h2 {
  margin: 0 0 8px 0;
  font-size: 1.05rem;
  font-weight: 800;
}

ul {
  margin: 8px 0 0 18px;
  padding: 0;
  color: var(--text);
}

li { margin: 6px 0; color: rgba(255,255,255,0.86); }
li span { color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 760px) {
  .grid { grid-template-columns: 1fr 1fr; }
}

.box {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  padding: 12px;
}

.box .label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.box .value {
  font-weight: 800;
  letter-spacing: 0.01em;
}

.footer {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95em;
  color: rgba(255,255,255,0.88);
}



/* ===== FitFeb Calendar (NEW) ===== */

.fitfeb-cal h2 {
  /* keeps your existing h2 but you can override if desired */
}

.month-calendar {

  background: rgba(0,0,0,0.32);             /* darker than 0.18 */
  border: 1px solid rgba(255,255,255,0.12); /* slightly stronger edge */
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);  /* subtle depth */
}


.month-title {
  font-weight: 800;
  text-align: center;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.86);
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.day-header {
  text-align: center;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 8px 0;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
}

.calendar-date {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);

  font-weight: 800;
  color: rgba(255,255,255,0.86);
  position: relative;
  user-select: none;
}

.calendar-date.other-month {
  opacity: 0.20;
}

.calendar-date.passed {
  opacity: 0.40;
}

.calendar-date.passed::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 12px;
  background: repeating-linear-gradient(
    135deg,
    rgba(255,255,255,0.20) 0 2px,
    transparent 2px 6px
  );
}

.calendar-date.today {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.calendar-date.today::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.22);
  pointer-events: none;
}

/* Legend (FitFeb-friendly) */
.fitfeb-legend {
  margin-top: 12px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 700;
}

.legend-color {
  width: 14px;
  height: 14px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
}

.legend-color.today {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.22);
}

.legend-color.passed {
  background: rgba(255,255,255,0.06);
  opacity: 0.45;
}

/* Ensure hero-main can grow and calendar sits to the right */
.hero-main { flex: 1; }

/* Right-side mini calendar column */
.fitfeb-cal-mini {
  /* padding: 6px; */
  width: 240px;                 /* small calendar width */
  height: var(--hero-strip-h);  /* match #FITFEB + pill height */
}

/* Compact calendar panel */
.fitfeb-cal-mini .month-calendar.mini {
  height: 100%;
  padding: 14px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Smaller title */
.fitfeb-cal-mini .month-title {
  font-size: 0.95rem;
  margin-bottom: 8px;
  opacity: 0.9;
}


/* Mini calendar: make headers extra dark for readability */
.fitfeb-cal-mini .day-header {
  background: rgba(0,0,0,0.62);
  border-color: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.52);
  border-radius: 6px;
}

/* Mini calendar: tighter + slightly more “grid” */
.fitfeb-cal-mini .calendar-days {
  gap: 3px;
}
.fitfeb-cal-mini .calendar-date {
  border-radius: 7px;
  border-color: rgba(255,255,255,0.10);
}

/* Tighten today highlight for small cells */
.fitfeb-cal-mini .calendar-date.today::before {
  inset: 5px;
  border-radius: 6px;
}

/* Mobile: stack calendar under pill (still compact) */
@media (max-width: 760px) {
  .hero { flex-wrap: wrap; }
  .fitfeb-cal-mini {
    width: 100%;
    height: auto;
    margin-top: 12px;
  }
  .fitfeb-cal-mini .month-calendar.mini {
    height: auto;
  }
}

.resource-icon {
width: 48px;
height: 48px;
border-radius: 8px;
flex-shrink: 0;
}

.resource-card--row{
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  background-color: #333333;
}

.resource-body{
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

/* bigger icon on the left */
.resource-icon--big{
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
}

/* optional: make the link fit the content nicely */
.resource-link{
  width: fit-content;
  min-width: 220px; /* optional */
}

/* stack nicely on mobile */
@media (max-width: 520px){
  .resource-card--row{
    grid-template-columns: 44px 1fr;
  }
  .resource-icon--big{
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }
}
