/* School-page additions owned by the generator. Do not edit v6.css. */

/* Compact rating by the school name: stars, then the number, then (N).
   Sizes match the directory-with-stars mockup (13px stars, 16px number). */
.ob-hero .ob-nrate {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  min-width: 0;
  line-height: 1;
}
.ob-hero .ob-nrate .pyr.pyr-line {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  flex: none;
  width: auto;
  height: auto;
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
}
/* Keep hero pyramid stars at 38px; only shrink this compact row. */
.ob-hero .ob-nrate .st,
.ob-hero .ob-nrate span.st,
.ob-hero .ob-nrate .pyr-line .st {
  position: relative;
  display: inline-block;
  width: 13px;
  height: 13px;
  min-width: 13px;
  min-height: 13px;
  max-width: 13px;
  max-height: 13px;
  flex: 0 0 13px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
  box-sizing: content-box;
}
.ob-hero .ob-nrate .st svg {
  width: 13px;
  height: 13px;
  display: block;
  overflow: visible;
  margin: 0;
}
.ob-hero .ob-nrate.is-hi .st:not(.flat):not(.empty) svg {
  filter: drop-shadow(0 1px 1px rgba(5,0,20,.35));
}
.ob-hero .ob-nrate .st.flat svg,
.ob-hero .ob-nrate .st.empty svg { filter: none; }
.ob-hero .ob-nrate-num {
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font: 600 16px/.9 "Clash Display", sans-serif;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  color: var(--tx);
  line-height: .9;
}
.ob-hero .ob-nrate.is-hi .ob-nrate-num {
  filter: drop-shadow(0 0 6px rgba(245,184,61,.18));
}
.ob-hero .ob-nrate.is-lo .ob-nrate-num,
.ob-hero .ob-nrate.is-none .ob-nrate-num {
  color: var(--tx2);
  filter: none;
}
.ob-hero .ob-nrate-n {
  font: 500 11px/1 Satoshi, sans-serif;
  color: var(--tx2);
  white-space: nowrap;
}
.ob-hero .ob-nrate-num .ob-glint {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}


/* Empty-field lines: small, muted, theme-matched (t1536u). */
.ob-gap {
  margin: 0;
  font: 400 13px/18px Satoshi, sans-serif;
  color: var(--tx3);
}
.ob-reg .ob-gap { display: block; width: 100%; margin: 4px 0 0; }

/* One small invite to claim, only on unclaimed pages that still have gaps.
   Hidden in the school-account (owner) preview view. */
.ob-claim-invite { margin: 20px 4px 0; }
.ob-claim-invite a {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 12px;
  font: 500 13px/1.35 Satoshi, sans-serif;
  color: var(--tx2);
  background: var(--gl2);
  box-shadow: inset 0 0 0 .5px var(--ln);
  text-decoration: none;
}
.ob-claim-invite a:hover,
.ob-claim-invite a:focus-visible { color: var(--tx); }
html[data-preview-view="owner"] .ob-claim-invite { display: none !important; }

/* Courses / Reviews / Licences & ratings on one stats row, matching the section-heading style. */
.ob-statsrow{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  column-gap:8px;
  align-items:start;
  margin:0 0 14px;
}
.ob-crs .ob-statsrow .ob-h,
.ob-statsrow .ob-stat-h{
  margin:0;
  font:600 16px/1.15 'Clash Display',sans-serif;
  letter-spacing:-.02em;
  color:var(--tx);
  display:block;
}
.ob-statsrow .ob-stat{
  display:flex;
  flex-direction:column-reverse;
  gap:2px;
  min-width:0;
  text-decoration:none;
  color:inherit;
}
.ob-statsrow .ob-stat b{
  font:600 26px/.9 'Clash Display',sans-serif;
  letter-spacing:-.03em;
  font-variant-numeric:tabular-nums;
  color:var(--tx);
}
.ob-statsrow .ob-stat-h{
  overflow:hidden;
}
.ob-crs .ob-statsrow .ob-h,
.ob-statsrow .ob-stat-h{
  font-size:14px;
}
@media (min-width:720px){
  .ob-crs .ob-statsrow .ob-h,
  .ob-statsrow .ob-stat-h{font-size:22px}
  .ob-statsrow .ob-stat b{font-size:32px}
}

/* Compact member form + vote row, using existing v6 classes only. */
.ob-revs .ob-form{margin:16px 0}
.ob-wcount{margin:6px 0 0;font:400 12px/16px Satoshi,sans-serif;color:var(--tx2)}
.ob-review .ob-ra{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:12px}
.ob-review .ob-ra .ob-ract{margin:0}


