{#- Identification card, full width (REV-061). Gold tick only for paid or gifted Premium. -#}
{% set b0 = ato.bases[0] if ato.bases else {} %}
<section class="ob-card ob-hero">
  {% if b0.ident or b0.name or b0.town %}
  <p class="ob-eyebrow">{{ b0.ident or '' }}</p>
  <p class="ob-basen">{% if b0.name and b0.town and b0.town != b0.name %}{{ b0.name }} · {{ b0.town }}{% elif b0.name %}{{ b0.name }}{% elif b0.town %}{{ b0.town }}{% endif %}</p>
  {% endif %}
  <h1 class="ob-name">{{ ato.name }}{% if paid %}{{ svg.tick_ato(22) }}{% endif %}</h1>
  {% if verified and ato.handle %}<p class="ob-handle"><span class="uname">{{ ato.handle }}<span class="official-suffix">.official</span></span></p>
  {% else %}<p class="ob-handle is-none">Not claimed by the school yet</p>{% endif %}
  {#- Option A (locked 13 Nov): the score shows once, beside the pyramid; the review count once ("from N reviews"). -#}
  {% if ato.rating.count %}
  <div class="ob-rate" data-rating-kind="{{ rating_kind }}">{{ svg.pyramid(rating_avg, rating_kind) }}<span class="ob-big{% if rating_kind == 'glass' %} is-sweep{% endif %}{% if not rating_shown %} is-none{% endif %}" data-v="{{ score }}">{{ score if rating_shown else '–' }}</span></div>
  {% endif %}
  {% if rating_shown %}<p class="ob-from">from {{ ato.rating.count }} {{ 'review' if ato.rating.count == 1 else 'reviews' }}</p>
  {% elif ato.rating.count >= min_reviews %}<p class="ob-from is-wait">The rating appears once {{ min_reviews }} reviewers have held their accounts for 7 days</p>
  {% elif ato.rating.count %}<p class="ob-from is-wait">{{ ato.rating.count }} of {{ min_reviews }} reviews needed for a rating</p>
  {% elif written_count %}<p class="ob-from is-wait is-zero">{{ written_count }} written {{ 'review' if written_count == 1 else 'reviews' }} · no star ratings yet</p>
  {% else %}<p class="ob-from is-wait is-zero">No reviews yet</p>{% endif %}
  {% set c = ato.contact or {} %}
  {#- Contact row in the hero below 1024px (Option A); from 1024px About carries it. Missing values are disabled, never links. -#}
  {% if verified or c.phone or c.email or c.web %}
  <div class="ob-hcontact" aria-label="Contact">
    {% if c.phone %}<a class="ob-hc" href="tel:{{ c.phone|replace(' ', '') }}">{% else %}<span class="ob-hc" aria-disabled="true">{% endif %}<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M6.6 3.5h3l1.5 4-2 1.3a11 11 0 006.1 6.1l1.3-2 4 1.5v3a2 2 0 01-2.2 2A16.5 16.5 0 014.6 5.7a2 2 0 012-2.2z"/></svg>Call{% if c.phone %}</a>{% else %}</span>{% endif %}
    {% if c.email %}<a class="ob-hc" href="mailto:{{ c.email }}">{% else %}<span class="ob-hc" aria-disabled="true">{% endif %}<svg viewBox="0 0 24 24" aria-hidden="true"><rect x="3.5" y="5.5" width="17" height="13" rx="2"/><path d="M4 7l8 6 8-6"/></svg>Email{% if c.email %}</a>{% else %}</span>{% endif %}
    {% if c.web %}<a class="ob-hc" href="https://{{ c.web }}" rel="noopener nofollow ugc">{% else %}<span class="ob-hc" aria-disabled="true">{% endif %}<svg viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="8.5"/><path d="M3.5 12h17M12 3.5c2.5 2.4 3.5 5.2 3.5 8.5s-1 6.1-3.5 8.5c-2.5-2.4-3.5-5.2-3.5-8.5s1-6.1 3.5-8.5z"/></svg>Website{% if c.web %}</a>{% else %}</span>{% endif %}
  </div>
  {% endif %}
  <p class="ob-facts">{% set nc = certificate_count %}{{ nc }} {{ 'certificate' if nc == 1 else 'certificates' }} · {{ ato.bases|length }} {{ 'base' if ato.bases|length == 1 else 'bases' }}</p>
</section>
