.n9fc-matchday #content > .content-wrapper:has(.site-main > .n9fc-regular-page) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
}

.n9fc-matchday #content > .content-wrapper:has(.site-main > .n9fc-regular-page)::before,
.n9fc-matchday #content > .content-wrapper:has(.site-main > .n9fc-regular-page)::after {
  display: none;
}

.n9fc-matchday #content > .content-wrapper:has(.site-main > .n9fc-regular-page) > #primary {
  box-sizing: border-box;
  float: none;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.n9fc-matchday .site-main > :is(article.n9fc-regular-page, .n9fc-regular-page ~ .comments-area) {
  box-sizing: border-box;
  max-inline-size: var(--n9fc-article-width);
  margin-inline: auto;
  padding: clamp(.75rem, 3.1vw, 2rem);
}

.n9fc-matchday .site-main > :is(article.n9fc-regular-page-wide, .n9fc-regular-page-wide ~ .comments-area) {
  max-inline-size: 100%;
}

.n9fc-matchday .site-main > .n9fc-regular-page ~ .comments-area {
  margin-block: clamp(.75rem, 2vw, 1rem) 0;
}

.n9fc-matchday .n9fc-regular-page > .entry-header {
  display: grid;
  gap: .9rem;
  margin: 0 0 clamp(.85rem, 2vw, 1.45rem);
}

.n9fc-matchday .site-main > .n9fc-regular-page .entry-header > .entry-title {
  margin: 0;
  padding: 0 0 0 .65rem;
  border-inline-start: .24rem solid var(--n9fc-red);
  font-size: clamp(1.7rem, 4.5vw, 2.9rem);
  line-height: 1.12;
  text-wrap: balance;
}

.n9fc-matchday .site-main > .n9fc-regular-page .entry-header > .entry-thumbnail {
  margin: 0;
  background: #f8f6f1;
}

.n9fc-matchday .site-main > .n9fc-regular-page .entry-thumbnail img {
  max-block-size: clamp(9rem, 30vw, 20rem);
  object-fit: contain;
}

.n9fc-regular-page .entry-content {
  min-width: 0;
  margin: 0;
  overflow-wrap: break-word;
}

.n9fc-matchday .n9fc-regular-page .entry-content > :is(h2, h3) {
  margin: clamp(1.15rem, 3vw, 1.85rem) 0 .45rem;
  font-size: clamp(1.3rem, 2.8vw, 1.8rem);
  line-height: 1.2;
  text-wrap: pretty;
}

.n9fc-matchday .n9fc-regular-page .entry-content > h3 {
  font-size: clamp(1.14rem, 2.4vw, 1.4rem);
}

.n9fc-matchday .n9fc-regular-page .entry-content > p {
  margin-block: 0 .85rem;
  line-height: 1.6;
}

.n9fc-regular-page .entry-content > :last-child {
  margin-block-end: 0;
}

.n9fc-regular-page .entry-content > .wp-block-table {
  margin-inline: 0;
}

.n9fc-regular-page .entry-content > figure img {
  border-radius: .48rem;
}

.n9fc-contact {
  margin-block-start: 1.3rem;
  scroll-margin-block-start: var(--n9fc-sticky-offset, 6rem);
}

.n9fc-contact-form,
.n9fc-contact-details {
  display: grid;
  gap: 1rem;
}

.n9fc-contact-form label {
  display: grid;
  gap: .3rem;
  min-width: 0;
  font-weight: 700;
}

.n9fc-matchday .n9fc-contact-form :is(input, select, textarea) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  padding: .6rem .7rem;
  border: 1px solid #a9a39b;
  border-radius: .45rem;
  background: var(--n9fc-panel);
  color: var(--n9fc-ink);
  font: 400 1rem/1.4 var(--n9fc-body);
}

.n9fc-contact-form textarea {
  resize: vertical;
}

.n9fc-contact-form :is(input, select, textarea, button):focus-visible {
  outline: 2px solid #851c29;
  outline-offset: 2px;
}

.n9fc-contact-form .n9fc-contact-help {
  margin: -.6rem 0 0;
  color: #59534d;
  font-size: .88rem;
}

.n9fc-matchday .n9fc-contact-form button {
  justify-self: start;
  min-height: 2.75rem;
  padding: .6rem 1rem;
  border: 0;
  border-radius: .45rem;
  background: #a21b2b;
  color: #fff;
  font: 700 1rem/1.4 var(--n9fc-body);
}