/* Vote / report buttons: reset native button chrome and draw the chevrons. */
.ob-vote{display:flex;align-items:center;gap:0;color:var(--tx2)}
.ob-vote .ap-vb{
  appearance:none;-webkit-appearance:none;border:0;background:none;box-shadow:none;
  padding:0;margin:0;color:inherit;display:grid;place-items:center;
  width:36px;height:40px;
}
.ob-vote .ap-vb svg,.ob-vote .ob-arr{
  fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
  width:16px;height:16px;display:block;
}
.ob-vote .ap-net{
  min-width:1.4rem;text-align:center;font:600 13px/1 'General Sans',sans-serif;color:var(--tx);
}

/* ===== MOCKUP AFTER (13 Nov): page-level fixes. Same tokens; motion uses transform/opacity with cubic-bezier(.32,.72,0,1). ===== */
/* Score shows once (hero). The line under it carries the one review count. */
.ob-hero .ob-from{color:var(--tx2)}
.ob-hero .ob-from.is-wait{max-width:34ch;font:500 13px/18px Satoshi,sans-serif;color:var(--tx2)}

/* Contact row (MT t329u, t331u): plain icon + label links, no boxes, the same look as About's row.
   Shown in the hero below 1024px (phone + iPad); from 1024px About sits beside Bases and carries it.
   Centred both ways: three equal slots capped at 148px and centred in the card, so iPad doesn't
   push Call and Website out to the edges; 8px above and below the 44px row, and the facts line
   directly under it starts on its own hairline, so the row sits midway between the two lines. */
.ob-hero .ob-hcontact,
.ob-aboutc .ob-cbtn{display:grid;grid-template-columns:repeat(3,minmax(0,148px));justify-content:center;column-gap:8px;padding:8px 0;border-top:.5px solid var(--ln)}
.ob-hero .ob-hcontact{margin-top:16px}
.ob-hero .ob-hcontact+.ob-facts{margin-top:0}
.ob-aboutc .ob-cbtn{margin-top:16px}
.ob-hc{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:44px;padding:0;border:0;border-radius:0;
  background:none;box-shadow:none;font:600 13px/1 'General Sans',sans-serif;color:var(--tx);text-decoration:none;white-space:nowrap;
  transition:opacity .2s cubic-bezier(.32,.72,0,1)}
.ob-cbtn .ob-clink{display:flex;min-width:0;white-space:nowrap}
.ob-hc svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.ob-hc:focus-visible,.ob-cbtn .ob-clink:focus-visible{outline:2px solid var(--acc);outline-offset:2px;border-radius:8px}
@media (hover:hover){a.ob-hc:hover,.ob-cbtn a.ob-clink:hover{opacity:.72}}
.ob-hc[aria-disabled="true"],.ob-cbtn .ob-clink.is-off{opacity:.38;cursor:not-allowed;pointer-events:none;text-decoration:none}
@media (max-width:1023px){ .ob-about-sec .ob-cbtn{display:none} }
@media (min-width:1024px){ .ob-hero .ob-hcontact{display:none} }
@media (prefers-reduced-motion:reduce){ .ob-hc,.ob-cbtn .ob-clink{transition:none} }

/* Unclaimed: one clear claim step in the top card. */
.ob-claim-step{display:flex;flex-direction:column;gap:12px;margin-top:16px;padding:16px;border-radius:16px;
  background:var(--gl2);box-shadow:inset 0 0 0 .5px var(--ln)}
.ob-claim-step h2{margin:0;font:600 18px/1.2 'Clash Display',sans-serif;letter-spacing:-.02em;color:var(--tx)}
.ob-claim-step p{margin:4px 0 0;font:400 14px/20px Satoshi,sans-serif;color:var(--tx2)}
.ob-claim-btn{align-self:flex-start;min-height:44px;display:inline-flex;align-items:center;padding:0 20px;text-decoration:none}
@media (min-width:820px){ .ob-claim-step{flex-direction:row;align-items:center;justify-content:space-between} .ob-claim-btn{align-self:center;flex:none} }
html[data-preview-view="owner"] .ob-claim-step{display:none!important}
.ob-about-sec.is-empty .ob-about p.ob-gap+p.ob-gap{margin-top:2px}
/* About shares the Bases list's 16px inset, so text, hairlines and contact links start on one line in .ob-mid. */
.ob-about-sec .ob-aboutc{padding:4px 16px}

/* Courses: one heading with its count; groups sit in their own aligned columns.
   1 column on phones, 2 on iPad (700-1023px), 3 from 1024px, so Licences / Ratings / Other never cram. */
.ob-cr-n{margin-left:6px;font:500 12px/16px 'JetBrains Mono',monospace;color:var(--tx2)}
.ob-crs .ob-cr-groups.is-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;align-items:start}
@media (min-width:700px){ .ob-crs .ob-cr-groups.is-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 32px} }
@media (min-width:1024px){ .ob-crs .ob-cr-groups.is-grid{grid-template-columns:repeat(3,minmax(0,1fr))} }

