/* A local authority's page (item 848, Figma 13722:124, mobile 13726:171; hero set 15212:4703) over an institution's
   (org-page.css, org-hero.css, org-sections.css): the city's green where an institution's page wears its teal, the
   hero's identities -- the emblem large, the emblem beside Campus IL's mark, the masthead's strip -- three numbers to a
   row, the messages on light green, "על העירייה", the meetups' box and the meetups list. Logical properties; the brand's
   tokens (design-system/palette.css); hovers move, never recolour. */

.cil-orgp--municipality { --orgp-teal: var(--cil-green-dark-1); }

/* ---- The trail and the light words on the green ---- */
.cil-orgp--municipality .cil-orgp-hero__crumbs a,
.cil-orgp--municipality .cil-orgp-hero__crumbs svg { color: var(--cil-green-light-3); }
.cil-orgp--municipality .cil-orgp-hero:is(.cil-orgp-hero--photo_behind, .cil-orgp-hero--photo_twothirds) .cil-orgp-hero__kind,
.cil-orgp--municipality .cil-orgp-hero__foot.is-band :is(.cil-orgp-hero__partner, .cil-orgp-stat__label) { color: var(--cil-green-light-3); }
.cil-orgp--municipality .cil-orgp-hero__foot.is-band .cil-orgp-stat__mark { color: var(--cil-green-light-3); }
.cil-orgp--municipality .cil-orgp-hero__foot.is-band .cil-orgp-stat::after { background: color-mix(in srgb, var(--cil-green-light-3) 45%, transparent); }
.cil-orgp--municipality .cil-orgp-hero__footInner { border-color: var(--cil-black-light-3); }
.cil-orgp--municipality .cil-orgp-hero:is(.cil-orgp-hero--photo_behind, .cil-orgp-hero--photo_twothirds) .cil-orgp-hero__footInner { border-color: color-mix(in srgb, var(--cil-green-light-3) 60%, transparent); }

/* Three numbers share the row in thirds (courses, programmes, this month's meetups), from the row's start. */
.cil-orgp--municipality .cil-orgp-stat { flex-basis: calc(100% / 3); }

/* ---- The emblem (15285:8668) and the emblem beside Campus IL's mark (15285:8787) ---- */
.cil-orgp-hero__brand { grid-row: 1 / span 2; display: flex; align-items: center; gap: 24px; }
.cil-orgp-hero__brand .cil-orgp-hero__plate { flex: none; }
.cil-orgp-hero__brandRule { flex: none; width: 1px; height: 72px; background: var(--cil-black-light-3); }
.cil-orgp-hero__campus { display: block; flex: none; width: 200px; height: auto; }
.cil-orgp-hero__brand ~ .cil-orgp-hero__words :is(.cil-orgp-hero__kind, .cil-orgp-hero__name) { grid-column: 2; }
.cil-orgp-hero:is(.cil-orgp-hero--emblem, .cil-orgp-hero--emblem_campus) .cil-orgp-hero__plate { width: 208px; height: 208px; padding: 20px; border-radius: 23px; }
/* On the green the rule goes light. */
.cil-orgp-hero:is(.cil-orgp-hero--photo_behind, .cil-orgp-hero--photo_twothirds) .cil-orgp-hero__brandRule { background: color-mix(in srgb, var(--cil-green-light-3) 60%, transparent); }

