/* Compact editorial front page — original Sideline.Docs axes. */

.portal-home { background: var(--paper); }

.front-portal {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  /*
   * Shared THE ↔ SIDELINE system.
   * THE is absolute inside SIDELINE; all offsets/sizes are in SIDELINE-em
   * so both lockups share identical geometry relative to SIDELINE.
   */
  --the-size: 0.48em;
  --the-scale: 1;
  --the-offset-x: 0.02em;
  --the-offset-y: 0.06em;
  --the-lh: .86;
  --the-track: -.05em;
  /* Invisible flow slot keeps SIDELINE’s previous inline start (pre-absolute THE) */
  --the-slot-fs: clamp(1.55rem, 2.85vw, 3rem);
}

.portal-cover {
  position: relative;
  /* Prefer the Tanger photo’s native 4:3 frame over a short hero crop. */
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.portal-cover-media {
  position: absolute;
  inset: 0;
  display: block;
  background: var(--graphite);
}

.portal-cover-frame {
  position: relative;
  height: 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--graphite);
}

.portal-cover-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 46%;
  filter: saturate(.74) contrast(1.08);
}

.portal-cover-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(6,9,9,.82) 0%, rgba(6,9,9,.42) 43%, rgba(6,9,9,.08) 71%),
    linear-gradient(0deg, rgba(6,9,9,.74) 0%, rgba(6,9,9,.08) 56%);
}

.portal-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .07;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255,255,255,.18) 4px);
}

.portal-cover-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 1510px);
  max-width: 100%;
  height: 100%;
  padding: clamp(1rem, 2.2vw, 1.85rem) var(--side) clamp(1.8rem, 3.2vw, 3.1rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow-x: clip;
}

.portal-cover-copy .kicker {
  padding-bottom: .72rem;
  border-bottom: 3px solid var(--turquoise);
}

/* Hero title lockup — constructed SVG masthead (FOOTBALL FROM THE SIDELINE) */
.portal-lockup {
  width: min(19vw, 270px);
  max-width: 100%;
  margin: auto 0 clamp(1.5rem, 2.7vw, 2.8rem);
  line-height: 0;
}

.portal-lockup svg,
.portal-lockup img {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

/* Flow spacer only — preserves SIDELINE horizontal start after THE leaves the flex row */
.lockup-the-slot {
  display: inline-block;
  flex: 0 0 auto;
  width: 1.34em;
  font-size: var(--the-slot-fs);
  line-height: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  vertical-align: bottom;
}

.nfs-line-b .lockup-the-slot {
  width: 1.36em;
  font-size: var(--the-slot-fs-nfs, var(--the-slot-fs));
}

.portal-the,
.nfs-the {
  position: absolute;
  right: 100%;
  top: var(--the-offset-y);
  left: auto;
  margin: 0;
  padding: 0;
  min-width: 0;
  font-size: var(--the-size);
  line-height: var(--the-lh);
  letter-spacing: var(--the-track);
  color: #00B7CC;
  white-space: nowrap;
  transform: translateX(var(--the-offset-x)) scale(var(--the-scale));
  transform-origin: right top;
  pointer-events: none;
}

.portal-cover-bottom {
  width: min(68vw, 1040px);
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.46);
  display: grid;
  grid-template-columns: minmax(0, 660px) auto;
  gap: clamp(2rem, 4vw, 5rem);
  align-items: end;
}

.portal-cover-bottom > p {
  margin: 0;
  font-size: clamp(.82rem, 1.02vw, 1rem);
  line-height: 1.52;
}

.portal-cover-bottom > p span { display: block; }
.portal-cover-bottom .arrow-link {
  white-space: nowrap;
  font-size: .46rem;
  letter-spacing: .12em;
  padding-bottom: .28rem;
  border-bottom-width: 1.5px;
  gap: .95rem;
}
.portal-cover-bottom .arrow-link span { font-size: .7rem; }

