@font-face {
  font-family: Nunito;
  src: url("/fonts/nunito-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Nunito;
  src: url("/fonts/nunito-800.woff2") format("woff2");
  font-weight: 700 900;
  font-display: swap;
}

:root {
  --ink: #23483d;
  --muted: #4e665a;
  --paper: #fffdf6;
  --cream: #f8f5e7;
  --header: #fbf4df;
  --hero: #f3eee1;
  --line: #d4dccb;
  --forest: #2c5946;
  --gutter: clamp(20px, 4vw, 64px);
  color: var(--ink);
  background: var(--cream);
  font: 400 16px/1.55 Nunito, "PingFang SC", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; overflow-wrap: anywhere; }
a, button, summary { color: inherit; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
a { text-underline-offset: .23em; }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 4px; }
[hidden] { display: none !important; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; }
.wrap { width: min(1280px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }

.top {
  position: sticky;
  inset-block-start: 0;
  z-index: 5;
  background: var(--header);
  border-block-end: 1px solid #e6ddc2;
}
.site-bar { position: relative; display: flex; align-items: center; gap: clamp(12px, 2vw, 30px); min-height: 72px; }
.market-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  line-height: 1.2;
  min-width: 0;
}
.market-brand img { display: block; flex: none; }
.market-brand strong { display: block; font-size: 1.23rem; }
.market-brand small { display: block; margin-block-start: .28em; font-size: .78rem; line-height: 1.25; letter-spacing: .035em; color: var(--muted); }
.site-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.site-nav { display: flex; align-items: center; gap: clamp(7px, 1.25vw, 18px); font-weight: 800; line-height: 1.25; }
.site-nav > a, .site-nav > details > summary, .mobile-panel > a, .account-link a {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  min-height: 44px;
  padding: 6px 4px;
  text-decoration: none;
  font-size: .92rem;
}
.site-nav > a { flex-direction: row; align-items: center; gap: 5px; }
.site-nav > details > summary { flex-direction: row; align-items: center; gap: 9px; }
.site-nav a:hover, .account-link a:hover, .mobile-panel > a:hover,
.nav-group > summary:hover, .text-action:hover { text-decoration: underline; }
.nav-group { position: relative; }
.chevron {
  display: inline-block;
  inline-size: 7px;
  block-size: 7px;
  flex: none;
  border-inline-end: 1.5px solid currentColor;
  border-block-end: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
:dir(rtl) .chevron { transform: translateY(-2px) rotate(-45deg); }
details[open] > summary .chevron { rotate: 180deg; }
.nav-panel, .mobile-panel {
  position: absolute;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px #23483d17;
  border-radius: 14px;
  padding: 8px;
}
.nav-panel { inset-inline-start: 0; min-width: 230px; }
.nav-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  min-height: 44px;
  border-radius: 8px;
  text-decoration: none;
}
.nav-panel a:hover, .nav-panel a[aria-current] { background: #e8eee2; }
.language-button, .mobile-nav > summary {
  min-height: 44px;
  padding: 8px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  line-height: 1.25;
}
.language-button:hover, .language-picker[open] .language-button, .mobile-nav > summary:hover { background: #e9eddf; }
.mobile-nav { display: none; }
.menu-icon { width: 17px; height: 13px; border-block: 2px solid; display: grid; align-items: center; }
.menu-icon::before { content: ""; border-block-start: 2px solid; }
.account-link a {
  position: relative;
  min-width: 44px;
  padding-inline: 27px 4px;
  align-items: center;
  font-size: .86rem;
  line-height: 1.22;
}
.account-link a::before, .account-link a::after {
  content: "";
  position: absolute;
  border: 1.7px solid currentColor;
}
.account-link a::before { inset-block-start: calc(50% - 11px); inset-inline-start: 7px; width: 9px; height: 9px; border-radius: 50%; }
.account-link a::after { inset-block-start: calc(50% - 1px); inset-inline-start: 4px; width: 16px; height: 9px; border-block-end: 0; border-radius: 10px 10px 0 0; }
.translation-icon { position: relative; flex: none; width: 22px; height: 22px; font-weight: 800; line-height: 1; }
.translation-icon::before, .translation-icon::after { position: absolute; }
.translation-icon::before { content: "文"; inset: 0 auto auto 0; font-size: .82rem; }
.translation-icon::after { content: "A"; inset: auto 0 0 auto; font-size: .77rem; }

[data-market-home] .hero {
  background: linear-gradient(90deg, #fff8e5f0, #fff8e5d6 46%, #fff8e551), url('/editorial/curiosity-landscape.webp') center 62% / cover;
  border-block-end: 1px solid #e9e3d1;
}
:where(:dir(rtl)) [data-market-home] .hero {
  background-image: linear-gradient(270deg, #fff8e5f0, #fff8e5d6 46%, #fff8e551), url('/editorial/curiosity-landscape.webp');
}
.hero-grid { min-height: 450px; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(24px, 4vw, 64px); padding-block: clamp(32px, 4vw, 60px); }
.eyebrow { color: var(--muted); font-size: .81rem; font-weight: 800; letter-spacing: .08em; }
.hero h1 { margin-block: 12px 20px; font-size: clamp(2.35rem, 4.6vw, 4.25rem); letter-spacing: -.035em; text-wrap: balance; }
:dir(rtl) .hero h1 { letter-spacing: normal; }
.hero-lead { max-width: 54ch; font-size: clamp(1.03rem, 1.55vw, 1.25rem); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-block-start: 27px; }
.button, .text-action { display: inline-flex; gap: .55em; align-items: center; min-height: 44px; font-weight: 800; text-decoration: none; line-height: 1.25; }
.button {
  justify-content: center;
  padding: 12px 19px;
  color: var(--paper);
  background: var(--forest);
  border-radius: 10px;
  box-shadow: 0 4px #1e4333;
}
.button:hover { background: #214d39; }
.direction-arrow { display: inline-block; flex: none; }
:dir(rtl) .direction-arrow { transform: scaleX(-1); }

.featured-project { background: var(--paper); border: 1px solid #d8ceb8; border-radius: 17px; min-width: 0; }
.featured-heading { padding: 17px clamp(17px, 3vw, 26px); }
.featured-heading h2 { margin-block-start: 6px; font-size: clamp(1.28rem, 2.05vw, 1.65rem); }
.project-meta { color: var(--muted); font-size: .82rem; font-weight: 700; line-height: 1.45; }
.project-art {
  aspect-ratio: 1.9;
  background: #e9e8df;
  overflow: hidden;
}
.project-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.model-art { background: #eeece3; }
.model-art img { object-fit: contain; }
.featured-description {
  padding: clamp(20px, 4vw, 38px) clamp(17px, 3vw, 26px);
  background: #ebeee1;
  border-block: 1px solid var(--line);
  font-size: clamp(1rem, 1.45vw, 1.16rem);
}
.featured-project { overflow: hidden; }
.featured-guide, .featured-actions { padding-inline: clamp(17px, 3vw, 26px); }
.featured-actions { display: flex; justify-content: flex-end; border-block-start: 1px solid var(--line); }
.featured-actions a { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; padding-block: 7px; font-weight: 800; text-decoration: none; }
.featured-actions a:hover { text-decoration: underline; }
.featured-guide details + details { border-block-start: 1px solid var(--line); }
.featured-guide summary, .pebble-lab summary { display: flex; justify-content: space-between; align-items: center; min-height: 46px; gap: 12px; font-weight: 800; }
.featured-guide details[open] { padding-block-end: 14px; }
.featured-guide :is(ol, ul) { margin-block: 0 8px; padding-inline-start: 1.3em; }
.featured-guide li + li, .featured-guide p + p { margin-block-start: .45em; }
.featured-guide a { display: inline-flex; gap: .45em; }

.section { padding-block: clamp(32px, 5vw, 68px); scroll-margin-block-start: 80px; }
.section + .section { border-block-start: 1px solid var(--line); }
.section h2 { font-size: clamp(1.9rem, 3.65vw, 3rem); letter-spacing: -.032em; }
.section-title { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 16px; margin-block-end: 24px; }
.section-title .text-action { text-decoration: underline; }
.cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch; gap: 20px; }
.project-cards { align-items: start; }
[data-market-home] #projects .project-cards { align-items: stretch; }
[lang="tr"] #stories .story-card { height: 100%; }
.card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.card:hover { border-color: #7e9b83; box-shadow: 0 5px 15px #23483d0e; }
.card:focus-within { outline: 2px solid var(--forest); outline-offset: 4px; }
.card-copy { padding: 20px; flex: 1; border-block-start: 3px solid #aebfa1; }
.card .project-art + .card-copy { border-block-start: 0; }
.card :is(h2,h3) { font-size: clamp(1.1rem, 2vw, 1.28rem); margin-block: 10px; }
.card :is(h2,h3) a { text-decoration: none; }
.card :is(h2,h3) a::after { content: ""; position: absolute; inset: 0; }
.project-cards .card .text-action { position: relative; z-index: 1; }
.card :is(h2,h3) a:focus-visible { outline: none; }
.card :is(h2,h3) a:hover { text-decoration: underline; }
.card :is(h2,h3) .direction-arrow { margin-inline-start: .45em; }
.card :is(h2,h3) + p { color: var(--muted); }
.faq-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 12px; margin-block-start: 24px; }
.faq-list details { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); padding-inline: 17px; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 15px; font-weight: 800; }
.faq-list p { padding-block-end: 17px; color: var(--muted); }

.project-hub, .project { padding-block: 35px 60px; }
.breadcrumb { display: inline-flex; align-items: center; min-height: 44px; gap: 7px; font-weight: 700; }
.project-heading { max-width: 820px; padding-block-end: 28px; }
.project-heading h1 { font-size: clamp(2.05rem, 5vw, 3.8rem); margin-block: 11px 17px; letter-spacing: -.035em; }
.intro { color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.25rem); }
.project .project-heading { margin-block-start: 18px; }
.project > .project-art { max-width: 820px; border: 1px solid var(--line); border-radius: 14px; margin-block-end: 26px; }
.project-model-link { margin-block: -7px 25px; font-weight: 800; }
.project-section { scroll-margin-block-start: 90px; max-width: 820px; padding-block: 25px; border-block-start: 1px solid var(--line); }
.project-section h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); margin-block-end: 12px; }
.project-section ul { margin-block: 0; padding-inline-start: 1.2em; }
.project-section p + p, .project-section li + li { margin-block-start: .65em; }
.project > .section { padding-block-end: 0; border-block-start: 1px solid var(--line); }
footer { padding-block: 31px; background: var(--header); border-block-start: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: minmax(0,1.45fr) repeat(3,minmax(0,1fr)); gap: 22px; }
.footer-brand p { margin-block-start: 12px; color: var(--muted); max-width: 34ch; }
.footer-links h2 { font-size: 1rem; margin-block-end: 5px; }
.footer-links a, .footer-legal a { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; min-height: 36px; font-size: .9rem; }
.footer-legal { grid-column: 1/-1; display: flex; flex-wrap: wrap; gap: 0 20px; border-block-start: 1px solid var(--line); padding-block-start: 9px; }

@media (min-width: 1000px) and (max-width: 1150px) {
  .site-bar { gap: 12px; }
  .site-bar .market-brand small { display: none; }
  .site-nav { gap: 6px; }
  .site-nav > a, .site-nav > details > summary { font-size: .84rem; }
  .site-nav > details > summary { gap: 5px; }
  .site-actions { gap: 7px; }
  .language-button { padding-inline: 8px; font-size: .86rem; }
}
@media (max-width: 999.98px) {
  .desktop-nav, .account-link { display: none; }
  .mobile-nav { display: block; }
  .site-bar { min-height: 64px; position: relative; }
  .mobile-panel {
    inset-inline-end: 0;
    inset-block-start: calc(100% + 6px);
    width: min(340px, 100%);
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    padding: 11px;
  }
  .mobile-panel .site-nav { display: block; }
  .mobile-panel a, .mobile-panel .nav-group > summary { min-height: 44px; padding: 8px 10px; justify-content: space-between; flex-direction: row; align-items: center; }
  .mobile-panel .nav-panel { position: static; min-width: 0; background: #edf0e5; box-shadow: none; }
}
@media (max-width: 780px) {
  [data-market-home] .hero {
    background: linear-gradient(#fff8e5f5, #fff8e5c7), url('/editorial/curiosity-landscape.webp') 60% center / cover;
  }
  .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 26px; }
  .hero h1 { font-size: clamp(2.3rem, 8vw, 3.6rem); text-wrap: wrap; }
  .hero-actions { margin-block-start: 19px; }
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 520px) {
  .translation-icon { display: none; }
  .site-bar .market-brand { gap: 7px; }
  .site-bar .market-brand img { width: 29px; height: 29px; }
  .site-bar .market-brand strong { font-size: .99rem; }
  .site-bar .market-brand small { display: none; }
  .site-actions { gap: 6px; }
  .language-button { font-size: .84rem; padding-inline: 8px; max-width: 33vw; }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .section-title { margin-block-end: 12px; }
}

.discovery-heading { align-items: end; }
.discovery-heading > div { flex: 1 1 380px; }
.discovery-heading > div p { max-width: 62ch; margin-block-start: 10px; color: var(--muted); }
.discovery-heading > a { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 7px; font-weight: 800; }
.catalog-art { background: #ecece3; }
.catalog-art img { object-fit: contain; }
.story-card .card-copy { padding-block: 15px 18px; }
.model-wall .card { display: grid; isolation: isolate; min-height: 220px; aspect-ratio: 1.08; background: #18352e; color: var(--paper); }
.model-cover-link { position: absolute; inset: 0; }
.model-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reference-label { position: absolute; z-index: 1; inset-block-start: 12px; inset-inline-start: 12px; max-width: calc(100% - 24px); border-radius: 7px; padding: 4px 8px; background: var(--paper); color: var(--forest); font-size: .77rem; }
.model-card-caption { z-index: 2; align-self: end; display: flex; justify-content: space-between; align-items: end; gap: 12px; background: linear-gradient(transparent,#0d2d27 68%); padding: 34px 14px 14px; }
.model-card-caption h3 { margin-block: 0 3px; }
.model-card-caption img { flex: none; width: 56px; height: 56px; border: 2px solid var(--paper); border-radius: 9px; background: #ecece3; }
.feature-list { display: grid; gap: 20px; }
.feature-row { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); align-items: center; gap: clamp(18px,4vw,66px); padding: clamp(14px,2.5vw,26px); border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.feature-row:nth-child(2) { background: #eaf0e4; }
.feature-row:nth-child(2) .project-art { grid-column: 2; grid-row: 1; }
.feature-row:nth-child(2) .feature-copy { grid-column: 1; grid-row: 1; }
.feature-row:nth-child(3) { background: #f6e9d4; }
.feature-row .project-art { aspect-ratio: 1.52; border-radius: 12px; }
.feature-copy { padding-inline: clamp(4px,2vw,24px); }
.feature-copy h3 { margin-block-end: 10px; font-size: clamp(1.32rem,2.8vw,2.1rem); }
.feature-copy p { margin-block-end: 18px; color: var(--muted); }
.feature-copy a { font-weight: 800; }
.how-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; list-style-position: inside; margin: 0; padding: 0; }
.how-steps li { list-style: none; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); padding: 20px; box-shadow: 0 4px #dce5d5; }
.how-steps h3 { font-size: 1.15rem; margin-block-end: 8px; }
.how-steps p { color: var(--muted); }
.closing-section { margin-block-end: 56px; padding: clamp(28px,6vw,78px); border-radius: 18px; color: var(--paper); background: linear-gradient(#163b2de6,#163b2de6), url('/editorial/curiosity-desk.webp') center/cover; text-align: center; }
.closing-section h2 { margin-block-end: 12px; }
.closing-section p { max-width: 62ch; margin-inline: auto; }
.closing-section .hero-actions { justify-content: center; }
.closing-section a { color: inherit; }
.closing-section .hero-actions > a { padding: 9px 17px; border: 1px solid; border-radius: 9px; }
.closing-section .hero-actions > a:first-child { color: #153b2d; background: #dbecac; border-color: #dbecac; text-decoration: none; }
.closing-section .hero-actions a, .market-reading .hero-actions a { font-weight: 800; }
.market-reading, .market-model-view { max-width: 860px; }
.market-reading .project-art, .market-model-view .project-art, .model-view-stage { border-radius: 14px; border: 1px solid var(--line); overflow: hidden; }
.story-text { margin-block-start: 24px; max-width: 68ch; font-size: clamp(1.05rem,1.7vw,1.25rem); }
.story-text p + p, .story-chapter + .story-chapter { margin-block-start: 1.1em; }
.story-chapter h2 { font-size: 1.35rem; margin-block-end: 8px; }
.story-question { font-weight: 800; }
.pebble-lab { margin-block-start: 35px; padding: clamp(16px,4vw,30px); background: #edf1e5; border: 1px solid var(--line); border-radius: 15px; }
.pebble-lab h2 { margin-block-end: 8px; }
.pebble-stage { display: grid; justify-items: center; padding-block: 22px 18px; }
.pebble-pitcher { position: relative; overflow: hidden; width: 158px; height: 168px; border: 4px solid #65878b; border-block-start-width: 0; border-radius: 4px 4px 26px 26px; background: #fcfdf4; }
.pebble-water { position: absolute; inset: auto 0 0; height: var(--water-level,30%); background: #77bbc2; border-block-start: 3px solid #a6d6d8; transition: height .25s ease-out; }
.pebble-stones { position: absolute; inset: auto 10px 6px; display: flex; justify-content: center; gap: 1px; }
.pebble-stones span { width: 22px; height: 16px; border-radius: 55% 48% 45% 42%; background: #927655; }
.pebble-controls:not([hidden]) { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; padding-block-end: 16px; }
.pebble-controls [aria-disabled="true"] { opacity: .65; cursor: default; }
.pebble-controls output { min-width: 2ch; font-weight: 800; }
.pebble-lab details { border-block-start: 1px solid var(--line); }
.model-view-stage { aspect-ratio: 1.65; min-height: 220px; background: #edf2e5; }
.model-view-error { margin-block-start: 12px; color: var(--muted); }
.pricing-cards h2 { font-size: 1.05rem; margin-block-end: 8px; }
.pricing-cards:empty { display: none; }
.market-pricing-featured { border-color: #4b765c; background: #edf5ed; }
.pricing-cards .button { margin-block-start: 12px; }
[data-inspiration-markets] details { border-block-start: 1px solid #dce5da; padding-block: 10px; }
[data-inspiration-markets] summary { cursor: pointer; font-weight: 650; }
[data-inspiration-markets] .cards { margin-block: 12px; }
@media (max-width: 780px) {
 .footer-inner { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .feature-row { grid-template-columns: minmax(0,1fr); }
 .feature-row:nth-child(2) :is(.project-art,.feature-copy) { grid-column: auto; grid-row: auto; }
 .feature-copy { padding-block-end: 8px; }
}
@media (max-width: 600px) {
 .how-steps, .faq-list { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
 .pebble-water { transition: none; }
}

[data-lab-hero] tsp-tr-project-lab { display: block; min-height: 245px; }
.lab-preview-fallback { display: block; width: 100%; height: auto; }
.project > tsp-tr-project-lab { max-width: 820px; min-height: 245px; margin-block-end: 26px; }
.featured-lab-link { color: #244b3d; font-weight: 800; white-space: nowrap; }
.density-card-art { display: grid; place-items: center; background: linear-gradient(#e4f1ee,#cde2db); }
.density-card-art span {
  width: 66%; height: 55%; border: 3px solid #517674; border-top-width: 1px; border-radius: 5px 5px 17px 17px;
  background: linear-gradient(#f6fffc 0 17%,#579ea8 17% 19%,#a7e1e6 19%,#79c8d9 67%,#5466ab 68%,#37478c);
  box-shadow: 0 14px 0 -6px #294c3d28;
}

.sample-preview-card > a { display:flex; flex-direction:column; height:100%; color:inherit; text-decoration:none; }
.sample-preview-card .project-art img { width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; }
.home-story-poster{position:relative;display:block}
.home-story-poster::before,.home-story-poster::after{content:"";position:absolute;top:50%;left:50%;translate:-50% -50%;pointer-events:none}
.home-story-poster::before{width:48px;height:48px;border-radius:50%;background:#fffdf5f2;box-shadow:0 3px 18px #17382e38}
.home-story-poster::after{width:14px;height:16px;background:#245b4c;clip-path:polygon(10% 0,100% 50%,10% 100%)}
.sample-preview-card .card-copy { display:flex; flex:1; flex-direction:column; }
.sample-preview-card .card-copy span { margin-block-start:auto; padding-block-start:.5rem; font-weight:700; }
.sample-preview-card > a:is(:hover,:focus-visible) h3 { text-decoration:underline; text-underline-offset:.14em; }
.inspiration-common { margin-block-start:2rem; }

.model-wall-heading { margin-block: 1.35rem .85rem; }
.model-masonry { display: block; columns: 3; column-gap: clamp(12px,2vw,24px); }
.model-masonry .card { position: relative; break-inside: avoid; margin-block-end: clamp(12px,2vw,24px); min-height: 0; aspect-ratio: var(--frame-ratio,1.18); }
.market-model-tile { position: absolute; inset: 0; display: grid; color: inherit; text-decoration: none; }
.market-model-tile .model-card-caption { position: relative; }
.market-model-tile:is(:hover,:focus-visible) h3 { text-decoration: underline; text-underline-offset: .16em; }
@media (max-width: 760px) {
  .model-masonry { columns: 2; }
  .model-masonry .model-card-caption { gap: 5px; padding: 24px 8px 8px; }
  .model-masonry .model-card-caption h3 { font-size: .88rem; }
  .model-masonry .model-card-caption img { width: 39px; height: 39px; }
}
@media (max-width: 360px) { .model-masonry { columns: 1; } }

.market-browse-header {
  padding-block-end: 24px;
  border-block-end: 1px solid var(--line);
}
.market-browse-header > p:first-child {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 800;
}
.market-browse-header h1 {
  margin-block: 10px 16px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  overflow-wrap: break-word;
}
.market-browse-header .intro {
  max-width: 70ch;
}
.market-browse-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-start: 22px;
}
.market-browse-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  font-weight: 800;
  text-decoration: none;
}
.market-browse-header nav a[aria-current],
.market-browse-header nav a:hover {
  border-color: #9ab39c;
  background: #e3ebd9;
}
.market-browse .market-browse-header + [data-sample-grid] {
  margin-block-start: 24px;
}
.market-browse > .section {
  padding-block-start: 24px;
}
.market-browse [data-sample-grid] > .sample-preview-card p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.market-browse[data-inspiration-markets] {
  padding-block-start: 0;
}
.market-browse[data-inspiration-markets] > h2 {
  margin-block-end: 16px;
}
.market-browse[data-inspiration-markets] > details {
  margin-block-end: 8px;
  padding: 0 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
}
.market-browse[data-inspiration-markets] > details > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.market-browse[data-inspiration-markets] > details > summary::before {
  content: "▸";
}
.market-browse[data-inspiration-markets] > details[open] > summary::before {
  content: "▾";
}
