/* 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}

.ob-form .ob-pdet{display:none}

/* 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 sits in the hero on every width. Audit 16 Nov 2026: the repeat beside About is removed. */
.ob-hcontact{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:14px}
.ob-hc{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;border-radius:14px;
  background:var(--gl2);box-shadow:inset 0 0 0 .5px var(--ln);font:600 13px/1 'General Sans',sans-serif;color:var(--tx);text-decoration:none;
  transition:transform .2s cubic-bezier(.32,.72,0,1),opacity .2s cubic-bezier(.32,.72,0,1)}
.ob-hc:active{transform:scale(.96)}
.ob-hc svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.ob-hc[aria-disabled="true"]{opacity:.4;cursor:not-allowed;pointer-events: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}

/* Courses: one heading with its count; groups sit in their own aligned columns. */
.ob-cr-n{margin-left:6px;font:500 12px/16px 'JetBrains Mono',monospace;color:var(--tx2)}
@media (min-width:820px){
  .ob-cr-groups.is-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 32px;align-items:start}
}

/* 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}

/* Write-form star buttons: 44px tap targets. */
/* Visual star stays small (locked look); the tap area grows to 44x44 and overlaps its neighbours' empty space. */
.ob-starcol .ob-prow .ob-pick{width:auto;gap:0}
.ob-starcol .ob-prow .ob-pick button{width:44px;height:44px;margin:0}
.ob-starcol .ob-prow .ob-pick button svg{width:22px;height:22px}
.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}
.ob-starcol .ob-prow{grid-template-columns:minmax(0,1fr) 220px;column-gap:8px}
.ob-starcol .ob-prow .ob-pright,.ob-starcol .ob-prow .ob-pick{width:220px}

/* ===== OPTION A — hero-first ===== */
.ob-hero .ob-hcontact{margin-top:14px}
.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}

/* Audit 16 Nov 2026: guests have no bottom nav pill (DECISIONS-MASTER: guests see no nav bar anywhere), so the
   96px pill clearance from v6.css is dropped for the guest view only. Signed-in views keep the clearance,
   because the signed-in shell shows the nav pill and the last content must clear it. */
html[data-preview-view="guest"] .ob-root{padding-bottom:calc(40px + env(safe-area-inset-bottom))}

/* ===== Write-a-review star grid (16 Nov 2026, MT: "Yes, change it") =====
   Overall + seven categories share one grid: label and hint | five 44px star cells | number at the far right.
   New class names on purpose, so none of the older v6 star-row overrides apply. Motion: transform/opacity only. */
#write-review .ob-rgrid{--rg-cell:44px;--rg-num:3.6rem;--fs:26px;--fs-base:26px;min-width:0;margin:0;padding:0;border:0}
#write-review .ob-rgrid>legend{float:left;width:100%;padding:0;margin:0 0 8px;font:500 13px/18px 'General Sans',sans-serif;color:var(--tx2)}
#write-review .ob-rgrid>legend+*{clear:both}
.ob-rg-row{display:grid;grid-template-columns:minmax(0,1fr) calc(var(--rg-cell)*5) var(--rg-num);
  grid-template-areas:"lab stars num";column-gap:16px;align-items:center;min-height:56px;padding:6px 0;
  border-top:.5px solid var(--ln)}
.ob-rg-row.is-overall{--fs:30px;min-height:68px;padding:4px 0 12px;margin-bottom:4px;border-top:0;border-bottom:1px solid var(--ln)}
.ob-rg-row.is-overall+.ob-rg-row{border-top:0}
.ob-rg-lab{grid-area:lab;display:flex;flex-direction:column;gap:3px;min-width:0}
.ob-rg-name{font:600 15px/1.2 'Clash Display',sans-serif;letter-spacing:-.02em;color:var(--tx)}
.is-overall .ob-rg-name{font-size:22px;letter-spacing:-.025em}
.ob-rg-det{font:400 12px/16px Satoshi,sans-serif;color:var(--tx2)}
.ob-rg-stars{grid-area:stars;display:grid;grid-template-columns:repeat(5,var(--rg-cell));justify-self:end}
.ob-rg-cell{width:var(--rg-cell);height:var(--rg-cell);display:grid;place-items:center}
.ob-rg-pick button{margin:0;padding:0;border:0;border-radius:12px;background:none;color:var(--tx2);cursor:pointer;
  -webkit-tap-highlight-color:transparent;touch-action:manipulation;transition:transform .16s cubic-bezier(.2,.8,.2,1)}