/* Behind and two-thirds: the emblem stands above the kind and the name, smaller (Figma 15285:7944, 8308). */
@media (min-width: 1080px) {
    .cil-orgp-hero:is(.cil-orgp-hero--photo_behind, .cil-orgp-hero--photo_twothirds):is(.cil-orgp-hero--emblem, .cil-orgp-hero--emblem_campus) .cil-orgp-hero__identity { grid-template-columns: minmax(0, 1fr); }
    .cil-orgp-hero:is(.cil-orgp-hero--photo_behind, .cil-orgp-hero--photo_twothirds) .cil-orgp-hero__brand { grid-row: auto; margin-bottom: 24px; }
    .cil-orgp .cil-orgp-hero:is(.cil-orgp-hero--photo_behind, .cil-orgp-hero--photo_twothirds) .cil-orgp-hero__brand ~ .cil-orgp-hero__words > * { grid-column: 1; grid-row: auto; }
    .cil-orgp-hero:is(.cil-orgp-hero--photo_behind, .cil-orgp-hero--photo_twothirds):is(.cil-orgp-hero--emblem, .cil-orgp-hero--emblem_campus) .cil-orgp-hero__plate {
        width: 104px; height: 104px; padding: 10px; border-radius: 14px;
    }
    .cil-orgp-hero:is(.cil-orgp-hero--photo_behind, .cil-orgp-hero--photo_twothirds) .cil-orgp-hero__brandRule { height: 56px; }
}
@media (max-width: 1079px) {
    /* The emblem's row of its own above the kind: at the foot of the room over the photo (behind), under the trail
       (two-thirds), where the name's rows follow it. */
    .cil-orgp-hero:is(.cil-orgp-hero--photo_behind, .cil-orgp-hero--photo_twothirds) .cil-orgp-hero__brand {
        position: relative; z-index: 1; grid-column: 2 / 5; align-self: end; margin-bottom: 16px;
    }
    .cil-orgp-hero--photo_behind .cil-orgp-hero__brand { grid-row: 2; }
    .cil-orgp-hero--photo_twothirds:has(.cil-orgp-hero__brand) { grid-template-rows: auto auto auto auto auto 0; }
    .cil-orgp-hero--photo_twothirds .cil-orgp-hero__brand { grid-row: 3; }
    .cil-orgp .cil-orgp-hero--photo_twothirds .cil-orgp-hero__brand ~ .cil-orgp-hero__words .cil-orgp-hero__kind { grid-row: 4; }
    .cil-orgp .cil-orgp-hero--photo_twothirds .cil-orgp-hero__brand ~ .cil-orgp-hero__words .cil-orgp-hero__name { grid-row: 5; }
    .cil-orgp .cil-orgp-hero:is(.cil-orgp-hero--photo_behind, .cil-orgp-hero--photo_twothirds) .cil-orgp-hero__brand ~ .cil-orgp-hero__words :is(.cil-orgp-hero__kind, .cil-orgp-hero__name) { grid-column: 2 / 5; }
    .cil-orgp-hero:is(.cil-orgp-hero--photo_behind, .cil-orgp-hero--photo_twothirds) .cil-orgp-hero__brand .cil-orgp-hero__plate { width: 72px; height: 72px; padding: 8px; border-radius: 12px; }
    .cil-orgp-hero:is(.cil-orgp-hero--photo_behind, .cil-orgp-hero--photo_twothirds) .cil-orgp-hero__brandRule { height: 40px; }
    .cil-orgp-hero:is(.cil-orgp-hero--photo_behind, .cil-orgp-hero--photo_twothirds) .cil-orgp-hero__campus { width: 96px; }
}
@media (max-width: 767px) {
    /* The banner's card on a phone: the emblem above the kind and the name (15285:8720). */
    .cil-orgp-hero--photo_banner:is(.cil-orgp-hero--emblem, .cil-orgp-hero--emblem_campus) .cil-orgp-hero__identity { grid-template-columns: minmax(0, 1fr); }
    .cil-orgp-hero--photo_banner .cil-orgp-hero__brand { grid-row: auto; margin-bottom: 16px; gap: 16px; }
    .cil-orgp .cil-orgp-hero--photo_banner .cil-orgp-hero__brand ~ .cil-orgp-hero__words > * { grid-column: 1; grid-row: auto; }
    .cil-orgp-hero--photo_banner:is(.cil-orgp-hero--emblem, .cil-orgp-hero--emblem_campus) .cil-orgp-hero__plate { width: 120px; height: 120px; padding: 12px; border-radius: 16px; }
    .cil-orgp-hero--photo_banner .cil-orgp-hero__brandRule { height: 48px; }
    .cil-orgp-hero--photo_banner .cil-orgp-hero__campus { width: 120px; }
    .cil-orgp--municipality .cil-orgp-stat { flex-basis: auto; }
}