.n9fc-matchday .n9fc-contact-form button:hover {
  background: #801421;
}

.n9fc-contact-notice {
  padding: .75rem 1rem;
  border: 1px solid #c5dbcd;
  border-radius: .45rem;
  background: #eaf4ed;
  color: #234b35;
}

.n9fc-contact-error {
  border-color: #e8c5c7;
  background: #faeeee;
  color: #7c1724;
}

@media (min-width: 38rem) {
  .n9fc-contact-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.n9fc-regular-page .n9fc-page-matchday-note {
  margin-block-end: .95rem !important;
  padding: .72rem .8rem !important;
}

.n9fc-matchday .n9fc-regular-page .n9fc-page-matchday-note p {
  margin-block-end: .45rem !important;
  line-height: 1.42;
}

.n9fc-regular-page .n9fc-page-matchday-note > div {
  gap: .4rem !important;
}

.n9fc-regular-page .n9fc-page-matchday-note a {
  box-sizing: border-box;
  padding: .32rem .55rem !important;
  font-size: .85rem;
  line-height: 1.3;
}

:is(.n9fc-bite-nav, .n9fc-stadium-guide .n9fc-guide-shortcuts) {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-block: .9rem;
}

.n9fc-matchday :is(.n9fc-bite-nav, .n9fc-stadium-guide .n9fc-guide-shortcuts) a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .35rem .68rem;
  box-sizing: border-box;
  border: 1px solid var(--n9fc-line);
  border-radius: .4rem;
  background: var(--n9fc-paper);
  color: #851c29;
  font: 700 .88rem/1.25 var(--n9fc-body);
  text-decoration: none;
}

.n9fc-matchday :is(.n9fc-bite-nav, .n9fc-stadium-guide .n9fc-guide-shortcuts) a:is(:hover, :focus-visible) {
  background: #faeeee;
  text-decoration: underline;
  text-underline-offset: .19em;
}

.n9fc-guide-callout {
  border: 1px solid #e9dcc8;
  border-inline-start: .22rem solid var(--n9fc-red);
  border-radius: .5rem;
  background: #fff8ec;
}

.n9fc-guide-callout > div {
  display: flex;
  flex-wrap: wrap;
}

.n9fc-matchday .n9fc-guide-callout a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  border: 1px solid #cdb9aa;
  border-radius: .38rem;
  color: #851c29;
  font-weight: 700;
  text-decoration: none;
}

.n9fc-matchday .n9fc-guide-callout a:first-child {
  border-color: var(--n9fc-red);
  background: var(--n9fc-red);
  color: #fff;
}

.n9fc-matchday .n9fc-guide-callout a:is(:hover, :focus-visible) {
  text-decoration: underline;
  text-underline-offset: .19em;
}

.n9fc-bite-details {
  display: grid;
  gap: .75rem;
  align-items: start;
  margin-block: 1rem .75rem;
}

:is(.n9fc-bite-section, .n9fc-stadium-panel) {
  min-width: 0;
  padding: clamp(.72rem, 2vw, 1.05rem);
  border: 1px solid var(--n9fc-line);
  border-radius: .52rem;
  background: var(--n9fc-panel);
}

.n9fc-matchday :is(.n9fc-bite-section, .n9fc-stadium-panel) h2 {
  margin: 0 0 .5rem;
  font: 600 clamp(1.17rem, 2.5vw, 1.48rem)/1.22 var(--n9fc-display);
  scroll-margin-block-start: 5.5rem;
}

:is(.n9fc-bite-section, .n9fc-stadium-panel) p {
  margin-block: 0 .7rem;
  line-height: 1.52;
}

:is(.n9fc-bite-section, .n9fc-stadium-panel) p:last-child {
  margin-block-end: 0;
}

.n9fc-bite-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
  gap: .5rem;
  margin-block: .65rem;
}

.n9fc-bite-points > div {
  padding: .63rem;
  border-radius: .38rem;
  background: var(--n9fc-paper);
}

.n9fc-bite-points p:first-child {
  margin-block-end: .15rem;
}

.n9fc-bite-details + .n9fc-bite-section {
  margin-block-end: .9rem;
}

.n9fc-bite-menu-body {
  display: grid;
  gap: .75rem;
  align-items: start;
}

