/* COFICAB Portugal: pieces that do not exist on the corporate site */

/* inner pages have one short section before the footer: keep the wedge under the banner curve white too, so the co-financing logos (white background) do not stand out */
.page-hero:has(+ section + .site-footer) { background: #fff; }
.page-hero + section { background: #fff !important; }

/* the Portuguese menu has longer labels: wider pill, labels never wrap */
@media (min-width: 761px) {
  .site-header { width: min(1220px, calc(100% - 28px)); }
  .header-nav { grid-template-columns: 170px 1fr; padding: 0 24px; }
  .main-menu { gap: 18px; font-size: 11px; white-space: nowrap; }
  .main-menu .nav-item > a, .main-menu .nav-contact { white-space: nowrap; }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .header-nav { grid-template-columns: 120px 1fr; padding: 0 16px; }
  .nav-logo img { width: 110px; }
  .main-menu { gap: 10px; font-size: 9.5px; }
}

/* top menu: plain links and the dropdown with a single line per item */
.nav-dropdown .nav-drop-item h4 { margin: 0; white-space: nowrap; }

/* Collaborators Access */
.collab-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.collab-card { flex: 0 1 calc((100% - 32px) / 3); display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 26px 18px 22px; background: #fff; border: 1px solid var(--gray-line); border-radius: 14px; text-align: center; transition: box-shadow .2s ease, transform .2s ease; }
.collab-card:hover { box-shadow: 0 10px 26px rgba(0,22,137,.1); transform: translateY(-2px); }
.collab-card > img { width: auto; height: 92px; object-fit: contain; }
.collab-card h3 { margin: 0; font-size: .86rem; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: .02em; }

/* project and policy pages */
.pt-prose { max-width: 980px; margin-left: auto; margin-right: auto; text-align: left; }
.pt-prose h2 { margin: 36px 0 12px; font-size: 1.35rem; color: var(--blue); }
.pt-prose h3 { margin: 26px 0 8px; font-size: 1rem; color: var(--ink); }
.pt-prose p, .pt-prose li { font-size: .9rem; line-height: 1.75; color: #343945; margin: 0 0 12px; }
.pt-prose ul { margin: 0 0 14px 20px; }
.pt-prose a { color: var(--blue); text-decoration: underline; }
.pt-cofin-img { display: block; width: min(560px, 100%); height: auto; margin: 0 0 24px; }
.pt-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 14px; margin: 0 0 26px; }
.pt-facts > div { background: #f6f9ff; border: 1px solid var(--gray-line); border-radius: 12px; padding: 12px 16px; }
.pt-facts dt { margin: 0 0 2px; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pt-facts dd { margin: 0; font-size: .88rem; font-weight: 600; color: var(--ink); line-height: 1.5; }
.pt-fig { display: block; width: 100%; height: auto; border-radius: 12px; margin: 22px 0; }
.pt-fig-sm { width: min(420px, 100%); margin: 8px 0 20px; }
.pt-note { font-size: .82rem; color: var(--muted); }
.pt-doc { display: block; width: min(720px, 100%); height: auto; margin: 0 auto; border: 1px solid var(--gray-line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,22,137,.08); }
.pt-amounts { list-style: none; margin-left: 0; padding: 12px 16px; background: #f6f9ff; border: 1px solid var(--gray-line); border-radius: 12px; }
.pt-amounts li { margin-bottom: 4px; font-weight: 600; }

/* footer */
.pt-footer { padding: 0; }
.pt-cofin { background: #fff; padding: 18px 20px; text-align: center; border-top: 1px solid var(--gray-line); }
.pt-cofin img { display: block; margin: 0 auto; width: min(640px, 92%); height: auto; }
.pt-footer-grid { width: min(1320px, 100% - 56px); margin: 0 auto; padding: 48px 0 28px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px 120px; }
.pt-about p { margin: 0 0 24px; color: #404552; font-size: .82rem; line-height: 1.8; max-width: 640px; }
.pt-brand img { width: 160px; margin: 0 0 22px; display: block; }
.pt-about .pt-legal { margin: 0; font-size: .8rem; }
.pt-legal a { color: var(--ink); text-decoration: none; }
.pt-legal a:hover { color: var(--blue); text-decoration: underline; }
.pt-sep { margin: 0 12px; color: #9aa0b0; }
.pt-addr { font-style: normal; display: flex; flex-direction: column; gap: 14px; font-size: .84rem; line-height: 1.7; color: #404552; }
.pt-addr strong { color: var(--ink); font-size: .9rem; }
.pt-addr a { color: var(--ink); text-decoration: none; }
.pt-copy { width: min(1320px, 100% - 56px); margin: 0 auto; padding: 20px 0 30px; border-top: 1px solid var(--gray-line); color: #6a7080; font-size: .74rem; }

@media (max-width: 900px) {
  .collab-card { flex-basis: calc((100% - 16px) / 2); }
    .pt-footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .collab-card { flex-basis: 100%; }
  .pt-facts { grid-template-columns: 1fr; }
  .pt-sep { display: none; }
  .pt-legal a { display: block; margin-top: 4px; }
}
