/* ===== Job Description Samples (/job-descriptions/) — page styles =====
 *
 * Scoped to .jd-page so these rules never leak into the ~100 other pages
 * that load compliance/assets/css/compliance.css alongside this file. That
 * stylesheet supplies the container width and hero clearance
 * (.compliance-wiki, .compliance-wiki--hero, both added to .jd-page in the
 * markup); everything below is specific to this page's sidebar, role grid
 * and step list.
 *
 * Loaded after compliance.css, so a selector of equal specificity here wins
 * without needing !important anywhere below.
 */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---- Search box (plain GET form, no JS) ---- */

.jd-search-wrap {
    max-width: 560px;
    margin: 0 auto 32px;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.jd-search {
    width: 100%;
    max-width: 560px;
    padding: 14px 18px;
    border: 1px solid #d6d3d1;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #1a1a1a;
}
.jd-search:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.jd-search-wrap button {
    flex-shrink: 0;
    padding: 0 22px;
    border: none;
    border-radius: 10px;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
}
.jd-search-wrap button:hover {
    background: #1d4ed8;
}

/* ---- Layout: sidebar + role grid ---- */

.jd-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
    align-items: start;
}
@media (max-width: 780px) {
    .jd-layout { grid-template-columns: 1fr; }
}

.jd-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.jd-sidebar__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #57534e;
    text-decoration: none;
}
a.jd-sidebar__item:hover {
    background: #f5f5f4;
}
.jd-sidebar__item--active,
a.jd-sidebar__item--active:hover {
    background: #eff6ff;
    color: #1d4ed8;
}
.jd-sidebar__item--soon {
    opacity: 0.55;
    cursor: default;
}
.jd-sidebar__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.jd-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px 32px;
}
@media (max-width: 900px) {
    .jd-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .jd-grid { grid-template-columns: 1fr; }
}
.jd-grid__item {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}
.jd-grid__item:hover {
    text-decoration: underline;
}

.jd-empty {
    color: #78716c;
    font-size: 0.95rem;
    margin: 24px 0 0;
}

/* ---- Contact CTA ---- */

.jd-contact-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin: 56px 0;
    padding: 28px 32px;
    border-radius: 16px;
    background: #dbeafe;
}
.jd-contact-cta h2 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 4px;
}
.jd-contact-cta p {
    font-size: 0.92rem;
    color: #57534e;
    margin: 0;
}
/* Colour, shape and hover motion come from .btn-brand, the site's own
   signup-button style, so this box matches every other primary CTA. */
.jd-contact-cta__btn {
    flex-shrink: 0;
    text-decoration: none;
    white-space: nowrap;
}

/* ---- Intro + how-to steps ---- */

.jd-intro {
    margin: 0 0 40px;
}
.jd-intro p {
    font-size: 1rem;
    line-height: 1.6;
    color: #44403c;
}

.jd-section-heading {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 28px;
}

.jd-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 40px;
    margin-bottom: 20px;
}
@media (max-width: 700px) {
    .jd-steps { grid-template-columns: 1fr; }
}
.jd-step {
    display: flex;
    gap: 16px;
}
.jd-step__num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 800;
    font-size: 0.95rem;
}
.jd-step h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px;
}
.jd-step p {
    font-size: 0.92rem;
    line-height: 1.55;
    color: #57534e;
    margin: 0;
}

/* ---- Article-style content (heading + paragraphs), used by /letter/ ---- */

.jd-content h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 36px 0 14px;
}
.jd-content h2:first-child {
    margin-top: 0;
}
.jd-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 24px 0 8px;
}
.jd-content h3:first-child {
    margin-top: 0;
}
.jd-content p {
    font-size: 1rem;
    line-height: 1.65;
    color: #44403c;
    margin: 0 0 16px;
}
.jd-content a {
    color: #2563eb;
    text-decoration: underline;
}
.jd-content ul {
    list-style: disc;
    margin: 0 0 16px;
    padding-left: 22px;
}
.jd-content li {
    font-size: 1rem;
    line-height: 1.65;
    color: #44403c;
    margin: 0 0 8px;
}
.jd-content li strong {
    color: #1a1a1a;
}
.jd-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 24px;
    font-size: 0.92rem;
}
.jd-content th {
    background: #eff6ff;
    color: #1a1a1a;
    font-weight: 700;
    text-align: left;
    padding: 12px 16px;
    border: 1px solid #e7e5e4;
}
.jd-content td {
    padding: 12px 16px;
    border: 1px solid #e7e5e4;
    color: #44403c;
    line-height: 1.5;
    vertical-align: top;
}

/* ---- Role detail page (/job-descriptions/{slug}/) ---- */

.jd-detail-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 20px 0 14px;
}
.jd-detail-summary {
    font-size: 1rem;
    line-height: 1.65;
    color: #44403c;
    margin: 0 0 28px;
}
.jd-detail-lead {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #57534e;
    margin: 14px 0 28px;
}

.jd-download-heading {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 14px;
}
.jd-downloads {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 0 0 28px;
}
@media (max-width: 560px) {
    .jd-downloads { grid-template-columns: 1fr; }
}
.jd-download-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
}
.jd-download-card:hover {
    background: #dbeafe;
}
.jd-download-card svg:first-child {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}
.jd-download-card span {
    flex: 1;
    text-decoration: underline;
    color: #2563eb;
}
.jd-download-card svg:last-child {
    flex-shrink: 0;
    color: #78716c;
}

/* A native <details> for the TOC, no JS needed to expand/collapse it —
   holiday-toc.js only adds the scrollspy highlight on top, via the shared
   .holiday-toc-box marker class. */
.jd-toc-box {
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 16px 20px;
    background: #eff6ff;
    margin: 0 0 32px;
}
.jd-toc-box summary {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1a1a1a;
    cursor: pointer;
}
.jd-toc-box ul {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.jd-toc-box li ul {
    margin: 6px 0 0 18px;
}
.jd-toc-box a {
    color: #2563eb;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
}
.jd-toc-box a:hover { text-decoration: underline; }
.jd-toc-box a.is-active {
    color: #1e3a8a;
    text-decoration: underline;
}

/* The template/sample content boxes — raw HTML from data.php, styled
   generically since their own h3/p/ul structure varies role to role. */
.jd-box {
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    padding: 24px 28px;
    background: #eff6ff;
    margin: 0 0 20px;
}
.jd-box h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 20px 0 6px;
}
.jd-box h3:first-child {
    margin-top: 0;
}
.jd-box p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #44403c;
    margin: 0;
}
.jd-box ul {
    list-style: disc;
    margin: 0;
    padding-left: 20px;
}
.jd-box li {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #44403c;
}

/* Plain question/answer blocks, not an accordion — no toggle, everything
   visible at once. */
.jd-faqs {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0 0 20px;
}
.jd-faq {
    border: 2px solid #2563eb;
    border-radius: 12px;
    padding: 18px 22px;
    background: #fff;
}
.jd-faq h3 {
    font-size: 0.98rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
}
.jd-faq p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #44403c;
    margin: 0;
}
