.ahd-calc{--ahd-ink:#263831;--ahd-surface:#f7f3ea;--ahd-border:#ded7ca;--ahd-accent:#35604d;color:var(--ahd-ink);max-width:72rem;margin-inline:auto}
.ahd-calc a{color:var(--ahd-accent);text-underline-offset:.18em}
.ahd-intro,.ahd-form{padding:clamp(1rem,4vw,2rem);background:var(--ahd-surface);border:1px solid var(--ahd-border);border-radius:1rem;margin-block:1.25rem 2rem}
.ahd-calc label{display:block;font-weight:650}
.ahd-calc input{display:block;width:100%;box-sizing:border-box;margin:.35rem 0 0;padding:.65rem .75rem;background:#fff;color:var(--ahd-ink);border:1px solid #786e61;border-radius:.4rem}
.ahd-calc input[type=search]{max-width:36rem}
.ahd-categories{display:flex;flex-wrap:wrap;gap:.65rem;margin-block:1rem 2rem}
.ahd-categories a{padding:.5rem .8rem;border-radius:2rem;border:1px solid var(--ahd-border);background:#fff}
.ahd-grid,.ahd-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:1rem}
.ahd-directory section{margin-block:2.2rem;scroll-margin-top:2rem}
.ahd-fields{margin-bottom:1rem}
.ahd-form button{margin:.25rem .35rem .25rem 0;background:var(--ahd-accent);color:#fff;border:1px solid var(--ahd-accent);border-radius:.45rem;padding:.65rem 1rem}
.ahd-form button[type=reset]{background:#fff;color:var(--ahd-accent)}
.ahd-form output:not(:empty){display:block;margin-top:1rem;padding:.8rem 1rem;border-left:4px solid var(--ahd-accent);background:#fff;font-weight:650}
.ahd-calc [hidden]{display:none!important}

/* Canvas pages use the calculator's own navigation and full-width layout. */
.ahd-canvas-header,.ahd-canvas-footer{background:#f7f3ea;border-block:1px solid #e4d9ca;color:#263831}
.ahd-canvas-inner{width:min(100% - 2rem,78rem);margin-inline:auto;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem;padding-block:1rem}
.ahd-canvas-inner nav{display:flex;flex-wrap:wrap;gap:.7rem 1.2rem}
.ahd-canvas-inner a{color:#284d3e;text-decoration:none}
.ahd-canvas-inner a:hover,.ahd-canvas-inner a:focus-visible{text-decoration:underline}
.ahd-canvas-brand{font-weight:750;letter-spacing:-.02em}
.ahd-canvas-main{width:min(100% - 2rem,78rem);margin:0 auto;padding-block:clamp(1.75rem,5vw,4rem)}
.ahd-canvas-main>.ahd-calc,.ahd-canvas-main .ahd-directory{max-width:none}
.ahd-canvas-main h1{font-size:clamp(2rem,5vw,3.65rem);line-height:1.08;letter-spacing:-.035em;color:#263831;margin:0 0 1rem}
.ahd-skip{position:absolute;left:1rem;top:1rem;z-index:1000;transform:translateY(-250%);padding:.6rem 1rem;background:#fff;color:#263831}
.ahd-skip:focus{transform:translateY(0)}
.ahd-calc .ahd-grid{gap:1.2rem}

/* Photo cards share the same layout in the directory and related tools. */
.ahd-canvas-main:has(.ahd-calc){max-width:72rem}
body.elementor-template-canvas:has(.ahd-calc){background:#f5f6f7}
.ahd-calc .ahd-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:1.35rem}
.ahd-card{position:relative;display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid #dedfe0;border-radius:.5rem;box-shadow:0 2px 4px #151d1710;transition:transform .18s ease,box-shadow .18s ease}
.ahd-card-photo{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:calc(.5rem - 1px) calc(.5rem - 1px) 0 0;background:#e8e8e4}
.ahd-card-copy{flex:1;display:flex;flex-direction:column;padding:1rem 1rem 1.1rem}
.ahd-card-copy h3{margin:0;color:#151b19;font-size:1.05rem;line-height:1.35;font-weight:600;letter-spacing:0}
.ahd-card-copy p{margin:.65rem 0 1.35rem;color:#494f4d;font-size:.88rem;line-height:1.55}
.ahd-card-copy a{align-self:flex-start;margin-top:auto;color:#006444;font-size:.9rem;font-weight:700;text-decoration:none}
.ahd-card-copy a:hover,.ahd-card-copy a:focus-visible{text-decoration:underline}
.ahd-card-copy a::after{content:"";position:absolute;inset:0;border-radius:inherit}
.ahd-card-copy a:focus-visible::after{outline:3px solid #006444;outline-offset:3px}
.ahd-card:hover,.ahd-card:focus-within{transform:translateY(-3px);box-shadow:0 8px 18px #151d171c}
@media(max-width:800px){.ahd-calc .ahd-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.ahd-calc .ahd-grid{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.ahd-card{transition:none}.ahd-card:hover,.ahd-card:focus-within{transform:none}}

.ahd-calc .ahd-grid{justify-items:center;gap:2rem 1.25rem}
.ahd-card{width:100%;max-width:340px;aspect-ratio:1;box-sizing:border-box;container-type:inline-size;align-items:center;justify-content:center;text-align:center;border:1px solid #d4d0c7;border-radius:50%;background:radial-gradient(circle at 43% 20%,#fff 42%,#f2efe8 100%);box-shadow:0 8px 0 #cfc8bb,0 15px 19px #28231a24,inset 0 2px 3px #fff}
.ahd-card:hover,.ahd-card:focus-within{box-shadow:0 11px 0 #cfc8bb,0 21px 24px #28231a28,inset 0 2px 3px #fff}
.ahd-card-photo{width:32%;height:auto;aspect-ratio:1;border:3px solid white;border-radius:50%;box-shadow:0 4px 9px #28231a35}
.ahd-card-copy{flex:0 0 auto;align-items:center;width:72%;padding:2.5cqi 0 0}
.ahd-card-copy h3{font-size:clamp(.91rem,5.2cqi,1.1rem);line-height:1.2}
.ahd-card-copy p{font-size:clamp(.73rem,3.85cqi,.88rem);line-height:1.35;margin:2cqi 0}
.ahd-card-copy a{align-self:center;font-size:clamp(.76rem,4cqi,.9rem)}
.ahd-card-copy a::after{border-radius:50%}
@media(max-width:960px){.ahd-calc .ahd-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.ahd-calc .ahd-grid{grid-template-columns:minmax(0,1fr)}}

.ahd-guide{max-width:52rem;margin:2rem auto 3rem}
.ahd-guide h2{margin-top:2rem}
.ahd-guide-inputs{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr));gap:.5rem}
.ahd-guide-inputs div,.ahd-guide details{padding:.7rem 1rem;background:#fffdf8;border:1px solid #ded7ca;border-radius:.45rem}
.ahd-guide-inputs dt,.ahd-guide summary{font-weight:650}
.ahd-guide-inputs dd{margin:.25rem 0 0}
.ahd-guide details{margin:.55rem 0}
.ahd-guide summary{cursor:pointer}
.ahd-guide details p{margin:.7rem 0 0}
.ahd-guide-table{width:100%;border-collapse:collapse;background:#fff}
.ahd-guide-table caption{text-align:left;padding:.55rem;font-weight:650}
.ahd-guide-table th,.ahd-guide-table td{padding:.65rem;border:1px solid #ded7ca;text-align:left}
.ahd-guide-table thead{background:#f0ebe1}
