/* Admission page. The hero banner comes from about.css (same as the other inner pages).
   Every class here starts with ad- so no other page is touched. */

/* 1. Admission open: the heading and the main notice at the left, the two short notices at the right, the contact numbers on a gold band.
   Text sizes follow the other inner pages: section headings like the procedure heading, body text at the normal reading size. */
.ad-open { padding-top: var(--section); background: var(--base); }
.ad-open__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; padding-bottom: var(--section); }
.ad-open__title { margin: 0 0 clamp(1.25rem, 1rem + 1.5vw, 2rem); font-family: var(--display); font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3.4rem); font-weight: 290; line-height: 1.08; letter-spacing: -0.025em; color: var(--maroon); overflow-wrap: normal; word-break: normal; hyphens: none; }
.ad-open__title span { display: inline-block; }
.ad-open__title em { display: inline-block; padding-inline: 0.05em; font-style: italic; font-weight: 270; color: var(--red); background: linear-gradient(transparent 64%, rgba(254, 182, 40, 0.6) 64% 92%, transparent 92%) no-repeat left / 100% 100%; }
.ad-open__lead { max-width: 42rem; margin: 0; font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.2rem); line-height: 1.75; color: var(--text); text-wrap: pretty; }
.ad-open__form { margin: clamp(1.25rem, 1rem + 1.5vw, 2rem) 0 0; }
.ad-open__right { padding-left: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); border-left: 2px solid var(--flame); }
.ad-open__right p { margin: 0 0 1.25em; font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.2rem); line-height: 1.75; color: var(--text); text-wrap: pretty; }
.ad-open__right p:last-child { margin-bottom: 0; }
.ad-contact { padding-block: clamp(1.75rem, 1.25rem + 2vw, 3rem); background: var(--flame); color: var(--band); }
.ad-contact__inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem clamp(1.5rem, 1rem + 3vw, 4rem); align-items: center; }
.ad-contact__label { display: flex; align-items: center; gap: 0.75rem; margin: 0; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--band); white-space: nowrap; }
.ad-contact__label::before { content: ""; width: 2rem; height: 2px; background: var(--band); }
.ad-contact__groups { display: flex; flex-wrap: wrap; gap: 1rem clamp(1.5rem, 1rem + 3vw, 4rem); }
.ad-contact__group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.4rem; margin: 0; font-family: var(--display); font-size: clamp(1.1rem, 1rem + 0.6vw, 1.45rem); font-weight: 340; color: var(--band); }
.ad-contact__tag { margin-right: 0.35rem; font-family: var(--body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.ad-contact__num { display: inline-block; padding: 0.3rem 0.85rem; border: 1.5px solid rgba(12, 74, 143, 0.45); border-radius: 999px; color: var(--band); text-decoration: none; white-space: nowrap; transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.ad-contact__num:hover, .ad-contact__num:focus-visible { background: var(--band); border-color: var(--band); color: var(--flame); }

/* 2. The procedure: a tab for each group of classes, the points as numbered steps along a gold line */
.ad-proc { padding-block: var(--section); background: var(--surface); }
.ad-proc__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem 2rem; margin-bottom: clamp(2rem, 1.5rem + 2.5vw, 3.5rem); }
.ad-proc__title { margin: 0; font-family: var(--display); font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3.4rem); font-weight: 290; line-height: 1.08; letter-spacing: -0.025em; color: var(--ink); }
.ad-steps__tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ad-steps__tabs:not(.is-ready) { display: none; }
.ad-steps__tab { appearance: none; display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.7rem 1.25rem; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 1rem; font-weight: 500; color: var(--text); cursor: pointer; transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.ad-steps__tab small { display: grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding-inline: 0.35rem; border-radius: 999px; background: var(--flame-tint); font-family: var(--mono); font-size: 0.75rem; color: var(--maroon); }
.ad-steps__tab:hover { border-color: var(--flame); color: var(--maroon); }
.ad-steps__tab:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.ad-steps__tab[aria-selected="true"] { border-color: var(--maroon); background: var(--maroon); color: var(--base); }
.ad-steps__tab[aria-selected="true"] small { background: var(--flame); color: var(--band); }

.ad-steps__panel[hidden] { display: none; }
.ad-steps:not(.is-ready) .ad-steps__panel + .ad-steps__panel { margin-top: clamp(2.5rem, 2rem + 3vw, 5rem); }
.ad-steps.is-ready .ad-steps__group { display: none; }
.ad-steps__group { margin: 0 0 1.5rem; font-family: var(--display); font-size: clamp(1.35rem, 1.05rem + 1.2vw, 2.1rem); font-weight: 300; font-style: italic; color: var(--maroon); }
.ad-steps__list { counter-reset: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(0.75rem, 0.5rem + 1vw, 1.25rem); margin: 0; padding: 0; list-style: none; }
.ad-step { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 0.9rem clamp(0.9rem, 0.7rem + 1vw, 1.4rem); padding: clamp(1rem, 0.85rem + 0.8vw, 1.4rem) clamp(1rem, 0.85rem + 1.2vw, 1.6rem); border: 1px solid var(--line); border-top: 3px solid var(--flame); border-radius: var(--r-lg); background: #fff; box-shadow: 0 0.75rem 1.75rem -1.5rem rgba(12, 74, 143, 0.5); }
.ad-step p { margin: 0; font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem); line-height: 1.65; color: var(--text); }
.ad-step__n { display: grid; place-items: center; width: clamp(2.25rem, 1.9rem + 1.2vw, 2.75rem); aspect-ratio: 1; border-radius: 50%; background: var(--maroon); font-family: var(--mono); font-size: clamp(0.75rem, 0.7rem + 0.2vw, 0.875rem); font-weight: 600; letter-spacing: 0.04em; color: var(--flame); }
/* 3. Documents on a dark band, the dates beside them */
.ad-docs { padding-block: var(--section); background: var(--band); color: var(--on-dark); }
.ad-docs__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 1rem + 5vw, 6rem); align-items: center; }
.ad-docs__intro { margin: 0 0 clamp(1.5rem, 1rem + 2vw, 2.5rem); font-family: var(--display); font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.8rem); font-weight: 310; line-height: 1.25; letter-spacing: -0.015em; color: var(--base); text-wrap: balance; }
.ad-docs__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-dark); }
.ad-docs__list li { position: relative; padding: 0.95rem 0 0.95rem 2.25rem; border-bottom: 1px solid var(--line-dark); font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.2rem); color: var(--base); }
.ad-docs__list li::before { content: ""; position: absolute; left: 0; top: 1.25rem; width: 0.9rem; height: 0.5rem; border-left: 2px solid var(--flame); border-bottom: 2px solid var(--flame); transform: rotate(-45deg); }
.ad-docs__photo { margin: 0; overflow: hidden; border-radius: var(--r-lg); background: var(--footer); }
.ad-docs__photo img { display: block; width: 100%; height: auto; }

