/*
Theme Name: Good Faith Flight
Theme URI: https://gftradingcards.com/
Author: Good Faith Trading Cards
Description: Rip the pack, fly through space, land on the eBay store. One-page home for Good Faith Trading Cards. Set links under Appearance, Customize, Good Faith Links.
Version: 1.0.9
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: good-faith-flight
*/

@font-face { font-family: Oswald; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/oswald-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/montserrat-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/montserrat-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 800; font-display: swap; src: url(assets/fonts/montserrat-latin-800-normal.woff2) format("woff2"); }

body{margin:0}
a{color:#0F233C}a:hover{color:#333333}
@keyframes gfbob{0%,100%{transform:translateY(0)}50%{transform:translateY(-16px)}}
@keyframes gftw{0%,100%{opacity:1}50%{opacity:.25}}
.gf-bob{animation:gfbob 5s ease-in-out infinite}
.gf-bob2{animation:gfbob 6.5s ease-in-out -2s infinite}
.gf-tw{animation:gftw 1.6s ease-in-out infinite}
.gf-tw2{animation:gftw 1.6s ease-in-out -.8s infinite}
.gf-ticket{transition:transform .2s ease}
.gf-ticket:hover,.gf-ticket:focus-visible{transform:translateY(-8px) rotate(-2deg)}
.gf-flip{display:block;perspective:1000px;text-decoration:none}
.gf-flip-inner{position:relative;display:block;width:100%;aspect-ratio:5/7;transition:transform .55s ease;transform-style:preserve-3d}
.gf-flip:hover .gf-flip-inner,.gf-flip:focus-visible .gf-flip-inner{transform:rotateY(180deg)}
.gf-face{position:absolute;left:0;top:0;width:100%;height:100%;box-sizing:border-box;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.gf-back{transform:rotateY(180deg)}
.gf-lift{transition:transform .2s ease}
.gf-lift:hover,.gf-lift:focus-visible{transform:translateY(-8px)}
@media (max-width:820px){.gf-hide-sm{display:none}}
@keyframes gfsheen{0%{transform:translateX(-130%) skewX(-18deg)}55%,100%{transform:translateX(260%) skewX(-18deg)}}
@keyframes gfwobble{0%,100%{transform:rotate(0)}25%{transform:rotate(-3deg)}75%{transform:rotate(3deg)}}
.gf-sheen{animation:gfsheen 4.5s ease-in-out infinite}
.gf-fan{transition:transform .5s cubic-bezier(.2,.9,.3,1.15),opacity .4s ease}
.gf-lift:hover,.gf-lift:focus-visible{transform:translateY(-10px)}
.gf-pack{display:block;text-decoration:none}
.gf-pack:hover .gf-pack-body,.gf-pack:focus-visible .gf-pack-body{animation:gfwobble .45s ease-in-out}
.gf-rip:hover,.gf-rip:focus-visible{background:#F6ECD0}
@keyframes gfspin{to{transform:rotate(360deg)}}
.gf-spin{animation:gfspin 3.5s linear infinite}
@media (prefers-reduced-motion:reduce){.gf-bob,.gf-bob2,.gf-tw,.gf-tw2,.gf-sheen,.gf-spin{animation:none}.gf-flip-inner,.gf-ticket,.gf-lift,.gf-fan{transition:none}.gf-pack:hover .gf-pack-body{animation:none}}

/* WordPress-specific additions */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
section[id] { scroll-margin-top: 66px; }
.admin-bar .gf-header { top: 32px !important; }
@media (max-width: 782px) { .admin-bar .gf-header { top: 46px !important; } }

/* Phone only: hide top Main nav; keep logo/header. Phone widths only (not tablet 768+). */
@media (max-width: 640px) {
  .gf-header nav[aria-label="Main"] { display: none !important; }
}
.gf-player { display: block; width: 100%; height: 100%; border: 0; }
a:focus-visible, button:focus-visible { outline: 3px solid #C8102E; outline-offset: 2px; }

/* Lineup on a phone: two across, with type that fits the smaller cards */
@media (max-width: 560px) {
  .gf-lineup { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px !important; }
  .gf-lineup .gf-face { border-width: 8px !important; padding: 8px !important; gap: 6px !important; }
  .gf-lineup .gf-face > span { font-size: 22px !important; line-height: 1.1; text-align: center; }
  .gf-lineup .gf-back > span:nth-child(2) { font-size: 12.5px !important; line-height: 1.3 !important; }
  .gf-lineup .gf-back > span:nth-child(3) { font-size: 12px !important; }
  .gf-lineup .gf-face:not(.gf-back) > span:first-child:not(:last-child) { font-size: 84px !important; line-height: 1; }
}
@media (max-width: 820px) { .gf-hide-sm { display: none !important; } }
div:has(> .gf-player) { padding: 0 !important; }

/* Stand-in pages (anything that is not the home page) */
.gf-page { background: #FBF5E4; color: #0F233C; padding: 72px 24px; min-height: 50vh; }
.gf-page__inner { max-width: 760px; margin: 0 auto; font-size: 1.1rem; line-height: 1.6; font-weight: 500; }
.gf-page h1 { font-family: Oswald, 'Arial Narrow', sans-serif; font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: 700; line-height: 1.1; margin: 0 0 16px; }

/* Live on eBay (#d-ebay): dress Auction Nudge without fighting its listing widths.
   AN theme-responsive floats items + sets max-width; carousel rules use ~130px widths.
   Grid ONLY .an-item-wrap (the listing collection), not controls/disclosure. */
#d-ebay .gf-feed,
#d-ebay #auction-nudge-b18872ab6 {
  color: #0F233C;
  font-family: Montserrat, Arial, sans-serif;
  max-width: 100%;
  overflow-x: clip;
}
#d-ebay .gf-feed .an-item-wrap {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 20px !important;
  margin: 16px 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  overflow: visible !important;
}
@media (min-width: 641px) {
  #d-ebay .gf-feed .an-item-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
#d-ebay .gf-feed .an-item,
#d-ebay .gf-feed.theme-responsive div.an-item,
#d-ebay .gf-feed.theme-carousel ul li.an-item,
#d-ebay .gf-feed.auction-nudge-items div.an-item {
  float: none !important;
  clear: none !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 16px !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  text-align: left !important;
  border: 4px solid #D7A750 !important;
  border-radius: 12px;
  background: #FFFDF6 !important;
  transition: transform .2s ease;
}
#d-ebay .gf-feed .an-item:hover { transform: translateY(-6px); }
#d-ebay .gf-feed .an-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
  overflow: visible !important;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}
#d-ebay .gf-feed .an-title a { color: #0F233C !important; text-decoration: none; }
#d-ebay .gf-feed .an-wrap {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  gap: 12px 16px !important;
  overflow: visible !important;
  width: 100% !important;
}
/* AN nests .an-image > .image-container > a > img. Applying a 40%
   max-width to all three wrappers compounded 140px to 56px to 22.4px.
   Size only the outer frame; descendants fill it without percentage shrinkage. */
#d-ebay .gf-feed .an-image,
#d-ebay .gf-feed .an-image.an-img-size {
  float: none !important;
  display: block !important;
  width: 140px !important;
  max-width: 100% !important;
  height: 200px !important;
  max-height: none !important;
  margin: 0 !important;
  overflow: hidden !important;
  border-radius: 6px;
  flex: 0 0 auto;
}
#d-ebay .gf-feed .an-image .image-container,
#d-ebay .gf-feed .an-image .image-container a {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
}
#d-ebay .gf-feed .an-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}
#d-ebay .gf-feed .an-price,
#d-ebay .gf-feed .an-ends,
#d-ebay .gf-feed .an-view {
  overflow: visible !important;
  min-width: 0 !important;
  max-width: 100% !important;
  flex: 1 1 140px;
}
#d-ebay .gf-feed .an-price,
#d-ebay .gf-feed .an-amount {
  font-family: Oswald, 'Arial Narrow', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #0F233C !important;
}
#d-ebay .gf-feed .an-view a { color: #0F233C !important; font-size: 14px; font-weight: 800; }
#d-ebay .gf-feed .an-page-wrap {
  display: flex;
  justify-content: space-between;
  list-style: none;
  margin: 12px 0;
  padding: 0;
  font-weight: 800;
}
#d-ebay .gf-feed .an-page-wrap li { cursor: pointer; padding: 10px 0; color: #0F233C; }
#d-ebay .gf-feed .an-page-wrap li.an-inactive { opacity: .45; cursor: default; }
#d-ebay .gf-feed .an-controls-top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
  width: 100%;
}
#d-ebay .gf-feed .an-cats-nav,
#d-ebay .gf-feed .an-search-box {
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px 12px !important;
  border: 2px solid #0F233C !important;
  background: #FFFDF6 !important;
  color: #0F233C !important;
  font: 500 15px Montserrat, Arial, sans-serif !important;
  width: auto !important;
  max-width: 100%;
}
#d-ebay .gf-feed .an-search-wrap { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
#d-ebay .gf-feed .an-search-box { min-width: min(200px, 100%); flex: 1 1 180px; }
#d-ebay .gf-feed .an-search-submit {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 18px !important;
  min-height: 44px;
  background: #0F233C !important;
  color: #F6ECD0 !important;
  border: 0 !important;
  font-weight: 800 !important;
  cursor: pointer;
}
#d-ebay .gf-feed .an-ebay-top { margin-bottom: 4px; }

