/* Simpler Village Square (FEATURE_SIMPLE_SQUARE): a grown-up local paper.
   Warm cream page and section bars, quiet borders, deep green for active
   controls, serif headlines; the photos bring the colour.

   Palette: the light theme's own tokens are re-pointed on these pages only,
   so every DaisyUI component (buttons, inputs, cards) follows. The dark
   theme is untouched and keeps its tokens. */

[data-theme="myvillage"] body.mv-simple-square {
  /* Page cream, with a lighter cream for raised surfaces (cards, inputs,
     sheets, dialogs) so they stand out from the page. */
  --color-base-100: #fffdf8;
  --color-base-200: #faf6ed;
  --color-base-300: #e6ddc9; /* subtle warm borders */
  --color-primary: #174a32; /* active controls */
  --color-primary-content: #faf6ed;
  /* Square, entity-presentation and app-shell variables follow the same cream. */
  --sqc-bg: #faf6ed;
  --sqc-bg-soft: #fffdf8;
  --mv-shell-bg: #faf6ed;
  --mv-shell-bg-soft: #fffdf8;
  --mv-shell-border: #e6ddc9;
}

[data-theme="myvillage"] body.mv-simple-square .lp-page {
  --ep-bg: #faf6ed;
  --ep-soft: #fffdf8;
  --ep-availability: #fffdf8;
  --ep-border: #e6ddc9;
}

body.mv-simple-square {
  --sqs-ink: var(--color-base-content);
  --sqs-muted: color-mix(in oklab, var(--color-base-content) 64%, transparent);
  --sqs-line: color-mix(in oklab, var(--color-base-content) 11%, transparent);
  --sqs-page: var(--color-base-200);
  --sqs-paper: var(--color-base-100);
  --sqs-accent: var(--color-primary);
  --sqs-accent-ink: var(--color-primary-content);
  background: var(--sqs-page);
}

body.mv-simple-square main,
body.mv-simple-square .page-surface-wrapper,
body.mv-simple-square .ep-host {
  background: var(--sqs-page);
}

body.mv-simple-square .page-surface-wrapper {
  padding-top: 0;
}

html.sqs-lock,
html.sqs-lock body {
  overflow: hidden;
}

/* ---------- masthead ---------- */
header.sqs-header.sticky,
.sqs-header {
  background: var(--sqs-page);
  border-bottom: 1px solid var(--sqs-line);
}

.sqs-areas {
  display: flex;
  gap: 0.35rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.5rem 0.75rem 0.15rem;
  overflow-x: auto;
  overflow-y: hidden; /* sideways only, never up and down */
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.sqs-areas::-webkit-scrollbar {
  display: none;
}

.sqs-area {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.2rem 0.75rem;
  border-radius: 9999px;
  /* !important: landing.css colours every `main a` via a long :not() chain. */
  color: var(--sqs-ink) !important;
  font-size: 0.9rem;
  text-decoration: none;
}

.sqs-area:hover {
  background: color-mix(in oklab, var(--sqs-accent) 8%, transparent);
}

.sqs-area.is-active {
  background: var(--sqs-accent);
  color: var(--sqs-accent-ink) !important;
  font-weight: 600;
}

.sqs-masthead {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.1rem 0.75rem 0.35rem;
}

.sqs-masthead__logo img {
  display: block;
  width: auto;
  height: 2.6rem;
}

.sqs-masthead__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 0.15rem 0;
  border: 0;
  background: none;
  color: var(--sqs-ink);
  cursor: pointer;
}

