/* =========================================================================
   Collaborative Care resources: /collaborative-care-guide and
   /switching-from-aims. Long reading pages with a contents list, product
   screenshots and a PDF download. Reuses the Asendar palette tokens from
   asendar.css (the --asd-* variables). No em dashes anywhere in this file.
   ========================================================================= */

.cc-main { max-width: var(--maxw); margin: 0 auto; padding: 2.2rem 1.5rem 4rem; }

.cc-breadcrumb { font-family: var(--sans); font-size: 0.8rem; color: var(--asd-text-muted); margin-bottom: 1.4rem; }
.cc-breadcrumb a { color: var(--asd-text-2); }
.cc-breadcrumb a:hover { color: var(--asd-sage-deep); }
.cc-breadcrumb span { color: var(--asd-text-muted); padding: 0 0.35rem; }

.cc-hero { max-width: 780px; margin-bottom: 2.4rem; }
.cc-eyebrow { font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--asd-sage); }
.cc-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 4.4vw, 2.8rem); line-height: 1.14; color: var(--asd-text); margin: 0.6rem 0 1.1rem; }
.cc-hero p { font-family: var(--sans); font-size: 1.06rem; line-height: 1.7; color: var(--asd-text-2); margin: 0 0 0.9rem; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.4rem; }
.cc-actions .cc-meta { flex-basis: 100%; font-family: var(--sans); font-size: 0.8rem; color: var(--asd-text-muted); }

/* Two columns on a wide screen: contents on the left, the guide on the right. */
.cc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 3rem; align-items: start; }

.cc-toc { position: sticky; top: 118px; max-height: calc(100vh - 136px); overflow-y: auto; padding: 0.2rem 0.4rem 1rem 0; font-family: var(--sans); }
.cc-toc details { border: 0; }
.cc-toc summary { list-style: none; cursor: default; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--asd-text-muted); padding: 0.3rem 0 0.7rem; }
.cc-toc summary::-webkit-details-marker { display: none; }
.cc-toc ol { list-style: none; margin: 0; padding: 0; }
.cc-toc li { margin: 0; }
.cc-toc a { display: block; font-size: 0.86rem; line-height: 1.4; color: var(--asd-text-2); padding: 0.32rem 0.6rem; border-left: 2px solid var(--asd-border); }
.cc-toc a:hover { color: var(--asd-sage-deep); border-left-color: var(--asd-sage); }
.cc-toc a[aria-current="true"] { color: var(--asd-text); border-left-color: var(--asd-sage-deep); font-weight: 600; }
.cc-toc a:focus-visible, .cc-toc summary:focus-visible { outline: 2px solid var(--asd-sage-deep); outline-offset: 2px; border-radius: 2px; }

/* The guide text. */
.cc-doc { max-width: 780px; min-width: 0; font-family: var(--sans); color: var(--asd-text-2); }
.cc-doc h2 { font-family: var(--serif); font-weight: 500; font-size: 1.65rem; color: var(--asd-text); margin: 3rem 0 0.9rem; padding-top: 1.6rem; border-top: 0.5px solid var(--asd-border); scroll-margin-top: 118px; }
.cc-doc h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.cc-doc h3 { font-family: var(--sans); font-weight: 600; font-size: 1.08rem; color: var(--asd-text); margin: 2rem 0 0.6rem; scroll-margin-top: 118px; letter-spacing: 0; }
.cc-doc p { font-size: 1rem; line-height: 1.75; margin: 0 0 1rem; }
.cc-doc p em:only-child { color: var(--asd-text-muted); }
.cc-doc strong { color: var(--asd-text); font-weight: 600; }
.cc-doc ul, .cc-doc ol { margin: 0 0 1.1rem 1.3rem; }
.cc-doc li { font-size: 1rem; line-height: 1.7; margin: 0.3rem 0; padding-left: 0.2rem; }
.cc-doc a { color: var(--asd-sage-deep); text-decoration: underline; text-underline-offset: 2px; }
.cc-doc code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; background: var(--asd-surface-2); border: 0.5px solid var(--asd-border); border-radius: 4px; padding: 0 0.3em; }

