/* ==========================================================
   TGPR site header and footer
   Same header and footer as art.tgpr.org. Shared by any standalone
   TGPR page: include includes/header.php and includes/footer.php.
   ========================================================== */

html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }

.tgpr-header, .tgpr-header *, .tgpr-header *::before, .tgpr-header *::after,
.tgpr-footer, .tgpr-footer *, .tgpr-footer *::before, .tgpr-footer *::after { box-sizing: border-box; }
.tgpr-header img { max-width: 100%; height: auto; display: block; }
.tgpr-header [hidden] { display: none !important; }
.tgpr-header :focus-visible, .tgpr-footer :focus-visible, .skip:focus-visible { outline: 2px solid #00788A; outline-offset: 2px; }
.tgpr-footer :focus-visible { outline-color: #fff; }

.skip { position: absolute; left: -9999px; top: 0; background: #111; color: #fff; padding: 8px 16px; z-index: 50; font: 400 18px/1.4 "Lato", "Helvetica Neue", Arial, sans-serif; }
.skip:focus { left: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Texas Great Pyrenees Rescue site header and footer (matches tgpr.org) */
.tgpr-header, .tgpr-footer {
  --tg-primary: #0D7073; --tg-light: #A0DEDE; --tg-coral: #F56A59;
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif; font-variant-numeric: normal; letter-spacing: 0; text-transform: none;
}
.tgpr-header { background: #fff; color: #000; position: relative; z-index: 20; }
.tgpr-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px clamp(16px, 3.4vw, 64px); max-width: 1920px; margin: 0 auto; }
.tgpr-header__logo { flex: 0 0 auto; display: block; line-height: 0; }
.tgpr-header__logo img { width: clamp(170px, 16vw, 236px); height: auto; }
.tgpr-header__right { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.tgpr-header__actions { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 38px); }
.tgpr-search { color: #000; display: inline-flex; padding: 6px; border-radius: 6px; }
.tgpr-search:hover, .tgpr-search:focus-visible { color: var(--tg-coral); }
.tgpr-btn {
  display: inline-flex; align-items: center; justify-content: center; min-width: 124px; min-height: 44px; padding: 10px 24px;
  background: var(--tg-primary); color: #fff; border-radius: 8px; text-decoration: none;
  font: 700 18px/1 "Lato", sans-serif; text-transform: uppercase; letter-spacing: 0;
}
.tgpr-btn:hover, .tgpr-btn:focus-visible { background: #0a5a5c; color: #fff; }
.tgpr-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 10px; }
.tgpr-nav a {
  display: block; padding: 4px 8px; border-radius: 3px; color: #000; text-decoration: none;
  font: 400 15px/22px "Lato", sans-serif;
}
.tgpr-nav a:hover, .tgpr-nav a:focus-visible { color: #fff; background: var(--tg-primary); }
.tgpr-nav a.is-current { background: var(--tg-light); color: #000; }
.tgpr-menu-toggle { display: none; }
.tgpr-search-dialog { border: 0; padding: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%; background: rgba(51, 49, 49, .89); }
.tgpr-search-dialog[open] { display: grid; place-items: center; }
.tgpr-search-dialog::backdrop { background: transparent; }
.tgpr-search-dialog form { width: min(720px, 86vw); display: flex; gap: 12px; align-items: center; }
.tgpr-search-dialog input { flex: 1; font: 400 30px/1.2 "Lato", sans-serif; color: #fff; background: transparent; border: 2px solid #fff; border-radius: 5px; padding: 10px 16px; }
.tgpr-search-dialog input::placeholder { color: rgba(255, 255, 255, .7); }
.tgpr-search-dialog__close { background: none; border: 0; color: #fff; font-size: 44px; line-height: 1; cursor: pointer; padding: 0 6px; }

@media (max-width: 1080px) {
  .tgpr-header__inner { flex-wrap: wrap; }
  .tgpr-header__right { flex: 1; }
  .tgpr-menu-toggle:not([hidden]) {
    display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 6px; cursor: pointer;
    color: #000; font: 700 15px/1 "Lato", sans-serif;
  }
  .tgpr-nav { width: 100%; }
  .js .tgpr-nav { display: none; }
  .js .tgpr-nav.is-open { display: block; }
  .tgpr-nav ul { flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid #ededed; }
  .tgpr-nav a { padding: 12px 8px; font-size: 17px; border-bottom: 1px solid #ededed; border-radius: 0; }
  .tgpr-header__right { align-items: stretch; }
  .tgpr-header__actions { justify-content: flex-end; }
}
@media (max-width: 560px) {
  .tgpr-header__inner { gap: 10px; }
  .tgpr-header__logo img { width: 150px; }
  .tgpr-btn { min-width: 0; min-height: 40px; padding: 8px 14px; font-size: 15px; }
  .tgpr-header__actions { gap: 8px; }
  .tgpr-menu-toggle span { display: none; }
}

.tgpr-footer { background: var(--tg-primary); color: #fff; border-top: 12px solid var(--tg-light); }
.tgpr-footer__inner { max-width: 1920px; margin: 0 auto; padding: clamp(32px, 4vw, 48px) clamp(20px, 7vw, 136px) clamp(36px, 4.4vw, 56px); }
.tgpr-footer p { margin: 0; }
.tgpr-footer__tag { font: italic 400 clamp(30px, 3.4vw, 39px)/1.15 "Lato", sans-serif; margin-bottom: 14px !important; }
.tgpr-footer__rights { font: italic 400 17px/1.5 "Lato", sans-serif; }
.tgpr-footer__policies { font: italic 700 17px/1.5 "Lato", sans-serif; padding-left: 3px; }
.tgpr-footer__policies a, .tgpr-footer__a11y a { color: #fff; text-decoration: none; }
.tgpr-footer__policies a:hover, .tgpr-footer__a11y a:hover { text-decoration: underline; }
.tgpr-footer__a11y { font: italic 300 15px/1.4 "Lato", sans-serif; max-width: 38em; margin-top: 4px !important; }
