/*
Theme Name: Titcomb Law Group
Theme URI: https://titcomblawgroup.com
Author: Titcomb Law Group, P.C.
Description: Custom theme for Titcomb Law Group, P.C. Built from the approved 2026 site design.
Version: 0.8.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: tlg
*/

body{margin:0}
a{color:inherit;text-decoration:none}
a:hover{text-decoration:underline}
.pill{font:inherit;font-weight:600;font-size:16px;min-height:48px;padding:0 20px;border:1px solid #B5B0A2;background:#FFFFFF;color:#111111;border-radius:999px;cursor:pointer}
.pill[aria-pressed="true"]{background:#666666;color:#FFFFFF;border-color:#666666}
.ph{background-color:#4D4D4D;background-image:repeating-linear-gradient(135deg,#5A5A5A 0 2px,transparent 2px 18px);color:#F4F1EA;display:flex;align-items:flex-end;padding:20px;box-sizing:border-box;font-weight:600;font-size:13px;letter-spacing:0.1em}
.ph{background-color:#4D4D4D;background-image:repeating-linear-gradient(135deg,#5A5A5A 0 2px,transparent 2px 18px);color:#F4F2EC;display:flex;align-items:flex-end;padding:20px;box-sizing:border-box;font-weight:600;font-size:13px;letter-spacing:0.1em}
.fld{font:inherit;min-height:52px;padding:0 16px;border:1px solid #B5B0A2;background:#FFFFFF;color:#111111;box-sizing:border-box;width:100%}

/* Base and responsive rules added for the WordPress build */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
img{max-width:100%}
.tlg-skip{position:absolute;left:-9999px;top:0;background:#111111;color:#FFFFFF;padding:12px 18px;z-index:100}
.tlg-skip:focus{left:8px;top:8px}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #E3AE30;outline-offset:2px}
[hidden]{display:none !important}
.tlg-notice{padding:14px 16px;font-weight:600;border-left:6px solid #E3AE30;background:#FBF3DC;color:#111111}
.tlg-notice.is-error{border-left-color:#9B1C1C;background:#FBE9E9}
.tlg-prose{font-size:19px;line-height:1.65;max-width:760px}
.tlg-prose h2{font-family:'Cormorant Garamond',Georgia,serif;font-weight:600;font-size:clamp(30px,3.4vw,40px);line-height:1.1;margin:44px 0 12px}
.tlg-prose h3{font-size:21px;margin:32px 0 8px}
.tlg-prose p,.tlg-prose ul,.tlg-prose ol{margin:0 0 18px}
.tlg-prose a{color:#6B5A12;text-decoration:underline}
.tlg-prose img{height:auto}
.tlg-card{background:#FFFFFF;border-top:4px solid #E3AE30;padding:26px;display:flex;flex-direction:column;gap:10px}
.tlg-card h2{margin:0;font-family:'Cormorant Garamond',Georgia,serif;font-weight:600;font-size:28px;line-height:1.1}
.tlg-pagination{display:flex;gap:10px;flex-wrap:wrap;font-weight:600}
.tlg-pagination .page-numbers{padding:10px 16px;background:#FFFFFF;border:1px solid #B5B0A2}
.tlg-pagination .current{background:#666666;color:#FFFFFF;border-color:#666666}
@media (max-width:640px){header nav[aria-label="Main"]{gap:6px 16px !important;font-size:14px !important}}

.tlg-article{max-width:1220px;margin:0 auto;padding:64px 32px;display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:56px;align-items:start}
@media (max-width:900px){.tlg-article{grid-template-columns:minmax(0,1fr);padding:48px 20px;gap:36px}}
.tlg-prose{overflow-wrap:anywhere}

#tlg-form,.tlg-notice{scroll-margin-top:96px}
.tlg-notice:focus{outline:2px solid #111111;outline-offset:2px}

/* Phone header: logo, menu button and the main action on one row; links open below */
.tlg-menu{display:none;font:inherit;font-weight:600;font-size:15px;min-height:44px;padding:0 14px;background:transparent;color:#FFFFFF;border:1px solid #FFFFFF;cursor:pointer}
@media (max-width:760px){
header>div{padding:12px 20px !important;gap:10px 12px !important}
header>div>a:first-child img{height:48px !important}
header>div>a:last-child{padding:11px 12px !important;font-size:14px !important}
.tlg-js .tlg-menu{display:inline-flex;align-items:center}
.tlg-js header nav[aria-label="Main"]{display:none !important;order:5;flex-basis:100%;flex-direction:column;flex-wrap:nowrap !important;gap:0 !important;font-size:17px !important}
.tlg-js header.is-open nav[aria-label="Main"]{display:flex !important}
.tlg-js header nav[aria-label="Main"] a{padding:13px 0;border-top:1px solid #8C8C8C}
}
nav[aria-label="Breadcrumb"] a{display:inline-block;padding:5px 0}
/* Tables stack on a phone instead of scrolling sideways */
@media (max-width:640px){
main table{min-width:0 !important}
main table thead{position:absolute;left:-9999px}
main table tr{display:block;padding:12px 0;border-bottom:1px solid #CFCABB}
main table td{display:block;padding:2px 0 !important;border:0 !important}
main table td:first-child{font-weight:700}
}

/* Desktop header: keep logo, links and the main action on one row; on narrower screens the links take their own row */
@media (min-width:761px){header nav[aria-label="Main"]{gap:8px 18px !important}}
@media (min-width:761px) and (max-width:1180px){header nav[aria-label="Main"]{order:3;flex-basis:100%}}
/* Phone header fits one row down to small phones: logo, main action, menu */
@media (max-width:760px){
header>div{padding:12px 16px !important;gap:10px 10px !important;flex-wrap:wrap}
header>div>a:first-child img{height:44px !important}
header>div>a:last-child{padding:10px 10px !important;font-size:13px !important;white-space:nowrap}
.tlg-js .tlg-menu{order:4;padding:0 11px;font-size:14px}
}

/* Headings that receive focus from script (quote steps) show no outline box */
[data-step] h1:focus,[data-step] h1:focus-visible,[data-step] h2:focus,[data-step] h2:focus-visible,h1[tabindex="-1"]:focus{outline:none !important}

/* Phones: footer phone and email links get a taller tap area. */
@media (max-width:760px){footer a{display:inline-block;padding:6px 0}}

/* Phones: the header (logo, Start my closing, Menu) stays at the top while scrolling */
@media (max-width:760px){
header{position:sticky;top:0;z-index:60;box-shadow:0 2px 10px rgba(0,0,0,.18)}
header.is-open{max-height:100vh;max-height:100dvh;overflow-y:auto}
[id]{scroll-margin-top:84px}
.admin-bar header{top:46px}
}

/* Tablet and desktop: the header stays at the top and slims down once you scroll */
@media (min-width:761px){
header{position:sticky;top:0;z-index:60}
.admin-bar header{top:32px}
header>div,header>div>a:first-child img{transition:padding .15s ease,height .15s ease}
header.is-stuck{box-shadow:0 2px 10px rgba(0,0,0,.18)}
header.is-stuck>div{padding-top:8px !important;padding-bottom:8px !important;gap:6px 28px !important}
header.is-stuck>div>a:first-child img{height:46px !important}
[id]{scroll-margin-top:124px}
}
