/* Scoped to the 24-industry gallery and its marketing detail pages. */
body.figma-site-style.template-catalog,
body.figma-site-style.template-detail { background: #f7f6f2; }
body.figma-site-style.public-page.template-catalog .catalog-main {
  max-width: 1440px; margin: 0 auto; padding: 0 48px 96px; color: #20221f;
}
.catalog-main *, .industry-preview-panel * { box-sizing: border-box; }
body.figma-site-style.public-page.template-catalog main .catalog-intro {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; padding: 64px 0 56px;
}
.catalog-eyebrow { color: #456e25; font-size: 15px; font-weight: 650; margin: 0 0 20px; }
body.figma-site-style.public-page.template-catalog main .catalog-intro h1 {
  font-size: clamp(36px, 3.6vw, 52px); line-height: 1.22; letter-spacing: -.045em; font-weight: 750; margin: 0;
}
.catalog-intro h1 span { color: #1d6398; white-space: nowrap; }
body.figma-site-style.public-page.template-catalog main .catalog-intro .catalog-lead {
  font-size: 17px; line-height: 1.85; color: #686b65; margin: 24px 0 0; letter-spacing: -.02em;
}
.catalog-guide { max-width: 330px; font-size: 14px; color: #686b65; line-height: 1.8; }
.catalog-guide p { margin: 0 0 16px; }
.catalog-guide a { display: block; padding: 14px 0; color: #20221f; border-top: 1px solid #dcded7; font-weight: 650; }
.catalog-guide a span { display: block; color: #456e25; font-weight: 500; margin-top: 2px; }
.catalog-toolbar { border-top: 1px solid #dcded7; padding: 24px 0 0; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.catalog-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.catalog-filters button { border: 0; min-height: 44px; border-radius: 100px; padding: 10px 15px; background: transparent; color: #62655f; font: inherit; font-size: 14px; font-weight: 550; cursor: pointer; transition: background .18s,color .18s; }
.catalog-filters button:hover { background: #e9ece3; color: #283d19; }
.catalog-filters button[aria-pressed="true"] { background: #456e25; color: #fff; }
.catalog-filters button span { font-size: 11px; margin-left: 3px; }
.catalog-search { position: relative; width: 260px; flex: 0 0 260px; }
.catalog-search label { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
body.figma-site-style.public-page.template-catalog main .catalog-search input {
  width: 100%; min-height: 48px; border: 1px solid #d3d6cd; border-radius: 8px; padding: 12px 44px 12px 14px; background: #fff; font-size: 14px; color: #20221f;
}
.catalog-search input::placeholder { color: #74786f; }
.catalog-search svg { position: absolute; pointer-events: none; right: 14px; top: 14px; width: 20px; height: 20px; color: #686b65; }
.catalog-results { display: flex; justify-content: space-between; gap: 12px; color: #686b65; font-size: 13px; padding: 24px 0 18px; }
.catalog-results p { margin: 0; }
.catalog-results strong { color: #20221f; font-weight: 650; }
.catalog-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px 24px; list-style: none; margin: 0; padding: 0; }
body.figma-site-style.public-page.template-catalog main .catalog-grid > .template-card {
  min-width: 0; border: 0; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: none; transition: transform .2s;
}
body.figma-site-style.public-page.template-catalog main .catalog-grid > .template-card:hover { transform: translateY(-3px); box-shadow: none; }
.template-card-visual { display: block; position: relative; overflow: hidden; border-bottom: 1px solid #eee; background: #eceee8; }
.template-browser-bar { height: 29px; display: flex; gap: 4px; align-items: center; padding: 0 12px; background: #e9ebe5; }
.template-browser-bar > span { width: 5px; height: 5px; border-radius: 100%; background: #bac0b3; flex-shrink: 0; }
.template-browser-bar em { font-style: normal; font-size: 9px; font-weight: 550; letter-spacing: .12em; color: #5e6457; margin: 0 auto; padding-right: 22px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.template-card-visual img { display: block; width: 100%; height: auto; aspect-ratio: 1280/900; object-fit: cover; object-position: top; }
.template-open { position: absolute; right: 12px; bottom: 12px; background: #fff; border-radius: 100px; padding: 9px 13px; font-size: 12px; color: #273721; font-weight: 650; box-shadow: 0 2px 12px #00000012; opacity: 0; transform: translateY(4px); transition: opacity .2s,transform .2s; }
.template-card-visual:hover .template-open,.template-card-visual:focus-visible .template-open { opacity: 1; transform: none; }
.template-card-info { padding: 24px; }
.template-card-category { margin: 0 0 9px; font-size: 12px; color: #686b65; }
body.figma-site-style.public-page.template-catalog main .template-card h2 { font-size: 23px; font-weight: 700; line-height: 1.4; letter-spacing: -.035em; margin: 0; }
.template-card-brand { font-size: 14px; color: #686b65; margin: 5px 0 0; }
.template-card-description { color: #44493f; font-size: 15px; line-height: 1.65; margin: 20px 0; min-height: 50px; word-break: keep-all; }
.template-card-actions { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #eceee8; margin-top: 20px; padding-top: 7px; }
.template-card-actions a { min-height: 44px; display: flex; align-items: center; gap: 10px; font-size: 13px; color: #686b65; }
.template-card-actions a:first-child { color: #456e25; font-weight: 650; }
.template-card-actions a:hover { text-decoration: underline; text-underline-offset: 4px; }
.catalog-empty { padding: 64px 24px; text-align: center; background: #fff; border-radius: 12px; }
body.figma-site-style.public-page.template-catalog main .catalog-empty h2 { font-size: 24px; }
.catalog-empty p { color: #686b65; font-size: 15px; margin: 12px 0 20px; }
.catalog-empty button { background: #456e25; color: #fff; border-radius: 8px; border: 0; padding: 12px 20px; min-height: 48px; cursor: pointer; }
.catalog-empty a { display: block; padding: 16px; color: #456e25; font-size: 14px; }
.catalog-nojs { color: #686b65; font-size: 14px; margin-top: 20px; }
body.figma-site-style.public-page.template-catalog main .catalog-contact { margin-top: 80px; padding: 48px; background: #e9ede2; border-radius: 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.catalog-contact p:first-child { color: #456e25; font-size: 14px; font-weight: 650; margin: 0 0 20px; }
body.figma-site-style.public-page.template-catalog main .catalog-contact h2 { font-size: 34px; line-height: 1.4; font-weight: 700; letter-spacing: -.04em; margin: 0; }
.catalog-contact p:last-child { color: #686b65; font-size: 15px; line-height: 1.8; margin: 20px 0 0; }
.catalog-contact > a { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; background: #456e25; color: #fff; border-radius: 8px; min-height: 54px; padding: 16px 24px; font-weight: 650; font-size: 15px; white-space: nowrap; }
.catalog-contact > a:hover { background: #35571b; }
.catalog-main :is(a,button,input):focus-visible,.industry-preview-panel :is(a,button):focus-visible { outline: 2px solid #1d6398; outline-offset: 4px; }
.catalog-main [hidden] { display: none !important; }
/* Detail retains the original content and ten independent layout choices. */
body.figma-site-style.public-page.template-detail main .industry-preview-panel { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; margin: 48px 0 64px; background: #fff; border-radius: 12px; overflow: hidden; }
.industry-preview-panel > a { display: block; position: relative; background: #eef0e9; }
.industry-preview-panel img { display: block; width: 100%; aspect-ratio: 1280/1000; object-fit: cover; object-position: top; }
.industry-preview-copy { padding: 32px; }
.industry-preview-copy > p:first-child { color: #456e25; font-size: 13px; margin: 0 0 12px; font-weight: 650; }
body.figma-site-style.public-page.template-detail main .industry-preview-copy h2 { font-size: 28px; font-weight: 700; line-height: 1.4; letter-spacing: -.035em; }
.industry-preview-copy > p:not(:first-child) { color: #686b65; font-size: 15px; line-height: 1.8; margin: 16px 0; }
.industry-preview-copy a { background: #456e25; color: #fff; display: inline-flex; align-items: center; gap: 24px; padding: 14px 20px; min-height: 52px; border-radius: 8px; font-size: 14px; font-weight: 650; }
.industry-preview-copy small { display: block; color: #777b72; font-size: 12px; line-height: 1.6; margin-top: 14px; }
@media(min-width:1440px) { .catalog-filters button { padding-inline: 17px; } }
@media(max-width:1100px) {
  body.figma-site-style.public-page.template-catalog .catalog-main { padding-inline: 32px; }
  .catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .catalog-search { width: 100%; flex: 1 1 100%; }
  .catalog-guide { max-width: 270px; }
}
@media(max-width:767px) {
  body.figma-site-style.public-page.template-catalog .catalog-main { padding: 0 20px 64px; }
  body.figma-site-style.public-page.template-catalog main .catalog-intro { display: block; padding: 32px 0; }
  .catalog-eyebrow { font-size: 13px; margin-bottom: 14px; }
  body.figma-site-style.public-page.template-catalog main .catalog-intro h1 { font-size: 35px; line-height: 1.25; max-width: 330px; }
  body.figma-site-style.public-page.template-catalog main .catalog-intro .catalog-lead { font-size: 15px; line-height: 1.85; margin-top: 20px; }
  .catalog-lead br { display: none; }
  .catalog-guide { max-width: none; margin-top: 24px; font-size: 13px; }
  .catalog-guide p { display: none; }
  .catalog-guide a { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .catalog-guide a span { margin: 0; font-size: 12px; }
  .catalog-toolbar { padding-top: 20px; gap: 16px; }
  .catalog-search { order: -1; }
  .catalog-filters { gap: 5px; }
  .catalog-filters button { padding-inline: 12px; font-size: 13px; }
  .catalog-results { font-size: 12px; flex-wrap: wrap; padding-top: 20px; }
  .catalog-results p:last-child { font-size: 11px; }
  .catalog-grid { gap: 24px; grid-template-columns: minmax(0,1fr); }
  .template-card-info { padding: 22px; }
  .template-card-description { min-height: 0; margin: 16px 0; }
  .template-open { opacity: 1; transform: none; font-size: 11px; }
  body.figma-site-style.public-page.template-catalog main .catalog-contact { padding: 28px; margin-top: 48px; display: block; }
  body.figma-site-style.public-page.template-catalog main .catalog-contact h2 { font-size: 28px; }
  .catalog-contact > a { margin-top: 28px; width: 100%; }
  body.figma-site-style.public-page.template-detail main .industry-preview-panel { grid-template-columns: 1fr; margin-top: 32px; }
  .industry-preview-panel img { aspect-ratio: 1280/900; }
  .industry-preview-copy { padding: 24px; }
  body.figma-site-style.public-page.template-detail main .industry-preview-copy h2 { font-size: 25px; }
}
@media(prefers-reduced-motion:reduce) { .template-card,.template-open,.catalog-filters button { transition: none !important; transform: none !important; } }