.cc-doc figure { margin: 1.4rem 0 1.8rem; }
.cc-doc figure img { display: block; max-width: 100%; height: auto; border: 0.5px solid var(--asd-border-strong); border-radius: 8px; background: var(--asd-surface); }
.cc-doc figure.cc-phone img { max-width: min(100%, 300px); }
.cc-doc figcaption { font-size: 0.84rem; line-height: 1.5; color: var(--asd-text-muted); margin-top: 0.55rem; }

.cc-doc .cc-table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0.6rem 0 1.4rem; border: 0.5px solid var(--asd-border); border-radius: 8px; }
.cc-doc .cc-table:focus-visible { outline: 2px solid var(--asd-sage-deep); outline-offset: 2px; }
.cc-doc table { width: 100%; border-collapse: collapse; font-size: 0.9rem; line-height: 1.5; }
.cc-doc th, .cc-doc td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border-bottom: 0.5px solid var(--asd-border); }
.cc-doc th { background: var(--asd-surface-2); color: var(--asd-text); font-weight: 600; }
.cc-doc tr:last-child td { border-bottom: 0; }
.cc-doc td:first-child { min-width: 8.5rem; }

.cc-doc .cc-note { background: var(--asd-sage-tile); border: 0.5px solid var(--asd-border); border-left: 3px solid var(--asd-sage); border-radius: 10px; padding: 1rem 1.2rem; margin: 1rem 0 1.4rem; }
.cc-doc .cc-note p:last-child { margin-bottom: 0; }

.cc-doc ul.contains-task-list { list-style: none; margin-left: 0.2rem; }
.cc-doc ul.contains-task-list li { display: flex; gap: 0.6rem; align-items: baseline; }
.cc-doc ul.contains-task-list input { flex: none; transform: translateY(2px); }

/* Walkthrough video, when there is one: a responsive 16:9 frame. */
.cc-video { margin: 0 0 2.4rem; }
.cc-video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--asd-surface-2); border: 0.5px solid var(--asd-border); border-radius: 10px; overflow: hidden; }
.cc-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cc-video figcaption { font-family: var(--sans); font-size: 0.84rem; color: var(--asd-text-muted); margin-top: 0.55rem; }

.cc-foot { margin-top: 3rem; padding-top: 1.2rem; border-top: 0.5px solid var(--asd-border); font-size: 0.82rem; line-height: 1.6; color: var(--asd-text-muted); }

/* Collaborative Care resources block on /for-clinics.html. */
.cc-resources { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1.6rem; }
.cc-resource { display: block; background: var(--asd-canvas); border: 0.5px solid var(--asd-border); border-radius: 12px; padding: 1.3rem 1.4rem; color: var(--asd-text-2); }
.cc-resource:hover { border-color: var(--asd-sage); color: var(--asd-text-2); }
.cc-resource .name { font-family: var(--serif); font-size: 1.2rem; color: var(--asd-text); margin-bottom: 0.4rem; }
.cc-resource .desc { font-family: var(--sans); font-size: 0.93rem; line-height: 1.6; }
.cc-resource .more { display: inline-block; margin-top: 0.7rem; font-family: var(--sans); font-size: 0.85rem; font-weight: 600; color: var(--asd-sage-deep); }

@media (max-width: 960px) {
	.cc-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
	.cc-toc { position: static; max-height: none; overflow: visible; padding: 0.9rem 1rem; background: var(--asd-surface); border: 0.5px solid var(--asd-border); border-radius: 10px; }
	.cc-toc summary { cursor: pointer; padding: 0.1rem 0; }
	.cc-toc summary::after { content: " +"; }
	.cc-toc details[open] summary::after { content: " -"; }
	.cc-toc details[open] summary { padding-bottom: 0.6rem; }
}
@media (max-width: 640px) {
	.cc-main { padding: 1.6rem 1rem 3rem; }
	.cc-resources { grid-template-columns: 1fr; }
	.cc-doc h2 { font-size: 1.4rem; }
	.cc-doc table { font-size: 0.85rem; }
}
@media print {
	.navbar, .footer, .app-cta, .cc-toc, .cc-actions { display: none !important; }
	.cc-layout { display: block; }
}
