/* Pawthority - /guides/renting-with-pets/. Loaded by that page only, after css/site.css.
 *
 * The Direction A design. css/site.css holds the fonts, the colour and type tokens,
 * .wrap, and the shared header and footer; everything else the page needs is here.
 * The page does not load css/styles.css, so the element rules at the top (a, p,
 * h1-h4, label, inputs) are safe: no page that loads styles.css ever sees them.
 *
 * The base rules, .btn, .btn-line and the form rules are the same as in
 * css/professionals.css. They belong in one shared file, with the styles.css cleanup PR.
 *
 * Nothing on the page is hidden until it scrolls into view, and nothing animates
 * in. The only motion is on hover and focus.
 *
 * One rule to a line, in the order of the page.
 */

/* -- Base -- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font:400 1.0625rem/1.6 var(--sans);color:var(--ink);background:var(--paper);-webkit-font-smoothing:antialiased}
a{color:inherit}
p{margin:0}
h1,h2,h3,h4{font-family:var(--serif);font-weight:600;line-height:1.1;letter-spacing:-.015em;margin:0;color:var(--ink)}
:focus-visible{outline:3px solid var(--ink);outline-offset:3px;border-radius:3px}
[tabindex="-1"]:focus{outline:none}
.skip{position:absolute;left:-9999px;top:0;background:var(--ink);color:#fff;padding:.6rem 1rem;z-index:20;text-decoration:none}
.skip:focus{left:1rem;top:1rem}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:.7rem 1.35rem;border:0;border-radius:10px;background:var(--teal);color:#fff;font:600 1rem var(--sans);text-decoration:none;cursor:pointer;transition:background .2s,transform .15s}
.btn:hover{background:var(--teal-d)}
.btn:active{transform:translateY(1px)}
.btn-line{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:50px;padding:.7rem 1.2rem;border:1.5px solid #B7C6C2;border-radius:10px;background:#fff;color:var(--ink);font:600 1rem var(--sans);text-decoration:none;cursor:pointer;transition:border-color .2s,color .2s}
.btn-line:hover{border-color:var(--teal);color:var(--teal-d)}

/* -- Hero -- */
.hero{padding:clamp(2.5rem,6vw,4.5rem) 0 clamp(2.25rem,5vw,3.25rem);border-bottom:1px solid var(--line)}
.hero h1{font-size:clamp(2.5rem,5.6vw,4rem);max-width:14ch}
.lede{margin-top:1rem;font-size:clamp(1.06rem,1.6vw,1.18rem);color:var(--ink-2);max-width:62ch}
.lede a,.small-print a,.under-builder a,.guide a{color:var(--teal-d);font-weight:600;text-underline-offset:3px}

/* -- Sections -- */
.section{padding:clamp(3rem,7vw,5rem) 0}
.band{background:var(--mist)}

