/* Reading layouts for phones. Keep source text and links in the same DOM. */
.ccc-reading-toc > summary,
.ccc-home-checks > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  list-style: none;
}
.ccc-reading-toc > summary::-webkit-details-marker,
.ccc-home-checks > summary::-webkit-details-marker { display: none; }
.ccc-reading-toc > summary .side-title {
  margin: 0;
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
  color: inherit;
}
.ccc-toc-toggle { flex: none; width: 12px; height: 12px; position: relative; color: var(--accent); }
.ccc-toc-toggle::before,
.ccc-toc-toggle::after { content: ""; position: absolute; top: 5px; left: 0; width: 12px; height: 2px; background: currentColor; }
.ccc-toc-toggle::after { transform: rotate(90deg); }
details[open] > summary .ccc-toc-toggle::after { transform: none; }
.ccc-toc-content { margin-top: 10px; }
.ccc-home-checks__content { margin-top: 14px; }
.ccc-home-checks__content > p { margin: 16px 0 10px; }
.ccc-home-checks__content > a { color: var(--felt); font-weight: 600; text-decoration: underline; text-underline-offset: .18em; }
.ccc-section-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 22px 0 0; padding: 0; list-style: none; }
.ccc-section-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--felt); text-decoration: underline; text-underline-offset: .2em; font-weight: 600; line-height: 1.5; }
.ccc-scroll-hint { display: none; }
.ccc .entry-content a:not(.btn), .ccc-pagehero h1, .home-hero h1,
.ccc-pagehero__lede, .ccc-authorbox__name, .ccc-authorbox__link { overflow-wrap: anywhere; }
.ccc-authorbox > div, .lcard > span:last-child { min-width: 0; }
.ccc .entry-content .ccc-wide-table { margin: 1.8rem 0; }
.ccc .entry-content .ccc-wide-table .table-scroll { margin: 0; }

