/* Vadlo School: parts. The hero's banyan, field-guide plates, tables, lists. Phone first. */

/* ---- Hero ---- */
.hero {
  position: relative;
  padding-top: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* On a phone the tree comes straight after the heading and actions, before the admissions label. */
.hero-grid {
  display: contents;
}

.hero-main,
.specimen {
  margin-left: var(--gutter);
  margin-right: var(--gutter);
}

.hero-main {
  order: 1;
}

.banyan-fig {
  order: 2;
}

.specimen {
  order: 3;
  margin-top: 18px;
}


.hero h1 {
  font-size: clamp(2.35rem, 10.5vw, 5rem);
  line-height: 1.02;
  margin-bottom: 0.3em;
  max-width: 13em;
}

.hero-text {
  font-size: 1.2rem;
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 4px;
}

/* The admissions "specimen label": a ruled paper card with the session's status and dates. */
.specimen {
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 3px;
  padding: 14px 16px 12px;
  font-family: var(--sans);
  font-size: 0.98rem;
  box-shadow: 4px 4px 0 var(--leaf-3);
}

.specimen-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.specimen-head h2 {
  font-size: 1.25rem;
  margin: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink-2);
}

.status-open {
  color: var(--fig);
}

.status-open::before {
  background: var(--fig);
}

.specimen dl {
  margin: 0;
}

.specimen dl div {
  display: grid;
  grid-template-columns: 6.2em 1fr;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px dotted var(--rule);
}

.specimen dt {
  color: var(--ink-2);
}

.specimen dd {
  margin: 0;
  font-weight: 500;
}

.specimen-foot {
  margin: 10px 0 0;
  font-size: 0.92rem;
}

/* The tree */
.banyan-fig {
  margin: 8px 0 0;
  position: relative;
  z-index: 1;
}

.banyan {
  display: block;
  width: 100%;
  height: auto;
}

.banyan-wide {
  display: none;
}

.cn-back {
  fill: var(--leaf-3);
}

.cn-mid {
  fill: var(--leaf-2);
}

.cn-front {
  fill: var(--leaf);
}

.wood,
.root-line,
.stage path {
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
}

.trunk {
  fill: var(--ink);
}

.grooves {
  fill: none;
  stroke: #3d5243;
  stroke-width: 1.5;
}

.leaves {
  fill: #3f5e37;
  stroke: var(--ink);
  stroke-width: 0.7;
}

.ground {
  stroke: var(--ink);
  stroke-width: 1.5;
}

.root-label {
  font-family: var(--sans);
  font-weight: 600;
  fill: var(--ink);
  text-anchor: middle;
}

.root.open .root-label {
  fill: var(--fig);
}

.seat {
  fill: var(--fig);
}

.stage path {
  stroke-width: 1;
}

.stage text {
  font-family: var(--sans);
  fill: var(--ink-2);
  text-anchor: middle;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.banyan-cap {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--ink-2);
  padding: 6px var(--gutter) 0;
  max-width: 1400px;
  margin: 0 auto;
}

.banyan-cap .key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.banyan-cap .key::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fig);
}

/* ---- Plates: a numbered margin and the content ---- */
.plate,
.page-head {
  padding: 48px 0 8px;
}

.page-head {
  padding-top: 36px;
}

.plate-deep {
  background: var(--deep);
  color: var(--ground);
  padding-bottom: 40px;
  margin-top: 40px;
}

.plate-deep a {
  color: var(--ground);
}

.plate-deep .plate-no,
.plate-deep .margin-note {
  color: var(--gold);
  border-color: #3b5a48;
}

.plate-paper {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 36px;
  margin-top: 40px;
}

.plate-grid {
  display: grid;
  gap: 6px;
}

.plate-no {
  color: var(--ink-2);
  margin: 0 0 4px;
  border-top: 1.5px solid currentColor;
  padding-top: 6px;
  display: inline-block;
}

.margin-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--ink-2);
  margin-bottom: 8px;
}

