/* FAQ accordion (markup and schema code: -faq.php)
   Loaded only on pages that link it in their "doctitle" region.
   Follows the look of the services page in -desktop-style.css: navy and red,
   4px corners, soft navy shadows, short red rule above the section, ringed navy circles.
-----------------------------------------------------------------------------*/

/* section
-----------------------------------------------------------------------------*/
.faq {
--navy: #003b65;
--red: #d12128;
--blue: #08568d;
position: relative;
clear: both;
margin: 48px 0px 40px 0px;
padding-top: 44px;
border-top: 1px solid #ccc;
}
.faq:before {
content: "";
position: absolute;
top: -2px;
left: 0px;
width: 64px;
height: 3px;
background: var(--red);
}
.faq h2 { padding: 0px 0px 24px 0px; }

/* questions
-----------------------------------------------------------------------------*/
.faq_item {
margin: 0px 0px 16px 0px;
overflow: hidden;
border-top: 4px solid rgba(0, 59, 101, 0.16);
border-radius: 4px;
background: #fff;
box-shadow: 0px 4px 22px rgba(0, 59, 101, 0.12);
transition: border-color 250ms ease-in, box-shadow 250ms ease-in;
}
.faq_item:last-child { margin-bottom: 0px; }
.faq_item:hover { box-shadow: 0px 8px 26px rgba(0, 59, 101, 0.2); }
.faq_item:hover, .faq_item[open] { border-top-color: var(--red); }

/* the whole row is the button */
.faq_question {
display: flex;
align-items: center;
gap: 22px;
min-height: 48px;
padding: 18px 24px;
list-style: none;
cursor: pointer;
background: linear-gradient(to bottom, #fff 0px, #f7f9fa 100%);
}
.faq_question::-webkit-details-marker { display: none; }
.faq_question::marker { content: ""; }
.faq_question:focus-visible {
outline: 3px solid var(--blue);
outline-offset: -5px;
}

/* open question: the navy of the closing banners */
.faq_item[open] > .faq_question {
background: linear-gradient(100deg, #003b65 0%, #08568d 100%);
}
.faq_item[open] > .faq_question:focus-visible { outline-color: #fff; }

.faq_num {
display: flex;
align-items: center;
justify-content: center;
flex: 0 0 auto;
width: 40px;
height: 40px;
margin-left: 4px;
border-radius: 50%;
color: #fff;
background: var(--navy);
box-shadow: 0px 0px 0px 5px rgba(0, 59, 101, 0.1);
font-family: "Poppins", serif;
font-size: 16px;
line-height: 1;
font-weight: 600;
transition: background 250ms ease-in;
}
.faq_question:hover .faq_num { background: var(--red); }
.faq_item[open] > .faq_question .faq_num {
background: var(--red);
box-shadow: 0px 0px 0px 5px rgba(255, 255, 255, 0.18);
}
.faq .faq_question h3 {
flex: 1 1 auto;
min-width: 0;
margin: 0px;
padding: 0px;
color: var(--navy);
font-size: 20px;
line-height: 28px;
font-weight: 600;
}
.faq .faq_item[open] > .faq_question h3 { color: #fff; }

/* plus sign, turns into a minus when the answer is open */
.faq_toggle {
position: relative;
flex: 0 0 auto;
width: 36px;
height: 36px;
border-radius: 50%;
color: #fff;
background: var(--red);
transition: transform 250ms ease-in;
}
.faq_toggle:before, .faq_toggle:after {
content: "";
position: absolute;
top: 50%;
left: 50%;
width: 14px;
height: 2px;
margin: -1px 0px 0px -7px;
border-radius: 2px;
background: currentColor;
transition: transform 250ms ease-in;
}
.faq_toggle:after { transform: rotate(90deg); }
.faq_item[open] > .faq_question .faq_toggle {
color: var(--red);
background: #fff;
transform: rotate(180deg);
}
.faq_item[open] > .faq_question .faq_toggle:after { transform: rotate(0deg); }

/* answers
-----------------------------------------------------------------------------*/
.faq_answer {
padding: 22px 82px 26px 90px;
background: #fff;
}
.faq .faq_answer p {
margin: 0px;
padding: 0px;
color: #3d3d3d;
line-height: 31px;
}
.faq_answer a { font-weight: 600; }

/* smooth open / close height where the browser supports it; elsewhere it simply opens */
@supports (interpolate-size: allow-keywords) {
.faq { interpolate-size: allow-keywords; }
.faq_item::details-content {
height: 0px;
overflow: clip;
transition: height 280ms ease, content-visibility 280ms allow-discrete;
}
.faq_item[open]::details-content { height: auto; }
}

/* tablet */
@media screen and (max-width: 1140px) {
.faq_answer { padding-right: 24px; }
}

/* mobile */
@media screen and (max-width: 640px) {
.faq { margin: 36px 0px 30px 0px; padding-top: 30px; }
.faq h2 { padding-bottom: 18px; }
.faq_item { margin-bottom: 12px; }
.faq_question { gap: 12px; padding: 14px; }
.faq_num { display: none; }
.faq .faq_question h3 { font-size: 17px; line-height: 24px; }
.faq_toggle { width: 32px; height: 32px; }
.faq_toggle:before, .faq_toggle:after { width: 12px; margin-left: -6px; }
.faq_answer { padding: 16px 14px 20px 14px; }
.faq .faq_answer p { line-height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
.faq_item, .faq_num, .faq_toggle, .faq_toggle:before, .faq_toggle:after, .faq_item::details-content { transition: none; }
}

/* printing: no gradient, so the open question stays readable */
@media print {
.faq_toggle { display: none; }
.faq_item { box-shadow: none; }
.faq_item[open] > .faq_question { background: none; }
.faq .faq_item[open] > .faq_question h3 { color: #003b65; }
}