.ob-rg-pick button:active{transform:scale(.9)}
.ob-rg-pick button:focus{outline:none}
.ob-rg-pick button:focus-visible{box-shadow:inset 0 0 0 2px var(--tx)}
.ob-rg-pick button[disabled]{cursor:default;opacity:.55}
/* One star = outline + a flat and a glass fill, clipped to --f. The row decides which fill shows. */
.ob-fs{position:relative;display:block;width:var(--fs);height:var(--fs);flex:none}
.ob-fs .st,.ob-fs .st svg{width:var(--fs);height:var(--fs)}
.ob-fs>.st{position:absolute;left:0;top:0}
.ob-fs-fill{position:absolute;left:0;top:0;height:100%;width:calc(var(--f,0) * 100%);overflow:hidden}
.ob-fs-fill .st{position:absolute;left:0;top:0}
.ob-fs-fill .st:not(.flat){display:none}
.ob-rg-row.is-hi .ob-fs-fill .st.flat{display:none}
.ob-rg-row.is-hi .ob-fs-fill .st:not(.flat){display:inline-block}
.ob-rg-row.is-hi .ob-rg-stars{filter:drop-shadow(0 0 6px rgba(245,184,61,.16))}
.ob-fs-fill .st.flat path:first-child{fill:transparent}
/* Hover preview (pointer only): the stars up to the one under the pointer brighten. */
@media (hover:hover){
  .ob-rg-pick button.is-pv .ob-fs>.st.empty{color:#F5B83D}
  .ob-rg-pick button.is-pv .ob-fs>.st.empty svg path{opacity:.95}
}
.ob-rg-num{grid-area:num;justify-self:end;text-align:right;min-width:3ch;margin:0;
  font:600 22px/1 'Clash Display',sans-serif;letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:var(--tx)}
.is-overall .ob-rg-num{font-size:32px}
.ob-rg-row:not(.is-set) .ob-rg-num{color:var(--tx2);opacity:.7}
.ob-rg-row.is-lo .ob-rg-num{color:var(--tx2)}
.ob-rg-row.is-hi .ob-rg-num{filter:drop-shadow(0 0 8px rgba(245,184,61,.2))}
.ob-rg-num.is-bump{animation:obRgBump .2s cubic-bezier(.2,.8,.2,1)}
@keyframes obRgBump{from{opacity:.4;transform:translateY(4px)}to{opacity:1;transform:none}}
.ob-post[aria-disabled="true"]{opacity:.5;cursor:not-allowed}
.ob-post-hint{margin:8px 0 0;text-align:center;font:400 12px/16px Satoshi,sans-serif;color:var(--tx2)}
/* Phones: the hint takes the full width under the label; stars and number share the next line. */
@media (max-width:600px){
  .ob-rg-row{grid-template-columns:calc(var(--rg-cell)*5) minmax(0,1fr);grid-template-areas:"lab lab" "stars num";row-gap:2px;padding:10px 0 4px}
  .ob-rg-row.is-overall{padding:4px 0 8px}
  .ob-rg-stars{justify-self:start;margin-left:calc((var(--fs-base) - var(--rg-cell)) / 2)}
}
@media (max-width:350px){ #write-review .ob-rgrid{--rg-cell:40px;--fs:24px;--fs-base:24px} .ob-rg-row.is-overall{--fs:26px} }
@media (prefers-reduced-motion:reduce){ .ob-rg-num.is-bump{animation:none} .ob-rg-pick button{transition:none} }
