/* Is It Deductible? (/tools/is-it-deductible/). Site session owns this file. Builds on blog.css tokens + resources.css.
   2026-10-23 redesign for business owners: a wine-colored hero with one big question and a search box, everyday tap cards
   that already show the answer, topics that open to every expense, and an answer sheet (native <dialog>) that slides up.
   Every answer leads with Yes / Partly / Usually not; shape (tick, half circle, cross) carries the meaning, color is
   secondary and the label is always text. Mobile first; the only motion is the sheet opening, and only without
   prefers-reduced-motion. */
.dd-page{
  --wine:#10233F;--wine-2:#1B3557;--wine-ink:#10233F;--blush:#F5F4EF;--blush-2:#E9E6DD;
  --line:#E4E2DC;--soft:#F5F4EF;--txt:#26252B;--sub:#5D5A63;
  --yes:#17633B;--yes-bg:#E3F1E7;--part:#7A5200;--part-bg:#FAEFD6;--no:#9C2A25;--no-bg:#F9E5E3;
}
.dd-page [hidden]{display:none!important}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
html:not(.dd-js) .dd-find{display:none}
.dd-page .wrap{padding:0 16px}
@media (min-width:700px){.dd-page .wrap{padding:0 28px}}

/* ---------- hero ---------- */
.dd-hero{position:relative;z-index:2;overflow-x:clip;color:#fff;padding:22px 0 30px;
  background:radial-gradient(120% 90% at 100% 0,var(--wine-2) 0,rgba(138,34,87,0) 60%),var(--wine)}
.dd-hero:after{display:none;content:"";position:absolute;right:-130px;top:-150px;width:340px;height:340px;border-radius:50%;
  border:1px solid rgba(216,183,105,.28);pointer-events:none}
.dd-hero .wrap{position:relative;z-index:1;max-width:1200px}
.dd-hero .crumbs{color:rgba(255,255,255,.62);margin-bottom:18px}
.dd-hero .crumbs a:hover{color:var(--gold-b)}
.dd-hero h1{font-family:'Cormorant Garamond',Georgia,serif;font-weight:500;font-size:clamp(2.4rem,10vw,5.2rem);line-height:.98;letter-spacing:-.01em;max-width:11ch}
.dd-hero .dek{margin-top:14px;max-width:34rem;font-size:1.02rem;line-height:1.6;font-weight:300;color:rgba(255,255,255,.86)}
.dd-find{position:relative;margin-top:22px;max-width:640px}
.dd-sbox{display:flex;align-items:center;gap:10px;height:58px;padding:0 8px 0 16px;background:#fff;border-radius:16px;
  box-shadow:0 10px 30px rgba(40,6,24,.28);color:var(--wine-ink)}