.margin-note p {
  margin: 0 0 0.4em;
}

.plate-body > :last-child {
  margin-bottom: 0;
}

.more {
  font-family: var(--sans);
  font-weight: 600;
  margin-top: 18px;
}

/* ---- Lists and tables ---- */
.points {
  padding-left: 1.1em;
  margin: 0 0 1em;
}

.points li {
  margin: 0 0 0.45em;
  padding-left: 0.2em;
}

.points li::marker {
  content: "– ";
  color: var(--leaf);
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0 0 1.2em;
  display: grid;
  gap: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 12px 0 12px 52px;
  border-top: 1px solid var(--rule);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 12px;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-weight: 700;
}

.steps h3 {
  font-size: 1.2rem;
  margin: 4px 0 0.25em;
}

.steps p {
  margin: 0 0 0.3em;
}

.steps .when {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--ink-2);
}

.datelist {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
  font-family: var(--sans);
}

.datelist li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
}

.dl-date {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.dl-note {
  display: block;
  color: var(--ink-2);
  font-size: 0.92rem;
}

.tag {
  display: inline-block;
  font-size: 0.74rem;
  padding: 2px 7px;
  border: 1px solid var(--ink-2);
  border-radius: 3px;
  color: var(--ink-2);
  margin-right: 6px;
  vertical-align: 0.1em;
}

.tag-soon {
  border-color: var(--fig);
  color: var(--fig);
}

.tag-open {
  border-color: var(--fig);
  background: var(--fig);
  color: #fff;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.2em;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-variant-numeric: tabular-nums;
}

caption {
  text-align: left;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  padding: 0 0 8px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 9px 10px 9px 0;
  border-bottom: 1px solid var(--rule);
}

thead th {
  border-bottom: 1.5px solid var(--ink);
  font-size: 0.86rem;
  color: var(--ink-2);
  font-weight: 600;
}

td.r,
th.r {
  text-align: right;
}

.faq details {
  border-top: 1px solid var(--rule);
  padding: 10px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
}

.faq details p {
  margin: 8px 0 4px;
}

/* ---- Stages (home and curriculum) ---- */
.stages {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
}

.stage-row {
  border-top: 1.5px solid var(--ink);
  padding: 14px 0 18px;
  display: grid;
  gap: 4px;
}

.stage-name {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.stage-classes {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.stage-ages {
  font-family: var(--sans);
  color: var(--ink-2);
  font-size: 0.95rem;
}

.stage-note {
  font-style: italic;
  color: var(--ink-2);
}

/* A school day */
.day {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 4.2em 1fr;
  font-family: var(--sans);
}

.day li {
  display: contents;
}

.day time,
.day span {
  padding: 8px 0;
  border-top: 1px solid var(--rule);
}

.day time {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---- Facilities ---- */
.facilities {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 28px;
}

.facility figure {
  margin: 0 0 10px;
}

.facility img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--rule);
  background: var(--paper);
}

.facility h3 {
  margin-bottom: 0.2em;
}

.facility .figure {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--fig);
  margin: 0 0 0.3em;
}

.facility .kind {
  margin-bottom: 6px;
}

.figures {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin: 0 0 1.4em;
}

.figures div {
  border-top: 1.5px solid var(--ink);
  padding: 8px 12px 12px 0;
}

.figures dt {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--ink-2);
}

.figures dd {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 600;
}

/* ---- Staff ---- */
.staff-group {
  margin-top: 28px;
}

.staff {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 16px;
}

.person img,
.person .initials {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--paper);
  border: 1px solid var(--rule);
  margin-bottom: 8px;
}

.initials {
  display: grid !important;
  place-items: center;
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--leaf);
}

.person h3 {
  font-size: 1.12rem;
  margin: 0 0 2px;
}

.person p {
  font-family: var(--sans);
  font-size: 0.92rem;
  margin: 0 0 2px;
  color: var(--ink-2);
}

.person .role {
  color: var(--ink);
  font-weight: 600;
}