.sqs-masthead .sqs-masthead__brand {
  font-family: var(--font-serif, Georgia, "Times New Roman", serif);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.sqs-masthead__place {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  margin-top: 0.15rem;
  color: var(--sqs-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sqs-masthead__place > span[data-sqs-place-name] {
  overflow: hidden;
  text-overflow: ellipsis;
}

.sqs-masthead__rule {
  width: 1.6rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.sqs-masthead__title:hover .sqs-masthead__place,
.sqs-masthead__title:focus-visible .sqs-masthead__place {
  color: var(--sqs-accent);
}

.sqs-masthead__messages {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--sqs-ink) !important;
}

.sqs-masthead__dot {
  position: absolute;
  top: 0.45rem;
  right: 0.4rem;
  width: 0.6rem;
  height: 0.6rem;
  border: 2px solid var(--sqs-page);
  border-radius: 9999px;
  background: var(--sqs-accent);
}

@media (min-width: 640px) {
  .sqs-masthead__brand {
    font-size: 2.3rem;
  }
}

/* ---------- section bar (tabs) ---------- */
.sqs-page .sqc-community-nav-wrap,
.sqs-tabs-wrap {
  position: relative;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 0.75rem;
  background: var(--sqs-page);
  border-bottom: 1px solid var(--sqs-line);
}

.sqs-page #square-layout {
  padding-top: 0.65rem;
}

/* Meet Anu's dialog is kept; its separate card is replaced by the Anu bar. */
.sqs-meet-anu-host .sqc-anu__card {
  display: none;
}

/* ---------- slim Anu bar ---------- */
.sqs-anu {
  margin: 0 0.75rem 0.25rem;
  padding: 0.4rem 0.45rem 0.35rem;
  border: 1px solid var(--sqs-line);
  border-radius: 0.85rem;
  background: color-mix(in oklab, var(--sqs-accent) 6%, var(--sqs-paper));
}

@media (min-width: 640px) {
  .sqs-anu {
    margin: 0 0 0.25rem;
  }
}

.sqs-anu__row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
}

.sqs-anu__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 9999px;
  background: var(--sqs-accent);
  color: var(--sqs-accent-ink);
  cursor: pointer;
}

.sqs-anu__play:focus-visible,
.sqs-anu__more:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--sqs-accent) 40%, transparent);
  outline-offset: 2px;
}

.sqs-anu__play .sqc-brief-bar__icon-pause,
.sqs-anu__play[aria-pressed="true"] .sqc-brief-bar__icon-play {
  display: none;
}

.sqs-anu__play[aria-pressed="true"] .sqc-brief-bar__icon-pause {
  display: block;
}

.sqs-anu .sqs-anu__title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sqs-anu__who {
  font-weight: 700;
}

.sqs-anu__wave {
  display: none;
  align-items: center;
  gap: 2px;
  height: 1.2rem;
  color: var(--sqs-muted);
}

.sqs-anu__wave i {
  display: block;
  width: 2px;
  height: 40%;
  border-radius: 2px;
  background: currentColor;
}

.sqs-anu__wave i:nth-child(2n) { height: 80%; }
.sqs-anu__wave i:nth-child(3n) { height: 100%; }
.sqs-anu__wave i:nth-child(5n) { height: 55%; }

@media (min-width: 400px) {
  .sqs-anu__wave {
    display: inline-flex;
  }
}

.sqs-anu__meta {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.4rem;
  color: var(--sqs-muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.sqs-anu__date {
  padding: 0.05rem 0.45rem;
  border: 1px solid var(--sqs-line);
  border-radius: 9999px;
  background: var(--sqs-paper);
  color: var(--sqs-ink);
  font-size: 0.75rem;
  font-weight: 600;
}

.sqs-anu__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 2rem;
  height: 2.75rem;
  border: 0;
  background: none;
  color: var(--sqs-muted);
  cursor: pointer;
}

.sqs-anu__more[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.sqs-anu__track {
  height: 2px;
  margin: 0.2rem 0.25rem 0;
  overflow: hidden;
  border-radius: 9999px;
  background: var(--sqs-line);
}

.sqs-anu__track .sqc-brief-bar__progress {
  display: block;
  width: 0;
  height: 100%;
  background: var(--sqs-accent);
}

.sqs-anu__extra {
  padding: 0.5rem 0.35rem 0.2rem;
  font-size: 0.875rem;
}

.sqs-anu__note {
  margin: 0;
  color: var(--sqs-muted);
}

.sqs-anu__stories {
  margin: 0.4rem 0 0 1.1rem;
  list-style: decimal;
}

.sqs-anu__stories a {
  color: var(--sqs-ink) !important;
}

.sqs-anu__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  margin-top: 0.3rem;
}

.sqs-anu__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--sqs-accent) !important;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

/* ---------- newspaper feed cards ---------- */
.sqs-page .sqc-feed {
  background: transparent;
  border-color: transparent;
}

