/* Ethics Review page. Loaded only on this page. Every selector is scoped to .ethics-* so the header, footer and other pages are unaffected. */

.ethics-section a:focus-visible, .ethics-section summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

/* Side-navigation layout: the shared On This Page sidebar (hub-layout / service-page-layout, as on Faculty Research)
   on the left, sections in the content column on the right, separated by dividers like .faculty-section. */
.ethics-content { display: grid; gap: 0; }
.ethics-content .container { margin-inline: 0; width: auto; }
/* scroll-margin adds to the page's 104px scroll-padding; 60px lands a clicked section above the sidebar's 180px reading line, so the clicked link is the one marked active. */
.ethics-section { border-top: 1px solid var(--line); padding-block: 56px; scroll-margin-top: 60px; }
.ethics-section:first-child { border-top: 0; padding-top: 0; }
.ethics-register { border-top: 0; }
.ethics-eyebrow { color: var(--blue); font-family: Montserrat, Arial, sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .14em; margin: 0 0 16px; text-transform: uppercase; }
.ethics-section h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.12; margin: 0 0 20px; text-wrap: balance; }
.ethics-section h3 { font-size: 20px; line-height: 1.3; margin: 0 0 10px; }
.ethics-head { margin-bottom: clamp(36px, 4vw, 56px); max-width: 760px; }
.ethics-head p:not(.ethics-eyebrow) { color: var(--body); font-size: 17px; line-height: 1.7; margin: 0; }
.ethics-split { align-items: start; column-gap: clamp(32px, 5vw, 80px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); margin-bottom: clamp(40px, 5vw, 64px); }
.ethics-prose p { color: var(--body); font-size: 17px; line-height: 1.75; margin: 0 0 18px; max-width: 64ch; }

