/* Course directory, feedback gallery and their home-page entry points. */
.hub-public, .hub-admin {
  --hub-ink: #191b1b;
  --hub-muted: #535c60;
  --hub-line: #d8dcda;
  --hub-teal: #176970;
  --hub-red: #971e12;
}
.hub-public { margin: 0; background: var(--paper); color: var(--ink); }
.hub-main { line-height: 1.5; }
.hub-public *, .hub-admin * { box-sizing: border-box; }
.hub-main a { color: inherit; }
.hub-public h1, .hub-public h2, .hub-public h3, .hub-public p { margin: 0; }
.hub-public a, .hub-public button, .hub-public select, .hub-admin :is(a,button,select) { -webkit-tap-highlight-color: transparent; }
.hub-public :focus-visible, .hub-admin :focus-visible { outline: 2px solid #176970; outline-offset: 3px; }
.hub-main { margin: 0 auto; padding: clamp(32px,5vw,76px) clamp(20px,8vw,126px) 60px; }
.hub-title { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; justify-content: space-between; padding-bottom: 26px; border-bottom: 2px solid var(--hub-ink); }
.hub-title h1 { color: #191b1b; font-weight: 800; letter-spacing: -.045em; }
.hub-title h1 { font-size: clamp(32px,4vw,48px); line-height: 1.15; }
.hub-title p { color: var(--hub-muted); margin-top: 10px; }
.hub-title .eyebrow { color: var(--teal); margin: 0 0 8px; }
.hub-jump, .hub-related, .hub-school-review { display: inline-flex; align-items: center; gap: .4em; width: fit-content; max-width: 100%; font-weight: 700; text-decoration: none; }
.hub-public .hub-jump, .hub-public .hub-related, .hub-public .hub-school-review { color: var(--hub-teal); }
a:is(:hover,:focus-visible) > .hub-arrow-label { text-decoration: underline; text-underline-offset: .22em; }
.hub-filters { display: grid; grid-template-columns: 1fr .85fr 1.2fr auto; column-gap: 16px; row-gap: 12px; align-items: end; padding: 22px 0; }
.hub-filter-search { display: contents; }
.hub-filters label, .hub-admin :is(.hub-admin-filters,.hub-edit-grid,.hub-upload) label { display: grid; gap: 5px; min-width: 0; color: #414b4d; font-size: 13px; font-weight: 700; }
.hub-filters :is(input, select,button), .hub-admin :is(input:not([type=hidden]),select,button) { min-width: 0; width: 100%; min-height: 44px; height: auto; margin: 0; border: 1px solid #c8cece; border-radius: 2px; font: inherit; background-color: white; color: #191b1b; }
.hub-filters :is(input,select), .hub-admin :is(input:not([type=hidden]),select) { padding: 8px 11px; font-size: 16px; }
.hub-filters select, .hub-admin select { text-overflow: ellipsis; }
.course-filters button.phx-select-trigger { width: 100%; min-height: 44px; padding-inline: 11px; }
@media (max-width: 680px) {
  .course-filters .phx-select-value,
  .course-filters select,
  .course-filters input[type="search"]::placeholder,
  body .course-filters input[type="search"]:not(:focus) { font-size: 12px !important; }
}
.hub-filters input:focus, .hub-filters select:focus, .hub-admin :is(input,select):focus { border-color: #53626a; }
.hub-filters button[type="submit"], .hub-admin button, .hub-add { width: auto; border-color: #202222; color: white; background: #202222; padding: 8px 21px; font-size: 15px; font-weight: 700; cursor: pointer; }
.hub-filters button[type="submit"]:hover, .hub-admin button:hover, .hub-add:hover { background: #384144; }
.hub-result { padding: 22px clamp(16px,2.8vw,32px) 10px; border: 1px solid var(--hub-line); background: #fff; }
.hub-result-head, .hub-result-head>div, .hub-admin-head, .hub-admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.hub-result-head, .hub-admin-head { justify-content: space-between; }
.hub-result-head { padding-bottom: 17px; }
.hub-result-head h2 { font-size: 22px; line-height: 1.3; overflow-wrap: anywhere; }
.hub-result-head span[role=status], .hub-reset { font-size: 13px; color: var(--hub-muted); }
.hub-related { font-size: 14px; }
.hub-course-list, .hub-admin-list { padding: 0; list-style: none; margin: 0; }
.hub-course-list li { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); align-items: center; gap: 16px; padding: 15px 0; border-top: 1px solid var(--hub-line); }
.hub-course-primary, .hub-course-info { min-width: 0; overflow-wrap: anywhere; }
.hub-code { color: var(--charcoal); font: 700 13px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace; }
.hub-course-primary h3 { margin: 3px 0 0; font-size: 17px; font-weight: 700; line-height: 1.35; }
.hub-course-info { display: grid; grid-template-columns: minmax(0,1fr) auto; column-gap: 12px; align-items: center; font-size: 14px; }
.hub-course-info .programme-tag { grid-column: 1; margin-top: 3px; }
.hub-school-review { grid-column: 2; grid-row: 1 / span 2; font-size: 13px; }
.hub-pages { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 18px; font-size: 13px; }
.hub-pages :is(a,span) { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 3px 12px; border: 1px solid #cfd3d1; color: #26585a; background: white; text-decoration: none; }
.hub-pages [aria-disabled] { color: #737879; background: transparent; }
.hub-gallery { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px 16px; padding: 4px 0 16px; }
.hub-review { display: block; height: 100%; text-decoration: none; }
.hub-thumb { width: 100%; aspect-ratio: 10 / 7; overflow: hidden; }
.hub-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border: 1px solid #e2e5e4;
  box-sizing: border-box;
}
.hub-review-copy { padding-top: 7px; overflow-wrap: anywhere; text-align: left; }
.hub-review-copy span { color: var(--hub-muted); font-size: 12px; }
.hub-review-copy h3 { font-size: 16px; line-height: 1.4; }
.hub-review:hover h3 { color: var(--hub-teal); }
.hub-empty { padding: 35px 0 50px; color: var(--hub-muted); }
.hub-empty a { display: inline-block; margin-top: 8px; color: var(--hub-teal); }
.hub-dialog { padding: 0; width: min(1000px,94vw); max-width: none; max-height: 92vh; max-height: 92dvh; color: #171717; border: 0; background: white; }
.hub-dialog[open] { display: flex; flex-direction: column; overflow: hidden; margin: auto; }
.hub-dialog::backdrop { background: rgb(0 0 0 / .72); }
.hub-dialog-bar { display: flex; flex: none; justify-content: space-between; gap: 12px; align-items: center; padding: 8px 14px; border-bottom: 1px solid #ddd; font-size: 14px; }
.hub-dialog-bar span { flex: 1; overflow-wrap: anywhere; }
.hub-dialog-bar button { min-height: 40px; flex: none; cursor: pointer; font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--line); padding: 4px 10px; }
.hub-dialog-body { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.hub-dialog-body img { display: block; margin-inline: auto; width: auto; height: auto; max-width: 100%; max-height: 76vh; max-height: 76dvh; object-fit: contain; }
.hub-dialog[data-zoom] .hub-dialog-body img { min-width: 150%; max-width: none; max-height: none; }
html:has(.hub-dialog[open]) { overflow: hidden; }
/* Homepage sections and the university atlas shared with the public directory. */
.home-directory, .home-feedback { margin-top: clamp(38px, 5vw, 78px); }
.hub-kicker {
  display: flex; gap: 10px; align-items: center; margin: 0 0 8px;
  color: var(--wine); font-size: 12px; font-weight: 800; line-height: 1.3; letter-spacing: .09em; text-transform: uppercase;
}
.hub-kicker::before { content: ""; width: 24px; height: 2px; flex: none; background: currentColor; }
.directory-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; align-items: flex-end; margin-bottom: 23px; }
.directory-head h3, .feedback-index h3 {
  margin: 0; color: var(--ink); font-size: clamp(29px, 2.7vw, 42px); line-height: 1.17; font-weight: 800; letter-spacing: -.045em;
}
.directory-count { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 9px 0 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.directory-count b { color: var(--ink); font-variant-numeric: tabular-nums; }
.directory-count span + span::before { content: "·"; margin-inline-end: 8px; color: var(--muted); }
.directory-tools { display: flex; flex: 0 1 475px; justify-content: flex-end; gap: 12px 24px; align-items: center; }
.directory-tools .home-archive-link { flex: none; }
.directory-search { display: flex; flex: 1; max-width: 320px; min-width: 0; }
.directory-search input[type="search"] {
  flex: 1; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line);
  border-radius: 2px 0 0 2px; appearance: none; background: white; color: var(--ink); font: inherit; font-size: 16px;
}
.directory-search .featured-contact { flex: none; min-height: 44px; border: 0; border-radius: 0 2px 2px 0; padding: 0 18px; font-size: 14px; cursor: pointer; }
.home-archive-link {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content; min-height: 42px; color: var(--wine);
  font-size: 14px; line-height: 1.3; font-weight: 750; text-decoration: none;
}
.home-directory :focus-visible, .home-feedback :focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }
.directory-empty { padding: 20px; color: var(--muted); }
.hub-main:has(.school-atlas) { padding-top: clamp(24px,3.2vw,48px); }
.atlas-filters summary { display: list-item; width: fit-content; padding: 12px 2px; font-size: 14px; font-weight: 700; cursor: pointer; }
.atlas-filters[open] .hub-filters { padding-top: 3px; }
.hub-main:has(.atlas-filters) .hub-title { border-bottom-width: 1px; border-bottom-color: var(--line); }
.school-atlas {
  display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.35fr);
  align-items: stretch; background: var(--white);
  border: 1px solid var(--line); border-radius: 4px;
}
.school-atlas.atlas-index-only { grid-template-columns: minmax(0,1fr); }
.atlas-map {
  --atlas-label-size: 12px;
  --atlas-blue: #79d3df;
  display: flex; flex-direction: column; margin: 0; min-width: 0;
  background: var(--charcoal); color: var(--white); border-radius: 3px 0 0 3px;
}
.atlas-map figcaption { padding: clamp(17px,1.8vw,30px) clamp(16px,2vw,32px) 0; }
.atlas-caption-head, .atlas-caption-details { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.atlas-term { padding: 2px 7px; border-radius: 3px; background: var(--atlas-blue); color: var(--ink); font-size: 12px; font-weight: 700; line-height: 16px; }
.atlas-caption-details { justify-content: space-between; }
.atlas-updated { white-space: nowrap; font-size: 12px; font-variant-numeric: tabular-nums; }
.atlas-map figcaption h3, .atlas-index > header h3 { margin: 0; font-size: clamp(18px,1.5vw,23px); font-weight: 750; line-height: 1.35; letter-spacing: -.02em; }
.atlas-map figcaption h3 { color: var(--white); }
.atlas-map figcaption p { margin: 5px 0 0; font-size: 13px; color: rgb(255 255 255 / .74); line-height: 1.5; }
.atlas-drawing { display: block; width: 100%; height: auto; max-height: 500px; margin-block: auto; overflow: visible; }
.atlas-pin { cursor: pointer; text-decoration: none; }
.atlas-pin rect { fill: transparent; }
.atlas-pin circle { fill: var(--atlas-blue); stroke: var(--charcoal); stroke-width: 1.4; }
.atlas-active-line { pointer-events: none; fill: none; stroke: var(--atlas-blue); opacity: .8; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.atlas-active-dot { visibility: hidden; pointer-events: none; fill: var(--atlas-blue); }
.atlas-active-dot.is-active { visibility: visible; }
.map-school-label {
  height: 100%; display: grid; align-content: center; color: var(--white);
  font: 500 var(--atlas-label-size)/1.15 system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  text-wrap: balance; overflow-wrap: anywhere;
}
.map-school-label.left { text-align: right; }
.atlas-pin:is(:hover,:focus-visible) .map-school-label { color: var(--atlas-blue); }
.atlas-map .atlas-pin:focus-visible { outline: none; }
.atlas-pin:focus-visible rect { stroke: var(--atlas-blue); stroke-width: 1; stroke-dasharray: 3 2; }
.atlas-source { display: block; margin: 0 clamp(16px,2vw,32px) 14px; color: rgb(255 255 255 / .65); font-size: 10px; line-height: 1.3; }
.atlas-source a { color: inherit; text-underline-offset: 2px; }
.atlas-source a:focus-visible { outline-color: var(--atlas-blue); }
.atlas-index { min-width: 0; padding: clamp(16px,1.65vw,28px) clamp(16px,2vw,32px) 10px; }
.atlas-index > header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 14px; padding-bottom: 11px; }
.atlas-index > header .home-archive-link { min-height: 32px; color: var(--wine); }
.atlas-school-scroll { max-height: var(--atlas-five-rows, 32rem); overflow-y: auto; scrollbar-gutter: stable; padding-inline-end: 14px; }
.atlas-school-scroll::-webkit-scrollbar { width: 4px; }
.atlas-school-scroll::-webkit-scrollbar-track { background: transparent; }
.atlas-school-scroll::-webkit-scrollbar-thumb { background: #bbb; border-radius: 4px; }
.atlas-school-scroll::-webkit-scrollbar-thumb:hover { background: #a4a4a4; }
@supports not selector(::-webkit-scrollbar) {
  .atlas-school-scroll { scrollbar-width: thin; scrollbar-color: #bbb transparent; }
}
.atlas-school-scroll:focus-visible, .atlas-schools a:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.atlas-schools { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: clamp(16px,2.2vw,36px); padding: 0; margin: 0; list-style: none; }
.atlas-schools > li { display: flex; min-width: 0; border-top: 1px solid var(--line); }
.atlas-schools a { display: flex; flex-direction: column; gap: 6px; width: 100%; min-width: 0; padding: 14px 0; color: var(--ink); text-decoration: none; }
.atlas-entry-head { display: flex; align-items: baseline; justify-content: space-between; gap: 7px; }
.atlas-entry-head strong { font-size: clamp(15px,1.3vw,20px); font-weight: 750; line-height: 1.3; overflow-wrap: anywhere; }
.atlas-entry-count { flex: none; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); }
.atlas-entry-count i { padding-left: 3px; color: var(--muted); font-size: 14px; font-weight: 750; font-style: normal; }
.atlas-programmes { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px; margin: 0; padding: 0; list-style: none; }
.atlas-programmes li { display: flex; max-width: 100%; }
.programme-tag {
  display: inline-block; width: fit-content; max-width: 100%; padding: 1px 5px;
  background: #e3f1f0; color: var(--teal); border-radius: 3px;
  font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: normal; overflow-wrap: anywhere;
}
.atlas-programmes .programme-tag { padding: 0 4px; font-size: 11px; line-height: 15px; }
.atlas-schools a:is(:hover,:focus-visible) :is(strong,.atlas-entry-count i) { color: var(--wine); }
.atlas-dialog {
  width: min(720px, calc(100% - 32px)); max-width: none; max-height: 86vh; max-height: 86dvh; margin: auto;
  padding: 0; color: var(--ink); border: 0; background: white; border-radius: 4px;
}
.atlas-dialog[open] { display: flex; flex-direction: column; }
.atlas-dialog::backdrop { background: rgb(0 0 0 / .60); }
html:has(.atlas-dialog[open]) { overflow: hidden; }
.atlas-dialog > header, .atlas-dialog > footer { flex: none; padding: 16px clamp(16px,3vw,28px); background: white; }
.atlas-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #101010; color: white; }
.atlas-dialog .hub-kicker { margin: 0 0 4px; color: #79d3df; }
.atlas-dialog h2 { margin: 0; color: white; font-size: clamp(22px,2.1vw,31px); line-height: 1.25; letter-spacing: -.03em; overflow-wrap: anywhere; }
.atlas-dialog [data-atlas-close] { position: relative; flex: none; min-height: 32px; padding: 0 8px; background: transparent; border: 1px solid #777; border-radius: 3px; color: white; font: inherit; font-size: 14px; cursor: pointer; }
.atlas-dialog [data-atlas-close]:focus-visible { outline: 2px solid white; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .atlas-dialog [data-atlas-close]:hover { border-color: white; }
}
.atlas-dialog-body { overflow: auto; overscroll-behavior: contain; padding: 0 clamp(16px,3vw,28px) 12px; }
.atlas-dialog-body [data-atlas-status] { margin: 18px 0; }
.atlas-dialog-body [data-atlas-status]:empty { display: none; }
.atlas-panel-tools { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 3px 12px; padding: 14px 0; }
.atlas-panel-tools .hub-school-review { min-height: 36px; color: var(--teal); }
.atlas-panel-tools label { display: flex; max-width: 100%; white-space: nowrap; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.atlas-panel-tools select { --admin-select-inset: 6px; field-sizing: content; min-width: 0; min-height: 32px; max-width: 72%; padding: 3px 24px 3px 8px; border: 1px solid var(--line); border-radius: 2px; background-color: white; color: var(--ink); font-size: 14px; }
.atlas-panel-tools .phx-select-trigger { width: auto; min-height: 32px; padding: 3px 8px; gap: 7px; font-size: 14px; }
.atlas-panel-tools .phx-select-trigger::after { width: 7px; height: 7px; }
.home-directory .atlas-panel-tools select {
  -webkit-appearance: none; appearance: none;
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23535b5d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 6px center / 14px 14px no-repeat;
}
@media (forced-colors: active) {
  .home-directory .atlas-panel-tools select { -webkit-appearance: auto; appearance: auto; background-image: none; }
}
.atlas-dialog [data-atlas-major] h3 { margin: 8px 0 2px; font-size: 14px; line-height: 1.45; }
.atlas-dialog [data-atlas-major] ul { list-style: none; padding: 0; margin: 0 0 13px; }
.atlas-dialog [data-atlas-major] li { display: grid; grid-template-columns: minmax(78px,.36fr) minmax(0,1fr); gap: 12px; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.atlas-dialog [data-atlas-major] li b { color: var(--charcoal); font: 700 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.atlas-dialog > footer { border-top: 1px solid var(--line); padding-block: 5px; }
.atlas-dialog > footer a { text-decoration: none; display: inline-flex; align-items: center; gap: 7px; min-height: 42px; color: var(--teal); font-size: 14px; font-weight: 700; }

.home-feedback { display: grid; grid-template-columns: minmax(210px,.78fr) minmax(0,2.65fr); gap: clamp(20px,3vw,48px); }
.feedback-index { padding: clamp(20px,2.1vw,34px); background: var(--charcoal); color: white; display: flex; flex-direction: column; }
.feedback-index .hub-kicker { color: #79d3df; }
.feedback-index h3 { color: white; }
.feedback-count { margin: 10px 0 20px; font-size: 14px; line-height: 1.5; color: rgb(255 255 255 / .74); }
.feedback-count b { color: white; font-variant-numeric: tabular-nums; }
.feedback-types ul { display: grid; list-style: none; padding: 0; margin: 0; }
.feedback-types li { border-top: 1px solid rgb(255 255 255 / .20); }
.feedback-types a { display: flex; min-height: 36px; align-items: center; justify-content: space-between; gap: 8px; color: white; font-size: 14px; }
.feedback-types a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.feedback-types b { font: 500 12px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; color: rgb(255 255 255 / .74); }
.feedback-index .home-archive-link { margin-top: auto; padding-top: 12px; color: white; }
.feedback-index a:focus-visible { outline-color: var(--white) !important; }
.feedback-content { min-width: 0; display: grid; }
.feedback-schools { border-top: 2px solid var(--ink); padding-top: 16px; display: grid; grid-template-rows: auto 1fr; gap: 16px; }
.feedback-schools h4 { margin: 0; font-size: 20px; line-height: 1.3; }
.feedback-schools ul { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); grid-auto-rows: 1fr; gap: 8px; list-style: none; margin: 0; padding: 0; }
.feedback-schools li { display: flex; }
.feedback-schools a { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 5px; width: 100%; padding: 10px clamp(8px,1vw,16px); background: #f5f6f4; color: var(--ink); font-size: clamp(14px,1.1vw,17px); font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; text-decoration: none; }
.feedback-schools small { color: #556463; font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums; }
.feedback-schools a:is(:hover,:focus-visible) { background: #e6f1ef; color: var(--teal); text-decoration: none; }
@media (max-width: 1023px) {
  .school-atlas { grid-template-columns: minmax(0,1fr); }
  .atlas-map { border-radius: 3px 3px 0 0; }
  .atlas-drawing { max-height: 390px; }
  .atlas-index { padding-inline: 14px; }
  .atlas-school-scroll { max-height: min(var(--atlas-five-rows, 32rem), 60vh); max-height: min(var(--atlas-five-rows, 32rem), 60svh); }
  .atlas-schools { column-gap: 14px; }
  .atlas-entry-head { flex-wrap: wrap; gap: 2px 6px; }
  .atlas-entry-count i { display: none; }
  .home-feedback { grid-template-columns: minmax(186px,.78fr) minmax(0,2.65fr); gap: 18px; }
}
@media (max-width: 760px) {
  .home-directory, .home-feedback { margin-top: 36px; }
  .directory-head { gap: 12px; margin-bottom: 15px; }
  .directory-tools { flex-basis: 100%; flex-wrap: wrap; width: 100%; justify-content: space-between; gap: 5px 12px; }
  .directory-search { flex: 1 1 170px; max-width: 340px; }
  .home-archive-link { font-size: 13px; }
  .atlas-map figcaption { padding-block-start: 14px; }
  .atlas-map { --atlas-label-size: 14px; }
  .atlas-index { padding: 16px 14px 6px; }
  .atlas-entry-count i { display: inline; }
  .atlas-entry-head { flex-wrap: nowrap; }
  .atlas-schools a { padding-block: 10px; }
  .home-feedback { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .feedback-index { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; padding: 19px; }
  .feedback-index header { grid-column: 1; }
  .feedback-count { margin: 6px 0 0; }
  .feedback-index .home-archive-link { grid-column: 2; grid-row: 1; align-self: end; margin: 0; padding: 0; }
  .feedback-types { grid-column: 1/-1; }
  .feedback-types ul { grid-template-columns: repeat(auto-fit,minmax(85px,1fr)); gap: 0 14px; }
  .feedback-types a { min-height: 40px; font-size: 13px; }
  .feedback-schools { padding-top: 12px; gap: 10px; }
  .feedback-schools h4 { font-size: 17px; }
  .feedback-schools ul { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
  .feedback-schools:lang(en) ul { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .feedback-schools a { min-height: 48px; gap: 2px; padding: 7px 8px; font-size: 13px; }
  .feedback-schools small { font-size: 11px; }
}
@media (max-width: 540px) {
  .directory-head {
    display: grid; grid-template: "kicker kicker" auto "title title" auto "count archive" auto "search search" auto / minmax(0,1fr) auto;
    gap: 0 8px;
  }
  .directory-head > div { display: contents; }
  .directory-head .eyebrow { grid-area: kicker; }
  .directory-head h3 { grid-area: title; }
  .directory-count { grid-area: count; align-self: center; margin-top: 0; }
  .directory-tools .home-archive-link { grid-area: archive; min-height: 44px; }
  .directory-search { grid-area: search; max-width: none; }
  .atlas-schools { grid-template-columns: minmax(0,1fr); }
  .atlas-entry-head strong { font-size: 17px; }
  .atlas-schools a { gap: 5px; padding-block: 13px; }
  .atlas-map { --atlas-label-size: clamp(16px, calc(39px - 5.6vw), 21px); }
  .map-school-label { line-height: 1.04; }
  .atlas-programmes .programme-tag { font-size: 11.5px; line-height: 16px; }
  .atlas-dialog .atlas-panel-tools { gap: 6px 12px; }
  .atlas-source { margin-block-end: 7px; }
  .atlas-dialog { width: calc(100% - 16px); max-height: 90vh; max-height: 90dvh; }
}
@media (pointer: coarse) {
  .atlas-panel-tools label { min-height: 44px; }
  .atlas-panel-tools select { font-size: 16px; }
  .hub-dialog-bar button { min-width: 44px; min-height: 44px; }
  .atlas-dialog [data-atlas-close] { min-width: 44px; }
  .atlas-dialog [data-atlas-close]::before { content: ""; position: absolute; inset: -7px -1px; }
  .atlas-dialog > footer a, .feedback-types a { min-height: 44px; }
}
@media (pointer: coarse) and (min-width: 761px) {
  .feedback-schools a { min-height: 44px; }
}
@media (max-width: 380px) {
  .feedback-schools ul { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .directory-count { gap: 2px 8px; font-size: 13px; }
  .directory-count span + span::before { content: none; }
}
.hub-admin { max-width: 1500px; margin: 28px auto; color: var(--hub-ink); }
.hub-admin-card { background: white; border: 1px solid var(--hub-line); padding: clamp(14px,2.4vw,30px); }
.hub-admin-card h2 { margin: 0; font-size: 21px; }
.hub-admin-head { margin-bottom: 19px; }
.hub-add { display: inline-flex; align-items: center; min-height: 42px; color: white; text-decoration: none; }
.hub-admin-filters { display: grid; grid-template-columns: minmax(140px,2fr) minmax(120px,1fr) minmax(110px,.65fr) auto; gap: 10px; align-items: end; max-width: 920px; }
.hub-admin-count, .hub-admin-notice { font-size: 13px; color: #3d5d59; }
.hub-admin-list li { display: grid; grid-template-columns: minmax(0,1fr) 70px auto; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--hub-line); }
.hub-admin-item { display: flex; align-items: center; gap: 12px; min-width: 0; overflow-wrap: anywhere; }
.hub-admin-item strong, .hub-admin-item small { display: block; }
.hub-admin-item small { color: var(--hub-muted); font-size: 12px; margin-top: 3px; }
.hub-admin-item img { width: 56px; height: 52px; object-fit: contain; background: #f3f4f1; flex: none; }
.hub-state { font-size: 12px; padding: 2px 6px; width: fit-content; color: #505656; background: #eee; }
.hub-state[data-published="1"] { color: #205c51; background: #e5f1ed; }
.hub-item-links { display: flex; gap: 14px; }
.hub-item-links a, .hub-admin-actions a, .hub-upload a { display: inline-flex; align-items: center; min-height: 38px; font-size: 14px; color: #176970; }
.hub-editor { max-width: 960px; }
.hub-edit-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 18px 0; }
.hub-upload { margin: 20px 0; }
.hub-upload small { display: block; margin-top: 5px; color: var(--hub-muted); }
.hub-admin-actions { gap: 16px; margin-top: 18px; }
.hub-admin-actions button { width: auto; }
.hub-admin button.hub-danger { background: #922218; border-color: #922218; }

@media(max-width: 820px) {
  .hub-gallery { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px 12px; }
  .hub-filters { grid-template-columns: 1fr 1fr; }
  .hub-filters button[type="submit"] { justify-self: start; }
  .hub-main { padding-inline: 18px; }
}
@media(max-width: 650px) {
  .hub-main { padding: 24px 14px 34px; }
  .hub-title { display: block; padding-bottom: 12px; }
  .hub-title p { font-size: 14px; margin-top: 6px; }
  .hub-jump { min-height: 36px; margin-top: 3px; font-size: 14px; }
  .hub-filters { padding: 13px 0 16px; gap: 8px; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hub-filter-search { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 8px; }
  .hub-filters button[type="submit"] { padding-inline: 14px; }
  .hub-result { padding: 13px 11px 4px; }
  .hub-result-head { gap: 3px 9px; padding-bottom: 10px; }
  .hub-result-head h2 { font-size: 18px; }
  .hub-result-head>div { gap: 5px 8px; }
  .hub-course-list li { display: block; padding: 11px 0; }
  .hub-course-info { display: flex; flex-wrap: wrap; align-items: center; gap: 0 7px; margin-top: 4px; }
  .hub-course-info span:first-child { color: var(--hub-muted); font-size: 12px; }
  .hub-course-info .programme-tag { margin-top: 0; }
  .hub-course-primary h3 { font-size: 15px; }
  .hub-school-review { margin-left: auto; min-height: 30px; font-size: 12px; }
  .hub-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 8px; padding-bottom: 10px; }
  .hub-review-copy span { font-size: 12px; }
  .hub-review-copy h3 { font-size: 15px; line-height: 1.45; }
  .hub-dialog { width: calc(100% - 16px); }
  .hub-dialog-bar { gap: 6px; padding: 6px 8px; font-size: 13px; }
  .hub-dialog-bar button { padding-inline: 7px; }
  .hub-admin { margin: 18px auto; }
  .hub-edit-grid { grid-template-columns: 1fr; gap: 10px; }
  .hub-admin-filters { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: end; }
  .hub-admin-filters label:first-child { grid-column: 1 / -1; }
  .hub-admin-filters button { grid-column: 1 / -1; }
  .hub-admin-list li { grid-template-columns: minmax(0,1fr) auto; gap: 2px 8px; }
  .hub-admin-item { grid-column: 1 / -1; gap: 8px; font-size: 14px; }
  .hub-admin-list li small { font-size: 11px; }
  .hub-item-links a { min-height: 34px; }
}

.atlas-drawing.atlas-dense { max-height: none; }
@media (max-height: 520px) and (orientation: landscape) and (max-width: 1023px) {
  .atlas-drawing.atlas-dense { max-height: 95svh; }
  .atlas-map { --atlas-label-size: clamp(18px, calc(42px - 6vh), 22px); }
}
.atlas-dialog [data-atlas-major] a, .hub-course-primary h3 a, .module-page nav a, .module-page dd a {
  color: inherit; text-decoration: underline; text-decoration-color: #9db9b7; text-underline-offset: .18em;
}
.atlas-dialog [data-atlas-major] a:hover, .hub-course-primary h3 a:hover, .module-page dd a:hover { color: var(--teal); }
.module-page { max-width: 1120px; overflow-wrap: anywhere; }
.module-page nav { color: var(--hub-muted); font-size: 14px; margin-bottom: 30px; }
.module-page dl { margin: 0 0 28px; }
.module-page dl > div { display: grid; grid-template-columns: minmax(76px, 20%) 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--hub-line); }
.module-page dt { color: var(--hub-muted); }
.module-page dd, .module-page dd ul { margin: 0; padding: 0; }
.module-page dd ul { list-style: none; }
.module-page dd li + li { margin-top: .5rem; }
.module-page a.featured-contact { display: inline-block; color: white; padding: 11px 20px; background: var(--wine, #862319); }
@media (max-width: 650px) {
  .module-page dl { font-size: 15px; line-height: 1.55; }
  .module-page nav { margin-bottom: 16px; }
  .module-page nav a { display: inline-block; align-content: center; min-height: 40px; }
}
