/* physician-mortgage-loans.html — page-only composition. Components come from ../system.css. */

/* rules + whole offer: reading column with a pinned question */
.read-grid { align-items: start; }
.read-grid .prose h2 { font-size: var(--t-h2); line-height: 1.04; letter-spacing: var(--track-display); font-weight: 300; max-width: 14ch; }
.read-grid .prose h2 + p { margin-top: 24px; }
.read-grid .prose p { font-size: var(--t-lead); }
.read-grid .prose h2:not(:first-child) { margin-top: clamp(56px, 6vw, 88px); }
.read-grid .sticky-head { padding-top: 8px; }

/* six details worksheet */
.worksheet-section { isolation: isolate; overflow: clip; }
.worksheet-section h2 { max-width: 12ch; }
.ws-progress { margin-top: 36px; max-width: 360px; }
.ws-meter { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.ws-meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--pine-bright), var(--mint-hi)); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); }
.ws-count { margin-top: 12px; font-size: var(--t-small); color: var(--d-text) !important; font-variant-numeric: tabular-nums; }
.ws-count b { font-weight: 500; color: var(--mint); }
.worksheet-section .fine { margin-top: 16px; max-width: 40ch; }
.worksheet { padding: 0; overflow: hidden; }
.ws-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px clamp(20px, 2.4vw, 32px); border-bottom: 1px solid var(--d-line); }
.ws-head h3 { font-size: var(--t-body); }
.ws-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
.ws-list li { border-bottom: 1px solid var(--d-line); }
.ws-list li:nth-child(odd) { border-right: 1px solid var(--d-line); }
.ws-list li:nth-last-child(-n+2) { border-bottom: 0; }
.ws-item { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 16px; align-items: start; padding: 26px clamp(20px, 2.4vw, 32px); cursor: pointer; height: 100%; transition: background-color var(--dur-fast); }
.ws-item:hover { background: rgba(138, 217, 199, .04); }
.ws-item input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; cursor: pointer; }
.ws-box { position: relative; width: 24px; height: 24px; margin-top: 1px; border-radius: 7px; box-shadow: inset 0 0 0 1.5px var(--d-line-2); background: rgba(255, 255, 255, .03); }
.ws-box::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--mint); transform: scale(.4); opacity: 0; transition: transform .4s var(--ease-out), opacity .25s; }
.ws-box::after { content: ""; position: absolute; left: 7px; top: 7px; width: 10px; height: 5.5px; border-left: 2px solid var(--c0); border-bottom: 2px solid var(--c0); transform: rotate(-45deg) scale(.6); opacity: 0; transition: transform .4s var(--ease-out), opacity .25s; }
.ws-item input:checked + .ws-box::before { transform: scale(1); opacity: 1; }
.ws-item input:checked + .ws-box::after { transform: rotate(-45deg) scale(1); opacity: 1; }
.ws-item input:focus-visible + .ws-box { outline: 2px solid var(--focus); outline-offset: 3px; }
.ws-text strong { display: block; font-size: var(--t-h4); font-weight: 500; letter-spacing: -.02em; color: #fff; }
.ws-text span { display: block; margin-top: 8px; font-size: var(--t-text); line-height: 1.5; color: var(--d-muted); }
.ws-item input:checked ~ .ws-text strong { color: var(--mint-hi); }
.ws-done-msg { padding: 18px clamp(20px, 2.4vw, 32px); border-top: 1px solid var(--d-line); font-size: var(--t-small); color: var(--mint) !important; }

/* documented programs */
.records { align-items: start; }
.records-empty { padding: clamp(24px, 2.6vw, 32px); }
.records-empty h3 { font-size: var(--t-h4); }
.records-empty p + p { margin-top: 18px; }
.records-table-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.records-table-head h3 { font-size: var(--t-body); }
.records-table .table tbody th { width: 40%; color: var(--l-text); }
.records-table .ask { color: var(--brass-deep); }

/* bring questions */
.media-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 40%; }
.faq-link { margin-top: 28px; }

@media (max-width: 760px) {
  .ws-list { grid-template-columns: 1fr; }
  .ws-list li:nth-child(odd) { border-right: 0; }
  .ws-list li:nth-last-child(2) { border-bottom: 1px solid var(--d-line); }
  .ws-head { flex-wrap: wrap; }
}