.portal-cover-note {
  position: absolute;
  z-index: 2;
  right: var(--side);
  bottom: clamp(1.8rem, 3.2vw, 3.1rem);
  margin: 0;
  padding-left: 1rem;
  border-left: 3px solid var(--turquoise);
  font-family: var(--display);
  font-size: .68rem;
  line-height: 1.45;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.portal-cover-note span {
  display: block;
  color: var(--turquoise);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .14em;
}

.portal-home .ticker div { padding: .55rem var(--side); }

.portal-index {
  padding: 0;
}

/* NEW FROM THE SIDELINE — photographic editorial lockup / gallery trigger */
.nfs-feature {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  min-height: clamp(340px, 48vh, 560px);
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  text-align: left;
  cursor: pointer;
}

.nfs-feature:focus-visible {
  outline: 3px solid var(--turquoise);
  outline-offset: -3px;
}

/* Collapsible archive entrances — closed on load */
.portal-gallery {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows .42s ease;
}

.portal-gallery.is-open {
  grid-template-rows: 1fr;
}

.portal-gallery-inner {
  overflow: hidden;
  min-height: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .32s ease, visibility 0s linear .42s;
}

.portal-gallery.is-open .portal-gallery-inner {
  opacity: 1;
  visibility: visible;
  transition: opacity .32s ease .06s, visibility 0s linear 0s;
}

@media (prefers-reduced-motion: reduce) {
  .portal-gallery,
  .portal-gallery-inner {
    transition: none;
  }
}

.nfs-media {
  position: absolute;
  inset: 0;
  margin: 0;
  background: var(--graphite);
}

.nfs-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 48%;
  filter: saturate(.8) contrast(1.06);
}

.nfs-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6,9,9,.88) 0%, rgba(6,9,9,.55) 34%, rgba(6,9,9,.16) 62%, rgba(6,9,9,.05) 100%),
    linear-gradient(0deg, rgba(6,9,9,.42) 0%, rgba(6,9,9,.08) 46%, rgba(6,9,9,.18) 100%);
}

.nfs-head {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(.4rem, .9vw, .7rem);
  min-height: inherit;
  width: min(100%, 1510px);
  /* Bottom-left lockup with clear inset from left / bottom edges */
  padding: clamp(1.35rem, 2.6vw, 2.1rem) var(--side) clamp(1.35rem, 2.5vw, 2rem);
}

.nfs-head .kicker {
  width: fit-content;
  padding-bottom: .42rem;
  border-bottom: 2px solid var(--turquoise);
  color: #ffffff;
}

.nfs-lockup {
  margin: 0;
  max-width: min(52vw, 560px);
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  /* ~2.5% quieter than Football lockup reference */
  transform: scale(0.975);
  transform-origin: left bottom;
}

.nfs-line {
  display: flex;
  align-items: flex-end;
  white-space: nowrap;
  transform-origin: left center;
}

.nfs-line-a {
  gap: .045em;
  transform: scaleX(.93);
}

.nfs-new {
  font-size: clamp(2.45rem, 5.1vw, 4.85rem);
  line-height: .78;
  letter-spacing: -.078em;
  color: var(--white);
}

.nfs-from {
  font-size: clamp(1.5rem, 3.05vw, 2.95rem);
  line-height: .84;
  letter-spacing: -.06em;
  color: #00B7CC;
  margin-left: -.01em;
  padding-bottom: .07em;
  /* trailing stroke leads into the lower line */
  position: relative;
}

.nfs-from::after {
  content: "";
  position: absolute;
  right: -.18em;
  bottom: .22em;
  width: .34em;
  height: .085em;
  background: #00B7CC;
  opacity: .85;
}

.nfs-line-b {
  margin-top: -.05em;
  gap: .08em;
  padding-left: .18em; /* NEW stacks toward THE */
  transform: scaleX(.95);
}

.nfs-sideline {
  font-size: clamp(2.1rem, 4.4vw, 4.15rem);
  line-height: .8;
  letter-spacing: -.068em;
  color: var(--white);
  position: relative;
}

.portal-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 var(--side);
  padding: clamp(1.6rem, 2.4vw, 2.4rem) 0 clamp(2.8rem, 4.5vw, 4.4rem);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line-dark);
}

.portal-link {
  position: relative;
  min-width: 0;
  min-height: 170px;
  padding: 1rem clamp(.9rem, 1.5vw, 1.5rem) 1rem 0;
  display: grid;
  grid-template-columns: minmax(100px, .68fr) 1fr auto;
  gap: clamp(.8rem, 1.2vw, 1.25rem);
  align-items: center;
  color: inherit;
  text-decoration: none;
  border-right: 1px solid var(--line-dark);
}

