/* Procedures hub (/new_procedure/), 2026-10-15. Markup generated by _tools/procedures/build.js.
   "Chapters" look shared with the condition pages: dark hero, numbered category bands, compact cards. */
.usj-ph { font-family: var(--usj-sans); color: #2F2A28; line-height: 1.6; }
.usj-ph h1, .usj-ph h2, .usj-ph h3 { font-family: var(--usj-serif); font-weight: 500; color: var(--usj-taupe-d); margin: 0; line-height: 1.15; }
.usj-ph p { margin: 0; }
.usj-ph .usj-ph-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.usj-ph section { scroll-margin-top: 70px; }

/* hero */
.usj-ph-hero { background: var(--usj-taupe-d); color: #fff; position: relative; overflow: hidden; }
.usj-ph-hero > img { position: absolute; right: 0; top: 0; width: 55%; height: 100%; object-fit: cover; opacity: .85;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%); }
.usj-ph-hero .usj-ph-wrap { position: relative; padding: 80px 24px 88px; }
.usj-ph .usj-ph-hero h1 { color: #fff; font-size: 58px; margin-bottom: 16px; max-width: 620px; }
.usj-ph-lede { font-size: 18px; max-width: 540px; opacity: .92; margin-bottom: 28px !important; }
.usj-ph-crumb { font-size: 13px; color: #e8dccf; margin-bottom: 14px; }
.usj-ph .usj-ph-crumb a { color: #e8dccf !important; text-decoration: none; }
.usj-ph .usj-ph-crumb a:hover { color: #fff !important; text-decoration: underline; }
.usj-ph a.usj-ph-btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 13px 26px; font: 600 15px var(--usj-sans);
  text-decoration: none; background: var(--usj-yellow); color: #2F2A28 !important; }
.usj-ph a.usj-ph-btn:hover { background: #f5df1f; }

/* category chips (sticky) */
.usj-ph-chips { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--usj-sand); }
.usj-ph .usj-ph-chips .usj-ph-wrap { max-width: 1280px; display: flex; justify-content: center; gap: 6px; padding-top: 12px; padding-bottom: 12px; }
.usj-ph .usj-ph-chips a { flex: 0 0 auto; padding: 7px 13px; border-radius: 999px; text-align: center; text-decoration: none; color: var(--usj-taupe-d) !important;
  font: 500 13.5px/1.3 var(--usj-sans); border: 1px solid var(--usj-sand); white-space: nowrap; }
.usj-ph .usj-ph-chips a:hover { background: var(--usj-cream); }
.usj-ph-chips em { font-style: normal; color: var(--usj-brown); font-weight: 600; margin-right: 8px; }

/* bands */
.usj-ph-band { padding: 52px 0; background: #fff; }
.usj-ph-band.usj-ph-alt { background: var(--usj-cream); }
.usj-ph-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; padding-bottom: 14px; border-bottom: 1px solid #e2d6c9; }
.usj-ph-num { font: 500 42px/1 var(--usj-serif); color: var(--usj-brown); }
.usj-ph .usj-ph-head h2 { font-size: 30px; flex: 1; }
.usj-ph-count { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--usj-brown-d); font-weight: 600; }

/* cards */
.usj-ph-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.usj-ph a.usj-ph-card, .usj-ph .usj-ph-nolink { background: #fff; border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit !important; display: flex; flex-direction: column;
  box-shadow: 0 1px 0 #ece3d9, 0 8px 24px rgba(78, 70, 68, .07); transition: transform .2s, box-shadow .2s; }
.usj-ph-band:not(.usj-ph-alt) .usj-ph-card { border: 1px solid #ece3d9; }
.usj-ph a.usj-ph-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(78, 70, 68, .15); }
.usj-ph a.usj-ph-card:focus-visible { outline: 2px solid var(--usj-brown); outline-offset: 3px; }
.usj-ph-card img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; display: block; border-radius: 0; }
.usj-ph-card > div { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.usj-ph .usj-ph-card h3 { font-size: 17px; margin-bottom: 6px; }
.usj-ph-card p { color: #5c5451; font-size: 14px; line-height: 1.5; margin-bottom: 10px !important; flex: 1; }
.usj-ph-card span { color: var(--usj-brown-d); font-weight: 600; font-size: 13px; }
.usj-ph-card span i { margin-left: 4px; transition: transform .2s; }
.usj-ph a.usj-ph-card:hover span i { transform: translateX(4px); }

@media (max-width: 1239px) {
  .usj-ph .usj-ph-chips .usj-ph-wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 860px; }
}
@media (max-width: 900px) {
  .usj-ph-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .usj-ph .usj-ph-hero h1 { font-size: 46px; }
}
@media (max-width: 700px) {
  .usj-ph-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .usj-ph .usj-ph-wrap { padding: 0 16px; }
  .usj-ph-hero > img { width: 100%; opacity: .25; -webkit-mask-image: none; mask-image: none; }
  .usj-ph-hero .usj-ph-wrap { padding: 52px 16px 56px; }
  .usj-ph .usj-ph-hero h1 { font-size: 38px; }
  .usj-ph-lede { font-size: 16px; }
  .usj-ph .usj-ph-chips .usj-ph-wrap { display: flex; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .usj-ph-chips .usj-ph-wrap::-webkit-scrollbar { display: none; }
  .usj-ph-band { padding: 40px 0; }
  .usj-ph-num { font-size: 34px; }
  .usj-ph .usj-ph-head h2 { font-size: 24px; }
  .usj-ph-count { width: 100%; }
  .usj-ph-grid { grid-template-columns: 1fr; gap: 10px; }
  .usj-ph a.usj-ph-card, .usj-ph .usj-ph-nolink { flex-direction: row; }
  .usj-ph-card img { width: 110px; flex: 0 0 110px; aspect-ratio: auto; height: auto; min-height: 100%; }
  .usj-ph-card > div { padding: 12px 14px; }
  .usj-ph-card p { margin-bottom: 0 !important; }
  .usj-ph-card span { display: none; }
}