.letter {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 18px var(--gutter);
  font-size: 1.2rem;
}

.letter .by {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink-2);
}

/* ---- Transport ---- */
.routes {
  display: grid;
  gap: 12px;
  margin-bottom: 1.4em;
}

.route {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
}

.route summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

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

.route summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 1.5rem;
  line-height: 1;
}

.route[open] summary::after {
  content: "–";
}

.route-code {
  font-family: var(--sans);
  font-weight: 700;
  background: var(--deep);
  color: var(--ground);
  border-radius: 4px;
  padding: 4px 8px;
  min-width: 2.8em;
  text-align: center;
}

.route-name {
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.2;
}

.route-name small {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.route-body {
  padding: 0 16px 16px;
  font-family: var(--sans);
}

.stops {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  position: relative;
}

.stops li {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 10px;
  padding: 8px 0;
  position: relative;
}

.stops li::before {
  content: "";
  grid-column: 1;
  width: 12px;
  height: 12px;
  margin: 5px auto 0;
  border: 2px solid var(--deep);
  border-radius: 50%;
  background: var(--paper);
  position: relative;
  z-index: 1;
}

.stops li::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--deep);
}

.stops li:first-child::after {
  top: 14px;
}

.stops li:last-child::after {
  bottom: calc(100% - 14px);
}

.stop-name {
  font-weight: 600;
}

.stop-name small {
  display: block;
  font-weight: 400;
  color: var(--ink-2);
}

.stop-times {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.stop-times span {
  display: block;
}

.stop-times .pm {
  color: var(--ink-2);
}

/* ---- Events, news and notices ---- */
.events,
.notices {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
}

.event-row,
.notice-row {
  display: grid;
  grid-template-columns: 4.4em 1fr;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}

.ev-date {
  font-family: var(--sans);
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.ev-day {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 600;
}

.ev-mon {
  font-size: 0.85rem;
  color: var(--ink-2);
}

.ev-meta,
.nt-meta {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink-2);
  margin: 0 0 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
}

.ev-meta .tag,
.nt-meta .tag {
  margin-right: 0;
}

.event-row h3,
.notice-row h3 {
  font-size: 1.2rem;
  margin: 0 0 4px;
}

.event-row p,
.notice-row p {
  margin: 0 0 4px;
}

.nt-date {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.article {
  max-width: 42em;
}

.article-meta {
  font-family: var(--sans);
}

.article img {
  border: 1px solid var(--rule);
}

/* ---- Disclosure ---- */
.disc-section {
  margin-top: 28px;
}

.disc-section h2 {
  font-size: 1.5rem;
  border-top: 1.5px solid var(--ink);
  padding-top: 10px;
}

.disc-table td:first-child {
  width: 2.4em;
  color: var(--ink-2);
}

.disc-table .missing {
  color: var(--ink-2);
  font-style: italic;
}

.disc-updated {
  font-family: var(--sans);
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 10px 14px;
  display: inline-block;
}

/* ---- Fees ---- */
.fee-card {
  border-top: 1.5px solid var(--ink);
  padding: 12px 0 16px;
}

.fee-card h3 {
  margin-bottom: 8px;
}

.fee-card dl {
  margin: 0;
  font-family: var(--sans);
}

.fee-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dotted var(--rule);
}

.fee-card dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.on-enquiry {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 16px;
}

.callout {
  border-left: 3px solid var(--fig);
  padding: 4px 0 4px 14px;
  margin: 0 0 1.2em;
}

.check-line {
  font-family: var(--sans);
  font-size: 0.98rem;
}

/* ---- Pictures with captions ---- */
.plate-figure {
  margin: 0 0 1em;
}

.plate-figure img {
  display: block;
  width: 100%;
  border: 1px solid var(--rule);
}

.plate-figure figcaption {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--ink-2);
  margin-top: 6px;
}

.two {
  display: grid;
  gap: 28px;
}

.person .tag {
  margin: 0 0 6px;
  font-size: 0.7rem;
}