/* Cards: a restrained grid with a blue top rule. */
.ethics-cards { display: grid; gap: clamp(18px, 2.2vw, 28px); }
.ethics-cards--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ethics-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; padding: 28px 24px; transition: transform 420ms cubic-bezier(.22,.61,.36,1), box-shadow 420ms cubic-bezier(.22,.61,.36,1); }
.ethics-card p { color: var(--body); font-size: 15px; line-height: 1.65; margin: 0 0 16px; }
@media (hover: hover) and (pointer: fine) { .ethics-card:hover { box-shadow: 0 14px 30px #182E6F14; transform: translateY(-4px); } }
.ethics-pending { align-self: flex-start; background: #FFF6DB; border-radius: 6px; color: #5C4300; font-size: 13px; font-weight: 600; margin-top: auto; padding: 6px 10px; }

/* Why it matters: numbered principles in a clean list. */
.ethics-principles { display: grid; gap: clamp(22px, 3vw, 36px) clamp(28px, 4vw, 56px); grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.ethics-principles li { border-top: 1px solid var(--line); padding-top: 22px; }
.ethics-number { color: var(--gold); display: block; font-family: Montserrat, Arial, sans-serif; font-size: 14px; font-weight: 700; letter-spacing: .08em; margin-bottom: 12px; }
.ethics-principles p { color: var(--body); font-size: 16px; line-height: 1.65; margin: 0; }

/* Timeline: numbered circles on a connecting line. */
.ethics-timeline { list-style: none; margin: 0 0 40px; padding: 0; position: relative; max-width: 820px; }
.ethics-timeline::before { background: var(--line); bottom: 28px; content: ''; left: 27px; position: absolute; top: 28px; width: 2px; }
.ethics-timeline li { display: grid; gap: 24px; grid-template-columns: 56px minmax(0, 1fr); padding-bottom: 32px; position: relative; }
.ethics-timeline li:last-child { padding-bottom: 0; }
.ethics-step { align-items: center; background: var(--white); border: 2px solid var(--navy); border-radius: 50%; color: var(--navy); display: flex; font-family: Montserrat, Arial, sans-serif; font-size: 15px; font-weight: 700; height: 56px; justify-content: center; width: 56px; }
.ethics-timeline p { color: var(--body); font-size: 16px; line-height: 1.7; margin: 0; }
.ethics-reminder { background: var(--light); color: var(--body); font-size: 15px; line-height: 1.7; margin: 0; max-width: 820px; padding: 18px 22px; }
.ethics-reminder strong { color: var(--ink); }
.ethics-note { color: var(--body); font-size: 15px; line-height: 1.7; margin: 24px 0 0; max-width: 72ch; }

/* Checklist panel with check marks. */
.ethics-checklist { align-items: start; column-gap: clamp(32px, 5vw, 80px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ethics-checklist > div > p:not(.ethics-eyebrow) { color: var(--body); font-size: 17px; line-height: 1.7; }
.ethics-check-list { background: var(--light); border-radius: 10px; list-style: none; margin: 0; padding: 26px 28px; }
.ethics-check-list li { color: var(--ink); font-size: 16px; line-height: 1.6; padding: 12px 0 12px 34px; position: relative; }
.ethics-check-list li + li { border-top: 1px solid var(--line); }
.ethics-check-list li::before { border: 2px solid var(--blue); border-radius: 4px; content: ''; height: 14px; left: 0; position: absolute; top: 15px; width: 14px; }
.ethics-check-list li::after {
  /* impeccable-disable-next-line side-tab -- Intentional exception: this border-drawn pseudo-element is a checklist checkmark used as a semantic visual marker, not a decorative side accent. */
  border-bottom: 2px solid var(--blue); border-left: 2px solid var(--blue); content: ''; height: 5px; left: 3px; position: absolute; top: 16px; transform: rotate(-45deg); width: 8px; }

/* Resources: a plain list with a blue rule, not a grid of boxes. */
.ethics-resource-list { border-top: 1px solid var(--navy); list-style: none; margin: 0; padding: 0; }
.ethics-resource-list li { border-bottom: 1px solid var(--line); display: grid; gap: 8px 40px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; padding: 22px 0; align-items: center; }
.ethics-resource-list h3 { margin: 0; }
.ethics-resource-list p { color: var(--body); font-size: 15px; line-height: 1.6; margin: 0; }
.ethics-resource-list .ethics-pending { margin: 0; }

/* FAQ: native details and summary, so the keyboard and screen readers work without script. */
.ethics-faq { max-width: 880px; }
.ethics-faq details { border-bottom: 1px solid var(--line); }
.ethics-faq details:first-of-type { border-top: 1px solid var(--line); }
.ethics-faq summary { color: var(--ink); cursor: pointer; font-family: Montserrat, Arial, sans-serif; font-size: 18px; font-weight: 600; line-height: 1.4; list-style: none; padding: 20px 40px 20px 0; position: relative; }
.ethics-faq summary::-webkit-details-marker { display: none; }
.ethics-faq summary::after { color: var(--blue); content: '+'; font-size: 24px; position: absolute; right: 0; top: 14px; transition: transform 320ms cubic-bezier(.22,.61,.36,1); }
.ethics-faq details[open] summary::after { transform: rotate(45deg); }
.ethics-faq details p { color: var(--body); font-size: 16px; line-height: 1.7; margin: 0 0 22px; max-width: 68ch; }

/* Contact panel. */
.ethics-contact { align-items: start; column-gap: clamp(32px, 5vw, 80px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ethics-contact > div > p:not(.ethics-eyebrow) { color: var(--body); font-size: 17px; line-height: 1.7; }
.ethics-contact-panel { background: var(--white); border: 1px solid var(--line); border-radius: 10px; display: grid; gap: 6px 20px; grid-template-columns: max-content minmax(0, 1fr); margin: 0; padding: 26px 28px; }
.ethics-contact-panel dt { color: var(--navy); font-family: Montserrat, Arial, sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .08em; padding-top: 6px; text-transform: uppercase; }
.ethics-contact-panel dd { color: var(--ink); font-size: 16px; margin: 0; overflow-wrap: anywhere; padding-top: 6px; }
.ethics-contact-panel a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* Registration panel: the one primary action at the end of the page. */
.ethics-register { padding-top: 0; }
.ethics-register-panel { background: var(--deep); border-radius: 12px; color: #DCE5F7; padding: clamp(40px, 5vw, 64px); }
.ethics-register-panel .ethics-eyebrow { color: var(--gold); }
.ethics-register-panel h2 { color: var(--white); }
.ethics-register-panel > p:not(.ethics-eyebrow):not(.ethics-note) { font-size: 17px; line-height: 1.7; max-width: 60ch; }
.ethics-register-panel .ethics-pending { background: #ffffff1a; color: var(--white); }
.ethics-register-panel .ethics-note { color: #C9D6F0; }
.ethics-pending-cta .button-gold { gap: 12px; }
.ethics-resource-list .button { justify-self: start; text-align: center; }
.ethics-pending-cta { margin: 24px 0 0; }

/* Desktop content column is narrower than the full container, so four-up groups become two-up. */
@media (min-width: 1024px) {
    .ethics-content .ethics-cards--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) and (max-width: 1199px) {
    .ethics-split, .ethics-checklist, .ethics-contact { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
}

/* Responsive: recomposed for narrow screens. */
@media (max-width: 1023px) {
    .ethics-cards--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ethics-split, .ethics-checklist, .ethics-contact { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
    .ethics-resource-list li { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
    .ethics-cards--four, .ethics-principles { grid-template-columns: minmax(0, 1fr); }
    .ethics-timeline li { gap: 16px; grid-template-columns: 48px minmax(0, 1fr); }
    .ethics-timeline::before { left: 23px; }
    .ethics-step { height: 48px; width: 48px; }
    .ethics-contact-panel { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .ethics-contact-panel dt { padding-top: 14px; }
    .ethics-register-panel { padding: 32px 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .ethics-card, .ethics-faq summary::after { transition: none; }
    .ethics-card:hover { transform: none; }
}
