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

.un-dress { padding-block: var(--section); background: linear-gradient(180deg, var(--base) 0%, var(--flame-tint) 100%); }
.un-dress__title { margin: 0 0 clamp(1.5rem, 1.25rem + 2vw, 3rem); 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); }

/* tabs at the left: numbered, the open one marked by a red edge and a lifted card */
.un-tabs { display: grid; grid-template-columns: minmax(11rem, 2fr) minmax(0, 10fr); gap: clamp(1.25rem, 1rem + 2.5vw, 3.5rem); align-items: start; counter-reset: un; }
.un-tabs__bar, .un-panel { grid-row: 1; }
.un-tabs__bar { grid-column: 1; display: flex; flex-direction: column; gap: 0.6rem; padding: clamp(0.75rem, 0.5rem + 1vw, 1.25rem); border-radius: var(--r-lg); background: var(--band); box-shadow: 0 1.5rem 3rem -2rem rgba(12, 74, 143, 0.5); }
.un-tabs.is-ready .un-panel { grid-column: 2; }
.un-tab { appearance: none; counter-increment: un; position: relative; display: flex; align-items: baseline; gap: 0.7rem; padding: 0.9rem 1rem; border: 1px solid var(--line-dark); border-left: 4px solid transparent; border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.06); font-family: var(--display); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); font-weight: 330; line-height: 1.2; text-align: left; color: var(--base); cursor: pointer; transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s; }
.un-tab::before { content: counter(un, decimal-leading-zero); font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.1em; color: var(--amber); }
.un-tab:hover { border-color: var(--flame); color: var(--flame); transform: translateX(4px); }
.un-tab:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.un-tab[aria-selected="true"] { border-color: var(--flame); border-left-color: var(--red); background: #fff; font-style: italic; color: var(--maroon); transform: translateX(6px); box-shadow: 0 0.75rem 2rem -1rem rgba(12, 74, 143, 0.35); }

/* panel: the class title across the top; below it a striped gold plate with the picture at the left,
   and a white sheet at the right holding the boys and the girls side by side, split by a dashed line */
.un-panel { display: grid; grid-template-columns: minmax(0, 19rem) minmax(0, 1fr); gap: clamp(1rem, 0.75rem + 1vw, 1.5rem); align-items: stretch; animation: un-in 0.5s ease both; }
.un-panel[hidden] { display: none; }
.un-panel__photo { margin: 0; align-self: start; }
.un-panel__photo img { display: block; width: 100%; max-width: 19rem; height: auto; border: 2px solid var(--flame); border-radius: var(--r-lg); background: #fff; }
.un-panel__lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: var(--r-lg); background: #fff; box-shadow: 0 1.5rem 3.5rem -2rem rgba(12, 74, 143, 0.35); overflow: hidden; }
.un-panel + .un-panel { margin-top: 2.5rem; }
.un-tabs.is-ready .un-panel + .un-panel { margin-top: 0; }

.un-list { padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); }
.un-list + .un-list { border-left: 2px dashed var(--line); }
.un-list__label { display: flex; align-items: center; gap: 0.75rem; margin: 0 0 1.25rem; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--maroon); }
.un-list__label::after { content: ""; flex: 1; height: 2px; background: var(--flame); }
.un-list ul { margin: 0; padding: 0; list-style: none; }
.un-list li { position: relative; padding: 0.8rem 0 0.8rem 1.75rem; border-bottom: 1px dotted var(--text); border-bottom-color: rgba(12, 74, 143, 0.3); font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem); line-height: 1.5; color: var(--ink); }
.un-list li:last-child { border-bottom: 0; }
.un-list li::before { content: ""; position: absolute; left: 0.15rem; top: 1.3rem; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--flame); box-shadow: 0 0 0 0.2rem rgba(254, 182, 40, 0.3); }
@keyframes un-in { from { opacity: 0; transform: translateY(0.75rem); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .un-panel { animation: none; } .un-tab { transition: none; } }

/* without script every panel shows, so the tab bar is hidden */
.un-tabs:not(.is-ready) { display: block; }
.un-tabs:not(.is-ready) .un-tabs__bar { display: none; }

@media (max-width: 1000px) {
  .un-panel__lists { grid-template-columns: minmax(0, 1fr); }
  .un-list + .un-list { border-left: 0; border-top: 2px dashed var(--line); }
}
@media (max-width: 800px) {
  .un-tabs { grid-template-columns: minmax(0, 1fr); }
  .un-tabs__bar, .un-panel, .un-tabs.is-ready .un-panel { grid-column: 1; grid-row: auto; }
  .un-tabs__bar { flex-direction: row; flex-wrap: wrap; gap: 0.5rem; }
  .un-tab { padding: 0.6rem 1.1rem; border-left-width: 1px; border-radius: 999px; font-family: var(--body); font-size: 0.9375rem; font-style: normal; }
  .un-tab::before { display: none; }
  .un-tab:hover, .un-tab[aria-selected="true"] { transform: none; }
  .un-tab[aria-selected="true"] { background: var(--flame); border-color: var(--flame); color: var(--band); box-shadow: none; }
  .un-panel { grid-template-columns: minmax(0, 1fr); }
  .un-panel__photo { max-width: 20rem; }
}

/* the tabs are in a row on top, the open group below them */
.un-tabs, .un-tabs.is-ready { display: block; }
.un-tabs__bar, .un-panel, .un-tabs.is-ready .un-panel { grid-column: auto; grid-row: auto; }
.un-tabs__bar { flex-direction: row; flex-wrap: wrap; gap: 0.6rem; margin-bottom: clamp(1rem, 0.75rem + 1.5vw, 1.75rem); padding: clamp(0.5rem, 0.4rem + 0.6vw, 0.75rem); }
.un-tab { flex: 1 1 10rem; justify-content: center; padding: 0.85rem 1.1rem; border: 1px solid var(--line-dark); border-radius: var(--r-lg); font-family: var(--display); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem); font-style: normal; transform: none; }
.un-tab:hover { transform: translateY(-2px); }
.un-tab[aria-selected="true"] { border-color: var(--flame); background: #fff; font-style: italic; color: var(--maroon); transform: none; box-shadow: 0 0.75rem 1.5rem -1rem rgba(0, 0, 0, 0.6); }
.un-tab::before { display: inline; }
@media (max-width: 520px) { .un-tab { flex-basis: 45%; padding: 0.7rem 0.75rem; } }

/* the photo box is as tall as the list box beside it: the frame is on the box, the picture fills it without being cut */
.un-panel { align-items: stretch; }
@media (min-width: 801px) {
  .un-panel__photo { align-self: stretch; position: relative; min-height: 20rem; overflow: hidden; border: 2px solid var(--flame); border-radius: var(--r-lg); background: #fff; }
  .un-panel__photo img { position: absolute; inset: 0; width: 100%; max-width: none; height: 100%; padding: 0; border: 0; border-radius: 0; object-fit: cover; object-position: center; }
}