.sqs-page #sqc-live-feed-heading {
  /* Kept for screen readers and the #anchor; the masthead already names the place. */
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.sqs-page .sqc-feed > div:first-child {
  margin: 0;
}

.sqs-page [data-feed-mode-form] {
  margin-bottom: 0.5rem;
}

.sqs-page [data-feed-mode-form] .btn {
  height: 2rem;
  min-height: 2rem;
}

.sqs-page .sqc-feed-card {
  border: 1px solid var(--sqs-line);
  border-radius: 1rem;
  background: var(--sqs-paper);
  box-shadow: none;
}

.sqs-page .sqc-feed-card__title,
.sqs-page .sqc-feed-card__title-link {
  font-family: var(--font-serif, Georgia, "Times New Roman", serif);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--sqs-ink) !important;
}

.sqs-page .sqc-feed-card__img {
  border-radius: 0.75rem;
}

.sqs-page .sqc-feed-follow__btn {
  border: 1.5px solid var(--sqs-accent);
  border-radius: 9999px;
  background: transparent;
  color: var(--sqs-accent) !important;
  font-weight: 700;
}

.sqs-page .sqc-share__prompt {
  background: var(--sqs-paper);
  border-color: var(--sqs-line);
}

/* ---------- sheets (place picker, Explore) ---------- */
.sqs-sheet {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 90dvh;
  margin: auto 0 0;
  padding: 0;
  border: 0;
  border-radius: 1.25rem 1.25rem 0 0;
  background: var(--sqs-page);
  color: var(--sqs-ink);
}

.sqs-sheet::backdrop {
  background: rgba(20, 24, 18, 0.45);
}

.sqs-sheet[open] {
  animation: sqs-sheet-up 0.18s ease-out;
}

.sqs-sheet__panel {
  display: flex;
  flex-direction: column;
  max-height: 90dvh;
  padding: 0.5rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  overflow: hidden;
}

.sqs-sheet__grip {
  align-self: center;
  width: 2.75rem;
  height: 0.3rem;
  margin-bottom: 0.4rem;
  border-radius: 9999px;
  background: var(--sqs-line);
}

.sqs-sheet__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.6rem;
}

.sqs-sheet .sqs-sheet__title {
  flex: 1 1 auto;
  font-family: var(--font-serif, Georgia, "Times New Roman", serif);
  margin: 0;
  font-size: 1.85rem;
  font-weight: 700;
}

.sqs-sheet__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: var(--sqs-ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.sqs-sheet__close:hover {
  background: color-mix(in oklab, var(--sqs-ink) 7%, transparent);
}

@keyframes sqs-sheet-up {
  from { transform: translateY(24px); opacity: 0.4; }
  to { transform: none; opacity: 1; }
}

@keyframes sqs-drawer-in {
  from { transform: translateX(24px); opacity: 0.4; }
  to { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .sqs-sheet[open] {
    animation: none;
  }
}

/* Desktop: Explore is a right-hand drawer; the place picker a small panel. */
@media (min-width: 1024px) {
  .sqs-explore {
    width: 30rem;
    max-width: 92vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0 0 0 auto;
    border-radius: 0;
    border-left: 1px solid var(--sqs-line);
  }

  .sqs-explore[open] {
    animation: sqs-drawer-in 0.18s ease-out;
  }

  .sqs-explore .sqs-sheet__panel {
    height: 100dvh;
    max-height: 100dvh;
  }

  .sqs-explore .sqs-sheet__grip {
    display: none;
  }

  .sqs-place-dialog {
    width: 26rem;
    margin: 6.5rem auto auto;
    border-radius: 1rem;
  }
}

.sqs-place-dialog__note {
  margin: 0 0 0.75rem;
  color: var(--sqs-muted);
  font-size: 0.875rem;
}

.sqs-place-dialog__home {
  display: block;
  margin-top: 0.75rem;
  color: var(--sqs-accent) !important;
  font-weight: 600;
}

/* ---------- Explore ---------- */
.sqs-explore__search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0.35rem 0.2rem 0.85rem;
  border: 1px solid var(--color-base-300);
  border-radius: 0.75rem;
  background: var(--sqs-paper);
  color: var(--sqs-ink);
}

.sqs-explore__search:focus-within {
  border-color: var(--sqs-accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--sqs-accent) 18%, transparent);
}

