/* pattern.css — shared styles for the /care-schedule/<pattern>/ landing pages.
   Single source for all five: edit here, never re-inline in a page's <style>.
   Loaded after css/base.css. CSS variables (:root) are still declared inline
   per page, matching the rest of the site. */

.pat-main { padding: 40px 24px 80px; }
.pat-main .container { max-width: 760px; margin: 0 auto; }

/* ── Breadcrumb back-link ── */
.pat-crumb {
  font-size: 14px;
  margin-bottom: 20px;
}
.pat-crumb a {
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pat-crumb a:hover { color: var(--primary); }
.pat-crumb svg { flex-shrink: 0; }

/* ── Header ── */
.pat-main h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.pat-intro {
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ── Static pattern grid ── */
.pat-grid-card {
  margin: 32px 0 8px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(26, 30, 35, 0.06);
}
.pat-grid-scroll { overflow-x: auto; }
.pat-grid {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 4px;
}
.pat-grid th {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  padding-bottom: 4px;
}
.pat-grid .pat-week {
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.07em;
  padding-bottom: 8px;
}
.pat-grid .pat-rowlabel {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
  padding-right: 10px;
}
.pat-cell {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
}
.pat-cell.on-a {
  background: rgba(13, 107, 100, 0.28);
  border-color: rgba(13, 107, 100, 0.6);
}
.pat-cell.on-b {
  background: rgba(224, 160, 64, 0.32);
  border-color: rgba(224, 160, 64, 0.65);
}
.pat-gap { width: 14px; }
.pat-caption {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}
.pat-cta-row {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}
.pat-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--primary);
  transition: background 0.15s;
}
.pat-cta:hover { background: var(--primary-dark); }

/* ── Text blocks ── */
.pat-block { margin-top: 44px; }
.pat-block h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.pat-block > p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
}
.pat-list {
  list-style: none;
  margin-top: 4px;
}
.pat-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
}
.pat-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--primary);
}
.pat-block--watch .pat-list li::before { background: var(--amber); }

/* Two columns on wide screens, stacked on narrow */
.pat-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 40px;
}
.pat-two .pat-block { margin-top: 44px; }

/* ── FAQ accordion — matches the planner page ── */
.pat-faq { margin-top: 14px; border-top: 1px solid var(--border-subtle); }
.pat-faq-item { border-bottom: 1px solid var(--border-subtle); }
.pat-faq-item > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}
.pat-faq-item > summary::-webkit-details-marker { display: none; }
.pat-faq-item > summary::after {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin: 6px 2px 0;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.15s;
}
.pat-faq-item[open] > summary::after { transform: rotate(-135deg); margin: 9px 2px 0; }
.pat-faq-item h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}
.pat-faq-item > summary:hover h3 { color: var(--primary); }
.pat-faq-item > summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}
.pat-faq-item > p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  padding: 0 0 18px;
  max-width: 62ch;
}

/* ── Other patterns ── */
.pat-others {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 24px;
  margin-top: 6px;
}
.pat-others a {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-card);
  font-size: 15px;
  font-weight: 500;
  transition: border-color 0.15s, color 0.15s;
}
.pat-others a:hover { border-color: var(--primary); color: var(--primary); }
.pat-planner-link {
  margin-top: 18px;
  font-size: 15px;
}
.pat-planner-link a {
  color: var(--primary);
  font-weight: 500;
}
.pat-planner-link a:hover { text-decoration: underline; }

@media (max-width: 599px) {
  .pat-main { padding: 28px 20px 64px; }
  .pat-grid-card { padding: 18px 16px; }
  .pat-two { grid-template-columns: 1fr; gap: 0; }
  .pat-two .pat-block { margin-top: 32px; }
  .pat-grid .pat-rowlabel { font-size: 11.5px; padding-right: 6px; }
  .pat-cell { width: 26px; height: 26px; border-radius: 7px; }
}