/* ---- The masthead's strip (15285:8558): the authority's emblem, name and line; its hotline and site ---- */
.cil-orgp-masthead { border-bottom: 1px solid var(--cil-black-light-3); background: var(--cil-white); }
.cil-orgp-masthead__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 16px var(--orgp-gutter); }
.cil-orgp-masthead__who { display: flex; align-items: center; gap: 16px; min-width: 0; }
.cil-orgp-masthead__emblem { flex: none; display: grid; place-items: center; width: 56px; height: 56px; padding: 6px; border: 1px solid var(--cil-black-light-3); border-radius: 6px; background: var(--cil-white); }
.cil-orgp-masthead__emblem :is(picture, img) { display: block; width: 100%; height: 100%; object-fit: contain; }
.cil-orgp .cil-orgp-masthead__name { color: var(--cil-black); font-size: clamp(1.25rem, .4vw + 1rem, 1.5rem); font-weight: 700; line-height: 1.2; }
.cil-orgp-masthead__line { display: flex; align-items: center; gap: 4px; margin-top: 2px; color: var(--cil-black-regular-6); font-size: 14px; }
.cil-orgp-masthead__line svg { flex: none; color: var(--orgp-teal); }
.cil-orgp-masthead__ways { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.cil-orgp .cil-orgp-masthead__way {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--cil-black); font-size: 16px; font-weight: 700;
    text-decoration: none; transition: transform .2s var(--orgp-ease);
}
.cil-orgp a.cil-orgp-masthead__way:is(:hover, :focus-visible) { transform: translateY(-2px); color: var(--cil-black); text-decoration: underline; text-underline-offset: 4px; }
.cil-orgp a.cil-orgp-masthead__way:focus-visible { outline: 2px solid var(--orgp-teal); outline-offset: 2px; border-radius: 4px; }
.cil-orgp-masthead__way svg { flex: none; }
/* The hotline: its words, then its number, the number alone the call link (item 878). */
.cil-orgp .cil-orgp-masthead__hotline { display: inline-flex; align-items: center; gap: 8px; color: var(--cil-black); font-size: 16px; font-weight: 700; }
.cil-orgp-masthead__hotline svg { flex: none; }
/* The site's button in the card is the phone's (hero.php); on a phone the strip is the name alone (Figma 15212:4703). */
.cil-orgp .cil-orgp-btn--phoneOnly { display: none; }
@media (max-width: 767px) {
    .cil-orgp-masthead__inner { padding-block: 12px; }
    .cil-orgp-masthead__emblem { width: 44px; height: 44px; }
    .cil-orgp-masthead__ways { display: none; }
    .cil-orgp .cil-orgp-btn--phoneOnly { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
    .cil-orgp .cil-orgp-masthead__way { transition: none; }
    .cil-orgp a.cil-orgp-masthead__way:is(:hover, :focus-visible) { transform: none; }
}

/* ---- Messages on light green, the city's edge (Figma 13722:124) ---- */
.cil-orgp--municipality .cil-orgp-message { background: var(--cil-green-light-1); }

/* ---- "על העירייה": its blocks, one under another, a reading width ---- */
.cil-orgp-aboutText__list { display: flex; flex-direction: column; gap: 32px; max-width: 920px; }
.cil-orgp-aboutText__item { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cil-orgp .cil-orgp-aboutText__title { color: var(--cil-black); font-size: clamp(1.25rem, .4vw + 1rem, 1.5rem); font-weight: 700; line-height: 1.2; text-wrap: balance; }

/* ---- The meetups' box: the events page's rows, under the page's list reset ---- */
.cil-orgp .cil-orgp-meetups__box { padding: 0; }
.cil-orgp .cil-orgp-meetups__box .cil-ev-list > li,
.cil-orgp .cil-orgp-meetupsList .cil-ev-list > li { margin: 0; }

/* ---- The meetups list: the events page's body under the list's head ---- */
.cil-orgp-dest--meetups .cil-orgp-meetupsList { margin-top: 32px; }
