/* A design page, built as one grid: the pictures to the left, everything needed to decide to the right, all on the first screen. The home page's type and paper (DESIGN.md). */
.tm-dp{color:#4c4942;font:400 16px/1.7 "PT Serif",Georgia,serif}
.tm-dp [hidden]{display:none!important}
.tm-dp p{margin:0}
.dp-main{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:24px;align-items:start;padding:8px var(--tm-edge) 96px}
.dp-pics{grid-column:1/7;position:sticky;top:115px;display:grid;grid-template-columns:68px minmax(0,1fr);column-gap:16px;align-items:start}
.dp-pics:has(.dp-thumbs[hidden]){grid-template-columns:minmax(0,1fr)}
.dp-side{grid-column:7/13;padding-left:24px}

/* pictures */
.dp-frame{display:flex;align-items:center;justify-content:flex-start;cursor:zoom-in;width:100%;grid-column:-2/-1;grid-row:1;padding:0;border:0;background:none;overflow:hidden}
.tm-dp .dp-frame img{display:block;width:auto!important;height:auto!important;max-width:100%!important;max-height:max(380px,min(calc(100vh - 236px),900px))!important;transition:opacity .35s ease}   /* every photograph whole, on the page margin */
.dp-frame img.is-loading{opacity:.25}
.dp-wait #dpImg{opacity:0}
.dp-under{grid-column:-2/-1;grid-row:2;display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:4px 28px;min-height:32px;margin-top:8px}
.dp-shown{font:400 14px/1.7 "PT Serif",Georgia,serif;color:#6b655c}
.dp-thumbs{grid-column:1;grid-row:1;display:flex;flex-direction:column;gap:8px;padding:3px;margin:-3px;max-height:min(calc(100vh - 236px),900px);overflow-y:auto;scrollbar-width:none}
.dp-thumbs::-webkit-scrollbar{display:none}
.dp-thumb{flex:none;width:68px;height:68px;padding:0;border:0;background:none;cursor:pointer;opacity:.82;outline:1px solid transparent;outline-offset:-1px;transition:opacity .2s}
.dp-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.dp-thumb:hover{opacity:1}
.dp-thumb[aria-pressed=true]{opacity:1;box-shadow:0 0 0 2px #f3efe7,0 0 0 3px #302f2a}
.dp-thumb img{box-shadow:inset 0 0 0 1px rgba(48,47,42,.08)}

/* the decision */
/* the name: the kanji written top to bottom, as a scroll hangs beside the words */
.dp-top{position:relative}
.dp-top.has-jp{min-height:calc(var(--n)*var(--s)*1.1);padding-right:112px}   /* however long the name, the words below clear it */
.dp-coll{font:400 14px/1.7 "PT Serif",Georgia,serif}
.dp-coll a{color:#6b655c;text-decoration:none}
.dp-coll a:hover{color:#302f2a}
.tm-dp h1{margin:6px 0 0;font-weight:400}
.dp-name{display:block;font:400 clamp(20px,1.8vw,28px)/1.25 Inter,Arial,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#302f2a}
.tm-dp .dp-jp{position:absolute;top:0;right:0;width:auto!important;height:calc(var(--n)*var(--s)*1.05)!important;max-width:104px!important;max-height:none!important;object-fit:contain;object-position:right top}
.dp-desc{max-width:30em;margin-top:26px!important;font:400 16px/1.8 "PT Serif",Georgia,serif;color:#4c4942;text-wrap:pretty}

/* the colour */
.dp-label{font:500 10px/1.6 Inter,Arial,sans-serif;letter-spacing:.2em;text-transform:uppercase;color:#6b655c}
.dp-colour{margin-top:36px;padding-top:30px;border-top:1px solid #d6cfc2}
.dp-colour-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 14px}
.dp-colour-now{font:400 14px/1.7 "PT Serif",Georgia,serif;color:#302f2a}
.dp-colour-now span+span::before{content:" · "}
.dp-swatches{display:flex;flex-wrap:wrap;gap:4px;margin:12px -4px 0}
.dp-sw{display:flex;align-items:center;justify-content:center;width:48px;height:48px;padding:0;border:0;border-radius:50%;background:none;cursor:pointer}
.dp-sw img{display:block;width:40px;height:40px;border-radius:50%;object-fit:cover;background:#e6dfd3;outline:1px solid rgba(48,47,42,.14);outline-offset:-1px}   /* a pale colour keeps its edge on the paper */
.dp-sw[aria-pressed=true]{box-shadow:inset 0 0 0 1px #302f2a}
.dp-sw:hover:not([aria-pressed=true]){box-shadow:inset 0 0 0 1px #a79f93}
.dp-sw:focus-visible{outline:2px solid #302f2a;outline-offset:-2px}
.dp-avail{margin-top:12px!important;font:400 14px/1.7 "PT Serif",Georgia,serif;color:#6b655c}

/* the actions: the header's dark, sized to its words */
.dp-hand{margin-top:30px!important;font:400 16px/1.8 "PT Serif",Georgia,serif;color:#302f2a}
.dp-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 36px;margin-top:12px}
.dp-btn{display:inline-flex;align-items:center;min-height:52px;padding:0 36px;background:#232320;font:500 10px/1.6 Inter,Arial,sans-serif;letter-spacing:.2em;text-transform:uppercase;text-decoration:none;color:#fff;transition:background-color .35s ease}
.dp-btn:hover{background:#000}
.dp-more{display:inline-flex;align-items:center;gap:12px;min-height:44px;font:400 14px/1.7 "PT Serif",Georgia,serif;color:#302f2a;text-decoration:underline;text-decoration-color:#fc8702;text-decoration-thickness:1px;text-underline-offset:7px}
.dp-more svg{flex:none;transition:transform .35s ease}
.dp-more:hover svg{transform:translateX(4px)}
.dp-quiet{display:flex;flex-wrap:wrap;align-items:center;gap:0 28px;margin-top:14px}
.dp-quiet>button,.dp-quiet>a,.dp-quiet>span>[data-fav]{display:inline-flex;align-items:center;min-height:44px;padding:0;border:0;background:none;font:400 14px/1.7 "PT Serif",Georgia,serif!important;letter-spacing:0!important;text-transform:none!important;color:#302f2a;text-decoration:underline;text-decoration-thickness:1px;text-decoration-color:rgba(48,47,42,.3);text-underline-offset:6px;cursor:pointer}
.dp-quiet>button:hover,.dp-quiet>a:hover{text-decoration-color:currentColor}
.dp-quiet>a#yourSamples{color:#6b655c}
.dp-quiet [data-fav] svg{flex:none}
.dp-quiet [data-fav] [data-fav-label]{text-decoration:underline;text-decoration-thickness:1px;text-decoration-color:rgba(48,47,42,.3);text-underline-offset:6px}
.dp-quiet>span>[data-fav]{text-decoration:none}
.dp-quiet [data-sample-note]{flex-basis:100%;font:400 14px/1.7 "PT Serif",Georgia,serif;color:#b23a0c}

/* fold-outs */
.dp-folds{margin-top:44px;border-bottom:1px solid #d6cfc2}
.dp-fold{border-top:1px solid #d6cfc2}
.dp-fold summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:60px;font:400 16px/1.8 "PT Serif",Georgia,serif;color:#302f2a;cursor:pointer;list-style:none}
.dp-fold summary::-webkit-details-marker{display:none}
.dp-fold summary:hover{color:#4c4942}
.dp-fold summary svg{flex:none;transition:transform .2s}
.dp-fold[open] summary svg{transform:rotate(180deg)}
.dp-fold-body{padding:0 0 26px;font:400 14px/1.7 "PT Serif",Georgia,serif}
.dp-fold-body p{text-wrap:pretty}
.dp-fold-body p+p,.dp-fold-body p+.dp-docs{margin-top:10px}
.dp-fold-body ul{margin:0;padding:0;list-style:none}
.dp-fold-body li+li{margin-top:10px}
.dp-specs{margin:0}
.dp-specs>div{display:grid;grid-template-columns:170px minmax(0,1fr);gap:16px;padding:11px 0;border-top:1px solid #e6e0d5}
.dp-specs>div:first-child{border-top:0;padding-top:0}
.dp-specs dt,.dp-specs dd{font:inherit}
.dp-specs dt{color:#6b655c}
.dp-specs dd{margin:0;color:#302f2a}
.dp-specs dd a{color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px}
.dp-docs{display:flex;flex-direction:column;align-items:flex-start;gap:2px}
.dp-a{display:inline-flex;align-items:center;min-height:36px;padding:0;border:0;background:none;font:400 14px/1.7 "PT Serif",Georgia,serif;color:#302f2a;text-decoration:underline;text-decoration-thickness:1px;text-decoration-color:rgba(48,47,42,.3);text-underline-offset:6px;cursor:pointer;text-align:left}
.dp-a:hover{text-decoration-color:currentColor}

/* a showroom */
/* the hands and words behind the material: Tomita's own photographs, in no hurry */
.dp-story{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:24px;row-gap:72px;padding:24px var(--tm-edge) 120px}
.dp-story figure{margin:0}
.dp-story img{display:block;width:100%;height:auto}
.dp-story figcaption{margin-top:12px;font:400 14px/1.7 "PT Serif",Georgia,serif;color:#6b655c}
.dp-story-a{grid-column:1/8;grid-row:1}
.dp-story-words{grid-column:9/13;grid-row:1;align-self:center;font:400 16px/1.8 "PT Serif",Georgia,serif;color:#4c4942}
.dp-story-words p{text-wrap:pretty}
.dp-story-words p+p{margin-top:14px}
.tm-dp .dp-story-line{margin-bottom:20px!important;font:400 clamp(20px,1.8vw,28px)/1.35 Inter,Arial,sans-serif;color:#302f2a}
.dp-story-b{grid-column:2/6;grid-row:2}
.dp-story-c{grid-column:8/12;grid-row:2;margin-top:96px!important}

.dp-visit{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:24px;align-items:center;padding:72px var(--tm-edge);background:#0d0d0b;color:rgba(255,255,255,.82)}
.dp-visit-photo{grid-column:1/8;margin:0}
.dp-visit-photo img{display:block;width:100%;height:auto;aspect-ratio:3120/1328;object-fit:cover}
.dp-visit-words{grid-column:8/13;padding-left:24px}
.dp-visit h2{margin:0 0 14px;font:400 clamp(20px,1.8vw,28px)/1.25 Inter,Arial,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#fff}
.dp-visit p{font-size:14px;line-height:1.7}
.dp-visit .dp-visit-line{margin-bottom:14px;font:400 16px/1.8 "PT Serif",Georgia,serif;color:#fff}
.dp-visit-links{display:flex;flex-wrap:wrap;gap:0 24px;margin-top:12px}
.dp-visit .dp-a{color:#fff;text-decoration-color:rgba(255,255,255,.4)}
.dp-visit .dp-a:hover{text-decoration-color:#fff}

/* every control shows where the keyboard is */
.tm-dp a:focus-visible,.tm-dp button:focus-visible,.tm-dp summary:focus-visible{outline:2px solid #302f2a;outline-offset:3px}
.dp-print-head,.dp-print-foot{display:none}
@media (prefers-reduced-motion:reduce){.dp-frame img,.dp-btn,.dp-more svg,.dp-thumb{transition:none}}

/* the larger view: nothing of the page behind it */
#lightbox{background:#0b0b0a!important}
#lbWrap{padding-top:72px!important;padding-bottom:40px!important}
#lbCode{top:30px!important;bottom:auto!important;left:var(--tm-edge)!important;transform:none!important;font:500 10px/1.6 Inter,Arial,sans-serif!important;letter-spacing:.2em!important;color:rgba(255,255,255,.82)!important}
#lbClose:focus-visible{outline:1px solid #fff!important;outline-offset:0}

@media (max-width:1000px){
  .dp-main{display:block;padding-bottom:64px}
  .dp-pics,.dp-pics:has(.dp-thumbs[hidden]){position:static;display:block}
  .dp-thumbs{flex-direction:row;max-height:none;overflow-x:auto;overflow-y:visible;margin-top:4px}
  .dp-side{padding-left:0;margin-top:28px}
  .dp-frame{justify-content:center}
  .tm-dp .dp-frame img{max-height:82vh!important}
  .dp-visit{display:block;padding-top:48px;padding-bottom:48px}
  .dp-story{display:block;padding-bottom:64px}
  .dp-story-words{margin:36px 0}
  .dp-story-b{margin-bottom:36px!important}
  .dp-story-c{margin:0 0 0 18%!important}
  .dp-story-b{margin-right:18%!important}
  .dp-visit-words{padding-left:0;margin-top:20px}
}
@media (max-width:767px){
  .dp-actions{gap:6px 0}
  .dp-btn{width:100%;justify-content:center}
  .dp-specs>div{grid-template-columns:minmax(0,120px) minmax(0,1fr);gap:12px}
  .dp-specs dd a{display:inline-block;padding:13px 0;margin:-13px 0}   /* a tap target the row's own height does not give */
  .dp-a{min-height:44px}
  .dp-top.has-jp{padding-right:72px}
  .dp-thumb{width:60px;height:60px}
}
@media print{
  @page{margin:14mm}
  html,body{background:#fff!important}
  .tm-dp{font-size:10.5pt}
  .tm-dp .dp-pics{position:static;display:block;float:left;width:66mm;margin-right:8mm}
  .dp-hand,.dp-story,.dp-thumbs,.dp-under,.dp-actions,.dp-quiet,.dp-visit,#app,.dp-swatches,[data-no-print],.dp-fold summary svg,#lightbox,[class*=cursor]{display:none!important}
  .dp-main{display:block;padding:0}
  .tm-dp .dp-frame img{width:66mm!important;height:auto!important;max-height:90mm!important;object-fit:cover}
  .dp-side{padding:0;margin:0}
  .dp-colour{margin-top:10px;padding-top:0;border:0}
  .tm-dp .dp-jp{height:calc(var(--n)*11mm)!important}
  .dp-top.has-jp{min-height:0}
  .dp-desc{margin-top:10px!important;font-size:10pt;line-height:1.5}
  .dp-folds{margin-top:12px;border:0;clear:both}
  .dp-fold{border-top:1px solid #bbb;break-inside:avoid}
  .dp-fold summary{min-height:0;padding:8px 0 4px}
  .dp-fold-body{padding-bottom:6px;font-size:9.5pt;line-height:1.4}
  .dp-specs>div{padding:3px 0;grid-template-columns:48mm minmax(0,1fr)}
  .dp-print-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8mm;font:500 8pt Inter,Arial,sans-serif;letter-spacing:.2em;text-transform:uppercase;color:#444}
  .dp-print-foot{display:block;clear:both;margin-top:8mm;padding-top:3mm;border-top:1px solid #bbb;font:400 8pt/1.5 Inter,Arial,sans-serif;color:#444}
}
