/* Kontaktai / Contact pages (DB 14 / 15). Every selector is scoped to the two
   page body classes because partials without a gate load on every page.
   Round 3: explicit heading weights, section on the 1264 rail (it was stuck in
   the 840px prose column with an empty right half), sensible 900/768/600. */
body.page-id-14 #contact, body.page-id-15 #contact { max-width: none; margin-left: 0; margin-right: 0; }
body.page-id-14 #contact .section__header, body.page-id-15 #contact .section__header { max-width: 760px; margin-left: auto; margin-right: auto; text-align: center; }
body.page-id-14 #contact .section__title, body.page-id-15 #contact .section__title {
    font-family: var(--font-heading, 'Parkinsans', sans-serif); font-weight: 600; font-size: clamp(32px, 4vw, 48px); line-height: 1.25;
}
body.page-id-14 #contact .section__label, body.page-id-15 #contact .section__label { font-weight: 700; }
body.page-id-14 #contact .section__subtitle, body.page-id-15 #contact .section__subtitle { font-family: 'Onest', sans-serif; font-weight: 400; font-size: 18px; line-height: 1.45; }
body.page-id-14 #contact .contact__grid, body.page-id-15 #contact .contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: stretch; }
body.page-id-14 #contact .contact__map iframe, body.page-id-15 #contact .contact__map iframe { display: block; min-height: 420px; }
body.page-id-14 #contact .contact-info-card__content h4, body.page-id-15 #contact .contact-info-card__content h4,
body.page-id-14 #contact .official-info__card h4, body.page-id-15 #contact .official-info__card h4 {
    font-family: var(--font-heading, 'Parkinsans', sans-serif); font-weight: 600; font-size: 18px; line-height: 1.4;
}
body.page-id-14 #contact .contact-info-card__content p, body.page-id-15 #contact .contact-info-card__content p,
body.page-id-14 #contact .official-info__card p, body.page-id-15 #contact .official-info__card p { font-family: 'Onest', sans-serif; font-weight: 400; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
body.page-id-14 #contact .official-info__card strong, body.page-id-15 #contact .official-info__card strong { font-weight: 600; }
@media (max-width: 900px) {
    body.page-id-14 #contact .official-info, body.page-id-15 #contact .official-info { gap: 16px; }
}
@media (max-width: 700px) {
    body.page-id-14 #contact .contact__grid, body.page-id-15 #contact .contact__grid { grid-template-columns: minmax(0, 1fr); }
    body.page-id-14 #contact .official-info, body.page-id-15 #contact .official-info { grid-template-columns: minmax(0, 1fr); }
    body.page-id-14 #contact .contact__map iframe, body.page-id-15 #contact .contact__map iframe { min-height: 320px; height: 320px; }
}
@media (max-width: 640px) {
    body.page-id-14 #contact .section__title, body.page-id-15 #contact .section__title { font-size: 32px !important; line-height: 1.3 !important; }
    body.page-id-14 #contact .section__subtitle, body.page-id-15 #contact .section__subtitle { font-size: 16px; }
}

/* ---- Round 4 (old-site texts): "Partneriams" / "For partners" block under
   the official-info cards. Scoped by its own class (not the page ID) and
   built from the same official-info cards, so it follows dark mode. ---- */
.contact-partners { margin-top: 3rem; }
.contact-partners > .contact-partners__title.contact-partners__title {
    font-family: var(--font-heading, 'Parkinsans', sans-serif); font-weight: 600; font-size: 24px; line-height: 1.35; color: var(--color-text-primary); margin: 0 0 1rem;
}
.contact-partners > .official-info.contact-partners__grid { margin-top: 0; }
.contact-partners__card > .contact-partners__card-title.contact-partners__card-title {
    font-family: var(--font-heading, 'Parkinsans', sans-serif); font-weight: 600; font-size: 18px; line-height: 1.4; color: var(--color-text-primary); margin: 0 0 0.5rem;
}
.contact-partners__card > .contact-partners__text { font-family: 'Onest', sans-serif; font-weight: 400; font-size: 15px; line-height: 1.5; color: var(--color-text-muted); margin: 0 0 1rem; }
.contact-partners__card > .contact-partners__link { margin: 0; }
.contact-partners__link .btn { font-weight: 500; }
@media (max-width: 900px) {
    .contact-partners > .official-info.contact-partners__grid { gap: 16px; }
}
@media (max-width: 700px) {
    .contact-partners > .official-info.contact-partners__grid { grid-template-columns: minmax(0, 1fr); }
    .contact-partners { margin-top: 2rem; }
}
/* the global mobile h3/h4 scale (blocks.css, !important) overrides the sizes above */
@media (max-width: 640px) {
    .wp-site-blocks .contact-partners > h3.contact-partners__title { font-size: 22px !important; line-height: 1.35 !important; }
    .wp-site-blocks .contact-partners__card > h4.contact-partners__card-title { font-size: 18px !important; line-height: 1.4 !important; }
}
/* Phones: the contact section carried its own inline gutter on top of the page
   gutter (82px each side at 402), squeezing the cards to 238px so long words
   ("Bendradarbiavimas") ran into the card padding. One gutter is enough. */
@media (max-width: 640px) {
    .wp-block-post-content > section#contact { padding-left: 0 !important; padding-right: 0 !important; }
}

/* ---- Round 5: "Sek mus" / "Follow us" card -- the [ap_social_icons]
   shortcode (inc/social-links.php) prints the same round brand icons as the
   About page's row; this lays them out left-aligned like the card text. ---- */
.contact-info-card__content > .contact-follow { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0.25rem 0 0; }
.contact-info-card__content > .contact-follow > * { margin: 0; }
