/*
 * Canada Guide Stylesheet
 */

body.page--country-ca{
    --ca-red:#B22222;
    --ca-red-dark:#8C1D18;
    --ca-bg:#FBF8F2;
    --ca-white:#fff;
    --ca-border:#d8dee7;
    --ca-border-light:#dde5ef;
    --ca-border-tan:#e6dfd5;
    --ca-blue:#174a7c;
    --ca-text-muted:#5d6d7e;
    --ca-text-muted-alt:#5f6b76;
    --ca-text-light:#6c7a86;
    --ca-shadow-sm:0 2px 8px rgba(0,0,0,.03);
    --ca-shadow:0 2px 8px rgba(0,0,0,.04);
    --ca-shadow-lg:0 4px 12px rgba(0,0,0,.08);
}


body.page--country-ca #content {
	padding-top: 0px;
}

/* Full-width hero */

.canada-hero {
        background: var(--ca-bg);
    padding: 70px 0;
    margin-bottom: 50px;
    border-bottom: 2px solid rgba(178, 34, 34, 0.15);
}

body #content .canada-hero h1 {
	font-size: 3rem; 
}

body #content .canada-hero p {
	font-size: 2rem; 
	line-height: 1.8;
}

@media (min-width: 992px) {
body #content .canada-hero .btn-primary {
	margin-right: 12px;
}
}


/* Optional: remove bottom margin on last paragraph */

.canada-hero p:last-of-type {
    margin-bottom: 1.75rem;
}

@media (min-width: 992px) {
    .canada-glance {
  margin-top: 20px;
  margin-left: 20px;
    }
}

.canada-glance {
    background: var(--ca-white);
    border: 1px solid var(--ca-border-tan);
    
    border-radius: 14px;
    padding: 1.5rem 3rem;
}

body #content .canada-glance h3 {
    margin: 1rem 0 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ca-red) !important;
}

body #content .canada-glance ul {
    
    list-style: none;
}

body #content .canada-glance li {
    display: flex;
    align-items: flex-start;
    margin-bottom: .85rem;
    font-size: 1.6rem;
    line-height: 1.45;
}

.canada-glance li:last-child {
    margin-bottom: 0;
}

.canada-glance li svg {
   color: var(--ca-red) !important;
    margin-right: .75rem;
    margin-top: .4rem;
    font-size: .8em;
}

body.page--country-ca #content .btn-primary {
	background-color: var(--ca-red) !important;
	border: 1px solid var(--ca-red) !important;
	color: var(--ca-white);
}

body.page--country-ca #content .btn-primary:hover,
body.page--country-ca #content .btn-primary:focus {
	background: var(--ca-red-dark) !important;
	border: 1px solid var(--ca-red-dark) !important;
}

body.page--country-ca #content .btn-secondary {
  border: 1px solid rgba(178, 34, 34, 0.15) !important;
  color: var(--ca-red) !important;
}

body.page--country-ca #content .btn-secondary:hover,
body.page--country-ca #content .btn-secondary:focus {
  border: 1px solid var(--ca-red) !important;
  color: var(--ca-red) !important;
  background-color: rgba(178, 34, 34, 0.15) !important;
}

.canada-guide {
    margin: 4rem 0;
}

.guide-section + .guide-section {
    border-top: 1px solid var(--ca-border);
}

.guide-section:last-of-type{
    border-bottom:none;
}

.guide-section summary {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0;
    list-style: none;
    cursor: pointer;
}

.guide-section summary::-webkit-details-marker {
    display: none;
}

.guide-icon {
    flex: 0 0 50px;
    font-size: 3.6rem;
    color: var(--ca-red);
    text-align: center;
}

.guide-icon svg {
	overflow: visible;
}

.guide-summary {
    flex: 1;
}

.guide-summary h2 {
    margin: 0 0 .4rem;
    font-size: 1.6rem;
}