.portal-link + .portal-link { padding-left: clamp(.9rem, 1.5vw, 1.5rem); }
.portal-link:last-child { padding-right: 0; border-right: 0; }

.portal-link figure {
  height: 116px;
  margin: 0;
  overflow: hidden;
  background: var(--graphite);
}

.portal-link figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.72) contrast(1.06);
  transition: transform .3s ease, filter .25s ease;
}

.portal-link-copy { min-width: 0; }

.portal-link-copy small,
.portal-link-copy em {
  display: block;
  font-style: normal;
  font-size: .54rem;
  line-height: 1.4;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.portal-link-copy small {
  margin-bottom: .62rem;
  color: var(--turquoise-deep);
  font-weight: 800;
}

.portal-link-copy strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.25vw, 2.6rem);
  font-weight: 700;
  line-height: .84;
  letter-spacing: -.045em;
  text-transform: uppercase;
}

.portal-link-copy em {
  margin-top: .55rem;
  color: var(--gray-dark);
}

.portal-link-arrow {
  align-self: start;
  color: var(--turquoise-deep);
  font-size: 1rem;
  transition: transform .2s ease;
}

.portal-link:hover figure img,
.portal-link:focus-visible figure img { transform: scale(1.025); filter: saturate(1) contrast(1.02); }

.portal-link:hover .portal-link-copy strong,
.portal-link:focus-visible .portal-link-copy strong { color: var(--turquoise-deep); }

.portal-link:hover .portal-link-arrow,
.portal-link:focus-visible .portal-link-arrow { transform: translate(4px, -4px); }

.portal-home .site-footer {
  padding-top: 1.8rem;
  padding-bottom: 1.8rem;
  border-top-color: #00B7CC;
}