/* Desktop AN controls: its search is two sibling divs, not a form.
   Give the wrapping flex group a real row width instead of shrink-to-fit,
   and keep its editable box and submit together. Leave phone rules intact. */
@media (min-width: 768px) {
  #d-ebay .gf-feed .an-controls-top { flex-wrap: nowrap; align-items: stretch; }
  #d-ebay .gf-feed .an-controls-top > .an-cats-wrap {
    float: none; flex: 0 1 280px; min-width: 0; margin: 0;
  }
  #d-ebay .gf-feed .an-controls-top > .an-search-wrap {
    float: none; flex: 0 1 440px; min-width: 0; width: auto;
    flex-wrap: nowrap; margin: 0;
  }
  #d-ebay .gf-feed .an-cats-nav {
    width: 100% !important; max-width: 100%; height: 44px; margin: 0;
  }
  #d-ebay .gf-feed .an-search-box {
    min-width: 0; flex: 1 1 200px; height: 44px; margin: 0;
  }
  #d-ebay .gf-feed .an-search-submit {
    flex: 0 0 auto; height: 44px; box-sizing: border-box; margin: 0;
  }
}

/* Contact: keep form styling local to this section. */
.gf-contact { position: relative; background: #FBF5E4; color: #0F233C; padding: 72px 24px; border-top: 4px solid #D7A750; }
.gf-contact__inner { max-width: 720px; margin: 0 auto; }
.gf-contact h1, .gf-contact h2 { margin: 0 0 16px; font: 700 clamp(2.5rem, 5vw, 3.75rem)/1.1 Oswald, 'Arial Narrow', sans-serif; }
.gf-contact p { line-height: 1.55; }
.gf-contact .wpcf7 { margin-top: 24px; }
.gf-contact label { display: block; font-weight: 700; margin-bottom: 8px; }
.gf-contact input[type="text"], .gf-contact input[type="email"], .gf-contact textarea {
  display: block; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box;
  border: 2px solid #0F233C; border-radius: 4px; padding: 12px;
  background: #FFFDF6; color: #0F233C; font: inherit; font-size: 16px;
}
.gf-contact textarea { min-height: 160px; resize: vertical; }
.gf-contact input:focus-visible, .gf-contact textarea:focus-visible { outline: 3px solid #D7A750; outline-offset: 3px; }
.gf-contact input[type="submit"] {
  min-height: 48px; max-width: 100%; padding: 12px 24px; border: 2px solid #0F233C;
  background: #0F233C; color: #F6ECD0; font: inherit; font-weight: 800; cursor: pointer;
}
.gf-contact input[type="submit"]:disabled { opacity: .6; cursor: wait; }
.gf-contact .gftcc-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.gf-contact .wpcf7-not-valid-tip { color: #A20D27; font-size: 15px; margin-top: 6px; }
.gf-contact .wpcf7-response-output { margin: 20px 0 0; padding: 12px; color: #0F233C; background: #FFFDF6; overflow-wrap: anywhere; }

/* Header menu only: clean links, restrained gold hover; keep focus outline. */
.gf-header nav[aria-label="Main"] a,
.gf-header nav[aria-label="Main"] a:hover,
.gf-header nav[aria-label="Main"] a:focus {
  text-decoration: none !important;
}
.gf-header nav[aria-label="Main"] a:hover,
.gf-header nav[aria-label="Main"] a:focus-visible {
  color: #D7A750 !important;
}

/* Footer navigation only: match header links without changing content links. */
footer nav[aria-label="Footer"] a,
footer nav[aria-label="Footer"] a:hover,
footer nav[aria-label="Footer"] a:focus {
  text-decoration: none !important;
}
footer nav[aria-label="Footer"] a:hover,
footer nav[aria-label="Footer"] a:focus-visible {
  color: #D7A750 !important;
}