.n9fc-bite-menu-body figure {
  min-width: 0;
  margin: 0;
}

.n9fc-bite-menu-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.n9fc-matchday .n9fc-bite-menu-body table {
  width: 100%;
  margin: 0;
  font-size: .93rem;
}

.n9fc-matchday .n9fc-bite-menu-body :is(th, td) {
  padding: .5rem .6rem;
  border: 0;
  border-block-end: 1px solid var(--n9fc-line);
  text-align: start;
  line-height: 1.3;
}

.n9fc-bite-menu-body :is(thead, tbody tr:nth-child(even)) {
  background: var(--n9fc-paper);
}

.n9fc-matchday .n9fc-bite-menu-body :is(th, td):last-child {
  text-align: end;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (min-width: 48rem) {
  .n9fc-bite-menu-body:has(.n9fc-bite-menu-photo) {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  }
}

.n9fc-stadium-panels,
.n9fc-stadium-venue {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .75rem;
  min-width: 0;
  align-items: start;
}

.n9fc-stadium-panels {
  margin-block: .9rem;
}

.n9fc-stadium-travel,
.n9fc-stadium-facilities,
.n9fc-stadium-venue {
  grid-column: 1 / -1;
}

.n9fc-stadium-travel > div > div {
  background: var(--n9fc-paper);
}

.n9fc-matchday .n9fc-stadium-panel a {
  text-decoration: underline;
  text-underline-offset: .16em;
}

.n9fc-stadium-photo {
  min-width: 0;
  margin: 0;
}

.n9fc-stadium-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: .52rem;
}

.n9fc-guide-nav-heading {
  flex-basis: 100%;
  grid-column: 1 / -1;
  font-weight: 800;
}

.n9fc-stadium-guide-body {
  min-width: 0;
}

@media (max-width: 36rem) {
  .n9fc-stadium-guide .n9fc-guide-shortcuts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .n9fc-matchday .n9fc-stadium-guide .n9fc-guide-shortcuts a {
    justify-content: center;
    padding-inline: .35rem;
    text-align: center;
  }

  .n9fc-stadium-guide .n9fc-guide-callout > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .n9fc-stadium-guide .n9fc-guide-callout a:first-child {
    grid-column: 1 / -1;
  }
}