.dd-sbox>svg{width:22px;height:22px;flex:none}
.dd-sbox input{flex:1;min-width:0;height:100%;border:0;background:none;outline:none;font:400 17px Inter,system-ui,sans-serif;color:var(--txt)}
.dd-sbox input::placeholder{color:#8B8790}
.dd-sbox input::-webkit-search-cancel-button{display:none}
.dd-sbox:focus-within{box-shadow:0 0 0 3px var(--gold-b),0 10px 30px rgba(40,6,24,.28)}
.dd-clear{flex:none;width:40px;height:40px;border:0;border-radius:10px;background:var(--soft);color:var(--sub);display:grid;place-items:center;cursor:pointer}
.dd-clear svg{width:16px;height:16px}
.dd-res{position:absolute;left:0;right:0;top:64px;z-index:20;background:#fff;color:var(--txt);border-radius:16px;padding:8px;
  box-shadow:0 18px 50px rgba(16,35,63,.25);max-height:min(62vh,460px);overflow:auto}
.dd-count{font-size:13px;color:var(--sub);padding:6px 10px 8px}
.dd-count a{color:var(--wine-ink);text-decoration:underline;text-underline-offset:2px}
.dd-res ul{list-style:none}
.hit{width:100%;display:flex;align-items:center;gap:12px;padding:10px;border:0;border-radius:12px;background:none;text-align:left;cursor:pointer;font:inherit;color:inherit}
.hit:hover,.hit:focus-visible{background:var(--blush);outline:none}
.hit:focus-visible{box-shadow:inset 0 0 0 2px var(--wine-ink)}
.hit .ic{width:36px;height:36px}
.hit .t{flex:1;min-width:0}
.hit .t b{display:block;font-weight:600;font-size:15px;line-height:1.3;color:var(--navy)}
.hit .t small{display:block;font-size:12.5px;color:var(--sub);margin-top:1px}
.gen{display:flex;gap:9px;align-items:flex-start;margin-top:16px;max-width:640px;font-size:13.5px;line-height:1.5;color:rgba(255,255,255,.82)}
.gen svg{width:18px;height:18px;flex:none;color:var(--gold-b);margin-top:1px}
.gen strong{font-weight:600;color:#fff}

/* desktop: a real answer previewed beside the headline */
.dd-peek{display:none}
@media (min-width:1000px){
  .dd-hero:after{display:block}
  .dd-hgrid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:56px;align-items:center}
  .dd-peek{display:block;position:relative;padding:18px 0 22px}
  .pk-card{position:relative;background:#fff;color:var(--txt);border-radius:20px;padding:22px 24px;box-shadow:0 24px 60px rgba(30,4,18,.35);transform:rotate(1deg)}
  .pk-back{position:absolute;inset:18px 0 22px;transform:rotate(-3.5deg) translate(-14px,6px);background:var(--blush-2);opacity:.55;box-shadow:none}
  .pk-hd{display:flex;align-items:center;gap:12px;margin-bottom:14px}
  .pk-hd b{font-family:'Cormorant Garamond',Georgia,serif;font-weight:500;font-size:1.7rem;line-height:1.1;color:var(--navy)}
  .pk-card .why{font-size:15.5px}
  .pk-card .blk{margin-top:14px}
  .pk-card .lead,.pk-card .why{color:var(--txt)}
}

/* ---------- icons and answer pills ---------- */
.ic{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--blush);color:var(--wine-ink)}
.ic svg{width:22px;height:22px}
.vb{display:inline-flex;align-items:center;gap:5px;flex:none;padding:3px 10px 3px 7px;border-radius:999px;font-size:12.5px;font-weight:600;line-height:1.35;white-space:nowrap}
.vb svg{width:14px;height:14px}
.vb.a-yes{background:var(--yes-bg);color:var(--yes)}
.vb.a-partly{background:var(--part-bg);color:var(--part)}
.vb.a-no{background:var(--no-bg);color:var(--no)}
.vb.big{font-size:19px;font-weight:700;padding:6px 16px 6px 11px;gap:8px}
.vb.big svg{width:20px;height:20px}

/* ---------- everyday tap cards ---------- */
.dd-main{padding:30px 0 10px}
.dd-main h2{font-family:'Cormorant Garamond',Georgia,serif;font-weight:500;font-size:clamp(1.75rem,6vw,2.4rem);line-height:1.1;color:var(--navy)}
.dd-every{max-width:1200px}
.tiles{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px}
.tile{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:10px;height:100%;padding:12px;border:1px solid var(--line);border-radius:16px;background:#fff;
  transition:border-color .2s,box-shadow .2s,transform .2s}
.tile .ic{width:34px;height:34px}
.tile .ic svg{width:19px;height:19px}
.tt{display:contents}
.tile .tl{font-weight:600;font-size:15px;line-height:1.25;color:var(--navy)}
.tile .vb{grid-column:1/-1;justify-self:start}
.tile:hover{border-color:#D9C3CF;box-shadow:0 8px 22px rgba(107,26,67,.09)}
.tile:active{transform:scale(.98)}
.tile:focus-visible{outline:3px solid var(--wine-ink);outline-offset:2px}
@media (min-width:640px){.tiles{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:960px){.tiles{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
  .tile{display:flex;gap:14px;padding:16px}.tile .ic{width:46px;height:46px}.tile .ic svg{width:22px;height:22px}
  .tt{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0}.tile .tl{font-size:16px}}
@media (max-width:359px){.tiles{grid-template-columns:1fr}}

/* ---------- everything else, by topic ---------- */
.dd-all{max-width:1200px;margin-top:44px}
.dd-all-hd p{margin-top:6px;font-size:.95rem;line-height:1.55;color:var(--sub)}
.grps{margin-top:16px;border-top:1px solid var(--line)}
@media (min-width:960px){.grps{display:grid;grid-template-columns:1fr 1fr;column-gap:44px;align-items:start;border-top:0}
  .grp{border-top:1px solid var(--line)}}
.grp{border-bottom:1px solid var(--line)}
.grp>summary{display:flex;align-items:center;gap:12px;padding:12px 2px;cursor:pointer;list-style:none;min-height:60px}
.grp>summary::-webkit-details-marker,.ex>summary::-webkit-details-marker,.acct>summary::-webkit-details-marker{display:none}
.grp>summary:focus-visible,.ex>summary:focus-visible{outline:3px solid var(--wine-ink);outline-offset:-3px;border-radius:10px}
.gi{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:var(--soft);color:var(--wine-ink)}
.gi svg{width:20px;height:20px}
.grp h3{flex:1;font-size:16px;font-weight:600;line-height:1.3;color:var(--navy)}
.gc{flex:none;min-width:28px;text-align:center;font-size:12.5px;font-weight:600;color:var(--sub);background:var(--soft);border-radius:999px;padding:2px 8px}
.go{flex:none;display:grid;place-items:center;width:20px;color:#9A96A0}
.go svg{width:16px;height:16px;transition:transform .2s}
.grp[open]>summary .go svg{transform:rotate(90deg)}
.grp-in{padding:0 0 10px 48px}
.ex{border-top:1px solid #F0ECEE}
.ex>summary{display:flex;align-items:center;gap:10px;padding:10px 2px;cursor:pointer;list-style:none;min-height:52px}
.ex .ic{width:30px;height:30px;background:none}
.ex .ic svg{width:19px;height:19px}
.ex .nm{flex:1;min-width:0;font-size:15px;font-weight:500;line-height:1.35;color:var(--txt)}
.ex>summary:hover .nm{color:var(--wine-ink)}
.ex[open]>summary .go svg{transform:rotate(90deg)}
.ex>.ans{padding:4px 0 18px}
@media (max-width:420px){.grp-in{padding-left:0}.ex .vb{font-size:12px;padding:2px 8px 2px 6px}}
.legend{list-style:none;display:grid;gap:10px;margin:22px 0 0;padding:16px;border-radius:16px;background:var(--soft)}
.legend li{display:flex;gap:12px;align-items:flex-start;font-size:14px;line-height:1.5;color:var(--sub)}
.legend li{display:grid;grid-template-columns:112px 1fr}
.legend .vb{justify-self:start}
@media (min-width:960px){.legend{grid-template-columns:repeat(3,1fr);gap:20px;padding:18px 22px}.legend li{grid-template-columns:1fr;gap:8px}}

/* ---------- one answer (list and sheet) ---------- */
.ans{color:var(--txt)}
.ans .lead,.pk-card .lead{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.ans .q,.pk-card .q{font-size:14px;font-weight:600;color:var(--sub)}
.ans .why,.pk-card .why{margin-top:12px;font-size:17px;line-height:1.6}
.ans .eg{margin-top:12px;padding-left:12px;border-left:3px solid var(--gold-b);font-size:15px;line-height:1.6;color:var(--sub)}
.ans .eg b{font-weight:600;color:var(--txt)}
.blk{display:flex;gap:12px;margin-top:16px;padding:14px;border-radius:14px}
.blk .bi{flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:50%}
.blk .bi svg{width:19px;height:19px}
.blk .bh{font-size:14px;font-weight:700;color:var(--navy);margin-bottom:4px}
.blk p,.blk li{font-size:15px;line-height:1.55}
.blk ul{list-style:none}
.blk li{position:relative;padding-left:14px;margin-top:3px}
.blk li:before{content:"";position:absolute;left:1px;top:.62em;width:5px;height:5px;border-radius:50%;background:currentColor;opacity:.45}
.proof{background:#F1F5F9}.proof .bi{background:#fff;color:var(--navy)}
.oops{background:#FDF5E4}.oops .bi{background:#fff;color:var(--part)}
.acct{margin-top:16px;border:1px solid var(--line);border-radius:12px}
.acct>summary{display:flex;align-items:center;gap:8px;padding:11px 14px;font-size:13.5px;font-weight:600;color:var(--wine-ink);cursor:pointer;list-style:none}
.acct>summary:before{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);transition:transform .2s;margin-right:2px}
.acct[open]>summary:before{transform:rotate(45deg)}
.acct>summary:focus-visible{outline:3px solid var(--wine-ink);outline-offset:2px;border-radius:10px}
.acct-in{padding:0 14px 14px;font-size:13.5px;line-height:1.6;color:var(--sub)}
.acct dt{font-weight:700;color:var(--navy);margin-top:10px}
.acct dt:first-child{margin-top:0}
.acct .ah{font-weight:700;color:var(--navy);margin-top:12px}
.acct .srcs{list-style:none}
.acct .srcs li{margin-top:4px}
.acct a{color:var(--navy-2);text-decoration:underline;text-decoration-color:rgba(176,141,63,.6);text-underline-offset:2px;overflow-wrap:anywhere}
.ans .foot{display:flex;gap:8px;align-items:flex-start;margin-top:16px;font-size:13.5px;line-height:1.5;color:var(--sub)}
.ans .foot svg{width:17px;height:17px;flex:none;margin-top:1px;color:var(--gold)}
.ans .foot a{color:var(--wine-ink);font-weight:600;text-decoration:underline;text-underline-offset:2px}

/* ---------- the answer sheet ---------- */
.dd-sheet{border:0;padding:0;margin:auto auto 0;width:100%;max-width:100%;max-height:92vh;max-height:92dvh;border-radius:22px 22px 0 0;
  background:#fff;color:var(--txt);box-shadow:0 -10px 40px rgba(16,35,63,.25);overflow:hidden}
.dd-sheet[open]{display:flex;flex-direction:column}
.dd-sheet::backdrop{background:rgba(26,10,20,.5)}
.sh-hd{display:flex;align-items:center;gap:12px;padding:18px 16px 12px 18px;border-bottom:1px solid #F0ECEE}
.sh-hd:before{content:"";position:absolute;left:50%;top:7px;width:40px;height:4px;margin-left:-20px;border-radius:4px;background:#E2DCE0}
.sh-hd h2{flex:1;font-family:'Cormorant Garamond',Georgia,serif;font-weight:500;font-size:1.75rem;line-height:1.1;color:var(--navy)}
.sh-x{flex:none;width:44px;height:44px;border:0;border-radius:50%;background:var(--soft);color:var(--txt);display:grid;place-items:center;cursor:pointer}
.sh-x svg{width:18px;height:18px}
.sh-x:focus-visible{outline:3px solid var(--wine-ink);outline-offset:2px}
.sh-bd{overflow:auto;padding:16px 18px 26px;overscroll-behavior:contain}
@media (min-width:700px){
  .dd-sheet{margin:auto;width:min(640px,calc(100% - 48px));max-height:86vh;border-radius:22px;box-shadow:0 30px 80px rgba(16,35,63,.3)}
  .sh-hd:before{display:none}
  .sh-hd{padding:20px 20px 14px 24px}
  .sh-bd{padding:18px 24px 28px}
}
@media (prefers-reduced-motion:no-preference){
  .dd-sheet[open]{animation:dd-up .32s cubic-bezier(.16,1,.3,1)}
  .dd-sheet[open]::backdrop{animation:dd-fade .32s ease}
  @media (min-width:700px){.dd-sheet[open]{animation-name:dd-pop}}
}
@keyframes dd-up{from{transform:translateY(40%);opacity:.4}to{transform:none;opacity:1}}
@keyframes dd-pop{from{transform:translateY(16px) scale(.98);opacity:0}to{transform:none;opacity:1}}
@keyframes dd-fade{from{opacity:0}to{opacity:1}}
html.dd-lock{overflow:hidden}

/* ---------- info, FAQ and sources ---------- */
.dd-info .rev{font-size:.92rem;color:var(--sub)}
.dd-src-g h3{font-size:.95rem;margin:22px 0 8px}
.dd-page .cta-block{margin-top:10px}
@media (max-width:699px){.dd-page .tinfo{padding:0 16px}.dd-page .tinfo .article{padding-top:14px}.dd-page .cta-block{padding:0 16px}}
.dd-hero h1 .h1-kw{display:block;max-width:none;font-family:'Inter',system-ui,sans-serif;font-size:11px;font-weight:700;letter-spacing:.24em;line-height:1.5;text-transform:uppercase;color:var(--gold-b);margin:0 0 14px}

/* 2026-10-29 (Zain: "looks AI generated, the animations and the color theme"): site brand (navy, paper, gold),
   flat surfaces, square-ish corners, no motion, no tilted decorative card. Text unchanged. */
.dd-page *,.dd-page *:before,.dd-page *:after{animation:none!important}
.dd-page .rv,.dd-page .faq-a-in{opacity:1!important;transform:none!important;transition:none!important}
.dd-hero{background:var(--navy)!important;padding:40px 0 44px}
.dd-hero:after,.dd-peek{display:none!important}
@media (min-width:960px){.dd-hgrid{display:block}.dd-htext{max-width:760px}}
.dd-hero h1{font-weight:400}
.dd-sbox{border-radius:6px;box-shadow:none}
.dd-sbox:focus-within{box-shadow:0 0 0 2px var(--gold-b)}
.dd-res{border-radius:6px;box-shadow:0 8px 24px rgba(16,35,63,.18)}
.hit{border-radius:4px}
.ic{border-radius:0;background:none;color:var(--navy);width:28px;height:28px}
.tile{border-radius:4px;transition:border-color .15s;background:#fff}
.tile:hover{border-color:var(--navy);box-shadow:none}
.tile:active{transform:none}
.vb{border-radius:3px;padding:1px 7px 1px 5px;font-size:12px}
.vb.big{border-radius:4px}
.gi{background:none;border-radius:0;width:28px}
.gc{border-radius:3px}
.legend{border-radius:4px}
.blk{border-radius:0;padding:12px 14px;background:none!important;border-left:3px solid var(--line)}
.blk .bi{display:none}
.proof{border-left-color:var(--navy)}
.oops{border-left-color:var(--gold)}
.acct{border-radius:4px}
.dd-sheet{border-radius:8px 8px 0 0}
@media (min-width:700px){.dd-sheet{border-radius:8px;box-shadow:0 20px 50px rgba(16,35,63,.25)}}
.sh-x{border-radius:4px}
.go svg,.acct>summary:before{transition:none}
.dd-hero h1{font-size:clamp(2.4rem,7vw,3.8rem)!important;max-width:none}
