.study-panel {
  --study-ink: #304b38;
  --study-accent: #845242;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(16px, 4vw, 48px);
  border: 1px solid #cbd0bc;
  background: #f7f3e8;
  color: var(--study-ink);
}
.solar-panel {
  background:
    linear-gradient(90deg, #f8f4e8a6, #faf6ebef 60%),
    url('assets/culture-seasons-v1.png') center / cover;
}
.study-dial {
  container-type: inline-size;
  position: relative;
  justify-self: center;
  width: min(100%, 360px);
  aspect-ratio: 1;
}
.solar-dial { width: min(100%, 470px); }
.study-dial::before,
.study-dial::after {
  position: absolute;
  border: 1px solid #acb6a0;
  border-radius: 50%;
  pointer-events: none;
  content: "";
}
.study-dial::before { inset: 10%; }
.solar-dial::before { inset: 7%; }
.study-dial::after { inset: 22%; border-style: dashed; }
.study-dial-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--study-ink);
  font: 700 clamp(22px, 9cqw, 39px)/1 var(--serif);
  pointer-events: none;
}
.study-node,
.solar-month-ring > span {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(34px, 15cqw, 54px);
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid #aab39b;
  border-radius: 100%;
  background: #fcf8ef;
  color: var(--study-ink);
  font: 700 clamp(13px, 4.2cqw, 18px)/1 var(--serif);
  transform: translate(-50%, -50%);
  transition: background-color 180ms, color 180ms;
}
.study-node:hover { border-color: var(--study-accent); }
.study-node:focus-visible { outline: 2px solid var(--study-ink); outline-offset: 3px; }
.study-node[aria-pressed=true],
.solar-month-ring > .is-current {
  border-color: var(--study-accent);
  background: var(--study-accent);
  color: #fff9ef;
}
.solar-dial .study-node {
  width: clamp(24px, 10.4cqw, 46px);
  font-size: clamp(10px, 3.4cqw, 15px);
}
.solar-month-ring > span {
  width: clamp(23px, 8cqw, 34px);
  font-size: clamp(12px, 3.3cqw, 16px);
}
.study-copy { min-width: 0; }
.study-year-form label,
.study-range-label,
.derive-select {
  display: block;
  font-size: 13px;
  font-weight: 700;
}
.study-year-form > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 7px;
}
.study-year-form input,
.derive-select select {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #aab59f;
  background: #fffcf3;
  color: var(--study-ink);
  font-size: 15px;
}
.study-year-form input { width: 6.5rem; }
.study-year-form button { min-height: 42px; padding: 6px 16px; }
.study-range-label { margin-top: 20px; }
.study-range { width: 100%; min-height: 30px; accent-color: var(--study-accent); }
.study-reveal {
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid #afbba4;
}
.study-reveal h3 {
  margin: 4px 0 8px;
  color: var(--study-ink);
  font: 700 clamp(24px, 3vw, 37px)/1.45 var(--serif);
}
.study-reveal p,
.study-source {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.85;
}
.study-reveal .study-accent {
  color: var(--study-accent);
  font-size: 13px;
  font-weight: 700;
}
.study-source {
  margin-top: 18px;
  color: #4e674e;
  font-size: 12px;
}

.study-workshop { margin-bottom: 12px; scroll-margin-top: 76px; }
.study-workshop > summary {
  padding: 16px clamp(14px, 3vw, 26px);
  border: 1px solid #cbd0bc;
  background: #f9f5e9;
  cursor: pointer;
  color: #304b38;
  font: 700 clamp(19px, 2.5vw, 25px)/1.5 var(--serif);
}
.study-workshop > summary small {
  display: inline-block;
  margin-inline-start: 10px;
  color: #53664f;
  font: 600 12px/1.6 var(--sans);
}
.workshop-panel { border-top: 0; }
.growth-art {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin: 0;
  border: 1px solid #d1c49f;
  background: #efe5c9;
}
.growth-art img {
  position: absolute;
  top: var(--growth-top, -1%);
  left: var(--growth-left, -1%);
  width: 204%;
  max-width: none;
  height: 204%;
}
.growth-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 18px;
}
.growth-actions button { min-height: 44px; padding: 8px 14px; font-size: 13px; }
.study-modes { display: flex; flex-wrap: wrap; gap: 8px; }
.study-modes button {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #aab39b;
  border-radius: 99px;
  background: #fffbf2;
  color: var(--study-ink);
  font-size: 13px;
  font-weight: 700;
}
.study-modes button[aria-pressed=true] {
  border-color: var(--study-ink);
  background: var(--study-ink);
  color: #fff9ef;
}
.derive-select {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.cycle-hidden-stems {
  padding-top: 12px;
  margin-top: 10px;
  border-top: 1px dashed #aebaa2;
}
.cycle-hidden-stems h3 { font-size: 19px; }
.cycle-hidden-stems ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.cycle-hidden-stems li {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid #a9b5a2;
  background: #fff9ee;
  color: #304b38;
  font: 700 20px/1.35 var(--serif);
}
.cycle-hidden-stems li span,
.cycle-hidden-stems p {
  font: 600 12px/1.7 var(--sans);
}
.cycle-hidden-stems p { margin-top: 8px; }

@media (max-width: 720px) {
  .study-panel { grid-template-columns: minmax(0, 1fr); }
  .study-dial { width: min(100%, 320px); }
  .solar-dial { width: min(100%, 420px); }
}
@media (prefers-reduced-motion: reduce) {
  .study-node { transition: none; }
}