.n9fc-regular-page .entry-content:has(> .linklist) {
  display: grid;
  gap: .75rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.n9fc-regular-page .entry-content:has(> .linklist)::before,
.n9fc-regular-page .entry-content:has(> .linklist)::after {
  display: none;
}

.n9fc-regular-page .entry-content:has(> .linklist) > :not(.linklist) {
  grid-column: 1 / -1;
}

.n9fc-regular-page .linklist {
  min-width: 0;
  border: 1px solid var(--n9fc-line);
  border-radius: .55rem;
  background: var(--n9fc-panel);
}

.n9fc-regular-page .linklistcatname {
  padding: .55rem .75rem;
  border-radius: .5rem .5rem 0 0;
  background: var(--n9fc-header);
  color: #fff;
  font: 600 1.18rem/1.35 var(--n9fc-display);
}

.n9fc-regular-page .linklist .LinkLibraryCat > ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.n9fc-regular-page .linklist .LinkLibraryCat > ul > li + li {
  border-block-start: 1px solid var(--n9fc-line);
}

.n9fc-matchday .n9fc-regular-page .linklist li > a {
  display: flex;
  box-sizing: border-box;
  align-items: center;
  gap: .55rem;
  min-block-size: 2.75rem;
  padding: .53rem .75rem;
  color: var(--n9fc-ink);
  font: 700 .92rem/1.35 var(--n9fc-body);
}

.n9fc-matchday .n9fc-regular-page .linklist li > a::after {
  content: '';
  flex: 0 0 .4rem;
  block-size: .4rem;
  margin-inline-start: auto;
  border-block-start: 2px solid var(--n9fc-red);
  border-inline-end: 2px solid var(--n9fc-red);
  transform: rotate(45deg);
}

.n9fc-matchday .n9fc-regular-page .linklist li > a:is(:hover, :focus-visible) {
  background: var(--n9fc-paper);
  color: var(--n9fc-red);
}

.n9fc-links-directory .linklistcatname {
  padding: .7rem .85rem;
  border-block-end: 1px solid var(--n9fc-line);
  background: var(--n9fc-paper);
  color: var(--n9fc-ink);
  font-size: 1.28rem;
}

.n9fc-links-directory .linklist .LinkLibraryCat > .n9fc-links-channels {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  padding: .7rem .85rem;
}

.n9fc-links-directory .n9fc-links-channels > li {
  max-inline-size: 100%;
  margin: 0;
}

.n9fc-links-directory .linklist .LinkLibraryCat > .n9fc-links-channels > li + li {
  border: 0;
}

.n9fc-links-website {
  flex: 0 0 100%;
}

.n9fc-matchday .n9fc-links-directory .linklist .n9fc-links-website > a {
  border-radius: .4rem;
  background: var(--n9fc-red);
  color: #fff;
}

.n9fc-matchday .n9fc-links-directory .linklist .n9fc-links-website > a:is(:hover, :focus-visible) {
  background: #851c29;
}

.n9fc-matchday .n9fc-links-directory .linklist .n9fc-links-website > a::after {
  border-color: currentColor;
}

.n9fc-matchday .n9fc-links-directory .linklist li > .n9fc-links-platform {
  justify-content: center;
  gap: .36rem;
  padding-inline: .58rem;
  border: 1px solid var(--n9fc-line);
  border-radius: .4rem;
  font-size: .84rem;
}

.n9fc-matchday .n9fc-links-directory .linklist li > .n9fc-links-platform::after {
  content: none;
}

.n9fc-links-platform svg {
  flex: 0 0 1rem;
  inline-size: 1rem;
  block-size: 1rem;
  fill: currentColor;
}

.n9fc-matchday .n9fc-links-development-title {
  margin: .3rem .85rem 0;
  padding-block-start: .75rem;
  border-block-start: 1px solid var(--n9fc-line);
  color: var(--n9fc-ink);
  font: 700 .95rem/1.3 var(--n9fc-body);
}

.n9fc-matchday .n9fc-links-directory .n9fc-links-community li > a {
  padding: .48rem .85rem;
}

.n9fc-links-label {
  min-inline-size: 0;
}

.n9fc-links-destination {
  display: block;
  margin-block-start: .08rem;
  color: var(--n9fc-muted);
  font-size: .75rem;
  font-weight: 400;
}

.n9fc-matchday .n9fc-page-staff-table {
  width: 100%;
  margin: 0;
  border: 1px solid var(--n9fc-line);
  border-collapse: collapse;
  table-layout: fixed;
}

.n9fc-matchday .n9fc-page-staff-table :is(th, td) {
  padding: .55rem .75rem;
  border: 0;
  border-block-end: 1px solid var(--n9fc-line);
  text-align: start;
  vertical-align: top;
  line-height: 1.4;
}

.n9fc-matchday .n9fc-page-staff-table th {
  background: var(--n9fc-header);
  color: #fff;
}

.n9fc-page-staff-table th:first-child {
  width: 41%;
}

.n9fc-page-staff-table tbody tr:nth-child(even) {
  background: #faf8f4;
}

.n9fc-page-staff-table tbody td:last-child {
  font-weight: 700;
}

@media (min-width: 42rem) {
  .n9fc-regular-page .entry-content:has(> .linklist ~ .linklist) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 36rem) {
  .n9fc-bite-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .n9fc-matchday .n9fc-bite-nav a {
    justify-content: center;
    padding-inline: .3rem;
    font-size: .82rem;
    text-align: center;
  }

  .n9fc-regular-page .n9fc-page-matchday-note a {
    flex: 1 1 8rem;
    justify-content: center;
    text-align: center;
  }

  .n9fc-matchday .n9fc-page-staff-table,
  .n9fc-page-staff-table tbody {
    display: block;
  }

  .n9fc-page-staff-table thead {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .n9fc-page-staff-table tbody tr {
    display: grid;
    gap: .14rem;
    padding: .48rem .62rem;
  }

  .n9fc-page-staff-table tbody tr + tr {
    border-block-start: 1px solid var(--n9fc-line);
  }

  .n9fc-matchday .n9fc-page-staff-table tbody td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
  }

  .n9fc-page-staff-table tbody td:first-child {
    color: var(--n9fc-muted);
    font-size: .84rem;
  }

  .n9fc-page-staff-table tbody td:last-child {
    grid-row: 1;
    font-size: .97rem;
  }
}
