/* The negative gearing guide (/guides/negative-gearing-new-builds/, 17 Nov 2026). Loaded on that page only, and every rule
   sits under .ng or .ng-defs, so nothing else on the site changes. Layout and diagrams from the approved mock-up v8
   (designs/article-style-2026-11-17/mockup); colours and type from site.css tokens. */
.ng{--ng-tint:#eeedff;--ng-mid:#4f48d6;--ng-accent:#6a62aa;--ng-surface:#fff;max-width:1180px;margin:0 auto;padding:12px max(20px,env(safe-area-inset-right,0px)) 72px max(20px,env(safe-area-inset-left,0px));color:var(--ink)}
.ng-defs{position:absolute;width:0;height:0;overflow:hidden}
.ng p,.ng li{color:var(--ink);max-width:66ch}
.ng-head{padding-top:28px}
.ng h1{font-size:clamp(36px,5.6vw,64px);line-height:1.04;letter-spacing:-.03em;max-width:16ch}
.ng-byline{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:14.5px;margin-top:22px}
.ng .ng-byline,.ng .ng-byline span{color:var(--muted);max-width:none}
.ng-byline b{color:var(--ink);font-weight:600}
.ng-hero{margin:34px 0 10px;border-radius:22px;overflow:hidden;aspect-ratio:3/2;max-height:620px;width:100%}
.ng-hero img{width:100%;height:100%;object-fit:cover}
.ng .ng-cap{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:13px;color:var(--muted);max-width:none}
.ng-body{display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;margin-top:44px}
.ng-read{width:100%;max-width:680px;font-size:18px;line-height:1.6}
.ng-read>*+*{margin-top:22px}
.ng-after{margin-top:34px}
.ng .ng-lead{font-size:22px;line-height:1.5;font-weight:500;letter-spacing:-.005em}
.ng h2{font-size:clamp(26px,3.4vw,34px);line-height:1.15;letter-spacing:-.02em;margin-top:56px;display:flex;align-items:center;gap:12px;text-wrap:balance;scroll-margin-top:24px}
.ng h3{font-size:19px;line-height:1.35;letter-spacing:-.01em;margin-top:30px;font-weight:600}
.ng .ng-h-icon{width:30px;height:30px;flex:none;color:var(--ink)}
.ng ul{padding-left:22px}
.ng li+li{margin-top:6px}
.ng-who{background:var(--ng-surface);border:1px solid var(--line);border-radius:16px;padding:18px 20px}
.ng .ng-who h2{font-size:19px;line-height:1.35;letter-spacing:-.01em;margin:0;font-weight:600}
.ng-who ul{margin:10px 0 0}
.ng .ng-note{background:var(--ng-tint);border-radius:14px;padding:16px 18px;font-size:16px;max-width:none}
.ng-status,.ng-example{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--ng-surface)}
.ng-status table,.ng-example table{width:100%;border-collapse:collapse;font-size:15.5px;line-height:1.5}
.ng-status td,.ng-status th,.ng-example td,.ng-example th{padding:12px 14px;border-top:1px solid var(--line);vertical-align:top;text-align:left}
.ng-status thead th,.ng-example thead th,.ng-example thead td{border-top:0;font-size:13px;color:var(--muted);font-weight:600;background:var(--soft)}
.ng-example tbody th{font-weight:600;color:var(--muted);font-size:14px}
.ng-tag{display:inline-block;font-size:12.5px;font-weight:700;border-radius:999px;padding:2px 9px;white-space:nowrap}
.ng-law-tag{background:#dff1e6;color:#16603a}.ng-bill-tag{background:#fbefd9;color:#7a4a00}
.ng-wide{width:100%;max-width:880px;margin:40px 0 0}
.ng-read .ng-wide{max-width:none}
.ng-canvas{background:var(--paper);border-radius:18px;overflow:hidden;border:1px solid var(--line)}
.ng-canvas:focus-visible{outline-offset:2px}
.ng .ng-canvas svg{display:block;width:100%;height:auto}
.ng-canvas text{font-family:Instrument Sans,system-ui,sans-serif}
.ng .ng-figcap{font-size:14px;line-height:1.5;color:var(--muted);margin-top:10px;max-width:72ch}
.ng-qlist{list-style:none;padding:0;display:grid;gap:12px}
.ng .ng-qlist{padding:0}
.ng .ng-qlist li{display:grid;grid-template-columns:52px minmax(0,1fr);gap:14px;align-items:start;background:var(--ng-surface);border:1px solid var(--line);border-radius:14px;padding:14px;max-width:none;margin:0}
.ng .ng-qlist svg{width:52px;height:52px;color:var(--ink)}
.ng-qlist b{display:block;font-weight:600}
.ng-qlist span{display:block;color:var(--muted);font-size:16px}
.ng-faq details{border-top:1px solid var(--line);padding:14px 0}
.ng-faq details:last-child{border-bottom:1px solid var(--line)}
.ng-faq summary{font-weight:600;cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:12px}
.ng-faq summary::-webkit-details-marker{display:none}
.ng-faq summary::after{content:"+";color:var(--ng-accent);font-size:22px;line-height:1}
.ng-faq details[open] summary::after{content:"–"}
.ng-faq details p{margin-top:8px}
.ng .ng-sources-title{font-size:19px;line-height:1.35;letter-spacing:-.01em;font-weight:600;margin-top:44px}
.ng .ng-sources li{font-size:15px;color:var(--muted);max-width:none}
.ng .ng-disclaimer{font-size:14px;color:var(--muted)}
@media (max-width:820px){.ng-read{font-size:17px}.ng .ng-lead{font-size:20px}}
/* Phone diagrams (tax-guide-figures-phone.js): each diagram's portrait version, shown at 640px and below in place of the
   desktop drawing. The hidden one is display:none, so it is neither seen nor read out. Text here is 13px or more, key
   figures 15px or more. */
.ng-phone{display:none}
.ng .ng-phone svg.ng-m-ico,.ng .ng-phone .ng-m-phouse,.ng .ng-phone .ng-m-sig svg,.ng .ng-phone .ng-m-budget svg{display:block;flex:none}
.ng-phone b{font-weight:700}
.ng-phone span,.ng-phone b{display:block}
/* law track: the road runs down the left, a stop for each house of Parliament and one for Law */
.ng-m-law{position:relative;background:var(--ng-tint);padding:24px 16px 24px 58px}
.ng-m-stop{position:relative}
.ng-m-stop:not(.ng-m-end)::before,.ng-m-stop:not(.ng-m-end)::after{content:"";position:absolute;left:-32px;top:12px;bottom:-43px;width:4px;background:var(--ink)}
.ng-m-stop:not(.ng-m-end)::after{left:-30.75px;width:1.5px;background:repeating-linear-gradient(var(--paper) 0 10px,transparent 10px 20px)}
.ng-m-stop+.ng-m-stop{margin-top:30px}
.ng-m-dot{position:absolute;left:-41px;top:2px;width:22px;height:22px;border-radius:50%;background:var(--ink);z-index:1}
.ng-m-lawdot{left:-43px;width:26px;height:26px;top:0;background:#ffc46e;border:3px solid var(--ink)}
.ng-m-name{font-size:17px;line-height:1.5;color:var(--ink)}
.ng-m-sub{font-size:14px;color:var(--muted)}
.ng-m-doc{background:var(--paper);border-radius:4px;box-shadow:2px 4px 6px rgba(28,24,79,.22);padding:10px 12px;margin-top:10px;font-size:15px;line-height:1.4;color:var(--ink)}
.ng-m-doc b{font-size:15px}
.ng-m-bill{background:#fff}
.ng-m-mute{color:var(--muted);font-size:14px}
.ng-m-law .ng-m-wait{display:inline-block;margin-top:10px;background:#fbefd9;color:#7a4a00;font-size:14px;font-weight:700;border-radius:999px;padding:3px 12px}
/* three cards */
.ng-m-cards{background:#bdb8ff;padding:16px;gap:12px}
.ng-m-card{display:grid;grid-template-columns:52px minmax(0,1fr);gap:14px;align-items:start;background:var(--paper);border-radius:4px;box-shadow:2px 4px 6px rgba(28,24,79,.25);padding:16px}
.ng .ng-phone .ng-m-ico{width:52px;height:52px;margin-top:4px}
.ng-m-when{font-size:15px;line-height:1.4;color:var(--muted)}
.ng-m-verdict{font-size:24px;line-height:1.2;font-weight:700;color:var(--ink);margin-top:6px}
.ng-m-lose{color:#c9601f}
.ng-m-detail{font-size:15px;line-height:1.4;color:var(--ink);margin-top:2px}
/* permit pair: before above Budget night, after below it */
.ng-m-permits{background:#bdb8ff;padding:18px 16px}
.ng-m-sideh{font-size:15px;color:var(--ink);margin-bottom:10px}
.ng-m-prow{display:flex;gap:14px;align-items:flex-end}
.ng .ng-phone .ng-m-phouse{width:64px;height:auto;margin-bottom:6px}
.ng-m-permit{flex:1;min-width:0;background:#fff;border-radius:2px;box-shadow:2px 4px 6px rgba(28,24,79,.25);padding:0 12px 10px;overflow:hidden}
.ng-m-ph{margin:0 -12px 8px;padding:5px 12px;background:#eceaf3;font-size:13px;color:var(--ink)}
.ng-m-act{font-size:13px;color:var(--muted)}
.ng-m-lines{display:block;height:20px;margin:6px 0 8px;background:linear-gradient(#e3dde9 0 5px,transparent 5px 7px,#e3dde9 7px 12px,transparent 12px 14px,#e3dde9 14px 19px,transparent 19px) no-repeat;background-size:80% 100%}
.ng-m-date{font-size:19px;font-weight:700;color:var(--ink);line-height:1.3}
.ng-phone .ng-m-mark{display:inline-block;box-shadow:inset 0 -4px #ffc46e}
.ng-phone .ng-m-sig{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);margin-top:4px}
.ng .ng-phone .ng-m-sig svg{width:44px;height:14px}
.ng-m-pill{margin-top:12px;border-radius:4px;padding:8px 12px;text-align:center;font-size:15px;font-weight:700}
.ng-m-no{background:var(--ink);color:var(--paper)}
.ng-m-yes{background:#ffc46e;color:var(--ink)}
.ng-m-budget{margin:20px 0 18px;text-align:center}
.ng .ng-phone .ng-m-budget svg{width:100%;height:12px}
.ng-m-budget b{font-size:15px;color:var(--ink);margin-top:6px}
/* four cases */
.ng-m-cases{background:#bdb8ff;padding:16px;gap:12px}
.ng-m-tile{background:var(--paper);border-radius:4px;box-shadow:2px 4px 6px rgba(28,24,79,.25);padding:14px 14px 16px}
.ng-m-th{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px 10px}
.ng-m-th b{font-size:17px;line-height:1.3;color:var(--ink)}
.ng-m-chip{background:#ffc46e;color:var(--ink);font-size:14px;font-weight:700;border-radius:999px;padding:3px 14px}
.ng-m-nope{background:var(--ink);color:var(--paper)}
.ng .ng-phone .ng-m-art{display:block;width:100%;max-width:260px;height:auto;margin:12px 0 8px}
.ng-m-tdesc{font-size:15px;line-height:1.4;color:var(--muted)}
/* Phones: the desktop drawings give way to the phone versions; the worked example becomes one card per question, each
   home's answer labelled, so nothing is lost off the edge. */
@media (max-width:640px){
 .ng-desk{display:none}
 .ng-phone{display:block}
 .ng-m-cards,.ng-m-cases{display:grid}
 .ng-example{border:0;background:none;border-radius:0;overflow:visible}
 .ng-example table,.ng-example tbody,.ng-example tr,.ng-example th,.ng-example td{display:block;width:100%}
 .ng-example thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
 .ng-example tbody{display:grid;gap:12px}
 .ng-example tr{background:var(--ng-surface);border:1px solid var(--line);border-radius:14px;overflow:hidden}
 .ng-example tbody th{border-top:0;background:var(--soft);color:var(--ink);font-size:15px;padding:12px 14px}
 .ng-example td{display:grid;grid-template-columns:76px minmax(0,1fr);gap:10px;padding:10px 14px}
 .ng-example td::before{content:attr(data-home);font-weight:600;font-size:14px;color:var(--muted)}
 .ng-hero{border-radius:18px;margin-top:26px}
}
/* Diagram motion: slow, once, when the diagram first comes into view (js/tax-guide.js sets data-ng-play). Without the
   script, or with reduced motion asked for, every diagram simply shows its finished state. */
@media (prefers-reduced-motion:no-preference){
 .ng-fig[data-ng-play="wait"] *{animation-play-state:paused!important}
 @keyframes ng-show{from{opacity:0}to{opacity:1}}
 @keyframes ng-up{from{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}
 /* rental gap: rent rises, then costs, then the gap and what comes back */
 .ng-gap[data-ng-play] .ng-rentgo{animation:ng-up .9s ease .3s both}
 .ng-gap[data-ng-play] .ng-costgo{animation:ng-up .9s ease 1s both}
 .ng-gap[data-ng-play] .ng-gapgo{animation:ng-show .8s ease 2s both}
 .ng-gap[data-ng-play] .ng-backgo{animation:ng-show .9s ease 3s both}
 /* law track: the bill travels from the House to the Senate and waits */
 @keyframes ng-billgo{from{transform:translateX(-220px)}to{transform:none}}
 .ng-law[data-ng-play] .ng-billgo{animation:ng-billgo 2.4s cubic-bezier(.3,.7,.2,1) .4s both}
 .ng-law[data-ng-play] .ng-waiting{animation:ng-show .8s ease 2.9s both}
 /* permit pair: the later permit rises in, then both verdicts */
 @keyframes ng-rise{from{transform:translateY(30px);opacity:0}to{transform:none;opacity:1}}
 .ng-permits[data-ng-play] .ng-rise{animation:ng-rise 1.4s cubic-bezier(.2,.8,.2,1) .6s both}
 .ng-permits[data-ng-play] .ng-verdict{animation:ng-show 1s ease 2s both}
 /* scene: the 3 tags tie on one by one, the lot's pegs and boundary appear, then the window lights */
 @keyframes ng-drift{from{transform:translateX(-40px)}to{transform:none}}
 @keyframes ng-fly{from{transform:translate(-90px,18px)}to{transform:none}}
 @keyframes ng-sway{0%,100%{transform:none}33%{transform:rotate(-1.2deg)}66%{transform:rotate(1.2deg)}}
 @keyframes ng-drop{from{transform:translateY(-30px);opacity:0}to{transform:none;opacity:1}}
 @keyframes ng-line{from{transform:scaleX(0)}to{transform:scaleX(1)}}
 .ng-scene[data-ng-play] .ng-cloud{animation:ng-drift 30s ease-out both}
 .ng-scene[data-ng-play] .ng-c2{animation-duration:40s}
 .ng-scene[data-ng-play] .ng-birds{animation:ng-fly 12s ease-out both}
 .ng-scene[data-ng-play] .ng-tree{transform-box:fill-box;transform-origin:50% 100%;animation:ng-sway 8s ease-in-out}
 .ng-scene[data-ng-play] :is(.ng-tag,.ng-thread,.ng-peg,.ng-counts){animation:ng-show .8s ease both}
 .ng-scene[data-ng-play] :is(.ng-g1,.ng-t1){animation-delay:.6s}
 .ng-scene[data-ng-play] .ng-pin{animation:ng-drop .7s cubic-bezier(.3,1.6,.5,1) 1s both}
 .ng-scene[data-ng-play] :is(.ng-g2,.ng-t2){animation-delay:1.8s}
 .ng-scene[data-ng-play] .ng-uline{transform-box:fill-box;transform-origin:left;animation:ng-line .7s ease 2.5s both}
 .ng-scene[data-ng-play] :is(.ng-g3,.ng-t3){animation-delay:3s}
 .ng-scene[data-ng-play] .ng-p1{animation-delay:3.3s}.ng-scene[data-ng-play] .ng-p2{animation-delay:3.45s}.ng-scene[data-ng-play] .ng-p4{animation-delay:3.6s}.ng-scene[data-ng-play] .ng-p3{animation-delay:3.75s}
 .ng-scene[data-ng-play] .ng-boundary{animation:ng-show .8s ease 3.9s both}
 .ng-scene[data-ng-play] :is(.ng-lit,.ng-glow){animation:ng-show 1.2s ease 4.8s both}
 .ng-scene[data-ng-play] .ng-counts{animation-delay:5.4s}
 /* four cases: the tiles land one after another; the sold flag goes up in the 24-month tile */
 .ng-cases[data-ng-play] .ng-t{animation:ng-up .7s ease both}
 .ng-cases[data-ng-play] .ng-c2{animation-delay:.4s}.ng-cases[data-ng-play] .ng-c3{animation-delay:.8s}.ng-cases[data-ng-play] .ng-c4{animation-delay:1.2s}.ng-cases[data-ng-play] .ng-c5{animation-delay:1.8s}
 .ng-cases[data-ng-play] .ng-sold{animation:ng-show .6s ease 2s both}
 /* capital gains: the value line draws, then the part before and the part after 1 July 2027 fill with their labels */
 @keyframes ng-draw{to{stroke-dashoffset:0}}
 .ng-gains[data-ng-play] .ng-valline{stroke-dasharray:900;stroke-dashoffset:900;animation:ng-draw 2.6s ease .3s forwards}
 .ng-gains[data-ng-play] :is(.ng-fillA,.ng-labA){animation:ng-show .8s ease 2.4s both}
 .ng-gains[data-ng-play] :is(.ng-fillB,.ng-labB){animation:ng-show .8s ease 3.2s both}
 /* phone versions: the same stories, top to bottom */
 .ng-gap[data-ng-play] .ng-m-rent{animation:ng-up .9s ease .3s both}
 .ng-gap[data-ng-play] .ng-m-cost{animation:ng-up .9s ease 1s both}
 .ng-gap[data-ng-play] .ng-m-gapgo{animation:ng-show .8s ease 2s both}
 .ng-gap[data-ng-play] .ng-m-back{animation:ng-show .9s ease 3s both}
 @keyframes ng-m-billgo{from{transform:translateY(-84px)}to{transform:none}}
 .ng-law[data-ng-play] .ng-m-bill{animation:ng-m-billgo 2.4s cubic-bezier(.3,.7,.2,1) .4s both}
 .ng-law[data-ng-play] .ng-m-wait{animation:ng-show .8s ease 2.9s both}
 .ng-cards[data-ng-play] .ng-m-card{animation:ng-up .8s ease .2s both}
 .ng-cards[data-ng-play] .ng-m-k2{animation-delay:.7s}.ng-cards[data-ng-play] .ng-m-k3{animation-delay:1.2s}
 .ng-permits[data-ng-play] .ng-m-rise{animation:ng-rise 1.4s cubic-bezier(.2,.8,.2,1) .6s both}
 .ng-permits[data-ng-play] .ng-m-pill{animation:ng-show 1s ease 2s both}
 .ng-scene[data-ng-play] :is(.ng-m-tag,.ng-m-thread,.ng-m-peg,.ng-m-counts){animation:ng-show .8s ease both}
 .ng-scene[data-ng-play] :is(.ng-m-g1,.ng-m-t1){animation-delay:.6s}
 .ng-scene[data-ng-play] .ng-m-pin{animation:ng-drop .7s cubic-bezier(.3,1.6,.5,1) 1s both}
 .ng-scene[data-ng-play] :is(.ng-m-g2,.ng-m-t2){animation-delay:1.8s}
 .ng-scene[data-ng-play] .ng-m-uline{transform-box:fill-box;transform-origin:left;animation:ng-line .7s ease 2.5s both}
 .ng-scene[data-ng-play] :is(.ng-m-g3,.ng-m-t3){animation-delay:3s}
 .ng-scene[data-ng-play] .ng-m-p1{animation-delay:3.3s}.ng-scene[data-ng-play] .ng-m-p2{animation-delay:3.45s}.ng-scene[data-ng-play] .ng-m-p4{animation-delay:3.6s}.ng-scene[data-ng-play] .ng-m-p3{animation-delay:3.75s}
 .ng-scene[data-ng-play] .ng-m-bound{animation:ng-show .8s ease 3.9s both}
 .ng-scene[data-ng-play] .ng-m-lit{animation:ng-show 1.2s ease 4.8s both}
 .ng-scene[data-ng-play] .ng-m-counts{animation-delay:5.4s}
 .ng-cases[data-ng-play] .ng-m-tile{animation:ng-up .7s ease both}
 .ng-cases[data-ng-play] .ng-m-c2{animation-delay:.4s}.ng-cases[data-ng-play] .ng-m-c3{animation-delay:.8s}.ng-cases[data-ng-play] .ng-m-c4{animation-delay:1.2s}.ng-cases[data-ng-play] .ng-m-c5{animation-delay:1.8s}
 .ng-cases[data-ng-play] .ng-m-sold{animation:ng-show .6s ease 2s both}
 .ng-gains[data-ng-play] .ng-m-line{stroke-dasharray:520;stroke-dashoffset:520;animation:ng-draw 2.6s ease .3s forwards}
 .ng-gains[data-ng-play] :is(.ng-m-fa,.ng-m-la){animation:ng-show .8s ease 2.4s both}
 .ng-gains[data-ng-play] :is(.ng-m-fb,.ng-m-lb){animation:ng-show .8s ease 3.2s both}
}