.sqs-explore__search input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 2.6rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--sqs-ink);
  font-size: 1.05rem;
}

.sqs-explore__search input[type="search"]::-webkit-search-cancel-button {
  display: none;
}

.sqs-explore__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  background: none;
  color: var(--sqs-ink);
  cursor: pointer;
}

.sqs-explore__clear[hidden] {
  display: none;
}

.sqs-explore__panel {
  flex: 1 1 auto;
  margin-top: 0.4rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sqs-explore__panel[aria-busy="true"] {
  opacity: 0.6;
}

.sqs-explore__status {
  padding: 1rem 0;
  color: var(--sqs-muted);
}

.sqx-explore__label {
  margin: 0.75rem 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
}

.sqx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sqx-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.2rem 0.95rem;
  border: 1px solid var(--color-base-300);
  border-radius: 9999px;
  background: var(--sqs-paper);
  color: var(--sqs-ink) !important;
  font-size: 0.9rem;
  text-decoration: none;
}

.sqx-chip:hover {
  border-color: var(--sqs-accent);
}

.sqx-chip.is-active {
  border-color: var(--sqs-accent);
  background: var(--sqs-accent);
  color: var(--sqs-accent-ink) !important;
  font-weight: 600;
}

.sqx-explore__count,
.sqx-clubs__count {
  margin: 0.9rem 0 0.35rem;
  color: var(--sqs-ink);
  font-size: 0.95rem;
}

.sqx-results,
.sqx-clubs__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sqx-result,
.sqx-club {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--sqs-line);
  color: var(--sqs-ink) !important;
  text-decoration: none;
}

.sqx-result__media,
.sqx-club__media {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 6.5rem;
  height: 5rem;
  overflow: hidden;
  border-radius: 0.6rem;
  background: color-mix(in oklab, var(--sqs-accent) 10%, var(--sqs-paper));
  color: var(--sqs-accent);
  font-family: var(--font-serif, Georgia, serif);
  font-size: 1.6rem;
  font-weight: 700;
}

.sqx-result__media img,
.sqx-club__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 640px) {
  .sqx-club__media {
    width: 10rem;
    height: 7rem;
  }
}