/* 4. Age limits and the Std XI streams */
.ad-ages { padding-block: var(--section); background: linear-gradient(180deg, var(--base) 0%, var(--flame-tint) 100%); }
.ad-ages__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2.5rem, 1rem + 5vw, 6rem); align-items: start; }
.ad-ages__title { margin: 0 0 clamp(1.25rem, 1rem + 1.5vw, 2.25rem); font-family: var(--display); font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3.4rem); font-weight: 290; line-height: 1.08; letter-spacing: -0.025em; color: var(--maroon); }
.ad-ages__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ad-ages__list li { padding: 1rem 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); font-weight: 330; line-height: 1.25; color: var(--ink); }
.ad-streams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 1rem + 2vw, 3rem) clamp(1.5rem, 1rem + 2vw, 3rem); }
.ad-stream { padding-top: 1rem; border-top: 2px solid var(--flame); }
.ad-stream h3 { margin: 0 0 0.85rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); }
.ad-stream ul { margin: 0; padding: 0; list-style: none; }
.ad-stream li { padding: 0.5rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; color: var(--text); }
.ad-stream li:last-child { border-bottom: 0; }

@media (max-width: 1000px) {
  .ad-open__grid, .ad-group, .ad-docs__grid, .ad-ages__grid { grid-template-columns: minmax(0, 1fr); }
  .ad-open__grid { padding-bottom: clamp(3rem, 2rem + 4vw, 5rem); }
.ad-open__right { padding-left: 0; padding-top: 1.25rem; border-left: 0; border-top: 2px solid var(--flame); }
  .ad-docs__photo { max-width: 28rem; }
}
@media (max-width: 800px) {
  .ad-contact__inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) { .ad-steps__list { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .ad-streams { grid-template-columns: minmax(0, 1fr); }
}
