/* Shared tool directory. Existing brand tokens handle light and dark themes. */
[data-knowledge-page="tools"] .td-hero{max-width:none;padding:48px 0 30px}
.td-hero .k-hero-copy{display:grid;grid-template-columns:1fr 1fr;gap:12px 60px;align-items:end}
.td-hero .k-kicker{grid-column:1;margin:0;color:var(--clay)}
.td-hero h1{grid-column:1;font-size:clamp(42px,5vw,66px);max-width:9em;margin:0}
.td-hero .k-lede{grid-column:2;grid-row:1 / 3;margin:0;font-size:17px;line-height:1.75;max-width:35em}
.td-jumps{gap:8px!important;margin:8px 0 44px!important;flex-wrap:wrap}
.td-jumps a{padding:11px 17px!important;font-size:13px!important;background:transparent!important}
.td-jumps a:hover{background:var(--k-soft)!important}
.td-group{margin:0 0 64px;scroll-margin-top:140px}
.td-group .k-section-head{margin-bottom:24px}
.td-group .k-section-head h2{font-size:clamp(28px,3vw,37px);letter-spacing:-.025em}
.td-group .k-section-head p{font-size:15px;max-width:48em;margin-bottom:0}
.td-grid{gap:20px;grid-template-columns:repeat(3,minmax(0,1fr))}
.td-grid .td-illustrated{display:flex;padding:0;border-radius:20px;overflow:hidden;isolation:isolate;box-shadow:0 3px 10px #10261b04;transition:border-color .2s,box-shadow .2s,transform .2s}
.td-grid .td-illustrated:hover{transform:translateY(-3px);box-shadow:0 12px 28px #10261b12;border-color:var(--clay)}
.td-grid .td-illustrated:focus-visible{outline:3px solid var(--clay);outline-offset:4px}
.td-card-copy{display:flex;flex-direction:column;align-items:stretch;padding:25px;width:100%;box-sizing:border-box;flex:1;min-width:0}
.td-grid .td-illustrated h3{font-size:25px;line-height:1.2;margin:0 0 13px;letter-spacing:-.02em;overflow-wrap:break-word}
.td-grid .td-illustrated p{font-size:14px;line-height:1.7;margin:0 0 22px;max-width:48ch}
.td-grid .k-tool-link{font-size:13px;padding-top:16px;gap:12px;align-items:center}
.td-grid .k-tool-link>span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--k-soft);color:var(--clay);flex-shrink:0;font-size:18px;transition:background .2s}
.td-grid a:hover .k-tool-link>span{background:var(--green);color:#fffdf6}
.td-visual{display:block;position:relative;width:100%;height:180px;flex-shrink:0;overflow:hidden;background:var(--k-soft)}
.td-photo{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.td-image .td-photo-care-cat{object-position:43% 53%}
.td-image .td-photo-beagle{object-position:50% 32%}
.td-image .td-photo-guinea-pig{object-position:54% 61%}
.td-image .td-photo-expansion006-irish-cob-hero{object-position:26% 52%}
#tools-choose .td-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
#tools-choose .td-featured{grid-column:1 / -1;display:grid;grid-template-columns:1fr 1fr;background:var(--k-soft);min-height:310px}
#tools-choose .td-featured .td-card-copy{grid-column:1;grid-row:1;padding:32px 36px;height:100%}
#tools-choose .td-featured h3{font-size:clamp(30px,3.2vw,40px);max-width:13em}
#tools-choose .td-featured p{font-size:16px;max-width:36ch;margin-bottom:28px}
#tools-choose .td-featured .k-tool-link{max-width:330px}
#tools-choose .td-pet-mosaic{grid-column:2;grid-row:1;height:310px;min-height:0;display:grid;grid-template-columns:1.1fr 1fr;grid-template-rows:1fr 1fr;gap:6px;padding:14px;box-sizing:border-box;background:transparent}
.td-pet-mosaic .td-photo{border-radius:12px;min-height:0;min-width:0;object-position:center}
.td-pet-mosaic .td-photo:first-child{grid-row:span 2;object-position:45% 50%}
.td-pet-mosaic .td-photo:nth-child(2){object-position:50% 52%}
#tools-choose .td-card-copy{padding:22px}
#tools-choose .td-illustrated:not(.td-featured) h3{font-size:24px}
#tools-choose .td-illustrated:not(.td-featured) .td-visual{height:auto;aspect-ratio:1.35}
.td-pair{display:flex;align-items:center;justify-content:center;gap:12px;background:var(--k-tint);height:152px;padding:24px;box-sizing:border-box}
.td-pair .td-photo{width:100px;height:100px;border-radius:50%;border:4px solid var(--k-surface);box-shadow:0 5px 16px #10261b0d;object-position:50% 40%;min-width:0;flex-shrink:1}
.td-pair .td-photo-labrador-retriever{object-position:50% 20%}
.td-pair .td-photo-maine-coon{object-position:40% 15%}
.td-pair .td-photo-care-cat{object-position:38% 50%}
.td-pair .td-photo-expansion006-irish-cob-hero{object-position:25% 50%}
.td-pair-divider{font-family:var(--serif);font-size:24px;color:var(--clay);flex-shrink:0}
.td-drawing,.td-document{display:flex;justify-content:center;align-items:flex-start;background:#ece9de;padding:23px 32px 0;box-sizing:border-box}
.td-paper{display:flex;flex-direction:column;gap:15px;width:220px;max-width:100%;min-height:176px;box-sizing:border-box;padding:22px 24px;border:1px solid #deded0;border-radius:11px;background:#fffdf6;box-shadow:0 10px 24px #203b2512;transform:rotate(-3deg);color:#365346}
.td-paper-brand{display:block;font:18px var(--serif);letter-spacing:-.7px;color:#365346}
.td-checklist{display:flex;flex-direction:column;gap:13px}
.td-checklist i{display:flex;align-items:center;gap:12px;font-style:normal}
.td-checklist b{font-size:12px;font-weight:500;color:#365346;display:grid;place-items:center;width:17px;height:17px;background:#e5ecdf;border-radius:4px}
.td-checklist i span,.td-paper-line{display:block;height:5px;background:#d9dfd1;border-radius:4px;width:78%}
.td-checklist i:nth-child(2) span{width:56%}
.td-chart{display:flex;align-items:end;gap:12px;height:66px;border-bottom:1px solid #d9dfd1;padding:0 6px}
.td-chart i{display:block;width:25%;border-radius:5px 5px 0 0;background:#7d9477;height:70%}
.td-chart i:nth-child(2){height:44%;background:#b6c4a7}
.td-chart i:nth-child(3){height:100%;background:#365346}
.td-chart i:nth-child(4){height:58%;background:#cf9875}
.td-paper-total{height:7px;width:42%;border-radius:4px;background:#d6dbd0;align-self:flex-end}
.td-drawing-cost{background:#e4eadd}
.td-drawing-cost .td-paper{transform:rotate(3deg)}
.td-document{background:#efe0d5;align-items:center;padding:22px}
.td-id-card{display:block;width:240px;background:#fffdf6;border:1px solid #deded0;border-radius:12px;padding:19px 23px;box-sizing:border-box;box-shadow:0 8px 24px #52372612;transform:rotate(-4deg)}
.td-id-content{display:flex;gap:17px;align-items:center;margin-top:15px}
.td-id-content .td-photo{width:50px;height:50px;border-radius:50%}
.td-id-content>span{flex:1;display:grid;gap:8px}
.td-id-content i{display:block;background:#d9dfd1;height:4px;border-radius:3px}
.td-id-content i:first-child{width:65%;height:7px;background:#91a48a}
.td-id-rule{display:block;border-top:1px solid #deded0;margin-top:14px}
.td-pdf{position:absolute;bottom:18px;right:32px;background:#365346;color:#fffdf6;font-size:10px;font-weight:700;letter-spacing:.07em;padding:8px 10px;border-radius:7px;box-shadow:0 4px 12px #203b2520}
.td-calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
.td-calendar i{height:14px;border-radius:3px;background:#e7ebdf}
.td-calendar i:nth-child(3n){background:#93a889}
.td-calendar i:nth-child(8){background:#cf9875}
.td-drawing-routine{background:#e4eadd}
.td-supply-gauge{display:block;height:19px;border:1px solid #bdc9b4;border-radius:15px;padding:3px}
.td-supply-gauge i{display:block;background:#73926c;width:62%;height:100%;border-radius:15px}
.td-drawing-supply{background:#eee4d5}
.td-drawing-supply .td-paper{transform:rotate(2deg);gap:22px}
#tools-care .td-water{grid-column:span 2;display:grid;grid-template-columns:1fr 1fr}
#tools-care .td-water .td-visual{height:100%;min-height:245px;grid-column:2;grid-row:1}
#tools-care .td-water .td-card-copy{grid-column:1;grid-row:1;align-self:stretch}
.td-credits{font-size:12px;color:var(--muted);margin:28px 0 50px}
.td-credits summary{cursor:pointer;width:fit-content;padding:10px 0}
.td-credits ul{padding-left:20px;line-height:1.8}
.td-credits a{color:inherit;text-underline-offset:3px}
@media(prefers-color-scheme:dark){
 .td-grid .td-illustrated{box-shadow:none}
 .td-drawing,.td-drawing-cost,.td-drawing-routine{background:#354337}
 .td-document,.td-drawing-supply{background:#493d32}
 .td-pair{background:#2a352c}
 .td-grid .k-tool-link>span{background:#354337}
}
@media(min-width:701px) and (max-width:1050px){
 #tools-choose .td-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 #tools-choose .td-illustrated:not(.td-featured) .td-visual{aspect-ratio:1.85}
 .td-grid{gap:16px}
 .td-card-copy{padding:21px}
 .td-pair{padding:20px 12px;gap:7px}
 .td-pair .td-photo{width:80px;height:80px}
 .td-drawing{padding-inline:22px}
}
@media(max-width:700px){
 [data-knowledge-page="tools"] .td-hero{padding:28px 0 22px}
 .td-hero .k-hero-copy{display:block}
 .td-hero .k-kicker{margin-bottom:14px}
 .td-hero h1{font-size:42px;max-width:none;margin-bottom:20px}
 .td-hero .k-lede{font-size:16px}
 .td-jumps{display:grid!important;grid-template-columns:1fr 1fr;margin-bottom:36px!important}
 .td-jumps a{font-size:12px!important;padding:11px 13px!important;text-align:center;white-space:normal!important;justify-content:center;line-height:1.5;display:flex;align-items:center}
 .td-group{margin-bottom:46px;scroll-margin-top:100px}
 .td-group .k-section-head h2{font-size:29px}
 .td-group .k-section-head p{font-size:14px}
 .td-grid,#tools-choose .td-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
 #tools-choose .td-featured{display:flex;flex-direction:column;min-height:0}
 #tools-choose .td-pet-mosaic{height:210px;min-height:0;order:0;grid-template-columns:1.25fr 1fr 1fr;grid-template-rows:1fr;padding:10px;gap:5px}
 .td-pet-mosaic .td-photo:first-child{grid-row:auto}
 #tools-choose .td-featured .td-card-copy{padding:24px;order:1}
 #tools-choose .td-featured h3{font-size:31px}
 #tools-choose .td-featured p{font-size:15px;margin-bottom:20px}
 #tools-choose .td-card-copy,.td-card-copy{padding:18px}
 #tools-choose .td-illustrated:not(.td-featured) h3,.td-grid .td-illustrated h3{font-size:22px}
 .td-grid .td-illustrated p{font-size:13px;line-height:1.65}
 #tools-compare .td-grid,#tools-prepare .td-grid,#tools-care .td-grid{grid-template-columns:1fr}
 #tools-compare .td-illustrated{display:grid;grid-template-columns:120px 1fr;align-items:stretch}
 .td-pair{height:100%;min-height:190px;flex-direction:column;gap:5px;padding:20px 14px}
 .td-pair .td-photo{height:67px;width:67px;border-width:3px;flex-shrink:0}
 .td-pair-divider{font-size:20px;line-height:1}
 #tools-care .td-water{display:flex;grid-column:auto}
 #tools-care .td-water .td-visual{height:180px;min-height:0}
 .td-visual{height:165px}
 .td-grid .k-tool-link{font-size:12px;gap:6px}
}
@media(max-width:440px){
 #tools-choose .td-grid{grid-template-columns:1fr}
 #tools-choose .td-illustrated:not(.td-featured){display:grid;grid-template-columns:105px 1fr;align-items:stretch}
 #tools-choose .td-illustrated:not(.td-featured) .td-visual{height:88px;width:88px;margin:18px 0 0 18px;border-radius:12px;aspect-ratio:auto}
 #tools-choose .td-illustrated:not(.td-featured) .td-image .td-photo{object-fit:contain;background:var(--k-soft)}
 #tools-choose .td-pet-mosaic{height:165px}
 #tools-choose .td-featured .td-card-copy{padding:22px}
 #tools-choose .td-illustrated:not(.td-featured) .td-card-copy{display:contents}
 #tools-choose .td-illustrated:not(.td-featured) h3{font-size:24px;margin:18px 18px 0;align-self:center}
 #tools-choose .td-illustrated:not(.td-featured) p{grid-column:1 / -1;font-size:14px;margin:18px 18px 0;max-width:none}
 #tools-choose .td-illustrated:not(.td-featured) .k-tool-link{grid-column:1 / -1;width:auto;margin:18px}
}
@media(prefers-reduced-motion:reduce){.td-grid .td-illustrated,.td-photo{transition:none}.td-grid .td-illustrated:hover{transform:none}}