.sqx-result__text,
.sqx-club__text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.sqx-result__kind {
  align-self: flex-start;
  padding: 0.05rem 0.5rem;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--sqs-accent) 14%, var(--sqs-paper));
  color: var(--sqs-accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.sqx-result .sqx-result__title,
.sqx-club .sqx-club__name {
  font-family: var(--font-serif, Georgia, "Times New Roman", serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.sqx-result:hover .sqx-result__title,
.sqx-club:hover .sqx-club__name {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sqx-result__sub,
.sqx-club__meta {
  color: var(--sqs-muted);
  font-size: 0.875rem;
  line-height: 1.35;
}

.sqx-result__chev,
.sqx-club__chev {
  flex: none;
  color: var(--sqs-ink);
}

.sqx-empty,
.sqx-clubs__empty {
  margin-top: 0.9rem;
  padding: 1.1rem 1rem;
  border: 1px dashed var(--color-base-300);
  border-radius: 0.9rem;
  background: var(--sqs-paper);
  text-align: center;
}

.sqx-empty p,
.sqx-clubs__empty p {
  margin: 0 0 0.75rem;
}

/* ---------- Clubs tab / Explore page ---------- */
.sqx-page {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0.25rem 0.25rem 1.5rem;
}

.sqx-page .sqx-page__title {
  margin: 0.9rem 0 0.25rem;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.1;
}

.sqx-page__lede {
  margin: 0 0 0.9rem;
  color: var(--sqs-muted);
}

.sqx-page .sqs-explore__search {
  margin-bottom: 0.25rem;
}

/* ---------- newspaper stories: one lead, then a grid of tiles ---------- */
/* The bottom bar's + is the way to post here; the inline composer bar is hidden. */
.sqs-page .sqc-share {
  display: none;
}

/* The Infinite / Layered view choice stays available, at the end of the feed. */
.sqs-page .sqc-feed {
  display: flex;
  flex-direction: column;
}

.sqs-page .sqc-feed [data-feed-mode-form] {
  order: 10;
  justify-content: center;
  margin: 1rem 0 0;
}

.sqc-page.sqs-page .sqc-feed .sqc-feed-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 0.85rem;
  padding: 0 0.75rem;
}

.sqs-page .sqc-feed-list > * {
  margin: 0 !important;
}

.sqs-page .sqc-feed-list > .sqs-story--lead,
.sqs-page .sqc-feed-list > [data-feed-layer],
.sqs-page .sqc-feed-list > :not(.sqs-story) {
  grid-column: 1 / -1;
}

@media (min-width: 640px) {
  .sqc-page.sqs-page .sqc-feed .sqc-feed-list {
    padding: 0;
  }
}

@media (min-width: 1024px) {
  .sqc-page.sqs-page .sqc-feed .sqc-feed-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.sqs-story {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--sqs-ink);
}

.sqs-story a {
  color: inherit !important;
  text-decoration: none;
}

.sqs-story .sqs-story__title {
  margin: 0;
  font-family: var(--font-serif, Georgia, "Times New Roman", serif);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.sqs-story__title-link:hover,
.sqs-story__title-link:focus-visible {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.sqs-story__media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 0.6rem;
  background: color-mix(in oklab, var(--sqs-accent) 12%, var(--sqs-paper));
}

.sqs-story__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sqs-story__media--plain {
  min-height: 5.5rem;
}

.sqs-story__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  padding-left: 0.2rem;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 9999px;
  background: rgba(20, 24, 18, 0.55);
  color: #fff;
  transform: translate(-50%, -50%);
}

.sqs-story__date {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 2.6rem;
  padding: 0.2rem 0.35rem;
  border-radius: 0.45rem;
  background: var(--sqs-paper);
  color: var(--sqs-accent);
  line-height: 1.05;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.sqs-story__day {
  font-size: 1.15rem;
  font-weight: 800;
}

.sqs-story__mon {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.sqs-story__excerpt {
  margin: 0.35rem 0 0;
  color: var(--sqs-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.sqs-story__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.sqs-story__label {
  min-width: 0;
  margin: 0;
  color: var(--sqs-ink);
  font-size: 0.9rem;
}

.sqs-story__score {
  margin-left: 0.4rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sqs-story__byline {
  margin: 0.15rem 0 0;
  color: var(--sqs-muted);
  font-size: 0.8rem;
}

.sqs-story__byline a:hover {
  text-decoration: underline !important;
}

.sqs-story__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--sqs-line);
}

.sqs-story__actions form {
  margin: 0;
}

.sqs-story .sqs-story__action {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--sqs-muted) !important;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

/* Lead story: headline, wide photo, label + Connect. */
.sqs-story--lead .sqs-story__title {
  font-size: 1.85rem;
  line-height: 1.12;
}

.sqs-story--lead .sqs-story__media {
  margin-top: 0.6rem;
  aspect-ratio: 16 / 10;
}

.sqs-story--lead .sqs-story__media--plain {
  display: none;
}

.sqs-story--lead.sqs-story--photo .sqs-story__excerpt {
  -webkit-line-clamp: 2;
}

@media (min-width: 640px) {
  .sqs-story--lead .sqs-story__title {
    font-size: 2.2rem;
  }
}

/* Tiles: photo first, then a short serif headline. */
.sqs-story--tile .sqs-story__media {
  order: -1;
  margin-bottom: 0.45rem;
  aspect-ratio: 4 / 3;
}

.sqs-story--tile .sqs-story__title {
  font-size: 1.08rem;
  line-height: 1.22;
}

.sqs-story--tile.sqs-story--photo .sqs-story__excerpt,
.sqs-story--tile .sqs-story__byline {
  display: none;
}

.sqs-story--tile .sqs-story__label {
  color: var(--sqs-muted);
  font-size: 0.78rem;
}

.sqs-story--tile.sqs-story--text {
  padding: 0.75rem;
  border: 1px solid var(--sqs-line);
  border-radius: 0.75rem;
  background: var(--sqs-paper);
}

.sqs-story--tile.sqs-story--text .sqs-story__media--plain {
  min-height: 0;
  margin: -0.75rem -0.75rem 0.6rem;
  border-radius: 0.75rem 0.75rem 0 0;
  aspect-ratio: 16 / 7;
}

.sqs-story--tile .sqs-story__excerpt {
  font-size: 0.85rem;
}

/* Connect: outlined green pill. */
.sqs-page .sqc-feed-follow {
  margin: 0;
  flex: none;
}

.sqs-page .sqc-feed-follow__btn {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.25rem 1rem;
  border: 1.5px solid var(--sqs-accent);
  border-radius: 9999px;
  background: transparent;
  color: var(--sqs-accent) !important;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

.sqs-page .sqc-feed-follow__btn.is-following {
  background: var(--sqs-accent);
  color: var(--sqs-accent-ink) !important;
}

.sqs-page .sqs-story.sqc-feed-card--highlight {
  outline: 3px solid color-mix(in oklab, var(--sqs-accent) 45%, transparent);
  outline-offset: 4px;
  border-radius: 0.6rem;
}

.sqs-masthead .sqs-masthead__logo img {
  height: 3.1rem;
}

/* local_presentation.css forces sans-serif on every Square heading with
   !important; the simpler Square's newspaper headlines stay serif. */
.lp-page.sqs-page :is(.sqs-story__title, .sqs-sheet__title, .sqx-result__title, .sqx-club__name, .sqs-place-dialog .sqs-sheet__title) {
  font-family: var(--font-serif, Georgia, "Times New Roman", serif) !important;
}

/* Club rows: "+ Connect" sits under the club text, outside the row link. */
.sqx-clubs__list > li {
  border-bottom: 1px solid var(--sqs-line);
}

.sqx-clubs__list > li > .sqx-club {
  border-bottom: 0;
}

.sqx-clubs__list .sqx-club__connect {
  display: flex;
  margin: -0.35rem 0 0.75rem calc(6.5rem + 0.85rem);
}

.sqx-clubs__list a.sqx-club__connect {
  display: inline-flex;
}

@media (min-width: 640px) {
  .sqx-clubs__list .sqx-club__connect {
    margin-left: calc(10rem + 0.85rem);
  }
}

.sqx-clubs .sqc-feed-follow__btn {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.2rem 1rem;
  border: 1.5px solid var(--sqs-accent);
  border-radius: 9999px;
  background: transparent;
  color: var(--sqs-accent) !important;
  font-weight: 700;
  text-decoration: none;
}

.sqx-clubs .sqc-feed-follow__btn.is-following {
  background: var(--sqs-accent);
  color: var(--sqs-accent-ink) !important;
}

@media (min-width: 1024px) {
  .sqs-story--lead .sqs-story__media {
    aspect-ratio: 16 / 8;
  }
}


/* ---------- two creams (light theme) ----------
   The page, bars and chrome are page cream (#faf6ed); cards, panels,
   inputs and sheets are a lighter cream (#fffdf8) so they lift off the
   page. Thin warm borders separate things and the photos bring the colour.
   Panels that hard-code white or a pale tint elsewhere follow these two. */
[data-theme="myvillage"] body.mv-simple-square :is(
    .ep-page,
    .lp-page,
    .bg-base-200,
    .sqs-anu__date,
    .sqs-story__date,
    .mv-mobile-bottom-nav,
    #cookie-banner
  ) {
  background-color: #faf6ed !important;
}

[data-theme="myvillage"] body.mv-simple-square :is(
    .lp-diary,
    .lp-stc,
    .lp-stc-mark,
    .sqc-create-post,
    .sqc-explore-card,
    .sqc-info-card,
    .sqc-today,
    .sqc-neighbourhood,
    .rounded-box,
    .card,
    .modal-box,
    .bg-white,
    .bg-base-100,
    .sqs-anu,
    .sqs-story--text,
    .sqs-story__media--plain,
    .sqx-chip:not(.is-active),
    .sqs-explore__search,
    .sqx-empty,
    .sqx-clubs__empty,
    .sqx-club__media--blank,
    .sqx-result__media--blank,
    .mv-mobile-smart-menu__panel,
    .mv-mobile-create-sheet__panel
  ) {
  background-color: #fffdf8 !important;
}

[data-theme="myvillage"] body.mv-simple-square :is(
    .sqc-explore-card,
    .sqc-info-card,
    .lp-diary,
    .lp-stc,
    .sqc-create-post,
    .sqs-anu,
    .sqs-story--text,
    .sqs-story__media--plain,
    .sqx-club__media--blank,
    .sqx-result__media--blank,
    .sqs-explore__search,
    .sqx-chip:not(.is-active)
  ) {
  border-color: #e6ddc9 !important;
}

/* Blank image areas: a hairline frame instead of a tinted block. */
[data-theme="myvillage"] body.mv-simple-square :is(.sqs-story__media--plain, .sqx-club__media--blank, .sqx-result__media--blank) {
  border: 1px solid #e6ddc9;
}

/* Header strip of the Explore rail card was a green bar; keep it quiet. */
[data-theme="myvillage"] body.mv-simple-square .sqc-explore-card > .bg-primary {
  background: #fffdf8 !important;
  color: var(--sqs-ink) !important;
  border-bottom: 1px solid #e6ddc9;
}

/* Photo frames match the page while images load. */
[data-theme="myvillage"] body.mv-simple-square .sqs-story__media {
  background-color: #faf6ed;
}

/* Speak to Change uses its own green (--ep-green); align it with the active-control green. */
[data-theme="myvillage"] body.mv-simple-square .lp-page {
  --ep-green: #174a32;
}

/* The page edge (overscroll, short pages) is cream too. */
[data-theme="myvillage"]:has(body.mv-simple-square) {
  background-color: #faf6ed;
}

/* Noticeboard and Scéal Chat inside the simpler Square: flat cream page. */
body.mv-simple-square .ep-page {
  background: transparent;
}

[data-theme="myvillage"] body.mv-simple-square :is(.lnb-empty, .lnb-signin, .lnb-card, .lnb-notice, .lnb-composer, .chat-message, .sqc-chat-message) {
  background-color: #fffdf8 !important;
  border-color: #e6ddc9 !important;
}

/* ---------- photos keep their own shape ----------
   Story photos are not cropped into a fixed frame: landscape, square,
   portrait and poster images all show in full at their natural shape.
   Very tall posters are capped and centred (contain) so one flyer does not
   fill several screens. Same rule as the original feed card (sqc-feed-card). */
.sqs-story.sqs-story--photo .sqs-story__media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: auto;
  line-height: 0;
}

.sqs-story.sqs-story--photo .sqs-story__img {
  width: 100%;
  height: auto;
  max-height: min(78vh, 40rem);
  object-fit: contain;
}

.sqs-story--tile.sqs-story--photo .sqs-story__img {
  max-height: 20rem;
}

/* ---------- Businesses tab (village_businesses.html) ----------
   Same page as Clubs: serif title, search bar, chips. The listing cards
   are shared partials, restyled here only: flat cream cards with a thin
   warm border instead of shadows and gradients. Leaders keep a gold edge. */
.sqx-biz__filters {
  margin: 0.65rem 0 0.15rem;
}

.sqx-biz__area {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--sqs-muted);
}

.sqx-biz > .space-y-12 {
  margin-top: 1.5rem;
}

.sqx-biz > .space-y-12 > * + * {
  margin-top: 2rem !important;
}

.sqx-biz section h2 {
  font-family: var(--font-serif, Georgia, "Times New Roman", serif);
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  line-height: 1.15;
  color: var(--sqs-ink) !important;
}

.sqx-biz section h2 + p {
  color: var(--sqs-muted) !important;
}

/* Cards: leader, featured (a.group) and listing tiles (carousel items). */
.sqx-biz a.group,
.sqx-biz [id$="-carousel"] > * {
  border: 1px solid var(--sqs-line) !important;
  border-radius: 0.75rem !important;
  background: var(--sqs-paper) !important;
  box-shadow: none !important;
  --tw-ring-shadow: 0 0 #0000 !important;
}

.sqx-biz a.group:hover {
  border-color: color-mix(in oklab, var(--sqs-accent) 40%, transparent) !important;
}

.sqx-biz a.group img {
  transform: none !important;
}

.sqx-biz a.group h3 {
  font-family: var(--font-serif, Georgia, "Times New Roman", serif);
  font-weight: 700;
}

/* Leaders: a gold edge, not a heavy ring. */
.sqx-biz a.group.border-amber-400 {
  border-color: #d9b45a !important;
}

/* Logo-less placeholders: a soft tint of the Square green, not bright gradients. */
.sqx-biz a.group [class*="bg-gradient-to-br"] {
  background: color-mix(in oklab, var(--sqs-accent) 10%, var(--sqs-paper)) !important;
}

.sqx-biz a.group [class*="bg-gradient-to-br"] > span {
  color: color-mix(in oklab, var(--sqs-accent) 45%, transparent) !important;
}

.sqx-biz [id$="-carousel"] > * > [class*="bg-gradient-to-r"] {
  display: none;
}

/* Empty and "no members yet" boxes match the Square's quiet panels. */
.sqx-biz :is(.border-dashed, .rounded-2xl.bg-base-200\/60) {
  border: 1px dashed var(--sqs-line) !important;
  background: var(--sqs-paper) !important;
}

/* Featured businesses: two to a row on phones, like the Square's tiles. */
.sqx-biz section[aria-labelledby="featured-businesses-heading"] > .grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  max-width: none;
}

@media (min-width: 1024px) {
  .sqx-biz section[aria-labelledby="featured-businesses-heading"] > .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.sqx-biz section[aria-labelledby="featured-businesses-heading"] a.group > div:first-child {
  height: auto;
  aspect-ratio: 4 / 3;
}

.sqx-biz section[aria-labelledby="featured-businesses-heading"] a.group > div:last-child {
  padding: 0.7rem;
}

/* Narrow tiles: the name sits above the member badge. */
.sqx-biz section[aria-labelledby="featured-businesses-heading"] a.group > div:last-child > div:first-child {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
}

/* ---------- Events tab (events/event_list.html) ----------
   The Square's masthead is already sticky, so the filter box scrolls with
   the page instead of sliding over the events; flat cream, thin border. */
body.mv-simple-square .mv-events-v0-filters,
body.mv-simple-square .mv-events-v0-category-toolbar {
  position: static;
  backdrop-filter: none;
  box-shadow: none;
  border-color: var(--sqs-line);
}

/* Featured video spot: one tile beside the first story tile, never wider
   than its grid column. The video fills a standard 4:3 tile thumbnail;
   tapping it plays the whole video full screen (simple_square_featured.js). */
.sqs-feature {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.sqs-feature .sqs-feature__media {
  order: 0;
  width: 100%;
  margin-bottom: 0.45rem;
  aspect-ratio: 4 / 3;
  background: #141812;
  cursor: pointer;
}

.sqs-feature__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Full screen shows the whole video (separate rules: an unknown prefix would
   void a combined selector). */
.sqs-feature__video:fullscreen {
  object-fit: contain;
  background: #000;
}

.sqs-feature__video:-webkit-full-screen {
  object-fit: contain;
  background: #000;
}

.sqs-feature__expand {
  position: absolute;
  right: 0.4rem;
  bottom: 0.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 9999px;
  background: rgba(20, 24, 18, 0.7);
  color: #fff;
  cursor: pointer;
}

.sqs-feature__expand:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.sqs-feature__link {
  color: inherit;
  text-decoration: none;
}

.sqs-feature__link:hover .sqs-story__title,
.sqs-feature__link:focus-visible .sqs-story__title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sqs-feature__badge {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  padding: 0.1rem 0.45rem;
  border-radius: 0.35rem;
  background: rgba(20, 24, 18, 0.7);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.sqs-feature .sqs-story__label {
  color: var(--sqs-muted);
  font-size: 0.78rem;
}

.sqs-feature--empty.sqs-story--tile.sqs-story--text {
  padding: 0;
  border-style: dashed;
  border-width: 1.5px;
  border-color: color-mix(in oklab, var(--sqs-accent) 45%, var(--sqs-line));
}

.sqs-feature__empty {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  min-width: 0;
  min-height: 9rem;
  padding: 1rem 0.75rem;
  text-align: center;
  overflow-wrap: anywhere;
}

.sqs-feature__empty-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding-left: 0.15rem;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--sqs-accent) 14%, var(--sqs-paper));
  color: var(--sqs-accent);
}

.sqs-feature__empty-text {
  color: var(--sqs-ink);
  font-family: var(--font-serif, Georgia, "Times New Roman", serif);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.sqs-feature__empty:hover .sqs-feature__empty-text,
.sqs-feature__empty:focus-visible .sqs-feature__empty-text {
  text-decoration: underline;
  text-underline-offset: 3px;
}
