/* Reference-first visual language, shared by homepage and internal pages. */
body.tph-design{--tph-bg:#0d1412;--tph-bg-2:#141e1a;--tph-bg-3:#1d2a23;--tph-surface:#1d2a23;--tph-text:#eff2ec;--tph-text-dim:#b4c0b6;--tph-text-mute:#8b9d90;--tph-line:#b6c4ad26;--tph-line-strong:#b6c4ad40;--tph-accent:#d0ac66;--tph-accent-2:#e5c88d;--tph-grad-hot:linear-gradient(110deg,#d0ac66,#ecdbb8);--tph-grad-gold:linear-gradient(110deg,#d0ac66,#ddbc7e);background:var(--tph-bg);color:var(--tph-text)}
:root[data-theme=light] body.tph-design{--tph-bg:#f2f4ef;--tph-bg-2:#fcfcf8;--tph-bg-3:#e9ede4;--tph-surface:#fff;--tph-text:#1c3024;--tph-text-dim:#536457;--tph-text-mute:#637565;--tph-line:#29462f26;--tph-line-strong:#29462f40;--tph-accent:#88652a;--tph-accent-2:#72501c;--tph-grad-hot:linear-gradient(110deg,#88652a,#b28b4a)}
.tph-design .tph-btn{font-family:var(--tph-font-body);font-size:12px;letter-spacing:.025em;text-transform:none;border-radius:5px;min-height:44px}
.tph-design .tph-btn-primary{background:#d0ac66;color:#15261b;border-color:#d0ac66;box-shadow:none}
.tph-design .tph-btn-primary:hover{background:#e3c68e;box-shadow:0 4px 18px #d0ac6618;transform:translateY(-1px)}
.tph-design .tph-header-inner{position:relative;z-index:1}
.tph-design .tph-header::after{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background:linear-gradient(108deg,transparent 35%,#fce7b911 47%,#fff2d519 50%,transparent 62%);background-size:300% 100%;background-position:110% 0;animation:tph-menu-glint 16s ease-in-out infinite}
@keyframes tph-menu-glint{0%,67%{background-position:110% 0}92%,100%{background-position:-50% 0}}
:root[data-theme=light] .tph-design .tph-header::after{background-image:linear-gradient(108deg,transparent 35%,#c7a36512 47%,#fffdf799 50%,transparent 62%)}
.tph-design .tph-nav>ul>li>a{font-family:var(--tph-font-body);text-transform:none;letter-spacing:.01em;font-size:13px;font-weight:500}
.tph-design .tph-nav .current-menu-item>a{color:var(--tph-accent)}
.tph-design h2,.tph-design h3,.tph-design h4{font-family:var(--tph-font-body);text-transform:none;letter-spacing:-.025em}
.tph-kicker{display:block;font-size:10px;letter-spacing:.15em;text-transform:uppercase;font-weight:700;color:var(--tph-accent);margin-bottom:12px}
.tph-collection-hero{padding:28px 0 42px;border-bottom:1px solid var(--tph-line);background:radial-gradient(ellipse at 95% 10%,#c2b26f0e,transparent 60%),var(--tph-bg-2)}
.tph-crumbs{display:flex;gap:12px;align-items:center;font-size:11px;color:var(--tph-text-dim);margin-bottom:35px}.tph-crumbs a{color:var(--tph-text-dim)}.tph-crumbs a:hover{color:var(--tph-accent)}
.tph-collection-heading{display:grid;grid-template-columns:minmax(0,1fr) 250px;align-items:center;gap:70px}
.tph-collection-heading h1{font-family:var(--tph-font-body);font-size:clamp(34px,4vw,55px);letter-spacing:-.045em;font-weight:600;line-height:1.12;text-transform:none;margin:0 0 18px;max-width:820px}
.tph-collection-heading p{max-width:670px;font-size:14px;line-height:1.8;color:var(--tph-text-dim);margin:0}
.tph-inventory-stat{padding-left:30px;border-left:1px solid var(--tph-line-strong);position:relative;display:flex;flex-direction:column;gap:5px}.tph-inventory-stat strong{font-size:46px;font-weight:500;letter-spacing:-.05em;color:var(--tph-accent);line-height:1.2}.tph-inventory-stat>span:not(.tph-stat-mark){font-size:12px}.tph-inventory-stat small{font-size:10px;color:var(--tph-text-dim);line-height:1.5;margin-top:8px}.tph-stat-mark{font-size:10px;letter-spacing:.2em;color:var(--tph-text-dim)}
.tph-inventory-search{position:relative;z-index:5;margin-top:28px;scroll-margin-top:110px}.tph-inventory-search .tph-ref-search{max-width:none;width:100%;margin:0;padding:24px;border-radius:8px;background:var(--tph-bg);border:1px solid var(--tph-line-strong);box-shadow:none}.tph-inventory-search .tph-ref-search h2{font-family:var(--tph-font-body);font-size:18px;letter-spacing:-.02em;font-weight:600}.tph-inventory-search .tph-ref-search p{font-size:12px;line-height:1.6;margin-bottom:14px}.tph-inventory-search .tph-ref-search form{gap:8px}.tph-inventory-search .tph-ref-search input[type=search]{background:var(--tph-bg-2);border-radius:4px;padding:14px 16px;font-size:16px;min-height:50px}.tph-inventory-search .tph-ref-search button{padding:14px 24px;position:relative;overflow:hidden}.tph-inventory-search .tph-ref-search .tph-ref-search-status{margin:8px 0 0;min-height:18px;font-size:11px}.tph-inventory-help{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:var(--tph-accent);padding:13px 2px 0}.tph-inventory-help:hover{text-decoration:underline;text-underline-offset:4px}.tph-inventory-search .tph-ref-suggestions{z-index:60}
.tph-inventory-content{padding-top:40px;padding-bottom:50px}.tph-inventory-section{margin-bottom:64px;scroll-margin-top:110px}
.tph-editorial-head{display:flex;justify-content:space-between;align-items:flex-end;gap:30px;margin-bottom:28px}.tph-editorial-head h2{font-size:clamp(25px,3vw,36px);font-weight:500;line-height:1.2;margin:0}.tph-editorial-head>p{max-width:390px;font-size:12px;color:var(--tph-text-dim);line-height:1.8;margin:0}.tph-editorial-head>a{flex-shrink:0;font-size:12px;color:var(--tph-accent);text-decoration:underline;text-underline-offset:5px}
.tph-inventory-families{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.tph-family-card{display:flex;flex-direction:column;position:relative;min-height:280px;padding:26px;background:var(--tph-bg-2);border:1px solid var(--tph-line);border-radius:8px;text-decoration:none;color:var(--tph-text);overflow:hidden;transition:border-color .25s,background .25s}.tph-family-card:hover{border-color:var(--tph-accent);background:var(--tph-bg-3)}.tph-family-main{grid-column:span 2;background:linear-gradient(120deg,#b9a66c0b,transparent 75%),var(--tph-bg-2)}.tph-family-count{font-size:11px;color:var(--tph-text-dim);margin-bottom:70px}.tph-family-art{width:95px;height:95px;position:absolute;right:20px;top:18px;color:var(--tph-accent);opacity:.55}.tph-family-art svg{width:100%;height:100%}.tph-family-main .tph-family-art{width:170px;height:170px;right:30px;top:44px;opacity:.2}.tph-family-card h3{font-size:22px;font-weight:500;line-height:1.25;margin:0 0 12px;max-width:85%}.tph-family-card p{font-size:12px;color:var(--tph-text-dim);line-height:1.7;margin:0 0 24px;max-width:330px}.tph-family-main h3{font-size:32px}.tph-family-link{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--tph-accent);border-top:1px solid var(--tph-line);padding-top:16px;margin-top:auto}
.tph-part-examples{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.tph-part-example{padding:26px;display:flex;flex-direction:column;border:1px solid var(--tph-line);border-radius:8px;background:var(--tph-bg-2);color:var(--tph-text);min-width:0;transition:border-color .2s}.tph-part-example:hover{border-color:var(--tph-accent)}.tph-part-example .tph-kicker{font-size:9px}.tph-part-example strong{font-size:34px;letter-spacing:-.03em;font-weight:500;margin:14px 0 30px;overflow-wrap:anywhere}.tph-part-example>span:last-child{display:flex;justify-content:space-between;font-size:11px;color:var(--tph-text-dim)}
.tph-source-part{display:flex;align-items:center;justify-content:space-between;gap:35px;padding:36px;border:1px solid var(--tph-line-strong);border-left:3px solid var(--tph-accent);background:var(--tph-bg-2);border-radius:8px;margin:45px 0}.tph-source-part h2{font-weight:500;font-size:27px;line-height:1.3;max-width:650px;margin:0 0 14px}.tph-source-part p{font-size:13px;color:var(--tph-text-dim);max-width:610px;line-height:1.8;margin:0}.tph-source-part .tph-btn{flex-shrink:0}
.tph-bull-route{display:grid;grid-template-columns:minmax(0,1fr) minmax(200px,.7fr);align-items:center;gap:40px;border-top:1px solid var(--tph-line);padding:45px 0 10px}.tph-bull-route h2{font-size:30px;line-height:1.2;font-weight:500}.tph-bull-route p{font-size:13px;color:var(--tph-text-dim);line-height:1.8}.tph-bull-route a{font-size:12px;color:var(--tph-accent);text-decoration:underline;text-underline-offset:5px}.tph-bull-route img{width:100%;max-height:220px;object-fit:contain}
.tph-design .tph-ref-full-card{background:var(--tph-bg-2);border:1px solid var(--tph-line);border-top:2px solid var(--tph-accent);border-radius:8px;padding:28px;gap:18px;box-shadow:none}.tph-design .tph-ref-card h2{font-family:var(--tph-font-body);font-size:clamp(30px,3vw,40px);font-weight:500;letter-spacing:-.03em}.tph-design .tph-ref-label{font-size:9px;letter-spacing:.14em}.tph-design .tph-ref-count{font-size:10px;border-radius:4px;color:var(--tph-text-dim)}.tph-design .tph-ref-full-card .tph-ref-availability{font-size:12px;font-weight:500;padding:10px 12px;border-radius:4px}.tph-design .tph-ref-full-card .tph-ref-has-stock{background:#90b69912;border-color:#90b69945}.tph-design .tph-ref-fields{grid-template-columns:minmax(100px,1fr) minmax(0,1.5fr)}.tph-design .tph-ref-fields dt{font-size:11px}.tph-design .tph-ref-fields dd{font-size:13px;font-weight:500;line-height:1.6}.tph-design .tph-ref-full-card .tph-ref-note{font-size:11px}.tph-design .tph-ref-buy{margin-top:auto}.tph-design .tph-ref-buy-caption{font-size:10px}.tph-design .tph-ref-card:hover{box-shadow:0 10px 35px #0000000d}
.tph-design .tph-ref-pages{gap:7px}.tph-design .tph-ref-pages a,.tph-design .tph-ref-pages span{display:inline-flex;align-items:center;justify-content:center;min-width:40px;min-height:40px;border-radius:4px;font-size:12px;border:1px solid var(--tph-line)}.tph-design .tph-ref-pages .current{background:#d0ac66;color:#15261b;border-color:#d0ac66}.tph-results-heading h2{overflow-wrap:anywhere}.tph-results-summary{font-size:13px;color:var(--tph-text-dim)}.tph-design .tph-ref-empty{background:var(--tph-bg-2);border:1px solid var(--tph-line);border-radius:8px;padding:40px;max-width:850px}.tph-design .tph-ref-empty h2{font-size:30px;font-weight:500;line-height:1.3}.tph-design .tph-ref-empty p{font-size:14px;line-height:1.8;color:var(--tph-text-dim)}.tph-design .tph-ref-empty .tph-btn{white-space:normal;text-align:center}
/* Apply the same hierarchy to institutional pages and existing document cards. */
.tph-inner-page .tph-section-head{text-align:left;max-width:none;margin-left:0;margin-right:0}.tph-inner-page .tph-section-head>p{margin-left:0;max-width:760px;font-size:14px}.tph-inner-page .tph-section-head h1{font-family:var(--tph-font-body);font-size:clamp(34px,4vw,54px);letter-spacing:-.045em;font-weight:600;line-height:1.15;text-transform:none}.tph-inner-page .tph-section-head .eyebrow{font-size:10px;letter-spacing:.15em}.tph-inner-page .tph-section-head:has(h1){padding-bottom:30px;border-bottom:1px solid var(--tph-line)}
.tph-inner-page .tph-main>.tph-hero{background:radial-gradient(ellipse at top right,#d0ac6610,transparent 70%),var(--tph-bg-2);min-height:0!important;padding:60px 0!important;border-bottom:1px solid var(--tph-line)}.tph-inner-page .tph-main>.tph-hero::before,.tph-inner-page .tph-main>.tph-hero::after{display:none}.tph-inner-page .tph-hero .tph-hero-text{text-align:left!important;max-width:none!important;margin:0!important}.tph-inner-page .tph-hero .tph-hero-text h1{font-family:var(--tph-font-body);font-size:clamp(32px,4vw,54px)!important;line-height:1.15;font-weight:600;letter-spacing:-.045em;text-transform:none}.tph-inner-page .tph-hero .tph-hero-text p{font-size:14px!important;margin-left:0!important;line-height:1.8;max-width:760px!important}.tph-inner-page .tph-hero .tph-hero-eyebrow{opacity:1;transform:none}
.tph-design .tph-why-card,.tph-design .tph-doc-card,.tph-design .tph-contact-card{background:var(--tph-bg-2);border-radius:8px;border-color:var(--tph-line);box-shadow:none}.tph-design .tph-why-card:hover,.tph-design .tph-doc-card:hover{border-color:var(--tph-accent);box-shadow:none;transform:translateY(-2px)}.tph-design .tph-why-card h3{font-weight:500;font-size:22px;line-height:1.3}.tph-design .tph-why-card p{font-size:13px;line-height:1.8}.tph-design .tph-doc-thumb{background:var(--tph-bg-3)}.tph-design .tph-doc-card h3{font-size:24px;font-weight:500}.tph-design .tph-contact-card h3{font-size:32px;font-weight:500}.tph-inner-search-route{padding-top:35px;padding-bottom:40px;border-top:1px solid var(--tph-line);margin-top:20px}.tph-inner-search-route h2{font-size:clamp(24px,3vw,34px);font-weight:500;max-width:650px;line-height:1.3;margin-bottom:25px}.tph-design .tph-footer{background:var(--tph-bg-2);border-top:1px solid var(--tph-line)}
@media(max-width:1000px){.tph-collection-heading{grid-template-columns:minmax(0,1fr) 190px;gap:30px}.tph-inventory-stat{padding-left:22px}.tph-inventory-stat strong{font-size:36px}.tph-inventory-families,.tph-part-examples{grid-template-columns:repeat(2,minmax(0,1fr))}.tph-family-main{grid-column:span 2}.tph-source-part{align-items:flex-start;flex-direction:column}.tph-editorial-head{align-items:flex-start;flex-direction:column;gap:16px}.tph-editorial-head>p{max-width:650px}}
@media(max-width:600px){.tph-collection-hero{padding:22px 0 28px}.tph-crumbs{margin-bottom:25px}.tph-collection-heading{grid-template-columns:minmax(0,1fr);gap:22px}.tph-collection-heading h1{font-size:34px}.tph-collection-heading p{font-size:13px}.tph-inventory-stat{padding:14px 0 0;border:0;border-top:1px solid var(--tph-line);flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:8px 12px}.tph-stat-mark{display:none}.tph-inventory-stat strong{font-size:28px}.tph-inventory-stat small{flex-basis:100%;margin:0;font-size:10px}.tph-inventory-search{margin-top:22px}.tph-inventory-search .tph-ref-search{padding:18px}.tph-inventory-search .tph-ref-search h2{font-size:17px}.tph-inventory-search .tph-ref-search form{flex-direction:column}.tph-inventory-search .tph-ref-search button{justify-content:center;width:100%}.tph-inventory-help{font-size:11px;line-height:1.7}.tph-inventory-content{padding-top:30px;padding-bottom:35px}.tph-inventory-section{margin-bottom:40px}.tph-inventory-families,.tph-part-examples{grid-template-columns:minmax(0,1fr);gap:12px}.tph-family-main{grid-column:auto}.tph-family-card{min-height:245px;padding:22px}.tph-family-main h3{font-size:27px}.tph-family-main .tph-family-art{height:125px;width:125px;right:16px;top:32px}.tph-family-card h3{max-width:90%}.tph-part-example{padding:22px}.tph-part-example strong{font-size:32px;margin:7px 0 20px}.tph-source-part{padding:24px;gap:24px}.tph-source-part h2{font-size:24px}.tph-source-part .tph-btn{white-space:normal;text-align:center;width:100%;justify-content:center}.tph-bull-route{grid-template-columns:1fr;gap:20px}.tph-bull-route img{max-height:170px}.tph-design .tph-ref-full-card{padding:20px;gap:14px}.tph-design .tph-ref-fields{grid-template-columns:minmax(85px,1fr) minmax(0,1.35fr);gap:10px}.tph-design .tph-ref-empty{padding:24px}.tph-design .tph-ref-empty h2{font-size:26px}.tph-design .tph-ref-pages a,.tph-design .tph-ref-pages span{min-width:36px}.tph-inner-page .tph-main>.tph-hero{padding:40px 0!important}}
@media(prefers-reduced-motion:reduce){.tph-design .tph-header::after{animation:none;background:none}.tph-design .tph-family-card,.tph-design .tph-part-example,.tph-design .tph-btn,.tph-design .tph-why-card,.tph-design .tph-doc-card{transition:none;transform:none}}
/* Keep the search action near the first viewport on compact screens. */
@media(max-width:600px){.tph-collection-hero .tph-inventory-search .tph-ref-search h2,.tph-collection-hero .tph-inventory-search .tph-ref-search>p:not(.tph-ref-search-status){display:none}.tph-collection-hero .tph-inventory-search{margin-top:18px}.tph-collection-heading{gap:18px}.tph-collection-heading h1{font-size:31px;margin-bottom:14px}.tph-collection-heading p{line-height:1.7}.tph-collection-hero .tph-crumbs{margin-bottom:20px}}