.guide-summary p {
    margin: 0;
    color: var(--ca-text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.guide-chevron {
    flex: 0 0 auto;
    align-self: center;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    background: var(--ca-white);
    border: 1px solid var(--ca-border);
    border-radius: 12px;

    color: var(--ca-blue);
    font-size: 1.35rem;

    transition:
        transform .25s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.guide-section[open] .guide-chevron {
    transform: rotate(180deg);
}

.guide-section summary:hover .guide-chevron {
    border-color: #b8c6d8;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.guide-content {
    padding: 0 0 2rem 66px;
}

[id] {
    scroll-margin-top: 100px;
}


/* ==========================================
   public Funding pathway
   ========================================== */

.pathway-card{
    float:right;
    width:340px;
    max-width:100%;
    margin:0 0 2rem 2rem;
    padding:2rem 2rem;
    background:var(--ca-white);
    border:1px solid var(--ca-border-light);
    border-radius:12px;
    box-shadow:var(--ca-shadow);
    text-align:center;
}

@media (max-width: 640px) {
    .pathway-card{
    float:none;
        margin:0 auto 2rem;
    }
}

.pathway-card svg{
    overflow: visible;
}


body #content .pathway-card h3{
    margin:0 0 1rem;
    color: var(--ca-red) !important;
}

.pathway-intro{
    max-width:36rem;
    margin:0 auto 2rem;
    color:var(--ca-text-muted-alt);
}

.pathway-flow{
    display:flex;
    flex-direction:column;
    align-items:center;
}

.pathway-step{
    max-width:28rem;
    line-height:1.5;
}

.pathway-step strong{
    display:block;
    font-size:1.5rem;
    font-weight:600;
}

.pathway-step small{
    display:block;
    margin-top:-24px;
    font-size:.95rem;
    color:var(--ca-text-light);
}

.pathway-arrow{
    margin:.9rem 0;
    font-size:1.5rem;
    color: var(--ca-red);
}

/* ==========================================================
   Related Resource
========================================================== */

.related-resource{
    margin:4rem auto 5rem;
    max-width:900px;
}

.resource-card{
    display:grid;
    grid-template-columns:1fr 300px;
    gap:2rem;
    align-items: center;

    background:var(--ca-white);
    border:1px solid var(--ca-border-light);
    border-radius:12px;
    padding:2rem 2.25rem;

    box-shadow:var(--ca-shadow-sm);
}

.resource-image img{
    display:block;
    width:100%;
    height:auto;

    border:1px solid var(--ca-border-light);
    border-radius:8px;

    box-shadow:var(--ca-shadow-lg);
}

@media (max-width:768px){

    .resource-card{
        grid-template-columns:1fr;
    }

    .resource-image{
        max-width:320px;
        margin:0 auto;
    }
}

.resource-label{
    margin:0 0 .5rem;

    font-size:.82rem;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.08em;

    color:var(--ca-red);
}

.resource-content h2{
    margin:0 0 .75rem;
}

.resource-content p{
    margin:0 0 1rem;
    max-width:65ch;
}

.resource-content p:last-of-type{
    margin-bottom:0;
}

/* Intro line with alert icon */

.resource-intro{
    margin-bottom:1rem;
}

.resource-intro svg {
    color:var(--ca-red);
    margin-right:.45rem;
}

/* Simple editorial text link */

.resource-link{
    font-weight:600;
    color:var(--ca-red);
    text-decoration:none;
}

.resource-link:hover{
    text-decoration:underline;
}




/* ==========================================================
   province Directory
========================================================== */

.province-directory{
    padding:4rem 0;
}

.province-directory-header{
	text-align:center;
	margin:0 auto 3rem;
}

body #content .province-directory-header h2{
    margin-bottom:.75rem;
    font-size: 3rem;
}

body #content .province-directory-header p{
    max-width:70ch;
    margin:0 auto;
    line-height:1.7;
}


/* ==========================================================
   province Accordion
========================================================== */

.province-accordion{

    background:var(--ca-white);

    border:1px solid var(--ca-border);
    border-radius:14px;

    overflow:hidden;

}

.province-section + .province-section{

    border-top:1px solid var(--ca-border);

}

.province-section summary{

    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:2rem;

    padding:1.25rem 1.5rem;

    cursor:pointer;

    list-style:none;

}

.province-section summary::-webkit-details-marker{

    display:none;

}

.province-section summary span{

    font-weight:600;

    color:var(--ca-blue);

}

/* ==========================================================
   Chevron
========================================================== */

.province-chevron{

    display:flex;
    align-items:center;
    justify-content:center;

    width:48px;
    height:48px;
    font-size:1.35rem;

    background:var(--ca-white);

    border:1px solid var(--ca-border);
    border-radius:12px;

    color:var(--ca-blue);

    transition:
        transform .25s ease,
        border-color .2s ease,
        box-shadow .2s ease;

}

.province-section[open] .province-chevron{

    transform:rotate(180deg);

}

.province-section summary:hover .province-chevron{

    border-color:#b9c8da;

    box-shadow:0 2px 8px rgba(0,0,0,.05);

}

/* ==========================================================
   Content
========================================================== */

.province-content{

    padding:0 1.5rem 1.75rem;

}





.surgeon-list{
    display:flex;
    flex-wrap:wrap;
    gap:2rem;

    margin:1.5rem 0 0;
    padding:0;

    list-style:none;
}

body #content .surgeon-list li{
    flex:1 1 320px;
    font-size: 1.4rem;
}

body #content .surgeon-list h4 {
	 font-size: 1.4rem !important;
}
