.atb-reference{--ink:#252622;--muted:#76786e;--gold:#e5b422;--paper:#f7f6f1;--line:#dfded5}.atb-reference *{box-sizing:border-box}.atb-reference{scroll-behavior:smooth;scroll-padding-top:20px}.atb-reference{margin:0;color:var(--ink);background:var(--paper);font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.6}.atb-reference button,.atb-reference input{font:inherit}.atb-reference button,.atb-reference a,.atb-reference input{-webkit-tap-highlight-color:transparent}.atb-reference button{cursor:pointer}.atb-reference a{color:inherit}.atb-reference button:focus-visible,.atb-reference a:focus-visible,.atb-reference input:focus-visible{outline:3px solid #af8100;outline-offset:4px}.atb-reference .wrap{width:min(1240px,calc(100% - 96px));margin:auto}.atb-reference .header{background:#fff;border-bottom:1px solid var(--line)}.atb-reference .header-inner{display:flex;align-items:center;justify-content:space-between;min-height:100px}.atb-reference .brand{display:flex;align-items:center;gap:16px;text-decoration:none}.atb-reference .brand-mark{font:26px Georgia,serif;letter-spacing:-2px;border:1px solid var(--ink);padding:4px 10px;position:relative}.atb-reference .brand-mark span{position:absolute;width:16px;height:4px;background:var(--gold);bottom:-2px;left:19px}.atb-reference .brand-name{font-size:16px;font-weight:700;letter-spacing:2px}.atb-reference .brand-name small{display:block;font-size:9px;letter-spacing:2.7px;font-weight:400}.atb-reference .back{font-size:13px;text-decoration:none}.atb-reference .back span{padding-left:12px}.atb-reference .hero{background:var(--ink);color:#f7f6ef;overflow:hidden}.atb-reference .hero-layout{display:grid;grid-template-columns:1.4fr 1fr;align-items:center;gap:50px;padding-top:72px;padding-bottom:76px}.atb-reference .eyebrow{font-size:10px;font-weight:700;letter-spacing:2.5px;margin:0 0 22px}.atb-reference .hero .eyebrow{color:var(--gold)}.atb-reference h1,.atb-reference h2,.atb-reference h3,.atb-reference p{margin-top:0}.atb-reference h1{font:clamp(46px,5.6vw,78px)/1.06 Georgia,serif;letter-spacing:-2px;margin-bottom:24px}.atb-reference h1 em{color:var(--gold);font-weight:400}.atb-reference .intro{font-size:16px;max-width:460px;color:#d0d0c5;margin-bottom:30px}.atb-reference .button{display:inline-flex;align-items:center;gap:32px;background:var(--gold);border:1px solid var(--gold);padding:13px 22px;text-decoration:none;color:var(--ink);font-size:13px;font-weight:700;border-radius:3px}.atb-reference .hero-art{position:relative}.atb-reference .hero-art svg{width:100%;display:block}.atb-reference .art-caption{display:block;text-align:center;font-size:9px;color:#c5c4b5;letter-spacing:3px;margin-top:15px}.atb-reference .directory{padding-top:68px;padding-bottom:50px}.atb-reference .section-head{display:flex;align-items:end;justify-content:space-between;gap:32px;margin-bottom:32px}.atb-reference .directory .eyebrow{color:#8d7427;margin-bottom:15px}.atb-reference h2{font:36px/1.17 Georgia,serif;letter-spacing:-.6px;margin-bottom:0}.atb-reference .section-note{font-size:13px;color:var(--muted);line-height:1.8;margin-bottom:2px}.atb-reference .toolbar{display:flex;gap:14px}.atb-reference .search-wrap{display:flex;align-items:center;position:relative;flex:1}.atb-reference .search-wrap svg{position:absolute;left:18px;width:20px;height:20px;fill:none;stroke:#777b70;stroke-width:1.6;pointer-events:none}.atb-reference .search-wrap input{width:100%;min-width:0;padding:16px 48px;background:#fff;border:1px solid #c9cabf;border-radius:4px;font-size:14px;color:var(--ink);height:56px}.atb-reference .search-wrap button{position:absolute;right:10px;border:0;background:none;font-size:24px;min-width:36px;min-height:36px}.atb-reference .saved-toggle{border:1px solid #c9cabf;border-radius:4px;padding:10px 18px;background:transparent;font-size:13px;white-space:nowrap}.atb-reference .saved-toggle[aria-pressed=true]{background:var(--ink);color:#fff}.atb-reference .saved-toggle span{margin-left:8px}.atb-reference .categories{display:flex;gap:8px;flex-wrap:wrap;margin:24px 0 18px}.atb-reference .categories button{border:1px solid var(--line);background:transparent;border-radius:24px;padding:8px 16px;font-size:12px;min-height:38px}.atb-reference .categories button:hover{border-color:#9c9d90}.atb-reference .categories button.active{background:var(--ink);border-color:var(--ink);color:#fff}.atb-reference .results-bar{display:flex;justify-content:space-between;color:var(--muted);font-size:11px;margin-bottom:20px}.atb-reference .results-bar p{margin:0}.atb-reference .tool-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.atb-reference .tool-card{background:#fff;border:1px solid var(--line);border-radius:5px;padding:24px;display:flex;flex-direction:column;transition:border-color .15s}.atb-reference .tool-card:hover{border-color:#aaa895}.atb-reference .card-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.atb-reference .category-label{text-transform:uppercase;font-size:9px;letter-spacing:1.5px;color:#817342;font-weight:700}.atb-reference .star{border:0;background:none;font-size:26px;line-height:1;min-width:44px;min-height:44px;margin-right:-10px;color:#777b70}.atb-reference .star[aria-pressed=true]{color:#9a7311}.atb-reference .tool-number{font:italic 30px/1.4 Georgia,serif;color:#b4b5a6;display:block;margin:8px 0 12px}.atb-reference h3{font:25px/1.18 Georgia,serif;letter-spacing:-.4px;margin-bottom:12px}.atb-reference .tool-card>p{font-size:13px;color:var(--muted);line-height:1.7;margin-bottom:26px}.atb-reference .card-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:auto;padding-top:15px;border-top:1px solid #ecebe5;color:#999b8e;font-size:12px}.atb-reference .status{font-size:10px;letter-spacing:.5px;background:#f0f0ea;padding:3px 9px;border-radius:3px;color:#707266}.atb-reference .status.ready{background:#f4e6ae;color:#514119}.atb-reference .end-note{display:flex;gap:26px;align-items:center;border-top:1px solid var(--line);margin-top:48px;padding-top:38px;max-width:850px}.atb-reference .note-mark{font:italic 44px Georgia,serif;color:#aa8b37}.atb-reference .end-note h2{font-size:27px;margin-bottom:10px}.atb-reference .end-note p{font-size:13px;color:var(--muted);margin:0}.atb-reference .footer{border-top:1px solid var(--line);padding:24px 0;background:#efeee7}.atb-reference .footer .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:11px;color:#707468}.atb-reference .footer span{letter-spacing:2px;font-size:10px;font-weight:700}.atb-reference .footer p{margin:0}.atb-reference .footer a{text-decoration:none}.atb-reference .empty{text-align:center;padding:70px 20px;background:white;border:1px solid var(--line)}.atb-reference .empty p,.atb-reference .notice{color:var(--muted);font-size:14px}.atb-reference .empty .button{margin-top:10px}.atb-reference .skip{position:absolute;left:10px;top:-100px;z-index:10;background:var(--gold);padding:10px}.atb-reference .skip:focus{top:10px}.atb-reference .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.atb-reference [hidden]{display:none!important}@media(min-width:1500px){.atb-reference .hero-layout{padding-top:90px;padding-bottom:90px}}@media(max-width:1000px){.atb-reference .wrap{width:calc(100% - 56px)}.atb-reference .tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.atb-reference .hero-layout{gap:18px}.atb-reference .section-head{align-items:start}.atb-reference .section-note{max-width:260px}.atb-reference h2{font-size:32px}}@media(max-width:620px){.atb-reference .wrap{width:calc(100% - 36px)}.atb-reference .header-inner{min-height:82px}.atb-reference .brand{gap:10px}.atb-reference .brand-mark{font-size:22px;padding:3px 8px}.atb-reference .brand-name{font-size:12px;letter-spacing:1.5px}.atb-reference .brand-name small{font-size:7px;letter-spacing:1.7px}.atb-reference .back{font-size:0}.atb-reference .back span{font-size:23px;padding:8px}.atb-reference .hero-layout{display:block;padding-top:42px;padding-bottom:42px}.atb-reference .hero-art{display:none}.atb-reference h1{font-size:53px;letter-spacing:-1.5px}.atb-reference .eyebrow{font-size:9px;letter-spacing:1.7px}.atb-reference .intro{font-size:14px;line-height:1.8}.atb-reference .directory{padding-top:36px}.atb-reference .section-head{display:block;margin-bottom:25px}.atb-reference .section-head h2{font-size:31px}.atb-reference .section-note{max-width:none;margin-top:18px;font-size:12px}.atb-reference .section-note br{display:none}.atb-reference .toolbar{gap:8px}.atb-reference .search-wrap input{font-size:13px;padding-left:39px;padding-right:30px}.atb-reference .search-wrap svg{left:12px;width:18px}.atb-reference .saved-toggle{padding:8px 12px;font-size:12px}.atb-reference .saved-toggle span{margin-left:3px}.atb-reference .categories{gap:7px;margin-top:18px}.atb-reference .categories button{font-size:11px;padding:7px 12px}.atb-reference .results-bar{font-size:10px}.atb-reference .results-bar>span{display:none}.atb-reference .tool-grid{grid-template-columns:1fr;gap:12px}.atb-reference .tool-card{padding:19px 22px}.atb-reference .tool-number{margin-top:0;margin-bottom:8px;font-size:25px}.atb-reference h3{font-size:25px;max-width:300px}.atb-reference .tool-card>p{margin-bottom:18px}.atb-reference .end-note{gap:18px;margin-top:32px;padding-top:28px}.atb-reference .end-note h2{font-size:24px}.atb-reference .footer .wrap{flex-wrap:wrap}.atb-reference .footer p{font-size:10px}.atb-reference .footer a{margin-left:auto}}@media(prefers-reduced-motion:reduce){.atb-reference{scroll-behavior:auto}.atb-reference *{transition:none!important}}@media print{.atb-reference .hero-art,.atb-reference .toolbar,.atb-reference .categories,.atb-reference .star,.atb-reference .back,.atb-reference .button{display:none!important}.atb-reference .hero{background:white;color:black}.atb-reference .hero-layout{display:block;padding:30px 0}.atb-reference h1 em{color:black}.atb-reference .intro{color:#444}.atb-reference .tool-grid{grid-template-columns:repeat(2,1fr)}.atb-reference .tool-card{break-inside:avoid}.atb-reference .wrap{width:100%}}.atb-reference .reference-hero{background:var(--ink);color:#fff;padding:26px 0 48px}.atb-reference .breadcrumbs{display:flex;gap:14px;align-items:center;font-size:12px;color:#d0d0c5;margin-bottom:34px}.atb-reference .breadcrumbs a{text-decoration:none}.atb-reference .reference-hero h1{font-size:clamp(44px,5vw,67px);margin-bottom:22px}.atb-reference .reference-hero .eyebrow{color:var(--gold)}.atb-reference .reference-hero .intro{max-width:560px;margin-bottom:0}.atb-reference .reference-content{padding-top:30px;padding-bottom:45px}.atb-reference .reference-notice{border-left:3px solid var(--gold);padding:18px 22px;background:#efede2;margin-bottom:28px}.atb-reference .reference-notice strong{font:22px Georgia,serif}.atb-reference .reference-notice p{font-size:13px;color:#606358;margin:7px 0 0;max-width:900px}.atb-reference .chart-panel{background:#fff;border:1px solid var(--line);border-radius:5px;padding:30px}.atb-reference .chart-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.atb-reference .chart-heading .eyebrow{color:#8d7427;margin-bottom:12px}.atb-reference .chart-heading h2{font-size:34px}.atb-reference .chart-controls{display:grid;grid-template-columns:minmax(220px,320px) 1fr;align-items:end;gap:30px;margin-top:30px}.atb-reference .chart-controls label{font-size:13px;color:#606358}.atb-reference .chart-controls select{display:block;width:100%;padding:12px 14px;margin-top:8px;border:1px solid #bfc1b5;border-radius:4px;background:#fff;color:var(--ink);font:18px Arial,sans-serif;min-height:48px}.atb-reference .chart-controls p{font-size:12px;color:#74786c;margin:0 0 3px}.atb-reference .selection-status{font-size:12px;color:#686d60;margin:20px 0 14px}.atb-reference .table-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:4px}.atb-reference table{border-collapse:separate;border-spacing:0;width:100%;font-size:14px;font-variant-numeric:tabular-nums}.atb-reference caption{text-align:left;padding:14px 18px;font-size:12px;color:#72766b;background:#f8f8f3}.atb-reference thead th{text-align:left;background:#efeee6;font-weight:700;font-size:12px;vertical-align:top}.atb-reference th,.atb-reference td{padding:13px 17px;border-bottom:1px solid #e8e8df;white-space:nowrap}.atb-reference thead th small{display:block;font-weight:400;font-size:10px;color:#72766b;margin-top:4px}.atb-reference tbody th{font-weight:700;text-align:left;position:sticky;left:0;background:#fff;z-index:1}.atb-reference thead th:first-child{position:sticky;left:0;z-index:2}.atb-reference tbody tr:nth-child(even) td,.atb-reference tbody tr:nth-child(even) th{background:#f9f9f5}.atb-reference tbody tr.selected td,.atb-reference tbody tr.selected th{background:#faedb8;color:#252622}.atb-reference tbody tr.selected th{box-shadow:inset 4px 0 var(--gold)}.atb-reference tbody tr:last-child>*{border-bottom:0}.atb-reference .table-key{font-size:11px;color:#74786c;max-width:850px;line-height:1.8;margin:18px 0 0}.atb-reference .reference-notes{display:grid;grid-template-columns:1fr 1fr;gap:44px;padding:35px 0}.atb-reference .reference-notes h2{font-size:28px;margin-bottom:18px}.atb-reference .reference-notes p,.atb-reference .reference-notes li,.atb-reference .source-panel{font-size:13px;color:#65695e}.atb-reference .reference-notes ul{padding-left:18px;margin:0}.atb-reference .reference-notes li{margin-bottom:10px}.atb-reference .source-panel{border:1px solid var(--line);border-radius:4px;background:white;padding:18px 22px}.atb-reference .source-panel summary{font-weight:700;cursor:pointer;color:var(--ink);padding:4px 0}.atb-reference .source-panel p{margin-top:18px}.atb-reference .source-panel li{margin-bottom:12px}.atb-reference .source-panel a{text-decoration-thickness:1px;text-underline-offset:3px}.atb-reference .reference-bottom{display:flex;justify-content:space-between;gap:20px;font-size:12px;margin-top:30px}.atb-reference .reference-bottom span{color:#777c6f}.atb-reference .reference-bottom a{text-decoration:none}@media(max-width:700px){.atb-reference .reference-content{padding-top:20px}.atb-reference .reference-hero{padding-bottom:32px}.atb-reference .breadcrumbs{margin-bottom:25px;font-size:11px}.atb-reference .reference-hero h1{font-size:45px}.atb-reference .chart-panel{padding:20px 14px}.atb-reference .chart-heading h2{font-size:30px}.atb-reference .chart-heading .button{padding:10px 13px;font-size:12px;white-space:nowrap}.atb-reference .chart-controls{display:block;margin-top:23px}.atb-reference .chart-controls p{margin-top:15px}.atb-reference .reference-notes{grid-template-columns:1fr;gap:25px;padding:28px 0}.atb-reference .reference-notice{padding:16px}.atb-reference .reference-notice strong{font-size:21px}.atb-reference .reference-bottom{flex-direction:column;gap:12px}.atb-reference th,.atb-reference td{padding:12px 13px}.atb-reference .table-scroll{max-width:100%}.atb-reference .table-key{font-size:11px}.atb-reference .source-panel{padding:16px}.atb-reference .source-panel ul{padding-left:16px}}@media print{.atb-reference .header,.atb-reference .breadcrumbs,.atb-reference .chart-controls,.atb-reference .selection-status,.atb-reference .reference-bottom,.atb-reference .footer,.atb-reference .source-panel,.atb-reference .reference-notes{display:none!important}.atb-reference .reference-hero{padding:0;background:white;color:black}.atb-reference .reference-hero h1{font-size:25px;line-height:1.1;margin:0 0 8px}.atb-reference .reference-hero h1 br{display:none}.atb-reference .reference-hero h1 em{color:black}.atb-reference .reference-hero .intro{font-size:10px;margin:0;color:black}.atb-reference .reference-hero .eyebrow{color:black;font-size:9px;margin-bottom:8px}.atb-reference .reference-content{padding:12px 0}.atb-reference .reference-notice{padding:8px;margin-bottom:12px;border:1px solid #ccc}.atb-reference .reference-notice strong{font-size:13px}.atb-reference .reference-notice p{font-size:9px}.atb-reference .chart-panel{border:0;padding:0}.atb-reference .chart-heading .eyebrow{display:none}.atb-reference .chart-heading h2{font-size:20px;margin-bottom:8px}.atb-reference .table-scroll{overflow:visible;border:0}.atb-reference table{font-size:9px;border-collapse:collapse}.atb-reference caption{font-size:9px;padding:6px 0}.atb-reference th,.atb-reference td{padding:4px 7px;white-space:normal;border-bottom:1px solid #ccc}.atb-reference thead{display:table-header-group}.atb-reference thead th{font-size:9px}.atb-reference thead th small{font-size:8px}.atb-reference tbody tr{break-inside:avoid}.atb-reference tbody th,.atb-reference thead th:first-child{position:static}.atb-reference tbody tr.selected td,.atb-reference tbody tr.selected th{background:transparent;box-shadow:none}.atb-reference .table-key{font-size:8px;margin-top:8px}.atb-reference h1,.atb-reference h2,.atb-reference p{break-after:avoid}}

.atb-reference{width:100%;min-width:0}.atb-reference select{max-width:100%}.atb-reference h1,.atb-reference h2,.atb-reference h3{text-transform:none}.atb-reference .tool-card h3 a{color:inherit}

.atb-reference .chart-controls input,.atb-reference #atb-input-size{display:block;width:100%;padding:12px 14px;margin-top:8px;border:1px solid #bfc1b5;border-radius:4px;background:#fff;color:#252622;font:18px Arial,sans-serif;min-height:48px}.atb-reference .atb-converter-actions{display:flex;gap:12px;margin:24px 0;flex-wrap:wrap}.atb-reference .atb-measurements{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0}.atb-reference .atb-measurements p{padding:20px;background:#f4f2e8}.atb-reference .atb-measurements strong{display:block;font-size:26px}.atb-reference #atb-converter-message{margin-top:20px}.atb-reference #atb-converter-result{margin-top:28px}@media(max-width:620px){.atb-reference .atb-measurements{grid-template-columns:1fr}.atb-reference .chart-controls>div{margin-top:18px}}

.atb-reference .atb-blank-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:28px}.atb-reference .atb-blank-fields label{font-size:14px;display:block}.atb-reference .atb-blank-fields input,.atb-reference .atb-blank-fields select{display:block;width:100%;min-height:48px;margin-top:8px;padding:12px;border:1px solid #bfc1b5;border-radius:4px;background:#fff;color:#252622;font:18px Arial,sans-serif}.atb-reference .atb-blank-fields .table-key{margin-top:8px}.atb-reference .atb-blank-cut{padding:26px;background:#252622;color:#fff;border-left:4px solid #e5b422;margin:24px 0}.atb-reference .atb-blank-cut strong{display:block;font:42px Georgia,serif;color:#e5b422}.atb-reference .atb-blank-cut p{margin:8px 0;font-size:14px}@media(max-width:700px){.atb-reference .atb-blank-fields{grid-template-columns:1fr;gap:18px}}

/* v1.6: plain page headings matching the existing Bench pages. */
.atb-reference{font-family:inherit;font-size:inherit;line-height:inherit;background:transparent;color:inherit}
.atb-reference .wrap{width:100%;max-width:none;margin-left:0;margin-right:0}
.atb-reference .atb-page-heading{background:transparent;color:inherit;padding:0;border:0;margin:0 0 32px}
.atb-reference .atb-page-heading h1.page-title{font-family:inherit;font-style:normal;font-weight:700;font-size:40px;line-height:1.2;letter-spacing:normal;color:inherit;margin:0 0 26px;text-transform:none}
.atb-reference .atb-page-heading>p{font:inherit;color:inherit;max-width:none;margin:0;line-height:1.6}
.atb-reference h2,.atb-reference h3,.atb-reference .reference-notice strong{font-family:inherit;font-style:normal;letter-spacing:normal}
.atb-reference h2{font-size:26px;font-weight:600;line-height:1.3}
.atb-reference h3{font-size:22px;font-weight:600;line-height:1.3}
.atb-reference .reference-notice strong{font-size:19px;font-weight:600}
.atb-reference .reference-content{padding-top:0}
.atb-reference .directory{padding-top:0}
@media(max-width:620px){.atb-reference .atb-page-heading h1.page-title{font-size:30px;margin-bottom:20px}.atb-reference .atb-page-heading{margin-bottom:26px}.atb-reference h2{font-size:24px}}
@media print{.atb-reference .atb-page-heading h1.page-title{font-size:24px}.atb-reference .atb-page-heading>p{font-size:11px}}

/* v1.8: compact coloured directory cards and linked action buttons. */
.atb-reference .tool-grid{gap:16px;align-items:stretch}
.atb-reference .tool-card{padding:16px 20px;min-height:0;height:auto;gap:0;background:#f5f0dc;border-color:#ded4ad;border-top:4px solid #d5b34d;border-radius:6px}
.atb-reference .tool-card[data-category="Rings"]{background:#fbf2d8;border-color:#e6d39c;border-top-color:#d3aa27}
.atb-reference .tool-card[data-category="Metals"]{background:#eaf2ef;border-color:#cbded4;border-top-color:#719b85}
.atb-reference .tool-card[data-category="Bench references"]{background:#eef1f7;border-color:#d5dce8;border-top-color:#8d9db7}
.atb-reference .tool-card[data-category="Stones & setting"]{background:#f2ecf6;border-color:#dfd0e9;border-top-color:#ad8abd}
.atb-reference .tool-card[data-category="Casting"]{background:#faede3;border-color:#ead4c3;border-top-color:#c49570}
.atb-reference .tool-card[data-category="Costing"]{background:#eaf2f7;border-color:#cddfe9;border-top-color:#7ca4ba}
.atb-reference .tool-card[data-category="Specialist tools"]{background:#f5ecee;border-color:#e7d1d7;border-top-color:#ba8c9a}
.atb-reference .tool-card .card-top{margin:0;min-height:32px}
.atb-reference .tool-card .star{min-width:40px;min-height:36px;font-size:25px;margin-top:-4px;margin-bottom:-4px}
.atb-reference .tool-card .tool-number{font-family:inherit;font-size:17px;font-weight:600;line-height:1.2;color:#6d6d60;margin:4px 0 12px;padding:0}
.atb-reference .tool-card h3{font-family:inherit;font-size:19px;font-weight:600;line-height:1.3;letter-spacing:normal;max-width:none;margin:0 0 10px;padding:0;min-height:0}
.atb-reference .tool-card h3 a{text-decoration:none}
.atb-reference .tool-card h3 a:hover{text-decoration:underline}
.atb-reference .tool-card>p{font-size:13px;line-height:1.5;margin:0 0 14px;padding:0}
.atb-reference .tool-card .card-bottom{margin-top:auto;padding-top:10px;border-top-color:rgba(60,65,50,.14)}
.atb-reference .tool-card .status{font-size:11px}
.atb-reference .tool-card .atb-open-tool{display:inline-flex;align-items:center;justify-content:center;gap:14px;min-height:38px;padding:7px 13px;border:1px solid #bd941d;background:#e5b422;color:#252622;font-size:12px;font-weight:700;text-decoration:none;border-radius:4px}
.atb-reference .tool-card .atb-open-tool:hover{background:#f0c745;color:#171812;text-decoration:none}
.atb-reference .tool-card .atb-open-tool:focus-visible{outline:3px solid #252622;outline-offset:3px}
@media(max-width:620px){.atb-reference .tool-card{padding:14px 18px}.atb-reference .tool-card h3{font-size:19px}.atb-reference .tool-card .tool-number{margin:2px 0 10px}.atb-reference .tool-card .atb-open-tool{min-height:44px}}

/* v1.9: comparative weight matrix matching the handbook layout. */
.atb-reference .atb-comparison-panel{background:#edf4f1;border-color:#c7dcd3;margin-bottom:24px}
.atb-reference .atb-comparison-table-panel{margin-bottom:24px}
.atb-reference .atb-comparison-table-panel>p{margin-top:14px;font-size:14px}
.atb-reference .atb-factor-table{min-width:950px;font-size:13px}
.atb-reference .atb-factor-table th,.atb-reference .atb-factor-table td{padding:12px 11px;text-align:center}
.atb-reference .atb-factor-table thead th{background:#c9dcd8;color:#253f39;white-space:normal;min-width:76px;vertical-align:middle}
.atb-reference .atb-factor-table tbody th{text-align:left;background:#edf3f1;min-width:142px}
.atb-reference .atb-factor-table tbody td{background:#fbfcfb}
.atb-reference .atb-factor-table tbody tr:nth-child(even) td{background:#f0f5f3}
.atb-reference .atb-factor-table tbody td.atb-factor-diagonal{background:#a9c7bf;font-weight:700;color:#203d35}
.atb-reference .atb-factor-table tbody tr.atb-factor-selected>th{background:#e5b422;color:#252622;box-shadow:inset 4px 0 #987617}
.atb-reference .atb-factor-table tbody tr.atb-factor-selected>td:not(.atb-factor-diagonal){background:#fff4cd}
.atb-reference .atb-weight-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}
.atb-reference .atb-weight-result{background:#fff;border:1px solid #c8dad2;border-radius:5px;padding:16px}
.atb-reference .atb-weight-result.atb-weight-original{background:#fff3ce;border-color:#d6b858}
.atb-reference .atb-weight-result h4{font-family:inherit;font-size:15px;font-weight:600;line-height:1.4;margin:0 0 8px;color:#263d35}
.atb-reference .atb-weight-result strong{display:block;font-size:25px;line-height:1.3;color:#252622}
.atb-reference .atb-weight-result p{font-size:12px;margin:8px 0 0;color:#59675e}
.atb-reference .atb-comparison-example{margin:22px 0 0;background:#edf4f1}
@media(max-width:700px){.atb-reference .atb-weight-results{grid-template-columns:repeat(2,minmax(0,1fr))}.atb-reference .atb-comparison-panel,.atb-reference .atb-comparison-table-panel{padding:20px 14px}}
@media(max-width:380px){.atb-reference .atb-weight-results{grid-template-columns:1fr}}

/* v1.10: wire and sheet weight calculator panels. */
.atb-reference .atb-stock-panel{background:#edf4f1;border-color:#c8ddd3}
.atb-reference .atb-stock-total{margin:24px 0;padding:22px;background:#fff3ce;border:1px solid #ddc27b;border-left:4px solid #c49c20;border-radius:4px}
.atb-reference .atb-stock-total strong{display:block;font-size:36px;line-height:1.25;color:#252622}
.atb-reference .atb-stock-total p{font-size:14px;margin:8px 0}
.atb-reference #atb-stock-equation,.atb-reference #atb-stock-material{overflow-wrap:anywhere}
@media(max-width:700px){.atb-reference .atb-stock-panel{padding:20px 14px}.atb-reference .atb-stock-total strong{font-size:30px}}

/* v1.12: density is an automatic read-only reference. */
.atb-reference .atb-blank-fields input[readonly]{background:#e7ece8;color:#48544d;border-color:#c8d1cb;cursor:default;box-shadow:none}
.atb-reference .atb-blank-fields input[readonly]::-webkit-inner-spin-button,.atb-reference .atb-blank-fields input[readonly]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}

/* v1.13: searchable bench-reference charts. */
.atb-reference .atb-bench-panel{background:#f1f3f8;border-color:#d2dae7}
.atb-reference .atb-bench-table thead th{background:#dde5ef;color:#283a50;white-space:normal;min-width:100px}
.atb-reference .atb-bench-table td{white-space:normal;min-width:90px;vertical-align:top}
.atb-reference .atb-bench-table tbody th{white-space:normal;min-width:100px;vertical-align:top}
.atb-reference .atb-bench-table tr.atb-range-match>*{background:#fff0ba;box-shadow:none}
.atb-reference .atb-bench-table tr.atb-range-match>th{box-shadow:inset 4px 0 #c49c20}
.atb-reference .atb-bench-notes h2{margin-bottom:14px}
.atb-reference .atb-bench-notes p{line-height:1.7}
@media(max-width:700px){.atb-reference .atb-bench-panel{padding:20px 14px}}

/* Gemstone and fineness references */
.atb-reference .atb-gem-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}
.atb-reference .atb-gem-facts>div{background:#f4f0df;border:1px solid #e4ddbf;border-radius:5px;padding:15px 18px}
.atb-reference .atb-gem-facts h3{font-size:13px;margin:0 0 7px;font-weight:600}
.atb-reference .atb-gem-facts p{margin:0}
.atb-reference .atb-care-avoid{background:#f7e3dc;color:#742d1b;font-weight:600}
.atb-reference .atb-care-conditional{background:#fff1c5;color:#644c04;font-weight:600}
.atb-reference .atb-care-unknown{background:#e8edf1;color:#344958;font-weight:600}
.atb-reference .atb-carat-group{border:1px solid #d9d6c7;border-radius:6px;background:#f7f4e9;padding:16px 20px;margin:16px 0}
.atb-reference .atb-carat-group legend{font-size:16px;font-weight:600;padding:0 8px;width:auto}
.atb-reference .atb-group-remove{background:transparent;color:#6b3023;text-decoration:underline;border:0;padding:8px 0;cursor:pointer}
.atb-reference [hidden]{display:none!important}
@media(max-width:600px){.atb-reference .atb-gem-facts{grid-template-columns:1fr}.atb-reference .atb-carat-group{padding:12px}}
.atb-reference .atb-dir-feedback{font-size:13px;color:#514119;margin:12px 0;min-height:1.6em}
.atb-reference .star{position:relative;z-index:3;pointer-events:auto}
.atb-reference .star[aria-pressed=true]{background:#f4e6ae;border-radius:50%;color:#805c00}
.atb-reference .atb-layout-figure{margin:24px 0;background:#f7f4e9;border:1px solid #dfd8bb;border-radius:6px;padding:16px}
.atb-reference .atb-layout-figure svg{display:block;width:100%;height:auto;max-height:520px;min-height:220px}
.atb-reference .atb-layout-figure figcaption{font-size:12px;margin-top:12px;color:#646657}
.atb-reference .atb-layout-notes{align-items:start}
.atb-reference .atb-layout-notes .source-panel{grid-column:1/-1}
@media print{.atb-reference #atb-layout-form,.atb-reference #atb-layout-download,.atb-reference .atb-dir-feedback{display:none!important}.atb-reference .atb-layout-figure{break-inside:avoid}}
/* STL viewer, scoped to the reference page. */
.atb-reference .atb-stl-drop{border:2px dashed #b9aa6e;background:#f7f4e9;padding:26px;border-radius:7px;text-align:center}
.atb-reference .atb-stl-drop.dragging{background:#faedb8;border-color:#805c00}
.atb-reference .atb-stl-drop h2{margin-bottom:12px}
.atb-reference .atb-stl-drop p{font-size:14px}
.atb-reference .atb-stl-file{display:block;width:100%;max-width:360px;margin:12px auto 18px;font-size:13px}
.atb-reference .atb-stl-file-label{cursor:pointer;margin:5px}
.atb-reference .atb-stl-view-wrap{margin-top:18px;background:#f6f4ec;border:1px solid #dfd8bb;border-radius:6px;overflow:hidden}
.atb-reference #atb-stl-canvas{display:block;width:100%;height:460px;touch-action:none;cursor:grab}
.atb-reference #atb-stl-canvas:active{cursor:grabbing}
.atb-reference #atb-stl-canvas:focus-visible{outline:3px solid #af8100;outline-offset:-3px}
.atb-reference .atb-stl-view-wrap>p{padding:0 16px 12px;margin:0}
.atb-reference .atb-stl-fields{margin-top:24px}
.atb-reference #atb-stl-mesh{white-space:normal;overflow-wrap:anywhere}
.atb-reference #atb-stl-name{overflow-wrap:anywhere;margin:24px 0 14px}
@media(max-width:620px){.atb-reference #atb-stl-canvas{height:340px}.atb-reference .atb-stl-drop{padding:18px 12px}.atb-reference .atb-stl-view-actions .button{padding:9px 12px;gap:8px}}
.atb-reference .atb-gold-composition{display:flex;width:100%;height:20px;border-radius:4px;overflow:hidden;margin:20px 0 8px;background:#e3e4de}
.atb-reference #atb-gold-fine-bar{background:#e5b422}
.atb-reference #atb-gold-other-bar{background:#c7cbbf}
.atb-reference #atb-gold-composition-text{font-size:13px;color:#65695e}
.atb-reference #atb-gold-equation{overflow-wrap:anywhere}
.atb-reference .atb-gold-basis{max-width:420px;margin:22px 0}
.atb-reference .atb-gold-step{padding:18px 22px;margin:20px 0;border:1px solid #ded6b7;background:#f7f4e9;border-radius:6px;min-width:0}
.atb-reference .atb-gold-step legend{font-size:18px;font-weight:600;padding:0 8px;width:auto}
.atb-reference .atb-gold-step .atb-blank-fields{margin-top:0}
.atb-reference .atb-gold-custom-field{margin-top:12px}
.atb-reference .atb-gold-custom{-moz-appearance:textfield;appearance:textfield}
.atb-reference .atb-gold-custom::-webkit-inner-spin-button,.atb-reference .atb-gold-custom::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.atb-reference .atb-gold-answer{padding:24px;background:#f5ebc7;border:1px solid #ddc76d;border-radius:6px;margin:22px 0}
.atb-reference .atb-gold-answer h2{font-size:24px;margin:0 0 12px}
.atb-reference .atb-gold-answer-amount{font-size:20px;line-height:1.5;margin-bottom:12px}
.atb-reference .atb-gold-answer-amount strong{font-size:32px;font-weight:700;color:#695006}
.atb-reference .atb-gold-answer>p:last-child{margin-bottom:0}
.atb-reference .atb-gold-working{margin-top:20px}
@media(max-width:620px){.atb-reference .atb-gold-step{padding:14px}.atb-reference .atb-gold-step legend{font-size:16px}.atb-reference .atb-gold-answer{padding:18px}}
.atb-reference #atb-gold input::placeholder{color:#96978e;opacity:1}
.atb-reference #atb-gold input:focus::placeholder{color:transparent}
.atb-reference #atb-gold select:has(option[value=""]:checked){color:#96978e}
.atb-reference #atb-gold select option{color:#252622}
.atb-reference #atb-gold .atb-gold-basis label{display:block;margin-bottom:7px}
.atb-reference #atb-gold .atb-gold-basis select{width:100%;min-height:46px;padding:10px 12px;border:1px solid #c9cabf;background:#fff;border-radius:4px;font:inherit}

/* Casting, batch and valuation pages */
#atb-next-five input:focus::placeholder {color:transparent}
#atb-next-five #nf-result {margin-top:1.4rem;padding:1.2rem;background:#eef2e9;border-left:3px solid #baa045}
#atb-next-five #nf-result h3 {margin-top:0}
#atb-next-five #nf-result table {width:100%}
#atb-next-five #nf-ingredients input {width:100%;min-width:6rem}
#atb-next-five #nf-reference-detail {padding:1rem;background:#f4f0dd;margin:1rem 0}
#atb-next-five input[disabled] {background:#eee;color:#666}
#atb-next-five [hidden] {display:none!important}

/* Ring sections and halo revisions */
.atb-reference .atb-ring-profile{background:#eef4f3;border:1px solid #d2dfdc;padding:1rem;margin:1.1rem 0;border-radius:6px;text-align:center}
.atb-reference .atb-ring-profile svg{width:100%;height:230px;max-width:600px}
.atb-reference .atb-ring-profile figcaption{font-size:.9rem;color:#485952}
#atb-halo-designer .atb-halo-check{grid-column:1/-1;background:#f4f0df;padding:.8rem}
#atb-halo-designer .atb-halo-check input{width:auto;min-height:auto;margin-right:.5rem}
#atb-halo-designer [hidden],#atb-geo [hidden]{display:none!important}
#atb-halo-designer input:focus::placeholder,#atb-geo input:focus::placeholder{color:transparent}

/* Published scrap rates and graver geometry */
#atb-scrap-prices [hidden],#atb-graver [hidden]{display:none!important}
#atb-scrap-prices #scrap-result{margin-top:1.4rem;padding:1.2rem;background:#eef2e9;border-left:3px solid #baa045}
#atb-scrap-prices table{width:100%}
#atb-scrap-prices input:focus::placeholder{color:transparent}
.atb-reference .atb-graver-diagrams{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0}
.atb-reference .atb-graver-diagrams figure{margin:0;padding:12px;background:#f2f4ec;border:1px solid #d5decd;border-radius:5px}
.atb-reference .atb-graver-diagrams svg{width:100%;height:280px;display:block}
.atb-reference .atb-graver-diagrams figcaption{font-size:12px;color:#56634f;text-align:center}
.atb-reference .atb-graver-step{padding:16px 20px;background:#f8f4e5;border-left:3px solid #c7a642;margin:14px 0;border-radius:4px}
.atb-reference .atb-graver-step h3{margin-top:0}
.atb-reference .atb-graver-step .atb-measurements{grid-template-columns:1fr 1fr}
.atb-reference .atb-graver-presets{display:flex;gap:8px;flex-wrap:wrap}
.atb-reference .atb-graver-presets button[aria-pressed=true]{background:#e5b422;color:#252622;border-color:#ac8615}
.atb-reference .atb-graver-saved{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
@media(max-width:650px){.atb-reference .atb-graver-diagrams{grid-template-columns:1fr}.atb-reference .atb-graver-diagrams svg{height:245px}}

.atb-reference .atb-note-logo{display:block;flex:0 0 100px;line-height:0}.atb-reference .atb-note-logo img{display:block;width:100px;height:auto;max-width:100%}@media(max-width:600px){.atb-reference .atb-note-logo{flex-basis:76px}.atb-reference .atb-note-logo img{width:76px}}

.atb-reference .atb-category-heading{grid-column:1/-1;margin:1.5rem 0 0;padding-bottom:.5rem;border-bottom:1px solid #d9d3c7;font-size:1.6rem}
.atb-reference .atb-category-heading[hidden]{display:none}

.atb-reference .atb-burr-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.atb-reference .atb-burr-card{min-width:0;border:1px solid var(--line);border-radius:5px;background:#fff;padding:22px}.atb-reference .atb-burr-card-top{display:flex;align-items:center;gap:16px;margin-bottom:16px}.atb-reference .atb-burr-card-top img{width:81px;height:108px;flex:0 0 81px}.atb-reference .atb-burr-card h3{font-size:25px;margin-bottom:8px}.atb-reference .atb-burr-alias{font-size:13px;color:var(--muted);margin:0}.atb-reference .atb-burr-card h4{font-size:15px;margin:18px 0 8px}.atb-reference .atb-burr-card ul{padding-left:20px}.atb-reference .atb-burr-card>p,.atb-reference .atb-burr-card li{font-size:14px}.atb-reference .atb-burr-card>a{font-size:13px}.atb-reference .atb-burr-card[hidden]{display:none}@media(max-width:700px){.atb-reference .atb-burr-grid{grid-template-columns:1fr}.atb-reference .atb-burr-card{padding:16px}.atb-reference .atb-burr-card h3{font-size:23px}}

.atb-reference .atb-burnout-figure{margin:24px 0;overflow-x:auto}.atb-reference .atb-burnout-figure img{display:block;width:100%;min-width:680px;height:auto}.atb-reference .atb-burnout-figure figcaption{font-size:14px;color:var(--muted);margin:12px 0}.atb-reference .atb-handbook-burnout .table-scroll{margin-top:22px}

/* Hollow shell patterns */
.hr-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.hr-fields label{display:block;margin-bottom:6px}.hr-fields input,.hr-fields select{box-sizing:border-box;width:100%;min-height:44px}.hr-buttons{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0}.hr-drawing{background:#fff;border:1px solid #ddd;overflow:auto}.hr-drawing svg{display:block;width:100%;height:auto;min-width:270px}.hr-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.hr-metrics div{padding:12px;background:#f5f3ea}.hr-metrics dd{margin:6px 0 0;font-size:1.3em;font-weight:bold}@media(max-width:600px){.hr-fields,.hr-metrics{grid-template-columns:1fr}.hr-buttons button{width:100%}}

.atb-design-preview{display:block;width:100%;height:auto;border:1px solid #ddd;margin:24px 0}.atb-reference #atb-design-sheet ul{padding-left:22px}
