.gwf2-website-shell {
  display: grid;
  gap: 0.75rem;
  color: var(--spu-group-text, #12345a);
}

.gwf2-website-shell :is(button, a.button),
.gwf2-website-dialog :is(button, a.button) {
  min-height: 2.35rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--spu-nlr-border, #9fc8dc);
  border-radius: 0.65rem;
  background: var(--spu-nlr-surface, #fff);
  color: var(--spu-nlr-text, #12345a);
  font: inherit;
  cursor: pointer;
}

.gwf2-website-shell :is(button, a.button):hover,
.gwf2-website-dialog :is(button, a.button):hover {
  background: color-mix(in srgb, var(--spu-nlr-accent, #176d8c) 10%, var(--spu-nlr-surface, #fff));
}

.gwf2-website-shell :is(button, a.button):disabled,
.gwf2-website-dialog :is(button, a.button):disabled {
  cursor: wait;
  opacity: 0.65;
}

.gwf2-website-shell :is(input, select, textarea),
.gwf2-website-dialog :is(input, select, textarea) {
  border: 1px solid var(--spu-nlr-border, #9fc8dc);
  border-radius: 0.55rem;
  background: var(--spu-nlr-surface, #fff);
  color: var(--spu-nlr-text, #12345a);
  font: inherit;
}

.gwf2-website-toolbar,
.gwf2-website-actions,
.gwf2-website-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.gwf2-website-card,
.gwf2-website-editor,
.gwf2-website-article,
.gwf2-website-policy,
.gwf2-website-audience,
.gwf2-website-assets {
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  border-radius: 0.65rem;
  padding: 0.75rem;
  background: color-mix(in srgb, currentColor 4%, transparent);
}

.gwf2-website-card-grid,
.gwf2-website-article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.65rem;
}

.gwf2-website-article-list,
.gwf2-website-asset-list {
  display: grid;
  gap: 0.45rem;
}

.gwf2-website-table-scroll {
  overflow-x: auto;
}

.gwf2-website-article-table {
  width: 100%;
  min-width: 48rem;
  border-collapse: collapse;
}

.gwf2-website-public-sport-qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: 0.75rem;
}

.gwf2-website-public-sport-qr-card {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.75rem;
  border: 1px solid var(--spu-nlr-border, #9fc8dc);
  border-radius: 0.75rem;
  background: var(--spu-nlr-surface, #fff);
  text-align: center;
}

.gwf2-website-public-sport-qr {
  display: grid;
  place-items: center;
  width: min(100%, 8rem);
  aspect-ratio: 1;
  padding: 0.3rem;
  border-radius: 0.45rem;
  background: #fff;
}

.gwf2-website-public-sport-qr svg {
  display: block;
  width: 100%;
  height: 100%;
}

.gwf2-website-public-sport-qr-card figcaption { font-weight: 700; }

.gwf2-website-public-sport-catalog-reference {
  display: grid;
  justify-items: start;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.gwf2-website-revision-table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
}

.gwf2-website-article-table th,
.gwf2-website-article-table td,
.gwf2-website-revision-table th,
.gwf2-website-revision-table td {
  padding: 0.4rem;
  border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  text-align: left;
  vertical-align: top;
}

.gwf2-website-article-table input,
.gwf2-website-article-table textarea,
.gwf2-website-article-table select {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
}

.gwf2-website-public-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.55rem;
  margin: 0.75rem 0;
}

.gwf2-website-public-filter label {
  display: grid;
  gap: 0.2rem;
  min-width: 10rem;
  font-weight: 600;
}

.gwf2-website-public-filter input,
.gwf2-website-public-filter select {
  min-height: 2.1rem;
  padding: 0.35rem 0.45rem;
  font: inherit;
}

.gwf2-website-public-article-meta {
  font-size: 0.85rem;
  opacity: 0.75;
}

.gwf2-website-article-item,
.gwf2-website-asset-item {
  display: grid;
  gap: 0.45rem;
  padding: 0.55rem;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 0.45rem;
  background: color-mix(in srgb, currentColor 2%, transparent);
}

.gwf2-website-asset-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.gwf2-website-form {
  display: grid;
  gap: 0.55rem;
}

.gwf2-website-form label {
  display: grid;
  gap: 0.22rem;
  font-weight: 600;
}

.gwf2-website-form input,
.gwf2-website-form textarea,
.gwf2-website-form select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  border-radius: 0.35rem;
  padding: 0.45rem;
  font: inherit;
  color: inherit;
  background: Canvas;
}

.gwf2-website-form select:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.gwf2-website-form textarea {
  min-height: 7rem;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.88rem;
}

.gwf2-website-builder {
  display: grid;
  gap: 0.55rem;
}

.gwf2-website-builder-rows,
.gwf2-website-custom-field-rows,
.gwf2-website-audience-options {
  display: grid;
  gap: 0.45rem;
}

.gwf2-website-block-row,
.gwf2-website-custom-field-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 0.45rem;
  padding: 0.55rem;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 0.45rem;
  background: color-mix(in srgb, currentColor 2%, transparent);
}

.gwf2-website-block-row textarea {
  min-height: 3.5rem;
}

.gwf2-website-block-move-actions {
  display: flex;
  gap: 0.25rem;
}

.gwf2-website-block-dragging {
  opacity: 0.55;
}

.gwf2-website-block-drag-over {
  outline: 2px dashed currentColor;
  outline-offset: 2px;
}

.gwf2-website-json-details {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.gwf2-website-json-details summary {
  cursor: pointer;
  font-weight: 600;
}

.gwf2-website-json-details textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 8rem;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.88rem;
}

.gwf2-website-audience-option {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.45rem;
  border: 1px solid color-mix(in srgb, currentColor 15%, transparent);
  border-radius: 0.35rem;
}

.gwf2-website-audience-option input {
  flex: 0 0 auto;
}

.gwf2-website-meta,
.gwf2-website-help,
.gwf2-website-error {
  font-size: 0.9rem;
}

.gwf2-website-help {
  opacity: 0.82;
}

.gwf2-website-error {
  color: #a12626;
  font-weight: 600;
}

.gwf2-website-public-preview {
  min-height: 8rem;
  padding: 1rem;
  border-radius: 0.65rem;
  background: color-mix(in srgb, currentColor 7%, transparent);
}

.gwf2-website-preview-view {
  display: grid;
  gap: 0.45rem;
  width: 100%;
}

.gwf2-website-preview-toolbar {
  justify-content: flex-start;
  margin-bottom: 0.45rem;
  width: 100%;
}

.gwf2-website-revisions {
  margin-bottom: 0.85rem;
}

.gwf2-website-revisions > summary {
  cursor: pointer;
  font-weight: 700;
}

.gwf2-website-temporary-page {
  display: grid;
  gap: 0.45rem;
  width: 100%;
}

.gwf2-website-public-page {
  width: 100%;
}

.gwf2-website-layout-spacing {
  display: grid;
  grid-template-columns: repeat(4, minmax(8rem, 1fr));
  gap: 0.65rem;
}

.gwf2-website-media-container {
  max-width: 100%;
}

.gwf2-website-public-preview[data-alignment="center"] .gwf2-website-media-container,
.gwf2-website-public-page[data-alignment="center"] .gwf2-website-media-container {
  margin-inline: auto;
}

.gwf2-website-public-preview[data-alignment="right"] .gwf2-website-media-container,
.gwf2-website-public-page[data-alignment="right"] .gwf2-website-media-container {
  margin-left: auto;
}

.gwf2-website-public-preview[data-alignment="left"] .gwf2-website-media-container,
.gwf2-website-public-page[data-alignment="left"] .gwf2-website-media-container {
  margin-right: auto;
}

.gwf2-website-media-container img,
.gwf2-website-media-container video,
.gwf2-website-media-container iframe {
  display: block;
  width: 100%;
  max-width: 100%;
}

.gwf2-website-public-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.75rem;
}

.gwf2-website-public-gallery img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 24rem;
  object-fit: contain;
}

.gwf2-website-dialog {
  width: min(34rem, calc(100vw - 2rem));
  max-width: 100%;
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  border-radius: 0.65rem;
  padding: 1rem;
  color: var(--spu-group-text, #12345a);
  background: Canvas;
}

.gwf2-website-dialog::backdrop {
  background: rgb(0 0 0 / 35%);
}

.gwf2-website-public-preview img,
.gwf2-website-public-preview video {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 0.4rem;
}

.gwf2-website-public-pdf {
  display: block;
  width: 100%;
  min-height: 32rem;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 0.4rem;
  background: Canvas;
}

.gwf2-website-public-article + .gwf2-website-public-article {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}

@media (max-width: 42rem) {
  .gwf2-website-card-grid,
  .gwf2-website-article-grid {
    grid-template-columns: 1fr;
  }
  .gwf2-website-layout-spacing {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gwf2-website-block-row,
  .gwf2-website-custom-field-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gwf2-website-actions > button,
  .gwf2-website-form-actions > button {
    flex: 1 1 auto;
  }
}

@media (max-width: 25rem) {
  .gwf2-website-block-row,
  .gwf2-website-custom-field-row {
    grid-template-columns: 1fr;
  }
}

/* NLR wave 5: websites use focused tables and one action menu per row. */
.gwf2-website-table,
.gwf2-website-asset-table {
  width: 100%;
  min-width: 46rem;
  border-collapse: collapse;
}

.gwf2-website-table th,
.gwf2-website-table td,
.gwf2-website-asset-table th,
.gwf2-website-asset-table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  text-align: left;
  vertical-align: top;
}

.gwf2-website-table thead th,
.gwf2-website-asset-table thead th,
.gwf2-website-article-table thead th,
.gwf2-website-revision-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--spu-group-surface, Canvas);
}

.gwf2-website-table tbody tr:hover,
.gwf2-website-asset-table tbody tr:hover,
.gwf2-website-article-table tbody tr:hover,
.gwf2-website-revision-table tbody tr:hover {
  background: color-mix(in srgb, currentColor 5%, transparent);
}

.gwf2-website-table td:first-child,
.gwf2-website-asset-table td:first-child {
  min-width: 14rem;
}

.gwf2-website-table td strong,
.gwf2-website-table td small {
  display: block;
}

.gwf2-website-action-cell {
  width: 1%;
  min-width: 4rem;
  white-space: nowrap;
}

.gwf2-website-actions-menu,
.gwf2-website-actions-menu > summary {
  color: var(--spu-group-text, #12345a);
}

.gwf2-website-actions-menu > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  min-height: 2.25rem;
  border: 1px solid color-mix(in srgb, currentColor 24%, transparent);
  border-radius: 0.55rem;
  background: var(--spu-group-surface, Canvas);
  cursor: pointer;
  list-style: none;
}

.gwf2-website-actions-menu > summary::-webkit-details-marker {
  display: none;
}

.gwf2-website-actions-menu[open] {
  position: relative;
  z-index: 8;
}

.gwf2-website-actions-menu[open] > .gwf2-website-actions {
  position: absolute;
  top: calc(100% + 0.25rem);
  right: 0;
  display: grid;
  min-width: 13rem;
  max-width: min(22rem, calc(100vw - 2rem));
  max-height: min(18rem, 55vh);
  overflow-y: auto;
  padding: 0.45rem;
  border: 1px solid color-mix(in srgb, currentColor 24%, transparent);
  border-radius: 0.6rem;
  background: var(--spu-group-surface, Canvas);
  box-shadow: 0 0.55rem 1.5rem rgb(0 0 0 / 18%);
}

.gwf2-website-actions-menu .gwf2-website-actions > button,
.gwf2-website-actions-menu .gwf2-website-actions > a {
  width: 100%;
  min-height: 2.2rem;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gwf2-website-actions-menu .gwf2-website-actions > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.gwf2-table-row-menu-open {
  position: relative;
  z-index: 7;
}

.gwf2-website-editor,
.gwf2-website-policy,
.gwf2-website-audience,
.gwf2-website-assets,
.gwf2-website-article {
  display: grid;
  gap: 0.75rem;
}

@media (max-width: 42rem) {
  .gwf2-website-table,
  .gwf2-website-asset-table,
  .gwf2-website-article-table,
  .gwf2-website-revision-table {
    min-width: 38rem;
  }

  .gwf2-website-actions-menu[open] > .gwf2-website-actions {
    position: fixed;
    right: 0.75rem;
    left: 0.75rem;
    top: auto;
    max-width: none;
    max-height: min(20rem, 50vh);
  }
}

.gwf2-website-public-sport-events {
  display: grid;
  gap: 0.5rem;
  border: 1px solid var(--spu-nlr-border, #9fc8dc);
  border-radius: 0.75rem;
  padding: 0.8rem;
  background: color-mix(in srgb, var(--spu-nlr-accent, #176d8c) 5%, var(--spu-nlr-surface, #fff));
}

.gwf2-website-public-sport-events h3,
.gwf2-website-public-sport-events p { margin: 0; }
