/* Shared styles for the text pages (home, clases, talleres) — the
   workshop poster pages use style.css alone. */
body {
  font-family: Georgia, 'Times New Roman', serif;
}

.page-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 80px 24px 80px; /* 48px nav + 32px breathing room */
}

h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c8a96e;
  margin-bottom: 8px;
  line-height: 1.2;
}

.subtitle {
  font-size: 0.95rem;
  color: #9ca3b0;
  margin-bottom: 48px;
  font-style: italic;
}

h2 {
  font-size: 1rem;
  font-weight: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c8a96e;
  margin: 48px 0 16px;
}

p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: #9ca3b0;
  margin-bottom: 16px;
}

p strong { color: #d4cfc8; }

.disclaimer {
  border-left: 2px solid #2a3140;
  padding-left: 20px;
  margin: 40px 0;
}

.disclaimer p {
  font-size: 0.85rem;
  color: #555e72;
  font-style: italic;
}

.schedule-card {
  background: #111621;
  border: 1px solid #1e2535;
  border-radius: 6px;
  padding: 28px 32px;
  margin: 32px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 40px;
}

@media (max-width: 500px) {
  .schedule-card { grid-template-columns: 1fr; }
}

.schedule-item dt {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #555e72;
  margin-bottom: 4px;
}

.schedule-item dd {
  font-size: 0.95rem;
  color: #d4cfc8;
  margin: 0;
}

.schedule-item dd a {
  color: #c8a96e;
  text-decoration: none;
}

.schedule-item dd a:hover {
  text-decoration: underline;
}

.workshop-cta {
  background: #0e1220;
  border: 1px solid #c8a96e44;
  border-radius: 6px;
  padding: 28px 32px;
  margin-top: 56px;
  text-align: center;
}

.workshop-cta p {
  margin-bottom: 20px;
}

.workshop-cta a.btn {
  display: inline-block;
  border: 1px solid #c8a96e;
  color: #c8a96e;
  text-decoration: none;
  padding: 10px 28px;
  border-radius: 4px;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.workshop-cta a.btn:hover {
  background: #c8a96e;
  color: #0B0E18;
}

.contact-line {
  text-align: center;
  margin-top: 48px;
  font-size: 0.85rem;
  color: #555e72;
}

.contact-line a {
  color: #c8a96e;
  text-decoration: none;
}

.contact-line a:hover { text-decoration: underline; }

#map-school {
  width: 100%;
  height: 260px;
  border-radius: 6px;
  margin: 20px 0 28px;
  border: 1px solid #1e2535;
}

/* ── Curriculum ── */
.curriculum {
  margin: 24px 0 48px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.curriculum details {
  background: #111621;
  border: 1px solid #1e2535;
  border-radius: 6px;
  overflow: hidden;
}

.curriculum details[open] {
  border-color: #2a3140;
}

.curriculum summary {
  list-style: none;
  padding: 14px 20px;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #d4cfc8;
  cursor: pointer;
  display: flex;
  align-items: center;
  user-select: none;
}

.curriculum summary .cjk {
  margin-left: auto;
  margin-right: 16px;
}

.curriculum summary::-webkit-details-marker { display: none; }

.curriculum summary::after {
  content: '+';
  font-size: 1.1rem;
  color: #c8a96e;
  flex-shrink: 0;
  margin-left: 12px;
}

.curriculum details[open] summary::after { content: '−'; }

.curriculum summary:hover { color: #c8a96e; }

.cjk {
  font-size: 0.8em;
  color: #555e72;
  margin-left: 6px;
  vertical-align: middle;
  display: inline;
}

.curriculum ul {
  list-style: none;
  padding: 0 20px 16px;
  margin: 0;
}

.curriculum ul li {
  font-size: 0.85rem;
  color: #9ca3b0;
  line-height: 1.6;
  padding: 5px 0;
  border-bottom: 1px solid #1a2030;
}

.curriculum ul li:last-child { border-bottom: none; }

.curriculum details.advanced summary {
  color: #555e72;
}

.curriculum details.advanced p {
  padding: 0 20px 16px;
  font-size: 0.85rem;
  color: #555e72;
  font-style: italic;
  margin: 0;
}

.curriculum details.advanced a {
  color: #c8a96e;
  text-decoration: none;
}

/* ── New-course announcement ── */
.announce {
  background: #0e1220;
  border: 1px solid #c8a96e66;
  border-radius: 6px;
  padding: 24px 28px;
  margin: 0 0 40px;
}

.announce-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c8a96e;
  margin-bottom: 6px;
}

.announce-date {
  font-size: clamp(1.25rem, 3.4vw, 1.7rem);
  color: #d4cfc8;
  line-height: 1.3;
  margin-bottom: 10px;
}

.announce p:last-child { margin-bottom: 0; }

.announce a {
  color: #c8a96e;
  text-decoration: none;
}

.announce a:hover { text-decoration: underline; }

/* ── Photos of the room ── */
.sala-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0 8px;
}

@media (max-width: 560px) {
  .sala-photos { grid-template-columns: 1fr; }
}

.sala-photos figure { margin: 0; }

.sala-photos img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #1e2535;
}

.sala-photos figcaption {
  font-size: 0.78rem;
  font-style: italic;
  color: #555e72;
  margin-top: 6px;
}

.photo-credit {
  font-size: 0.72rem;
  color: #555e72;
  margin-bottom: 32px;
}

.photo-credit a { color: #555e72; }

/* ── Past workshops list (by year_month) ── */
.workshop-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.workshop-item a {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: center;
  background: #111621;
  border: 1px solid #1e2535;
  border-radius: 6px;
  padding: 14px;
  text-decoration: none;
  transition: border-color 0.15s;
}

.workshop-item a:hover { border-color: #c8a96e66; }

.workshop-item img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  object-position: top;
  border-radius: 4px;
}

.workshop-ym {
  font-family: monospace;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: #c8a96e;
}

.workshop-name {
  font-size: 1rem;
  color: #d4cfc8;
  margin: 2px 0 4px;
}

.workshop-meta {
  font-size: 0.82rem;
  color: #9ca3b0;
}

@media (max-width: 480px) {
  .workshop-item a { grid-template-columns: 80px 1fr; gap: 14px; }
  .workshop-item img { width: 80px; height: 80px; }
}

/* ── Class plan: 90-min session; each row's bar is sized by its minutes ── */
.class-plan {
  list-style: none;
  padding: 0;
  margin: 20px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.class-plan li {
  position: relative;
  display: grid;
  grid-template-columns: 52px 56px 1fr;
  align-items: baseline;
  gap: 12px;
  padding: 12px 16px 16px;
  background: #111621;
  border: 1px solid #1e2535;
  border-radius: 6px;
  overflow: hidden;
}

/* Proportional duration bar along the bottom edge (share of 90 min) */
.class-plan li::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: calc(var(--min) / 90 * 100%);
  background: #c8a96e;
  opacity: 0.7;
}

.plan-time {
  font-size: 0.85rem;
  color: #c8a96e;
}

.plan-dur {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: #555e72;
}

.plan-what {
  font-size: 0.92rem;
  color: #d4cfc8;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .class-plan li { grid-template-columns: 44px 1fr; row-gap: 2px; }
  .plan-dur { grid-column: 1; grid-row: 2; }
  .plan-what { grid-column: 2; grid-row: 1 / span 2; }
}