@media (max-width: 1040px) {
  .portal-home .main-nav {
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 1180px) {
  .portal-cover-bottom { width: min(78vw, 920px); }
  .portal-lockup { width: min(21vw, 250px); }
  .portal-link { grid-template-columns: minmax(90px, .55fr) 1fr auto; }
  .portal-link figure { height: 104px; }
}

@media (max-width: 900px) {
  .portal-cover {
    aspect-ratio: 4 / 3;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .portal-cover-bottom { width: 88%; }
  .portal-lockup { width: min(25vw, 210px); }
  .portal-cover-note { display: none; }
  .portal-links { grid-template-columns: 1fr; }
  .portal-link,
  .portal-link + .portal-link,
  .portal-link:last-child {
    min-height: 134px;
    padding: .8rem 0;
    grid-template-columns: minmax(120px, .32fr) 1fr auto;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }
  .portal-link:last-child { border-bottom: 0; }
  .portal-link figure { height: 104px; }
}

@media (max-width: 760px) {
  .portal-cover {
    aspect-ratio: 4 / 3;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .portal-cover-frame img {
    object-position: 58% 48%;
    filter: saturate(.82) contrast(1.08);
  }
  .portal-cover-shade {
    background:
      linear-gradient(90deg, rgba(6,9,9,.72) 0%, rgba(6,9,9,.36) 64%, rgba(6,9,9,.18) 100%),
      linear-gradient(0deg, rgba(6,9,9,.88) 0%, rgba(6,9,9,.14) 62%);
  }
  .portal-cover-copy { padding-top: 1.45rem; padding-bottom: .75rem; }
  .portal-lockup {
    width: min(29vw, 180px);
    margin-top: auto;
    margin-bottom: .9rem;
  }
  .front-portal {
    --the-slot-fs: clamp(.95rem, 4.2vw, 1.55rem);
  }
  .portal-cover-bottom {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-top: .85rem;
  }
  .portal-cover-bottom > p { max-width: 92%; font-size: .78rem; }
  .portal-cover-bottom .arrow-link { width: fit-content; }
  .portal-home .ticker div { gap: .75rem; justify-content: space-between; }
  .portal-home .ticker span { font-size: .7rem; letter-spacing: .05em; }
  .portal-home .ticker i { font-size: .34rem; }
  .portal-index { padding-top: 0; }
  .nfs-feature {
    min-height: clamp(280px, 42vh, 420px);
  }
  .nfs-media img {
    object-position: 68% 46%;
    filter: saturate(.86) contrast(1.06);
  }
  .nfs-shade {
    background:
      linear-gradient(90deg, rgba(6,9,9,.78) 0%, rgba(6,9,9,.38) 48%, rgba(6,9,9,.1) 100%),
      linear-gradient(0deg, rgba(6,9,9,.55) 0%, rgba(6,9,9,.12) 52%, rgba(6,9,9,.2) 100%);
  }
  .nfs-head {
    gap: .35rem;
    padding-top: 1.05rem;
    padding-bottom: 1.05rem;
  }
  .nfs-lockup { max-width: min(68vw, 400px); }
  .nfs-line-a { gap: .03em; transform: scaleX(.9); }
  .nfs-new { font-size: clamp(1.9rem, 8.4vw, 2.75rem); }
  .nfs-from { font-size: clamp(1.15rem, 5vw, 1.65rem); padding-bottom: .05em; }
  .nfs-from::after { width: .28em; right: -.14em; bottom: .18em; }
  .nfs-line-b { margin-top: -.04em; padding-left: .1em; transform: scaleX(.92); }
  .nfs-sideline { font-size: clamp(1.6rem, 7.2vw, 2.35rem); }
  .portal-link,
  .portal-link + .portal-link,
  .portal-link:last-child {
    grid-template-columns: 112px minmax(0, 1fr) auto;
  }
  .portal-link-copy strong { font-size: clamp(1.55rem, 7vw, 2.25rem); }
  .portal-home .site-footer { gap: 2rem; }
}

/* Mobile portrait — upper hero type only (desktop + NFS/lower untouched) */
@media (max-width: 760px) and (orientation: portrait) {
  /* Keep 4:3 image frame; let description/CTA sit under the photo so lockup can drop */
  .portal-cover {
    overflow: visible;
    /* reserve only the ink block that hangs below the 4:3 frame
       (block is shifted up 10px via top: calc(100% - 10px)) */
    margin-bottom: calc(6.1rem - 19px);
  }

  .portal-cover-copy {
    padding-top: .2rem;
    padding-bottom: .55rem;
  }

  .portal-cover-copy .kicker {
    font-size: .28rem;
    letter-spacing: .095em;
    padding-bottom: .16rem;
    border-bottom-width: 1px;
  }

  .portal-lockup {
    width: min(36vw, 150px);
    margin-top: auto;
    margin-bottom: .35rem;
    position: static;
    top: auto;
  }
  .front-portal {
    --the-slot-fs: clamp(.7rem, 3.65vw, 1.04rem);
  }

  .portal-cover-bottom {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% - 10px);
    width: 100%;
    box-sizing: border-box;
    margin-top: 0;
    padding: .7rem var(--side) .15rem;
    gap: .7rem;
    background: var(--ink);
    border-top: 0;
  }

  .portal-cover-bottom > p {
    font-size: .68rem;
    line-height: 1.42;
  }

  .portal-cover-bottom .arrow-link {
    font-size: .38rem;
    letter-spacing: .11em;
    padding-bottom: .24rem;
    border-bottom-width: 1px;
    gap: .75rem;
  }

  .portal-cover-bottom .arrow-link span {
    font-size: .58rem;
  }

  .nfs-head .kicker {
    font-size: .42rem;
    letter-spacing: .12em;
    padding-bottom: .24rem;
    border-bottom-width: 1.5px;
  }

  .nfs-head {
    gap: .5rem;
  }
}

@media (max-width: 430px) {
  .portal-cover {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }
  .portal-cover-copy { padding-top: 1.45rem; }
  .nfs-feature { min-height: clamp(250px, 40vh, 340px); }
  .nfs-media img { object-position: 72% 44%; }
  .nfs-new { font-size: clamp(1.7rem, 8.8vw, 2.25rem); }
  .nfs-from { font-size: clamp(1.05rem, 5.2vw, 1.35rem); }
  .nfs-sideline { font-size: clamp(1.45rem, 7.6vw, 1.95rem); }
  .portal-link,
  .portal-link + .portal-link,
  .portal-link:last-child { grid-template-columns: 92px minmax(0, 1fr) auto; gap: .75rem; }
  .portal-link figure { height: 86px; }
  .portal-link-copy small { margin-bottom: .38rem; }
  .portal-link-copy em { display: none; }
}

/* ≤430 portrait: lockup ~5% under prior portrait scale */
@media (max-width: 430px) and (orientation: portrait) {
  .portal-cover {
    margin-bottom: calc(5.85rem - 19px);
  }

  .portal-cover-copy {
    padding-top: .18rem;
    padding-bottom: .45rem;
  }

  .front-portal {
    --the-slot-fs: clamp(.7rem, 3.65vw, 1.04rem);
    --the-slot-fs-nfs: clamp(.78rem, 3.8vw, 1rem);
  }

  .portal-lockup {
    margin-bottom: .8rem;
  }

  .portal-cover-bottom {
    padding: .65rem var(--side) .1rem;
    gap: .65rem;
  }
}

@media (max-width: 900px) and (max-height: 560px) and (orientation: landscape) {
  .site-header { height: 64px; }
  .signal-line { top: 64px; }
  .main-nav { top: 64px; }
  .brand-logo-header,
  .brand-logo-header img { width: 92px; }
  .brand-logo-header .brand-logo-sub {
    margin-top: .05rem;
    font-size: .29rem;
    letter-spacing: .29em;
  }

  .portal-home .main-nav.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 0 clamp(1.2rem, 4vw, 3rem);
    padding: .75rem var(--side) 1.25rem;
  }
  .portal-home .main-nav a {
    width: auto;
    padding: .35rem 0;
    font-size: clamp(.7rem, 2vw, 1rem);
    line-height: .95;
  }
  .portal-home .main-nav .nav-accent {
    grid-column: 1 / -1;
    width: 100%;
  }

  .portal-cover {
    /* Landscape phones: width-based height avoids Safari toolbar svh jumps. */
    aspect-ratio: auto;
    height: clamp(220px, 38vw, 280px);
    min-height: 220px;
    max-height: 280px;
  }

  .portal-cover-frame img {
    object-position: 50% 48%;
    filter: saturate(.84) contrast(1.09);
  }
  .portal-cover-shade {
    background:
      linear-gradient(90deg, rgba(6,9,9,.78) 0%, rgba(6,9,9,.36) 46%, rgba(6,9,9,.08) 76%),
      linear-gradient(0deg, rgba(6,9,9,.68) 0%, rgba(6,9,9,.06) 58%);
  }
  .portal-cover-copy { padding-top: .7rem; padding-bottom: 1rem; }
  .portal-cover-copy .kicker {
    padding-bottom: .35rem;
    border-bottom-width: 2px;
    font-size: .5rem;
  }
  .portal-lockup {
    width: min(21vw, 190px);
    margin-bottom: .55rem;
  }
  .front-portal {
    --the-slot-fs: clamp(.85rem, 2.4vw, 1.2rem);
  }
  .portal-cover-bottom {
    width: 88%;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    padding-top: .5rem;
  }
  .portal-cover-bottom > p {
    max-width: none;
    font-size: .62rem;
    line-height: 1.35;
  }
  .portal-cover-bottom .arrow-link {
    align-self: end;
    font-size: .5rem;
  }

  .nfs-feature {
    min-height: clamp(180px, 46vh, 250px);
  }
  .nfs-media img {
    object-position: 62% 48%;
    filter: saturate(.86) contrast(1.08);
  }
  .nfs-shade {
    background:
      linear-gradient(90deg, rgba(6,9,9,.82) 0%, rgba(6,9,9,.34) 40%, rgba(6,9,9,.06) 72%),
      linear-gradient(0deg, rgba(6,9,9,.35) 0%, rgba(6,9,9,.05) 55%);
  }
  .nfs-head {
    gap: .25rem;
    padding-top: .55rem;
    padding-bottom: .7rem;
  }
  .nfs-lockup { max-width: min(50vw, 340px); }
  .nfs-line-a { transform: scaleX(.88); }
  .nfs-new { font-size: clamp(1.35rem, 4.4vw, 1.8rem); }
  .nfs-from { font-size: clamp(.85rem, 2.6vw, 1.1rem); }
  .nfs-from::after { display: none; }
  .nfs-line-b { margin-top: -.03em; padding-left: .08em; transform: scaleX(.9); }
  .nfs-sideline { font-size: clamp(1.15rem, 3.7vw, 1.5rem); }
}