/* Keep plugin form controls consistent with the site's actions and error palette. */
body.ccc .wpforms-container {
  --wpforms-label-error-color:var(--bad);
  --wpforms-field-border-color:#7b858b;
  --wpforms-field-border-color-spare:#7b858b;
  --wpforms-field-border-radius:8px;
  --wpforms-field-text-color:var(--ink);
  --wpforms-label-color:var(--ink);
  --wpforms-button-background-color:var(--felt);
  --wpforms-button-border-color:var(--felt);
  --wpforms-button-text-color:#fff;
  --wpforms-button-border-radius:999px;
}
body.ccc .wpforms-container .wpforms-form :is(input[type="text"], input[type="email"], select, textarea) { min-height:48px; max-width:100%; font-family:var(--sans); font-size:16px; }
body.ccc .wpforms-container .wpforms-form textarea { min-height:160px; }
body.ccc .wpforms-container .wpforms-form :is(input, select, textarea):focus-visible { outline:3px solid var(--accent); outline-offset:2px; }
body.ccc .wpforms-container .wpforms-form :is(label.wpforms-error, em.wpforms-error, .wpforms-required-label),
body.ccc .wpforms-container :is(.wpforms-error-container, .wpforms-error-noscript, .wpforms-error-alert) { color:var(--bad); }
body.ccc .wpforms-container .wpforms-form :is(label.wpforms-error, em.wpforms-error) { font-size:.9rem; line-height:1.5; }
body.ccc .wpforms-container .wpforms-form button.wpforms-submit { min-height:48px; height:auto; padding:12px 24px; border:1.5px solid var(--felt); border-radius:999px; background:var(--felt); color:#fff; font:700 1rem/1.4 var(--sans); box-shadow:0 6px 18px rgba(176,35,42,.2); }
body.ccc .wpforms-container .wpforms-form button.wpforms-submit:hover { background:var(--felt-deep); border-color:var(--felt-deep); color:#fff; }
body.ccc .wpforms-container .wpforms-form button.wpforms-submit:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
body.ccc .wpforms-container .wpforms-form button.wpforms-submit:disabled { opacity:.65; cursor:wait; box-shadow:none; }

@media (max-width: 920px) {
  .learn-layout { gap: 24px; }
  .learn-nav__card.ccc-reading-toc { padding: 10px 18px; }
  .learn-nav__card.ccc-reading-toc[open] { padding-bottom: 18px; }
  .learn-toc a { min-height: 44px; align-items: baseline; padding: 12px 0; line-height: 1.45; }
  .ccc-reading-toc .ccc-toc-cta { min-height: 44px; margin-top: 14px; }
  .home-toc { margin-top: 0; padding-top: 20px; }
  .home-toc .toc-card { padding: 10px 18px; }
  .home-toc .toc-card[open] { padding-bottom: 18px; }
  .home-toc .toc-grid { margin-top: 6px; }
  .home-toc .toc-grid a { min-height: 44px; align-items: center; }
}

@media (max-width: 640px) {
  .ccc-article.section--tight { padding: 28px 0; }
  .ccc-home > .section { padding: 40px 0; }
  .ccc-home #guides .ccc-related { margin-top: 0; padding-top: 0; border-top: 0; }
  .ccc-home #bank-tool h2 + p { margin-top: 14px; }
  .ccc-library > h2 { margin: 28px 0 16px; font-size: 1.6rem; line-height: 1.25; }
  .ccc-library > h2:first-child { margin-top: 0; }
  .ccc-reviewgrid .rcard { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .ccc-reviewgrid .rcard__body { min-width: 0; }
  .ccc-reviewgrid .rcard__meta { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.5; }
  .ccc-pagehero { padding: 24px 0 28px; }
  .ccc-pagehero h1 { font-size: clamp(1.85rem, 7.7vw, 2.2rem); line-height: 1.15; letter-spacing: -.015em; }
  .ccc-pagehero .ccc-crumbs + h1 { margin-top: 14px; }
  .ccc-pagehero .ccc-pagehero__lede { margin-top: 14px; font-size: 1.05rem; line-height: 1.6; }
  .ccc-crumbs { font-family: var(--sans); font-size: .8rem; letter-spacing: 0; line-height: 1.5; }
  .home-hero { padding: 24px 0 28px; }
  .home-hero .hero__grid { gap: 22px; }
  .home-hero h1 { margin-top: 0; font-size: clamp(1.85rem, 7.8vw, 2.2rem); line-height: 1.14; }
  .home-hero h1 .serif-i { line-height: 1.18; margin-top: .2em; }
  .home-hero .lede { margin-top: 16px; font-size: 1.05rem; line-height: 1.6; }
  .home-hero .hero__actions { flex-direction: column; gap: 10px; margin-top: 20px; }
  .home-hero .hero__actions .btn { min-height: 48px; padding: 13px 18px; white-space: normal; line-height: 1.4; text-align: center; }
  .home-hero .source-cite { font-size: .85rem; line-height: 1.6; }
  .home-hero .hero__card { padding: 10px 16px; border-radius: var(--r); box-shadow: none; }
  .home-hero .hero__card:has(> details[open]) { padding-bottom: 18px; }
  .home-hero .qlist a { grid-template-columns: 26px minmax(0, 1fr) 16px; gap: 9px; padding: 11px 10px; }
  .home-hero .qlist__n { width: 25px; height: 25px; }
  .home-hero .qlist__name { font-family: var(--sans); font-size: 1rem; line-height: 1.4; }
  .ccc .ccc-article .entry-content { font-size: 1.05rem; line-height: 1.7; }
  .ccc .entry-content h2 { font-size: 1.6rem; line-height: 1.23; margin-top: 2.1rem; overflow-wrap: anywhere; }
  .ccc .entry-content h3 { font-size: 1.3rem; line-height: 1.3; overflow-wrap: anywhere; }
  .ccc .entry-content blockquote { padding-left: 16px; }
  .ccc .entry-content blockquote p { font-size: 1.12rem; }
  .ccc .entry-content :is(.custom-content-box, .tldr-box, .notes, .callout-box, .warning-box, .green-box) { padding: 18px 16px; }
  .byline-wrap { margin-top: 18px; }
  .byline-wrap .byline.byline--compact { width: 100%; padding: 0; border-radius: var(--r); }
  .byline-wrap .byline__p { min-width: 0; width: 100%; padding: 10px 12px; }
  .byline-wrap .byline__txt { min-width: 0; white-space: normal; }
  .byline-wrap .byline__name { display: block; font-size: .95rem; overflow-wrap: anywhere; }
  .byline-wrap .byline__role { margin-right: 0; font-size: .8rem; }
  .byline-wrap .byline__meta { flex-wrap: wrap; align-items: baseline; gap: 5px 16px; padding: 9px 12px; font-family: var(--sans); font-size: .8rem; line-height: 1.5; }
  .ccc-authorbox { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 18px 16px; margin-top: 32px; border-radius: var(--r); }
  .ccc-authorbox__avatar { width: 36px; height: 36px; font-size: .85rem; border-radius: 10px; }
  .ccc-authorbox > div { display: contents; }
  .ccc-authorbox__name { align-self: center; font-size: 1.1rem; line-height: 1.4; }
  .ccc-authorbox__bio, .ccc-authorbox__link { grid-column: 1 / -1; }
  .ccc-authorbox__bio { margin-top: 2px; font-size: .94rem; line-height: 1.65; }
  .ccc-authorbox__link { margin-top: 2px; min-height: 44px; display: inline-flex; align-items: center; font-family: var(--sans); font-size: .95rem; letter-spacing: 0; text-transform: none; }
  .ccc-related { margin-top: 32px; padding-top: 26px; }
  .ccc-related__title { font-size: 1.55rem; line-height: 1.25; }
  .lcards { gap: 12px; }
  .lcard { gap: 12px; padding: 16px; border-radius: var(--r); }
  .lcard__ic { width: 32px; height: 32px; border-radius: 9px; }
  .lcard__ic svg { width: 19px; height: 19px; }
  .lcard__t { font-size: 1.08rem; line-height: 1.3; }
  .lcard__d { font-size: .94rem; line-height: 1.55; margin-top: 7px; }
  .ccc-section-links { display: flex; flex-direction: column; gap: 0; margin-top: 18px; }
  .ccc-section-links a { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .ccc .entry-content .ccc-scroll-hint { display: block; margin: 0 0 8px; font-size: .85rem; line-height: 1.5; color: var(--ink-soft); }
  .ccc .entry-content .ccc-reading-table { display: block; min-width: 0; width: 100%; border: 0; background: transparent; overflow: visible; }
  .ccc-reading-table-frame { overflow: visible; border-radius: 0; }
  .ccc .entry-content .ccc-reading-table caption { display: block; width: 100%; padding: 0 0 12px; font: inherit; font-weight: 700; }
  .ccc .entry-content .ccc-reading-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .ccc .entry-content .ccc-reading-table tbody { display: block; }
  .ccc .entry-content .ccc-reading-table tbody tr { display: block; margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
  .ccc .entry-content .ccc-reading-table tbody tr:first-child { margin-top: 0; }
  .ccc .entry-content .ccc-reading-table tbody :is(th, td) { display: block; width: 100%; min-width: 0; padding: 0; border: 0; font-size: 1rem; line-height: 1.6; background: transparent; overflow-wrap: anywhere; word-break: normal; }
  .ccc .entry-content .ccc-reading-table tbody tr > :first-child { padding-bottom: 0; font-family: var(--sans); font-size: 1rem; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--ink); }
  .ccc .entry-content .ccc-reading-table tbody tr > :nth-child(n+2) { padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--line-soft); }
  .ccc-reading-table [data-label]::before { content: attr(data-label); display: block; margin-bottom: 4px; font-size: .85rem; font-weight: 700; line-height: 1.5; color: var(--ink-soft); }
  body.ccc .wpforms-container .wpforms-form :is(input[type="text"], input[type="email"], select, textarea) { max-width: 100%; min-height: 48px; font-size: 16px; }
  body.ccc .wpforms-container .wpforms-form textarea { min-height: 160px; }
  body.ccc .wpforms-container .wpforms-submit { min-height: 48px; width: 100%; font-size: 16px; }
}

@media (max-width: 380px) {
  .lcard { display: block; }
  .lcard__ic { margin-bottom: 10px; }
}

@media (hover: none) {
  .lcard:hover, .qlist a:hover { transform: none; }
}

@media (max-width: 640px) {
  .ccc .entry-content a[href^="tel:"] { white-space: nowrap; overflow-wrap: normal; }
}

.ccc a[href^="tel:"] { white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 360px) {
  .ccc-pagehero h1 { font-size: clamp(1.65rem, 8vw, 1.85rem); }
}
@media (max-width: 640px) {
  .ccc-reviewgrid .rgrid { padding: 0; list-style: none; }
}
