/* The default design. Every rule is scoped under .ft-d-default (DC6), so other designs and the platform
   are never touched; the one rule outside it applies only to a body whose direct child is this design. */

body:has(> .ft-d-default) {
  margin: 0;
}

.ft-d-default {
  color-scheme: light dark;
  /* The page's colours by role, which an owner may change (src/designs/palette.ts), and this design's names for them. */
  --ft-color-background: #f7f4ee;
  --ft-color-surface: #ffffff;
  --ft-color-text: #1f1c18;
  --ft-color-muted: #5f584e;
  --ft-color-primary: #0f5f55;
  --ft-color-on-primary: #ffffff;
  --ft-color-border: #e2dccf;
  --ft-color-focus: #2563eb;
  --ft-bg: var(--ft-color-background);
  --ft-surface: var(--ft-color-surface);
  --ft-text: var(--ft-color-text);
  --ft-muted: var(--ft-color-muted);
  --ft-border: var(--ft-color-border);
  --ft-accent: var(--ft-color-primary);
  --ft-accent-contrast: var(--ft-color-on-primary);
  --ft-whatsapp: #146c43;
  --ft-focus: var(--ft-color-focus);
  --ft-radius: 0.875rem;
  --ft-gap: 1rem;
  --ft-width: 68rem;

  min-height: 100vh;
  overflow-x: hidden;
  background: var(--ft-bg);
  color: var(--ft-text);
  font: 400 1rem/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-color-scheme: dark) {
  .ft-d-default {
    --ft-color-background: #141311;
    --ft-color-surface: #1e1c19;
    --ft-color-text: #f2eee7;
    --ft-color-muted: #b3ab9f;
    --ft-color-primary: #5fc4b4;
    --ft-color-on-primary: #0b1f1c;
    --ft-color-border: #34302a;
    --ft-color-focus: #93b4ff;
    --ft-whatsapp: #4fbf85;
  }
}

.ft-d-default *,
.ft-d-default *::before,
.ft-d-default *::after {
  box-sizing: border-box;
}

.ft-d-default a {
  color: var(--ft-accent);
}

.ft-d-default :focus-visible {
  outline: 3px solid var(--ft-focus);
  outline-offset: 2px;
}

.ft-d-default .glyph {
  flex: none;
}

/* Hero */

/* The decorative touch: a soft wash of the accent from two corners, so an owner's colour tints it too. */
.ft-d-default .ft-hero {
  padding: 2.5rem 1.25rem 2rem;
  background:
    radial-gradient(ellipse 55% 70% at 8% 0%, color-mix(in srgb, var(--ft-accent) 13%, transparent), transparent 70%),
    radial-gradient(ellipse 45% 60% at 95% 100%, color-mix(in srgb, var(--ft-accent) 9%, transparent), transparent 70%),
    var(--ft-surface);
  border-bottom: 1px solid var(--ft-border);
  text-align: center;
}

.ft-d-default .ft-logo {
  margin: 0 auto 1rem;
}

/* A plate, so a dark logo stays visible on the dark hero. */
@media (prefers-color-scheme: dark) {
  .ft-d-default .ft-logo {
    padding: 8px;
    border-radius: 8px;
    background: #ffffff;
  }
}

.ft-d-default .ft-hero-name {
  margin: 0 auto;
  max-width: var(--ft-width);
  font-size: clamp(1.9rem, 6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.ft-d-default .ft-hero-description {
  margin: 0.9rem auto 0;
  max-width: 40rem;
  color: var(--ft-muted);
  font-size: 1.075rem;
  white-space: pre-line;
}

.ft-d-default .ft-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

.ft-d-default .ft-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  background: var(--ft-accent);
  color: var(--ft-accent-contrast);
  font-weight: 600;
  text-decoration: none;
}

.ft-d-default .ft-button-alt {
  background: var(--ft-whatsapp);
}

.ft-d-default .ft-button-place {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--ft-accent);
  color: var(--ft-accent);
}

/* Sections */

.ft-d-default .ft-main {
  margin: 0 auto;
  max-width: var(--ft-width);
  padding: 0 1.25rem;
}

.ft-d-default .ft-section {
  padding: 2rem 0 0.5rem;
}

.ft-d-default .ft-section h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  line-height: 1.2;
}

.ft-d-default .ft-empty {
  margin: 0;
  padding: 1.25rem;
  border: 1px dashed var(--ft-border);
  border-radius: var(--ft-radius);
  color: var(--ft-muted);
  text-align: center;
}

