:root { color-scheme:light; --bg:#eef1ea; --surface:#fbfcf8; --ink:#18231b; --muted:#667069; --line:rgba(24,35,27,.14); font-family:"DM Sans",system-ui,sans-serif; }
:root[data-theme="dark"] { color-scheme:dark; --bg:#101511; --surface:#1b241d; --ink:#f1f4ef; --muted:#a9b3ab; --line:rgba(241,244,239,.13); }
* { box-sizing:border-box; }
body { min-width:320px; margin:0; background:var(--bg); color:var(--ink); }
.skip-link { position:fixed; z-index:100; top:8px; left:8px; transform:translateY(-160%); border-radius:8px; background:var(--ink); color:var(--bg); padding:10px 14px; }
.skip-link:focus { transform:none; }
main { display:grid; width:min(920px,calc(100% - 32px)); min-height:calc(100svh - 140px); align-content:center; gap:28px; margin:0 auto; padding:50px 0; }
h1 { margin:0; font:500 clamp(3.7rem,11vw,8rem)/.86 "Newsreader",serif; letter-spacing:-.05em; }
.interest-placeholder { display:flex; min-height:190px; align-items:center; gap:18px; border:1px solid var(--line); border-radius:18px; background:var(--surface); padding:28px; }
.interest-placeholder span { font-size:2.5rem; }
.interest-placeholder strong { font-size:clamp(1.2rem,3vw,2rem); }

.fatherhood-bubbles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.3vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.fatherhood-bubbles li {
  display: grid;
  width: clamp(132px, 17vw, 190px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(139, 112, 29, .26);
  border-radius: 50%;
  background: #f5df7d;
  color: #2d2b20;
  box-shadow: 0 14px 32px rgba(60, 70, 59, .12);
  padding: 20px;
  text-align: center;
  font-size: clamp(.84rem, 1.6vw, 1.08rem);
  font-weight: 800;
  line-height: 1.2;
}

.fatherhood-bubbles li:nth-child(2),
.fatherhood-bubbles li:nth-child(5) { background: #d8e4d5; }
.fatherhood-bubbles li:nth-child(3),
.fatherhood-bubbles li:nth-child(6) { background: #e4e7e1; }
.fatherhood-bubbles li:nth-child(4) { width: clamp(148px, 19vw, 208px); background: #ead39a; }
.fatherhood-bubbles li:nth-child(7) { width: clamp(145px, 18vw, 200px); background: #cbd9cb; }

:root[data-theme="dark"] .fatherhood-bubbles li {
  border-color: rgba(245, 223, 125, .28);
  background: #645b32;
  color: #f6f3e7;
  box-shadow: none;
}
:root[data-theme="dark"] .fatherhood-bubbles li:nth-child(2),
:root[data-theme="dark"] .fatherhood-bubbles li:nth-child(5) { background: #34483a; }
:root[data-theme="dark"] .fatherhood-bubbles li:nth-child(3),
:root[data-theme="dark"] .fatherhood-bubbles li:nth-child(6) { background: #3c433e; }
:root[data-theme="dark"] .fatherhood-bubbles li:nth-child(4) { background: #584b2c; }
:root[data-theme="dark"] .fatherhood-bubbles li:nth-child(7) { background: #304438; }

.empty-interest-page { min-height: calc(100svh - 140px); }
.gym-page-title { font-size: clamp(2.25rem, 4vw, 3.6rem); line-height: 1; }

.workout-planner {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: clamp(18px, 3vw, 28px);
}

.workout-section-heading,
.workout-section-heading h2 { display: flex; align-items: center; margin: 0; }
.workout-section-heading { gap: 12px; }
.workout-section-heading span { font-size: 1.7rem; }
.workout-section-heading h2 { font-size: clamp(1.25rem, 2.3vw, 1.65rem); }

.progression-rules {
  border: 1px solid color-mix(in srgb, var(--line) 70%, #b99b43);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 78%, #ead39a);
  padding: 16px;
}
.progression-rules > strong { display: block; margin-bottom: 10px; }
.progression-rules ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; margin: 0; padding-left: 18px; }
.progression-rules li { line-height: 1.4; }

.workout-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.workout-tabs button {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.workout-tabs button:hover,
.workout-tabs button:focus-visible,
.workout-tabs button.active { border-color: var(--ink); background: var(--ink); color: var(--bg); outline: 0; }

.workout-panel[hidden] { display: none; }
.workout-panel { display: grid; gap: 14px; }
.training-schedule { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 8px; }
.training-schedule span { display: grid; gap: 3px; border-radius: 10px; background: color-mix(in srgb, var(--surface) 76%, #dce7d7); padding: 12px; color: var(--muted); }
.training-schedule strong { color: var(--ink); }

.workout-day-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
.workout-day-grid details { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.workout-day-grid summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px; font-weight: 800; cursor: pointer; list-style: none; }
.workout-day-grid summary::-webkit-details-marker { display: none; }
.workout-day-grid summary::after { content: "+"; font-size: 1.2rem; }
.workout-day-grid details[open] summary::after { content: "−"; }
.workout-day-grid summary span { margin-left: auto; color: var(--muted); font-size: .78rem; font-weight: 600; }
.workout-day-grid ul { display: grid; gap: 8px; margin: 0; border-top: 1px solid var(--line); padding: 14px 18px 16px 34px; }
.workout-day-grid li { line-height: 1.35; }

:root[data-theme="dark"] .progression-rules { background: #3d3829; }
:root[data-theme="dark"] .training-schedule span { background: #263329; }

.nutrition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.nutrition-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: clamp(18px, 3vw, 28px);
}

.nutrition-card-wide { grid-column: 1 / -1; }

.nutrition-card-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.nutrition-card-heading span { font-size: 1.7rem; }
.nutrition-card h2 { margin: 0; font-size: clamp(1.15rem, 2vw, 1.45rem); }
.nutrition-card ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }

.nutrition-check-list { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.nutrition-check-list li {
  position: relative;
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 78%, #dce7d7);
  padding: 12px 14px 12px 40px;
  line-height: 1.35;
}

.nutrition-check-list li::before {
  position: absolute;
  top: 11px;
  left: 14px;
  color: #50704f;
  content: "✓";
  font-weight: 800;
}

.nutrition-check-list small { display: block; margin-top: 3px; color: var(--muted); }

:root[data-theme="dark"] .nutrition-check-list li { background: #263329; }
:root[data-theme="dark"] .nutrition-check-list li::before { color: #b9d2b5; }

@media (max-width: 560px) {
  .fatherhood-bubbles { gap: 10px; }
  .fatherhood-bubbles li,
  .fatherhood-bubbles li:nth-child(4),
  .fatherhood-bubbles li:nth-child(7) { width: calc(50% - 5px); max-width: 170px; }
  main { align-content: start; padding-top: 32px; }
  h1 { font-size: clamp(3.2rem, 18vw, 5rem); }
  .nutrition-grid { grid-template-columns: 1fr; }
  .nutrition-card-wide { grid-column: auto; }
  .nutrition-check-list { grid-template-columns: 1fr; }
  .progression-rules ul,
  .workout-day-grid { grid-template-columns: 1fr; }
  .workout-tabs { grid-template-columns: 1fr; }
}
.interest-unlock-link { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 12px; background: var(--ink); color: var(--bg); padding: 0 18px; font-weight: 850; text-decoration: none; }

/* Universal button-border contract: every enabled button renders a visible 1px border. */
button:not(:disabled) {
  border-style: solid !important;
  border-width: 1px !important;
}
