/* Standalone, printable text editions do not use the site's fixed-header layout. */
:root{font-family:var(--font-primary, system-ui, sans-serif);color:#212529;background:#fff;line-height:1.6;font-size:1.125rem}*{box-sizing:border-box}body{margin:0}header,main,footer{width:min(56rem,calc(100% - 2rem));margin:auto;padding-block:1.5rem}header{border-bottom:2px solid #26304d}header>a{font-weight:700}nav{display:flex;flex-wrap:wrap;gap:.5rem 1.5rem;margin-top:1rem}a{color:#185a84;text-underline-offset:.2em;overflow-wrap:anywhere}a:focus-visible,summary:focus-visible,input:focus-visible{outline:3px solid #226590;outline-offset:3px}h1{font-size:clamp(1.7rem,5vw,2.5rem);line-height:1.2}h2{margin-top:2rem;font-size:1.45rem;line-height:1.3}h3{font-size:1.2rem}p,li{overflow-wrap:anywhere}li{margin-block:.4rem}.skip-link{position:absolute;top:-10rem;left:1rem;background:white;padding:.5rem}.skip-link:focus{top:0}fieldset{min-width:0;margin:1.5rem 0;padding:1rem;border:1px solid #68778a}legend{font-weight:700;padding-inline:.4rem}.field{margin-block:1rem}label:not(.check){display:block;font-weight:600}input:not([type=checkbox]){width:100%;min-height:44px;padding:.5rem;border:1px solid #68778a;background:white;color:#212529;font:inherit}.check{display:flex;align-items:flex-start;gap:.5rem;min-height:44px;padding-block:.5rem}.check input{width:24px;height:24px;flex:none}summary{cursor:pointer;min-height:44px;padding:.5rem}table{width:100%;border-collapse:collapse}caption{text-align:left;font-weight:700}td,th{border:1px solid #68778a;padding:.5rem;overflow-wrap:anywhere}th{text-align:left;background:#edf2f7}footer{border-top:1px solid #68778a}section{scroll-margin-top:1rem}
@media screen and (max-width: 767.98px),
       screen and (orientation: landscape) and (pointer: coarse) and (max-width: 1023px) and (max-height: 500px) {
    /* The accessible documents use an 18px root at the default text size. */
    h2 { font-size: calc(22rem / 18); }
    h3 { font-size: 1.05rem; }
}
@media print{:root{font-size:10pt}header nav,.skip-link,footer{display:none}header,main{width:100%;padding:0}a{color:#212529}fieldset{break-inside:avoid}input:not([type=checkbox]){min-height:1.5rem;padding:.1rem}section{break-before:auto}h2,h3,legend{break-after:avoid}}

/* Document sheet: text versions saved in Admin > Documents (Views/Document/Text.cshtml) and the static editions
   marked class="doc-sheet". On screen they read as a page; printed, they become a document on parish letterhead.
   The ACH form keeps its own print sheet (ach-authorization-print.css) and does not use this class. */
.print-only{display:none}
.doc-address{margin:.25rem 0 0;color:#465264;font-size:.95rem}
.doc-tools{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1.25rem}
.doc-tools button{min-height:44px;padding:.45rem 1rem;border:1px solid #26304d;border-radius:4px;background:#26304d;color:#fff;font:inherit;font-weight:700;cursor:pointer}
.doc-tools button:hover{background:#303c59}
.doc-tools button:focus-visible{outline:3px solid #226590;outline-offset:3px}
.doc-body>:first-child{margin-top:0}

@page {
    size: letter;
    margin: .5in .85in .75in;
    @top-left { content: ""; }
    @top-center { content: ""; }
    @top-right { content: ""; }
    @bottom-left { content: ""; }
    @bottom-center { content: ""; }
    @bottom-right { content: ""; }
}

/* Leave no room for the browser's first-page header. The letterhead supplies its own inset. */
@page :first {
    margin-top: 0;
}

@page document {
    margin-bottom: .9in;
    @bottom-left {
        content: "St. Mary's Syro-Malabar Catholic Church";
        font: 8.5pt Georgia, serif;
        color: #444;
    }
    @bottom-right {
        content: "Page " counter(page) " of " counter(pages);
        font: 8.5pt Georgia, serif;
        color: #444;
    }
}
@media print{
 :root:has(.doc-sheet){font-size:11pt}
 .doc-sheet{font-family:Georgia,"Times New Roman",Times,serif;line-height:1.45;color:#000}
 .doc-sheet .screen-only{display:none}
 .doc-sheet .print-only{display:block}

 /* Letterhead: the parish crest beside its name, address and contact line, over a navy and gold rule.
    The logo file carries white lettering for the site's dark header, so only its crest (the left end) is shown. */
 .doc-sheet{page:document}
 .doc-sheet header{margin:0 0 .26in;padding:.42in 0 .13in;border-bottom:2.25pt solid #26304d;box-shadow:0 2.5pt 0 #fff,0 3.5pt 0 #b08d4a;-webkit-print-color-adjust:exact;print-color-adjust:exact}
 .doc-sheet header>a{display:none}
 .doc-sheet .doc-letterhead{display:flex;align-items:center;gap:.2in}
 .doc-sheet .doc-letterhead img{flex:none;width:.7in;height:.82in;object-fit:cover;object-position:left center}
 .doc-sheet .doc-letterhead p{margin:0;font-size:9.5pt;line-height:1.4;color:#222}
 .doc-sheet .doc-letterhead .doc-parish{margin-bottom:.03in;font-size:17pt;font-weight:700;line-height:1.15;letter-spacing:.01em;color:#26304d}

 .doc-sheet h1{margin:0 0 .22in;font-size:19pt;line-height:1.2;text-align:center}
 .doc-sheet h2{margin:.24in 0 .07in;padding-bottom:.03in;border-bottom:.5pt solid #555;font-size:12.5pt;line-height:1.25}
 .doc-sheet h3{margin:.17in 0 .05in;font-size:11.5pt}
 .doc-sheet h4{margin:.14in 0 .04in;font-size:11pt}
 .doc-sheet p{margin:0 0 .09in;orphans:3;widows:3}
 .doc-sheet ul,.doc-sheet ol{margin:0 0 .1in;padding-left:.28in}
 .doc-sheet li{margin-block:.035in;break-inside:avoid}
 .doc-sheet blockquote{margin:.1in .3in;font-style:italic}
 .doc-sheet hr{margin:.16in 0;border:0;border-top:.5pt solid #555}
 .doc-sheet a{color:#000;text-decoration:none}
 .doc-sheet h1,.doc-sheet h2,.doc-sheet h3,.doc-sheet h4,.doc-sheet caption{break-after:avoid}

 .doc-sheet table{margin:.1in 0 .16in;font-size:10pt}
 .doc-sheet caption{padding-bottom:.04in}
 .doc-sheet td,.doc-sheet th{padding:.04in .07in;border:.5pt solid #000}
 .doc-sheet th{background:#eee;-webkit-print-color-adjust:exact;print-color-adjust:exact}
 .doc-sheet tr{break-inside:avoid}

 /* Printable forms: each group is a titled section, each field a label over a line to write on, two to a row. */
 .doc-sheet fieldset{display:grid;grid-template-columns:1fr 1fr;gap:.05in .32in;margin:.16in 0 0;padding:.06in 0 0;border:0;border-top:.75pt solid #000;break-inside:avoid}
 .doc-sheet legend{padding:0 .08in 0 0;font-size:11.5pt}
 .doc-sheet .field{margin:0;break-inside:avoid}
 .doc-sheet label:not(.check){font-size:8.5pt;font-weight:400;line-height:1.25}
 .doc-sheet input:not([type=checkbox]){min-height:.23in;padding:0 .02in;border:0;border-bottom:.75pt solid #000;border-radius:0;background:transparent;color:#000}
 .doc-sheet .check{align-items:center;gap:.07in;min-height:0;padding:0;break-inside:avoid}
 .doc-sheet .check input{width:.14in;height:.14in;margin:0}
 .doc-sheet fieldset+p,.doc-sheet fieldset+h2{margin-top:.2in}
}
