/* DoctorLoanDirect — WordPress additions to the Fintech Precision system (system.css).
   Only what the static design did not need: real data states (photos, ratings, reviews, success
   messages, the Calendly widget), editor content, pagination, the admin bar and core classes. */

/* ---------- WordPress core ---------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }
@media (max-width: 600px) { .admin-bar .nav { top: 0; } #wpadminbar { position: absolute; } }
@media print { #wpadminbar { display: none !important; } html { margin-top: 0 !important; } }

/* ---------- editor content (page.php, single.php) ---------- */
.wp-content-section .wp-content { margin-inline: auto; }
.wp-content img, .wp-content video, .wp-content iframe { max-width: 100%; height: auto; border-radius: var(--r-panel); }
.wp-content figure { margin: 1.6em 0; }
.wp-content figcaption, .wp-content .wp-caption-text, .wp-content .wp-element-caption { margin-top: 8px; font-size: var(--t-micro); color: var(--l-faint); }
.wp-content .alignleft { float: left; margin: .4em 1.4em 1em 0; }
.wp-content .alignright { float: right; margin: .4em 0 1em 1.4em; }
.wp-content .aligncenter { display: block; margin-inline: auto; }
.wp-content blockquote { margin: 1.6em 0; padding-left: 20px; border-left: 2px solid var(--pine-bright); color: var(--l-text); }
.wp-content table { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
.wp-content th, .wp-content td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.wp-content th { color: var(--l-text); font-weight: 500; }
.wp-content strong { color: var(--l-text); font-weight: 600; }
/* 1.x article markup (seeded sample article) */
.wp-content .lead { font-size: var(--t-lead); color: var(--l-text); }
.wp-content .table-wrap { overflow-x: auto; }
.wp-content td.yes { color: var(--pine); }
.wp-content td .sub { display: block; font-size: var(--t-micro); color: var(--l-faint); }
.wp-content .callout { padding: 22px 24px; border-radius: var(--r-panel); }
.wp-content .callout .ct { font-weight: 500; color: var(--mint); margin-bottom: 6px; }
.wp-content .callout p { color: var(--d-text); }
.wp-content .cta-inline { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 24px; border-radius: var(--r-panel); background: var(--soft); }
.wp-content .cta-inline .btn-primary { min-height: 48px; padding: 0 22px; display: inline-flex; align-items: center; border-radius: var(--r-pill); background: var(--pine); color: #fff; text-decoration: none; }
.wp-content .faq .qa { border-top: 1px solid var(--line); }
.wp-content .faq .qa > button { all: unset; box-sizing: border-box; display: flex; justify-content: space-between; gap: 16px; width: 100%; padding: 16px 0; cursor: pointer; font-weight: 500; color: var(--l-text); }
.wp-content .faq .qa > button:focus-visible { outline: 2px solid var(--focus, var(--brass-deep)); outline-offset: 2px; }
.wp-content .faq .qa .ans { display: none; padding-bottom: 16px; }
.wp-content .faq .qa[data-open="true"] .ans { display: block; }
.gb-layout.no-rail { grid-template-columns: minmax(0, 1fr); }
.gb-layout.no-rail .guide-figure, .gb-layout.no-rail .guide-article { grid-column: 1; width: 100%; max-width: 820px; justify-self: center; }

/* ---------- pagination ---------- */
.pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.pager .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: var(--r-pill); font-size: var(--t-small); color: var(--l-text); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; }
.pager a.page-numbers:hover { box-shadow: inset 0 0 0 1px var(--pine); color: var(--pine); }
.pager .page-numbers.current { background: var(--ink); color: #fff; box-shadow: none; }

/* ---------- officers: headshots, ratings, profile links, reviews ---------- */
.avatar.has-photo { overflow: hidden; padding: 0; }
.avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.officer-rating, .dir-rating { margin-top: 10px; font-size: var(--t-micro); color: var(--l-faint); }
.dir-rating { margin-top: 4px; }
.lo-rating { margin-top: 12px; }
.lo-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.lo-channels a { color: inherit; text-decoration: underline; text-decoration-color: rgba(138, 217, 199, .45); text-underline-offset: 3px; }
.lo-channels a:hover { color: var(--mint); }
.lo-review-summary { margin-top: 10px; font-size: var(--t-small); font-weight: 500; color: var(--l-text); }
.lo-review { margin-top: 12px; padding: 22px 24px; border-radius: var(--r-md); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.lo-review > p:not(.lo-review-name):not(.lo-review-meta) { margin-top: 12px; font-size: var(--t-text); color: var(--l-muted); }
.lo-review-sent { margin-top: 16px; }

/* ---------- Calendly widget, once loaded ---------- */
.booking-widget { margin-top: 20px; height: 700px; min-height: 700px; border-radius: var(--r-md); overflow: hidden; background: #fff; }
.booking-widget iframe { width: 100%; height: 100%; border: 0; }
.booking.is-live .booking-stage { display: none; }

/* ---------- form confirmation after the admin-post redirect ---------- */
.form-sent { padding: 22px 24px; border-radius: var(--r-md); background: rgba(138, 217, 199, .1); box-shadow: inset 0 0 0 1px var(--d-line-2); }
.form-sent h2, .form-sent h3 { font-size: var(--t-h4); font-weight: 500; letter-spacing: -.02em; color: var(--d-text); }
.form-sent p { margin-top: 8px; color: var(--d-muted); }
.form-sent:focus { outline: none; }
.panel .form-sent, .light .form-sent { background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); color: var(--l-text); }
.panel .form-sent p, .light .form-sent p { color: var(--l-muted); }
.btn.is-sending { opacity: .7; pointer-events: none; }

/* ---------- documented program records (real data) ---------- */
.records-intro p { font-size: var(--t-text); color: var(--l-muted); }
.records-live { padding: 20px; border-radius: var(--r-md); background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--l-muted); }
.records-live h3 { color: var(--l-text); margin-bottom: 6px; }
.program-table td a { white-space: nowrap; }
/* screen-reader text inside a scrolling table stays inside the scroll box */
.table-scroll { position: relative; }

/* ---------- coordinator one-pager ---------- */
.onepager-stage { max-width: 820px; margin-inline: auto; }
.onepager-fine { max-width: 820px; margin: 20px auto 0; color: var(--d-faint); }

/* ---------- sticky mobile CTA (theme 2.0.3) ---------- */
.dld-mobile-cta {
  display: none;
}
@media (max-width: 768px) {
  body:not(.page-contact):not(.page-template-page-contact-php) {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
  .dld-mobile-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    align-items: stretch;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(243, 245, 242, 0.96);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 -8px 28px -12px rgba(15, 42, 36, 0.35), inset 0 1px 0 rgba(15, 42, 36, 0.06);
    font-family: var(--font);
  }
  .dld-mobile-cta .btn {
    display: inline-flex;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 0 8px;
    font-size: 12.5px;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .dld-mobile-cta .btn-pine {
    --bg: #0E5E4E;
    --fg: #fff;
  }
  .dld-mobile-cta .btn-outline {
    --bg: #fff;
    --fg: #0F2A24;
    --lift: inset 0 0 0 1px #0F2A24;
    box-shadow: inset 0 0 0 1px #0F2A24;
    background: #fff;
  }
}
@media print {
  .dld-mobile-cta { display: none !important; }
  body { padding-bottom: 0 !important; }
}