/* Rating card without its own score: written + rated-4.0+ beside the 5-to-1 bars. */
.ob-ratewide.is-noscore{display:grid;grid-template-columns:minmax(0,1fr);row-gap:14px}
.ob-ratewide.is-noscore .ob-ratechips{grid-column:1;grid-row:1;margin:0;padding:0;border:0}
.ob-ratewide.is-noscore .ob-ratewide-bars{grid-column:1;grid-row:2}
@media (min-width:820px){
  .ob-ratewide.is-noscore{grid-template-columns:auto minmax(0,1fr);column-gap:40px;align-items:center}
  .ob-ratewide.is-noscore .ob-ratechips{flex-direction:column;gap:10px}
  .ob-ratewide.is-noscore .ob-ratewide-bars{grid-column:2;grid-row:1}
}
.ob-ratewide.is-wait .ob-wait{margin:0;font:400 14px/20px Satoshi,sans-serif;color:var(--tx2)}
.ob-rscore.is-hidden-stars:empty{display:none}
.ob-empty a{color:var(--tx);font-weight:600}

/* Contrast: small grey text moves from the faintest grey (--tx3, ~2.5:1 on Pearl) to the secondary grey (--tx2, ~5:1). */
.ob-gap,.ob-handle.is-none,.ob-rtext.is-none,.ob-ex,.ob-hint,.ob-cr-pill-meta,.ob-cr-detail,.ob-cr-row-meta,.ob-course-i,.ob-quota i{color:var(--tx2)}
.ob-upd{font-size:12px}

.ob-hero .ob-from.is-zero{margin-top:14px;text-align:left;font:500 13px/18px 'JetBrains Mono',monospace}
.ob-hero .ob-claim-step+.ob-facts{margin-top:16px}

/* Write a review (MT t331u, t332u, t341u): the seven category rows stay on the
   locked v6 sequence (member/04): name with its wrapped detail in column 1,
   five stars in the 110px column 2, and the live chosen-star number (or –) in
   column 3, in the same 22px Clash Display tabular figures as the category
   averages above. Overall's number still sits ON TOP of its five stars.
   Star buttons fill the 110px column: 22x44 tap targets. */
.ob-starcol .ob-prow .ob-pick button{width:22px;height:44px;margin:0}
.ob-starcol .ob-live{align-items:end;min-height:0;margin:0 0 16px;padding:0}
.ob-starcol .ob-live .ob-live-l{align-self:end;line-height:44px}
.ob-starcol .ob-live .ob-live-sc{grid-column:2 / 4;grid-row:1;justify-self:stretch;display:flex;flex-direction:column-reverse;align-items:flex-start;gap:0;width:auto;min-width:0;min-height:0;margin:0}
.ob-starcol .ob-live .ob-live-sc .pyr-line{height:44px;align-self:flex-start}
.ob-starcol .ob-live .ob-live-sc b.ob-live-num{align-self:flex-start;width:auto;margin:0 0 0 -1px;padding:0;text-align:left;font-variant-numeric:tabular-nums}
.ob-starcol .ob-prow b.ob-cat-num{font-variant-numeric:tabular-nums}
.ob-starcol .ob-prow:not(.is-hi):not(.is-lo) b.ob-cat-num{color:var(--tx2);filter:none}

/* A stars-only rating is private to its author (MT t333u): one quiet card, no votes, add text later. */
.ob-review.is-rateonly .ob-rnote{margin:8px 0 0;font:500 12px/16px Satoshi,sans-serif;color:var(--tx2)}
.ob-review.is-rateonly .ob-ra{justify-content:flex-start}
.ob-ownact.is-add{color:var(--tx);text-decoration:none;display:inline-flex;align-items:center}

/* Long school names (over 40 characters) step down so phones don't stack 6 oversized lines. */
.ob-idrow.is-longname .ob-name{font-size:32px;line-height:36px;letter-spacing:-.025em}
@media (min-width:700px){ .ob-idrow.is-longname .ob-name{font-size:40px;line-height:44px} }


/* Hero score (MT t341u): on a phone the 4.3 fills the leftover row beside the
   star pyramid (root 16 + hero 20 + pyramid 80 + 12 gap, then cap at 147px so
   a 390px screen is full without overflow). On iPad it steps up from the locked
   88px to 120px. Hidden-rating dashes stay at 56px. Desktop from 1024px stays 88px. */
@media (max-width:819px){
  .ob-hero .ob-rate{gap:12px}
  .ob-hero .ob-big:not(.is-none){font-size:clamp(96px,calc((100vw - 164px) / 1.54),147px);line-height:.76;min-width:0}
}
@media (min-width:820px) and (max-width:1023px){
  .ob-hero .ob-big:not(.is-none){font-size:120px;line-height:.76}
}

/* ===== OPTION A — hero-first ===== */
.ob-hero .ob-claim-step{margin-top:14px}
.ob-crscard.ob-card.va-card{border-radius:24px;background:var(--gl);box-shadow:inset 0 1px 0 var(--hl),inset 0 0 0 .5px var(--ln),var(--sh);padding:16px}
