/* Real photos, shared by all designs. Loaded after each design's own CSS. */

/* A real photo in a frame that began as a photo placeholder. The frame keeps its design's size, shape,
   border width and shadow; the placeholder look (dashed line, glow, label) is switched off. */
.ph.has-photo { position: relative; overflow: hidden; padding: 0; border-style: solid; background: none; }
.ph.has-photo::before, .ph.has-photo::after { display: none; }
.ph.has-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }

/* The office photo on the Contact page: a wide strip under the address card. */
.ph.office-photo { aspect-ratio: 2 / 1; min-height: 0; margin-top: 20px; border-radius: 22px; }

/* Text for screen readers only (for example "opens in a new tab" after a link). */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* The printable brushing chart (shared by all designs). On screen it is a white sheet that previews the printout.
   Nov 13, 2026 (Juan): colors, a little design and a bigger logo. Each day has its own color (from the logo's colors), every box holds a faint star to color in. */
.chart-sheet { position: relative; overflow: hidden; background: #fff; color: #07101f; border: 1px solid #d5dce8; border-radius: 28px; padding: 50px 38px 34px; max-width: 900px; }
.chart-sheet::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 14px; background: linear-gradient(90deg, #7cc243 0 14.28%, #1fb3b0 0 28.57%, #1f6fc0 0 42.85%, #7a5cc0 0 57.14%, #e2589a 0 71.42%, #f59a23 0 85.71%, #f2c022 0); }
.chart-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.chart-top { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: 0 0 18px; }
.chart-top-text { flex: 1; min-width: 0; }
.chart-logo { height: 84px; width: auto; flex: none; }
.chart-title { margin: 0 0 16px; color: #1f6fc0; font-size: 2.6rem; line-height: 1.05; }
.chart-name { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 8px 10px; margin: 0; color: #07101f; font-weight: 700; }
.chart-line { display: inline-block; flex: 1; min-width: 110px; border-bottom: 2px solid #07101f; height: 1.2em; }
.chart-help { margin: 0 0 22px; padding: 12px 16px; border-radius: 14px; background: #fff7e0; color: #4a3b00; }
.chart { width: 100%; border-collapse: separate; border-spacing: 6px; margin: 0 0 14px; table-layout: fixed; color: #07101f; }
.chart caption { caption-side: top; text-align: left; font-weight: 800; font-size: 1.2rem; padding: 0 0 2px 6px; color: #1f6fc0; }
.chart th, .chart td { text-align: center; padding: 6px 2px; font-size: 0.92rem; }
.chart thead td { padding: 0; width: 17%; }   /* the first row sets the column widths: a wider first column keeps Morning and Night on one line */
.chart thead th { border-radius: 12px; font-weight: 800; background: var(--c); color: var(--t, #07101f); }
.chart tbody th { display: table-cell; text-align: left; padding: 6px 4px 6px 10px; width: 17%; border-radius: 12px; background: #eef3fb; font-weight: 800; }
.chart-ico { display: inline-block; width: 1.15em; height: 1.15em; margin-right: 5px; vertical-align: -0.2em; }
.chart-ico.sun { color: #f59a23; }
.chart-ico.moon { color: #5b46b3; }
.chart tbody td { border: 2px dashed var(--c); border-radius: 14px; background: #fff; background: color-mix(in srgb, var(--c) 10%, #fff); padding: 0; }
.chart-box { display: grid; place-items: center; height: 52px; }
.chart-star { width: 52%; height: auto; max-height: 76%; color: var(--c); opacity: 0.7; }
.d1 { --c: #7cc243; } .d2 { --c: #1fb3b0; } .d3 { --c: #1f6fc0; --t: #fff; } .d4 { --c: #7a5cc0; --t: #fff; }
.d5 { --c: #e2589a; } .d6 { --c: #f59a23; } .d7 { --c: #f2c022; }
.chart-foot { margin: 10px 0 0; padding: 12px 16px; border-radius: 14px; background: #eaf4ff; font-size: 0.92rem; color: #1b3556; }
@media (max-width: 640px) {
  .chart-sheet { padding: 38px 14px 22px; border-radius: 22px; }
  .chart-top { gap: 12px; }
  .chart-logo { height: 52px; }
  .chart-title { font-size: 1.7rem; }
  .chart { border-spacing: 3px; }
  .chart th, .chart td { font-size: 0.7rem; }
  .chart-ico { display: none; }
  .chart-box { height: 36px; }
  .chart tbody th { padding-left: 5px; }
}

/* Printing: only the chart, no site header, footer, buttons or floating cards. The colors are kept (backgrounds too), so the sheet prints in color. */
@media print {
  @page { margin: 12mm; }
  body { background: #fff !important; color: #000 !important; padding: 0 !important; }
  body::before, body::after { display: none !important; }
  .draft-strip, .topbar, .site-header, .lang-switch, .site-footer, .quick, .mobile-bar, .skip, .page-hero, .cta-wrap, .no-print, .draft-note { display: none !important; }
  .page-section, .page-section.band { background: none !important; padding: 0 !important; border: 0 !important; }
  .container { max-width: none; padding: 0; }
  .chart-sheet { border: 0; padding: 22px 0 0; max-width: none; break-inside: avoid; }
  .chart-sheet, .chart-sheet * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* The brushing chart pop-up (Nov 13, 2026, Juan): opens on the same page from the "See the chart" button, English and Spanish with a switch, and a
   Download PDF button for the language on screen. Built on the .form-modal window of forms.css. */
.btn[hidden] { display: none; }
.chart-modal { width: min(1000px, 96vw); }
.chart-modal .form-modal-bar { flex-wrap: wrap; gap: 10px 16px; }
.chart-modal-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; }
.chart-lang { display: inline-flex; border: 1px solid var(--line, rgba(127, 127, 127, 0.35)); border-radius: 12px; overflow: hidden; }
.chart-lang button { border: 0; padding: 9px 14px; background: transparent; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.chart-lang button[aria-pressed="true"] { background: var(--lime, #b4f03c); color: var(--ink, #07101f); }
.chart-modal-body { flex: 1; min-height: 0; overflow: auto; padding: 22px; background: var(--bg-2, #0d1730); }
.chart-modal .chart-sheet { margin: 0 auto; }
.chart-sheet[hidden] { display: none; }
@media (max-width: 700px) { .chart-modal-body { padding: 12px; } .chart-modal .form-modal-bar { padding-right: 12px; } }
