/* Shared Hälytyslista family frame: header bar and "Muut palvelut" footer.
   Copied from Konkurssilista (konkurssilista.v1.css .site-header/.brand/.footer) so the
   sites read as one family. Only the frame; page content keeps hankinnat's own styles.
   Values are scoped to these blocks (no global tokens) to avoid clashing with view styles. */
.site-header { background: #4b4744; color: #fff; border-bottom: 5px solid #fec6c6; font-family: "Barlow Condensed", system-ui, sans-serif; }
.site-header .header-inner { width: min(1440px, 100%); min-height: 58px; margin: auto; padding: 0 24px; display: flex; align-items: stretch; box-sizing: border-box; }
.site-header .brand { display: flex; align-items: center; margin: 0; color: #fff; font-family: inherit; font-size: 1.65rem; font-weight: 900; line-height: 1; letter-spacing: -.02em; text-align: left; text-decoration: none; text-transform: uppercase; }
.site-header .brand span { color: #fec6c6; }
.site-header .brand:hover { color: #fff; }
/* Header menu (designer review 2026-11-18): hubs were only reachable from the footer. */
.site-header .header-nav { display: flex; align-items: stretch; margin-left: auto; gap: 4px; }
.site-header .header-nav a { display: flex; align-items: center; padding: 0 12px; color: #fff; font-size: 1.1rem; font-weight: 600; text-decoration: none; text-transform: uppercase; letter-spacing: .02em; }
.site-header .header-nav a:hover, .site-header .header-nav a[aria-current="page"] { color: #fec6c6; }
.site-header .header-nav a:focus-visible { outline: 2px solid #fec6c6; outline-offset: -4px; }

.footer { border-top: 5px solid #fec6c6; background: #4b4744; color: #d8d1ca; font-family: "Barlow Condensed", system-ui, sans-serif; line-height: 1.45; }
.footer .footer-inner { width: min(1440px, 100%); margin: auto; padding: 25px 24px; font-size: .95rem; box-sizing: border-box; }
.footer a { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 7px 18px; margin-bottom: 12px; }
.footer-links a { font-weight: 500; }
.footer-external-links { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px; margin: 0 0 18px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .28); }
.footer-external-label { margin-right: 3px; color: #d8d1ca; font-weight: 500; }
.footer-external-links a { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border: 1px solid rgba(255, 255, 255, .48); color: #fff; font-weight: 500; text-decoration: none; }
.footer-external-links a:hover { border-color: #fec6c6; background: #fec6c6; color: #4b4744; }
.footer-external-arrow { font-size: .95em; }
.footer-service-icon { width: 1.1em; height: 1.1em; flex: 0 0 auto; color: #fec6c6; fill: none; stroke: currentColor; stroke-linecap: square; stroke-linejoin: miter; stroke-width: 1.9; }
.footer-external-links a:hover .footer-service-icon { color: #4b4744; }
.footer-source { margin: 0; }

@media (max-width: 760px) {
  .site-header .header-inner { min-height: 51px; padding: 0 13px; }
  .site-header .brand { font-size: 1.35rem; min-height: 44px; }
  .site-header .header-nav { gap: 0; margin-right: -8px; }
  .site-header .header-nav a { min-height: 44px; padding: 0 7px; font-size: .95rem; letter-spacing: 0; }

  .footer .footer-inner { padding: 22px 13px; }
  .footer-links { display: grid; gap: 0; }
  .footer-links a { display: block; padding: 13px 0; } /* 44 px tap targets */
  .footer-external-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .footer-external-label { grid-column: 1 / -1; }
  .footer-external-links a { min-height: 44px; }
}

@media (max-width: 380px) {
  .site-header .header-nav { margin-right: 0; }
  .site-header .header-nav a { padding: 0 5px; font-size: .9rem; }
  .site-header .brand { margin-right: 10px; }
}
