/* Search pages and the shared link footer. Loaded alongside the page's own stylesheet. */
/* Speed: the browser skips work for cards and sections far off-screen. */
/* Only the catalog: the homepage has menu links to sections, which land wrongly past cards of guessed height. */
.catalog-card { content-visibility: auto; contain-intrinsic-size: auto 400px; }
/* The homepage shows 12 designs until a filter is chosen; the catalog has them all. Without :has(), every card shows. */
.collection-toolbar:has([data-filter="all"].active) ~ .design-grid .design-card:nth-child(n+13) { display: none; }
.seo-see-all { display: flex; justify-content: center; margin: 34px 0 6px; }
.stage-phone-live { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.stage-phone-live img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
@media (max-width: 700px) {
  .site-atelier .final-cta.wrap { background-image: url('/site/floral-atelier-mobile.webp'); }
  .site-atelier .experience-section.experience-section::before { background-image: url('/site/botanical-ribbon-mobile.webp'); }
}

.seo-page { padding-bottom: 72px; }
.site-atelier .seo-page .wrap, .site-atelier .seo-footer.wrap { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }

.seo-crumbs { padding-top: 24px; font-size: 13px; color: #7a6f60; }
.seo-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.seo-crumbs li + li::before { content: "/"; margin-right: 6px; color: #b5a892; }
.seo-crumbs a { color: #7a5a31; text-decoration: none; }
.seo-crumbs a:hover { text-decoration: underline; }

.seo-hero { padding-block: 28px 44px; }
.seo-hero .eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.seo-hero h1 { font-family: var(--font-display, "Cormorant Garamond", Georgia, serif); font-size: clamp(38px, 5vw, 62px); line-height: 1.08; font-weight: 500; letter-spacing: -.02em; color: #2f2a24; max-width: 860px; margin: 0 0 18px; }
.seo-lead { font-size: 18px; line-height: 1.65; color: #574f44; max-width: 720px; margin: 0 0 26px; }
.seo-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.seo-updated { font-size: 12.5px; color: #8a7e6e; margin: 0; }

.seo-gallery { padding-block: 20px 56px; }
.seo-gallery h2 { font-family: var(--font-display, "Cormorant Garamond", Georgia, serif); font-size: clamp(28px, 3vw, 38px); font-weight: 500; margin: 0 0 22px; color: #2f2a24; }
.seo-gallery-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.seo-gallery figure { margin: 0; min-width: 0; }
.seo-gallery figure > a { display: block; border-radius: 14px; overflow: hidden; border: 1px solid #e7dece; background: #f4eee3; aspect-ratio: 480 / 848; transition: transform .2s ease, box-shadow .2s ease; }
.seo-gallery figure > a:hover { transform: translateY(-3px); box-shadow: 0 12px 26px #5f452321; }
.seo-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }
.seo-gallery figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-top: 9px; font-size: 13px; }
.seo-gallery figcaption b { font-weight: 500; color: #3a342c; overflow-wrap: anywhere; }
.seo-gallery figcaption a { color: #805c2d; font-size: 12px; }

.site-atelier .seo-page .seo-article.wrap { width: min(1120px, calc(100% - 96px)); }
.seo-article > * { max-width: 760px; }
.seo-prose h2, .seo-faq h2, .seo-related h2 { font-family: var(--font-display, "Cormorant Garamond", Georgia, serif); font-size: clamp(27px, 3vw, 34px); line-height: 1.2; font-weight: 500; color: #2f2a24; margin: 42px 0 14px; }
.seo-prose > h2:first-child { margin-top: 0; }
.seo-prose p, .seo-prose li { font-size: 16.5px; line-height: 1.8; color: #4a4338; }
.seo-prose p { margin: 0 0 14px; }
.seo-prose ul, .seo-prose ol { margin: 0 0 16px; padding-left: 24px; }
.seo-prose li { margin-bottom: 7px; }
.seo-prose a { color: #805c2d; text-decoration: underline; text-underline-offset: 2px; }
.seo-prose strong { font-weight: 600; color: #38322a; }
.seo-prose code { font-size: .92em; background: #f3ecdf; border-radius: 5px; padding: 1px 6px; overflow-wrap: anywhere; }
.seo-prose blockquote { margin: 0 0 14px; padding: 16px 20px; background: #fffdfa; border: 1px solid #ebe2d3; border-left: 3px solid #b48b50; border-radius: 4px 10px 10px 4px; font-size: 16px; line-height: 1.75; color: #453f35; overflow-wrap: anywhere; }
.seo-table { overflow-x: auto; margin: 0 0 18px; border: 1px solid #e8dfd1; border-radius: 12px; background: #fffdfa; }
.seo-table table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.seo-table th, .seo-table td { white-space: normal; text-align: left; vertical-align: top; padding: 12px 15px; border-bottom: 1px solid #efe8db; color: #4a4338; }
.seo-table th { background: #f7f1e6; font-weight: 600; color: #3a342c; }
.seo-table tr:last-child td { border-bottom: 0; }
.seo-arabic { font-family: "Traditional Arabic", "Noto Naskh Arabic", "Amiri", "Scheherazade New", serif; font-size: 28px !important; line-height: 2 !important; text-align: right; padding: 12px 18px; background: #fffdfa; border: 1px solid #ebe2d3; border-radius: 10px; color: #2f2a24 !important; }
.seo-note { font-size: 14px !important; background: #f6f0e4; padding: 14px 16px; border-radius: 10px; }

.seo-faq details { border-bottom: 1px solid #e8dfd1; padding: 15px 0; }
.seo-faq summary { cursor: pointer; font-size: 16.5px; font-weight: 500; color: #38322a; }
.seo-faq details p { margin: 10px 0 0; font-size: 16px; line-height: 1.75; color: #4f483d; }
.seo-related ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 0; }
.seo-related a { display: block; padding: 13px 15px; background: #fffdfa; border: 1px solid #e8dfd1; border-radius: 10px; color: #684d2c; text-decoration: none; font-size: 15px; height: 100%; }
.seo-related a:hover { border-color: #b99058; background: #f9f3e8; }

.seo-hub-list { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: 12px; }
.seo-hub-list a { display: block; padding: 18px 20px; background: #fffdfa; border: 1px solid #e8dfd1; border-radius: 12px; text-decoration: none; }
.seo-hub-list a:hover { border-color: #b99058; }
.seo-hub-list b { display: block; font-weight: 600; font-size: 17px; line-height: 1.4; color: #38322a; margin-bottom: 4px; }
.seo-hub-list span { display: block; font-size: 14.5px; line-height: 1.6; color: #6c6356; }

.seo-cta { margin-top: 60px; padding: 44px 32px; text-align: center; background: #f3ecdf; border-radius: 20px; }
.seo-cta h2 { font-family: var(--font-display, "Cormorant Garamond", Georgia, serif); font-size: clamp(30px, 3.5vw, 42px); font-weight: 500; margin: 0 0 8px; color: #2f2a24; }
.seo-cta p { color: #5f564a; margin: 0 0 20px; font-size: 16px; }

/* Shared by the homepage, the catalog and every search page */
.seo-footer-links { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr 1.1fr .8fr; gap: 28px; text-align: left; padding-block: 34px 28px; border-top: 1px solid #e8dfd1; }
.seo-footer-links h2 { font-family: inherit; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #7a5a31; margin: 0 0 11px; line-height: 1.4; }
.seo-footer-links ul { list-style: none; margin: 0; padding: 0; }
.seo-footer-links li { margin: 0 0 7px; line-height: 1.4; }
.seo-footer-links a { color: #5f564a; font-size: 13.5px; text-decoration: none; }
.seo-footer-links a:hover { color: #7a5a31; text-decoration: underline; }
/* The homepage and catalog footers lay out their own children, so the links take a full row of their own */
.site-foot { flex-wrap: wrap; }
.site-foot > .seo-footer-links, .catalog-footer > .seo-footer-links { grid-column: 1 / -1; flex: 0 0 100%; width: 100%; box-sizing: border-box; }
.site-atelier .site-foot > .seo-footer-links { display: grid; justify-content: stretch; }
.catalog-footer { flex-wrap: wrap; }
.catalog-footer > .seo-footer-links { border-top: 0; }
.catalog-footer > .seo-footer-links { max-width: 1120px; margin-inline: auto; }
.seo-footer { padding-bottom: 28px; }
.seo-footer > p { font-size: 13px; color: #8a7e6e; margin: 0; }
.seo-home-links { padding-block: 0 72px; }
.seo-home-links h2 { font-family: var(--font-display, "Cormorant Garamond", Georgia, serif); font-size: clamp(32px, 3.6vw, 46px); font-weight: 500; line-height: 1.15; margin: 0 0 12px; color: #2f2a24; }
.seo-home-links > p { max-width: 760px; color: #5f564a; font-size: 16px; line-height: 1.75; margin: 0 0 22px; }
.seo-home-links a:not(.seo-home-tile) { color: #805c2d; text-decoration: underline; text-underline-offset: 2px; }
.seo-home-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.seo-home-tile { display: block; padding: 16px 17px; background: #fffdfa; border: 1px solid #e8dfd1; border-radius: 12px; color: #4a4338; text-decoration: none; font-size: 15px; line-height: 1.4; }
.seo-home-tile:hover { border-color: #b99058; background: #f9f3e8; }

@media (max-width: 980px) {
  .seo-gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .seo-footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seo-home-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .site-atelier .seo-page .wrap, .site-atelier .seo-footer.wrap, .site-atelier .seo-page .seo-article.wrap { width: calc(100% - 32px); }
  .seo-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .seo-related ul { grid-template-columns: 1fr; }
  .seo-table table { min-width: 0; font-size: 14px; }
  .seo-table th, .seo-table td { padding: 10px; overflow-wrap: anywhere; }
  .seo-lead { font-size: 17px; }
  .seo-prose p, .seo-prose li { font-size: 16px; }
  .seo-cta { padding: 34px 18px; margin-top: 44px; }
  .seo-arabic { font-size: 24px !important; }
}