/* Cards */

.ft-d-default .ft-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ft-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 40rem) {
  .ft-d-default .ft-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .ft-d-default .ft-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ft-d-default .ft-card {
  scroll-margin-top: 1rem;
}

.ft-d-default .ft-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius);
  background: var(--ft-surface);
  color: inherit;
  text-decoration: none;
}

.ft-d-default .ft-card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--ft-border);
}

.ft-d-default .ft-card-media img,
.ft-d-default .ft-card-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ft-d-default .ft-card-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.7);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}

.ft-d-default .ft-card-title {
  display: block;
  padding: 0.8rem 1rem 0.9rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Contact and social */

.ft-d-default .ft-contact {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ft-d-default .ft-contact li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.75rem;
  align-items: start;
}

.ft-d-default .ft-contact .glyph {
  grid-row: span 3;
  margin-top: 0.15rem;
  color: var(--ft-accent);
}

.ft-d-default .ft-contact-label {
  color: var(--ft-muted);
  font-size: 0.875rem;
}

.ft-d-default .ft-contact-value {
  overflow-wrap: anywhere;
}

.ft-d-default .ft-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ft-d-default .ft-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--ft-border);
  border-radius: 999px;
  background: var(--ft-surface);
  color: var(--ft-text);
}

/* Footer */

.ft-d-default .ft-footer {
  margin: 2.5rem auto 0;
  max-width: var(--ft-width);
  padding: 1.5rem 1.25rem 2.5rem;
  border-top: 1px solid var(--ft-border);
  color: var(--ft-muted);
  font-size: 0.9rem;
  text-align: center;
}

.ft-d-default .ft-locale-switch ul {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}

.ft-d-default .ft-locale-switch a {
  display: inline-block;
  min-height: 2.75rem;
  padding: 0.6rem 0.25rem;
}

.ft-d-default .ft-locale-switch a[aria-current="page"] {
  color: var(--ft-text);
  font-weight: 600;
  text-decoration: none;
}

.ft-d-default .ft-powered {
  margin: 0;
}

/* Card dialog */

.ft-d-default .ft-card-dialog {
  width: min(48rem, 92vw);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: var(--ft-radius);
  background: var(--ft-surface);
  color: var(--ft-text);
}

.ft-d-default .ft-card-dialog::backdrop {
  background: rgb(0 0 0 / 0.65);
}

.ft-d-default .ft-card-dialog-body {
  display: grid;
  gap: 0.75rem;
  padding: 0 0 1.25rem;
}

.ft-d-default .ft-card-dialog-close {
  justify-self: end;
  min-height: 2.75rem;
  margin: 0.5rem 0.5rem 0;
  padding: 0.5rem 1rem;
  border: 1px solid var(--ft-border);
  border-radius: 999px;
  background: var(--ft-surface);
  color: var(--ft-text);
  font: inherit;
  cursor: pointer;
}

.ft-d-default .ft-card-dialog-media {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  background: #000;
}

.ft-d-default .ft-card-dialog-title,
.ft-d-default .ft-card-dialog-description,
.ft-d-default .ft-card-share {
  margin: 0;
  padding: 0 1.25rem;
}

.ft-d-default .ft-card-dialog-title {
  font-size: 1.25rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.ft-d-default .ft-card-dialog-description {
  color: var(--ft-muted);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.ft-d-default .ft-card-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.ft-d-default .ft-card-share-button {
  min-height: 2.75rem;
  padding: 0.55rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--ft-accent);
  color: var(--ft-accent-contrast);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.ft-d-default .ft-card-share-status {
  color: var(--ft-muted);
  font-size: 0.9rem;
}

/* The owner's icon rows, centred like the hero and footer around them. */
.ft-d-default .ft-social-bar {
  justify-content: center;
}

.ft-d-default .ft-social-bar-footer {
  margin-bottom: 1rem;
}

/* Its close button is in the flow, so a text-only pop-up needs no room kept above it. */
.ft-d-default .ft-card-dialog.ft-post-dialog .ft-card-dialog-body {
  padding-block-start: 0;
}

/* The shared cards take the section's colour, not the links' accent. */
.ft-d-default .ft-post-link,
.ft-d-default .ft-post-external {
  color: inherit;
}

/* A post's pop-up sits inside its section, so it must not read as that section's heading. */
.ft-d-default .ft-section .ft-card-dialog-title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.25;
}
