.tools-index,.tool-page{padding-top:2rem;padding-bottom:5rem}
.tools-hero{max-width:900px}
.tools-hero h1,.tool-page-header h1{font-size:clamp(2.2rem,5vw,4.2rem);line-height:1.03;margin:.3rem 0 .8rem}
.tool-badges{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem}
.tool-badges span{display:inline-flex;padding:.4rem .68rem;border:1px solid rgba(172,119,71,.35);border-radius:999px;background:#fff9f0;color:#60391f;font-size:.82rem;font-weight:750}
.breadcrumb{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;font-size:.9rem;margin-bottom:1.4rem}

.simple-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin:1.7rem 0 2rem}
.simple-step{display:grid;grid-template-columns:2.25rem 1fr;gap:.8rem;padding:1.15rem;background:#fff;border:1px solid rgba(64,37,27,.14);border-radius:16px;box-shadow:0 10px 28px rgba(45,25,18,.06)}
.simple-step-number{display:grid;place-items:center;width:2.25rem;height:2.25rem;border-radius:50%;background:#6f3e24;color:#fff;font-weight:900}
.simple-step h2{font-size:1.05rem;margin:.1rem 0 .25rem}
.simple-step p{margin:0;color:#665044}

.tool-role-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:2rem 0}
.tool-role-card{display:flex;flex-direction:column;padding:1.35rem;background:#fff;border:1px solid rgba(64,37,27,.14);border-radius:18px;box-shadow:0 12px 32px rgba(45,25,18,.07);text-decoration:none;color:inherit}
.tool-role-card:hover{transform:translateY(-2px);box-shadow:0 16px 36px rgba(45,25,18,.11)}
.tool-role-card strong{font-size:1.35rem;color:#321d15}
.tool-role-card span{margin:.45rem 0 1rem;color:#665044}
.tool-role-card small{margin-top:auto;font-weight:800;color:#7b452a}
.tool-all-card{grid-column:1/-1;background:#2b1712;color:#fff}
.tool-all-card strong,.tool-all-card small{color:#fff}
.tool-all-card span{color:#ead9c9}

.role-page-header{display:flex;justify-content:space-between;align-items:end;gap:1rem;margin-bottom:1.5rem}
.role-page-header>div{max-width:780px}
.role-page-header h1{font-size:clamp(2rem,4vw,3.4rem);margin:.25rem 0}
.role-nav{display:flex;flex-wrap:wrap;gap:.55rem;margin:1rem 0 2rem}
.role-nav a{padding:.55rem .75rem;border:1px solid rgba(64,37,27,.18);border-radius:999px;text-decoration:none;font-weight:750;background:#fff}
.role-nav a.active{background:#6f3e24;color:#fff;border-color:#6f3e24}

.tools-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.tool-card{padding:1.2rem;display:flex;flex-direction:column;min-height:200px;background:#fff;border:1px solid rgba(64,37,27,.14);border-radius:16px;box-shadow:0 10px 28px rgba(45,25,18,.06)}
.tool-card-meta{display:flex;justify-content:space-between;gap:.5rem;font-size:.72rem;text-transform:uppercase;letter-spacing:.05em;color:#7a5a47}
.tool-card h2,.tool-card h3{font-size:1.12rem;line-height:1.28;margin:.72rem 0 .45rem}
.tool-card h2 a,.tool-card h3 a{text-decoration:none;color:#321d15}
.tool-card p{margin:0 0 1rem;color:#6b5548}
.tool-card-actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:auto}
.tool-card-actions a{font-weight:800}
.tool-card-actions a:first-child{display:inline-flex;padding:.55rem .75rem;border-radius:9px;background:#6f3e24;color:#fff;text-decoration:none}
.tool-card-actions a:last-child{padding:.55rem 0}

.tool-page-header{max-width:900px;margin-bottom:1.25rem}
.tool-disclaimer,.tool-workspace,.tool-source,.tool-use-policy,.simple-tool-guide{background:#fff;border:1px solid rgba(64,37,27,.14);border-radius:18px;box-shadow:0 12px 35px rgba(45,25,18,.07)}
.tool-disclaimer{padding:1.2rem 1.35rem;margin:1rem 0;background:#fff8e8;border-left:6px solid #a94b30}
.tool-disclaimer h2{font-size:1.1rem;margin:0 0 .45rem}
.tool-disclaimer p{margin:.4rem 0}

.simple-tool-guide{padding:1.35rem;margin:1.25rem 0;background:#f8f1e9}
.simple-tool-guide h2{margin:.15rem 0 .8rem}
.simple-tool-guide ol{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;list-style:none;padding:0;margin:0}
.simple-tool-guide li{position:relative;padding-left:2.4rem;color:#4d382d}
.simple-tool-guide li::before{position:absolute;left:0;top:-.05rem;display:grid;place-items:center;width:1.75rem;height:1.75rem;border-radius:50%;background:#6f3e24;color:#fff;font-weight:900}
.simple-tool-guide li:nth-child(1)::before{content:"1"}
.simple-tool-guide li:nth-child(2)::before{content:"2"}
.simple-tool-guide li:nth-child(3)::before{content:"3"}
.simple-tool-actions{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;margin-top:1.2rem;padding-top:1.1rem;border-top:1px solid rgba(64,37,27,.14)}
.simple-tool-actions .button{min-width:180px;text-align:center}
.simple-tool-note{margin:.75rem 0 0;color:#665044;font-size:.92rem}

.tool-workspace{padding:clamp(1rem,3vw,2rem);margin:1.5rem 0}
.tool-workspace-head{padding-bottom:1rem;border-bottom:1px solid rgba(64,37,27,.14)}
.tool-workspace-head h2{margin:.2rem 0}
.tool-workspace-head p:last-child{margin-bottom:0}
.tool-form{display:grid;gap:1rem;margin-top:1.25rem}
.tool-section-title{font-size:1.3rem;margin:1.35rem 0 .1rem;padding-top:1rem;border-top:2px solid rgba(64,37,27,.13)}
.tool-field{display:grid;gap:.42rem}
.tool-field-label{font-weight:850;color:#3b241b}
.tool-field input,.tool-field textarea,.tool-grid textarea,.tool-grid input,.tool-grid select{width:100%;box-sizing:border-box;border:2px solid #b9a697;border-radius:10px;padding:.78rem .82rem;font:inherit;background:#fff;color:#21140f}
.tool-field input:focus,.tool-field textarea:focus,.tool-grid textarea:focus,.tool-grid input:focus,.tool-grid select:focus{outline:3px solid rgba(180,104,54,.22);border-color:#8b4c2a}
.tool-field textarea{resize:vertical;min-height:92px;line-height:1.45}
.tool-check{display:grid;grid-template-columns:1.35rem 1fr;gap:.7rem;align-items:start;padding:.72rem .78rem;border:1px solid rgba(64,37,27,.15);border-radius:10px;background:#fffdfa}
.tool-check input{width:1.15rem;height:1.15rem;margin-top:.12rem}
.tool-instruction{margin:.25rem 0;color:#604b3e;line-height:1.55}
.tool-table-wrap{overflow-x:auto;border-radius:10px}
.tool-table-wrap::before{content:"Table: scroll sideways on a phone.";display:block;padding:.45rem .6rem;background:#f4e9dd;color:#604b3e;font-size:.8rem;font-weight:750}
.tool-grid{width:100%;border-collapse:collapse;min-width:620px}
.tool-grid th,.tool-grid td{border:1px solid #c6b7aa;padding:.6rem;vertical-align:top;min-width:130px}
.tool-grid th{background:#f1e4d5}
.tool-cell-prompt{display:block;font-weight:800;margin-bottom:.35rem}

.tool-bottom-actions{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;padding-top:1.35rem;margin-top:1.25rem;border-top:2px solid rgba(64,37,27,.13)}
.tool-source,.tool-use-policy{padding:1.4rem;margin:1.3rem 0}
.tool-source{display:flex;justify-content:space-between;gap:1.5rem;align-items:center}
.tool-source h2,.tool-use-policy h2{margin:.2rem 0}
.tool-source>div:first-child{max-width:740px}
.tool-use-policy{background:#f6efe7}

@media(max-width:900px){
  .tools-list{grid-template-columns:1fr 1fr}
  .simple-steps,.simple-tool-guide ol{grid-template-columns:1fr}
  .tool-source,.role-page-header{display:block}
  .tool-source .button-row,.role-page-header>a{margin-top:1rem}
}
@media(max-width:620px){
  .tool-role-grid,.tools-list{grid-template-columns:1fr}
  .tool-all-card{grid-column:auto}
  .tool-page-header h1{font-size:2.2rem}
  .simple-tool-actions,.tool-bottom-actions{display:grid}
  .simple-tool-actions .button,.tool-bottom-actions .button{width:100%;min-width:0}
  .tool-workspace{padding:1rem}
}

@media print{
  @page{margin:.55in}
  .site-header,.free-access-strip,.site-footer,.search-overlay,.breadcrumb,.simple-tool-guide,.tool-source,.tool-use-policy,.tool-bottom-actions,.chapter-connect-cta{display:none!important}
  .tool-page{padding:0}
  .tool-page-header{margin:0 0 .2in}
  .tool-page-header h1{font-size:22pt}
  .tool-page-header p{font-size:10pt}
  .tool-badges{display:none}
  .tool-disclaimer,.tool-workspace{box-shadow:none;border:1px solid #777;border-radius:0}
  .tool-disclaimer{font-size:8.5pt;padding:.12in;margin:.1in 0}
  .tool-workspace{padding:.18in;margin:.1in 0}
  .tool-workspace-head{padding-bottom:.08in}
  .tool-form{gap:.08in}
  .tool-field,.tool-check,.tool-grid tr{break-inside:avoid}
  .tool-section-title{break-after:avoid}
  .tool-field input,.tool-field textarea,.tool-grid textarea,.tool-grid input,.tool-grid select{border:1px solid #777;background:#fff!important;color:#000!important;padding:.08in}
  .tool-check{border:1px solid #999;background:#fff!important}
  .tool-table-wrap{overflow:visible}
  .tool-table-wrap::before{display:none}
  .tool-grid{min-width:0;font-size:8pt}
  .tool-grid th,.tool-grid td{min-width:0;padding:.06in}
  input[type="checkbox"]{accent-color:#000}
}


.tool-print-status{margin:.75rem 0 0;font-weight:750;color:#47603f}
.tool-print-status.is-error{color:#9b2d20}
@media print{
  .tool-print-status{display:none!important}
}