/* -- The builder. It needs JavaScript, so without it the guide reads on alone. -- */
.builder{display:none}
.js .builder{display:block}
.builder-grid{display:grid;gap:clamp(1.5rem,4vw,3.5rem);align-items:start}
@media (min-width:980px){.builder-grid{grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr)}}
.builder h2{font-size:clamp(1.9rem,3.6vw,2.5rem);max-width:16ch}
.intro{margin-top:1rem;color:var(--ink-2);max-width:56ch}
.small-print{margin-top:1.1rem;display:grid;gap:.7rem;font-size:.95rem;color:var(--ink-2);max-width:56ch}
.promise{font-weight:700;color:var(--ink)}
.card{border:1px solid var(--line);border-radius:16px;background:#fff;padding:clamp(1.25rem,3vw,2rem);box-shadow:0 18px 40px -30px rgba(8,59,54,.45);scroll-margin-top:1rem}
.step-count{font-size:.9rem;font-weight:600;color:var(--muted)}
.card h3{margin-top:.25rem;font-size:clamp(1.5rem,2.6vw,1.85rem)}
.card h4{font-size:1.3rem;line-height:1.2}
.step-intro{margin-top:.6rem;color:var(--ink-2)}
.fields{margin-top:1.25rem;display:grid;gap:1.1rem}
.row2{display:grid;gap:1.1rem}
@media (min-width:600px){.row2{grid-template-columns:1fr 1fr}}
fieldset{border:0;margin:0;padding:0;min-width:0}
legend{padding:0;margin:0 0 .4rem .1rem;font-size:.88rem;font-weight:600;color:var(--ink-2)}
label{display:block;font-size:.88rem;font-weight:600;color:var(--ink-2);margin:0 0 .35rem .1rem}
.opt{font-weight:400;color:var(--muted)}
.help{margin-top:.35rem;font-size:.88rem;color:var(--muted)}
input[type=text],input[type=date],select,textarea{display:block;width:100%;font:500 1rem var(--sans);color:var(--ink);background:#fff;border:1.5px solid #B7C6C2;border-radius:10px;padding:.7rem .85rem;min-height:50px;transition:border-color .2s}
/* An iPhone gives a date field its own width, which can push past the card. */
input[type=date]{min-width:0;max-width:100%;-webkit-appearance:none;appearance:none}
input[type=date]::-webkit-date-and-time-value{text-align:left}
select{appearance:none;-webkit-appearance:none;background:#fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%2313201E' stroke-width='1.8'/></svg>") no-repeat right .85rem center/12px;padding-right:2.3rem;cursor:pointer}
textarea{resize:vertical;line-height:1.5}
input:hover,select:hover,textarea:hover{border-color:var(--teal)}
[aria-invalid="true"]{border-color:#B3261E}
::placeholder{color:#6A7773}
.picks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}
.pick{display:flex;align-items:center;justify-content:center;gap:.5rem;min-height:50px;margin:0;padding:.5rem;border:1.5px solid #B7C6C2;border-radius:10px;font-size:1rem;color:var(--ink);cursor:pointer;transition:border-color .2s}
.pick:hover{border-color:var(--teal)}
.pick:has(input:checked){border-color:var(--teal);background:var(--teal-l)}
.pick input{width:18px;height:18px;margin:0;accent-color:var(--teal)}
.ticks{display:grid;gap:.6rem}
legend+.help{margin-top:0}
.help+.ticks{margin-top:.6rem}
.tick{display:flex;gap:.65rem;align-items:flex-start;margin:0;font-size:.98rem;color:var(--ink-2);font-weight:500;cursor:pointer}
.tick input{flex:none;width:22px;height:22px;margin:.1rem 0 0;accent-color:var(--teal)}
.form-error{margin-top:1rem;padding:.7rem .85rem;border-radius:10px;background:#FBE9E7;color:#8C1D18;font-size:.95rem;font-weight:600}
.step-nav{margin-top:1.5rem;display:flex;flex-wrap:wrap;justify-content:space-between;gap:.6rem}
.step-nav .btn:only-child{margin-left:auto}
@media (max-width:479px){.step-nav>*{flex:1}}

/* -- Step 3 -- */
.subject{margin-top:1.1rem;padding:.8rem 1rem;border-radius:12px;background:var(--mist);overflow-wrap:anywhere}
.box{margin-top:1rem;min-height:12rem;resize:none;font-weight:400;overflow:hidden;overflow-wrap:anywhere}
.copy-row{margin-top:.7rem;display:flex;flex-wrap:wrap;align-items:center;gap:.6rem}
.copy-status{font-size:.95rem;font-weight:600;color:var(--teal-d)}
.copy-status.failed{color:#8C1D18}
.copy-helper{position:fixed;left:-9999px;top:0;min-height:0}
.reply-by{margin-top:1.75rem;padding:1.1rem 1.25rem;border-radius:14px;background:var(--teal-l)}
.card .reply-by h4{font-size:clamp(1.4rem,2.6vw,1.7rem)}
.reply-by p{margin-top:.6rem}
.reply-by .small{font-size:.92rem;color:var(--ink-2)}
.after{margin-top:1.75rem}
.dots{list-style:none;margin:.9rem 0 0;padding:0;display:grid;gap:.6rem}
.dots li{display:grid;grid-template-columns:1.4rem 1fr;gap:.5rem;color:var(--ink-2)}
.dots li::before{content:"";width:.5rem;height:.5rem;margin-top:.62rem;border-radius:50%;background:var(--teal)}
.under-builder{margin-top:1rem;font-size:.95rem;color:var(--ink-2)}

/* -- The guide -- */
.guide{max-width:44rem}
.guide h2{margin-top:clamp(2.25rem,5vw,3rem);font-size:clamp(1.6rem,3vw,2.1rem);line-height:1.15}
.guide h2:first-child{margin-top:0}
.guide p{margin-top:.9rem;color:var(--ink-2)}
.guide .checked{margin-top:clamp(2.25rem,5vw,3rem);padding-top:1.1rem;border-top:1px solid var(--line);font-size:.92rem;color:var(--muted)}
.guide .to-directory{margin-top:1.1rem;padding:1.1rem 1.25rem;border-radius:14px;background:var(--mist);color:var(--ink)}

/* -- Print: the letter alone, once it is on screen. A text box clips on paper, so a
   plain copy of it prints instead. On steps 1 and 2 the page prints as it stands. -- */
.print-copy{display:none}
@media print{
 body.on-letter>*:not(main),body.on-letter main>*:not(.print-copy){display:none!important}
 body.on-letter .print-copy{display:block;margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font:12pt/1.5 var(--serif);color:#000}
}

/* -- Motion -- */
@media (prefers-reduced-motion:reduce){
 *,*::before,*::after{transition:none!important;animation:none!important}
}
