/* Chapter 06 components (HDR photography). Loaded after styles.css, theme.css and solar.css. */
@layer components {
  .study-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; max-width: 980px; margin: 6px 0 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0 2px; }
  .study-grid p { font-size: 13.5px; line-height: 1.7; }
  .study-grid .control-kicker { margin-bottom: 8px; color: var(--accent); }

  /* Text columns in the camera-control and troubleshooting tables are prose, not symbols. */
  .hdr-table td:nth-child(2) { font-style: normal; white-space: normal; }
  .hdr-table tbody th { white-space: normal; min-width: 130px; }

  /* Exposure explorer: one photograph and its own input strip. */
  .exposure-frame { margin: 4px 0 0; }
  .exposure-frame img { display: block; width: 100%; height: auto; background: #000; border-radius: 4px; border: 1px solid var(--line); }
  .exposure-frame figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; padding-top: 8px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
  .exposure-frame figcaption span:first-child { color: var(--ink); font-weight: 600; }
  .range-ends { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-top: 2px; }
  .bracket-contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 22px 0; max-width: 1100px; }
  .bracket-contact figure { margin: 0; }
  .bracket-contact img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 4px; }
  .bracket-contact figcaption { font-size: 11px; color: var(--muted); padding-top: 6px; }

  /* iPhone examples */
  .iphone-examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 22px 0 14px; max-width: 1100px; align-items: start; }
  .iphone-example { min-width: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 7px; background: var(--sage); }
  .iphone-example h3 { margin: 0 0 12px; }
  .iphone-example .control-kicker { margin-bottom: 4px; }
  .iphone-example figure { margin: 0; }
  .iphone-example figcaption { font-size: 11px; color: var(--muted); padding: 8px 0 4px; line-height: 1.6; }
  .iphone-frame { position: relative; aspect-ratio: 4 / 3; background: #101418; border-radius: 4px; overflow: hidden; }
  .iphone-frame img, .iphone-frame .point-overlay { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
  .iphone-frame .point-overlay { pointer-events: none; }
  .iphone-example details { border-top: 1px solid var(--line); margin-top: 8px; }
  .iphone-example summary { cursor: pointer; padding-top: 10px; font-size: 12px; font-weight: 600; color: var(--accent); }
  .example-data { padding-top: 12px; }
  .example-data table { margin-top: 10px; }
  .luminance-legend { max-width: 540px; margin: 6px 0 4px; }
  .luminance-legend .turbo-bar { display: block; width: 100%; height: 12px; }
  .luminance-legend > div { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
  .luminance-legend .caption { margin-top: 4px; }

  /* Field checklist */
  .field-checklist { list-style: none; padding: 0; margin: 0 0 22px; max-width: 860px; border-top: 1px solid var(--line); }
  .field-checklist li { position: relative; padding: 10px 0 10px 30px; border-bottom: 1px solid var(--line); font-size: 14px; }
  .field-checklist li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 13px; height: 13px; border: 1.5px solid var(--ink); border-radius: 2px; }

  @media (max-width: 900px) {
    .study-grid, .iphone-examples { grid-template-columns: 1fr; }
  }
  @media (max-width: 560px) {
    .bracket-contact { grid-template-columns: 1fr; }
  }
  @media print {
    #exposure-explorer { display: none !important; }
    .iphone-example details > :not(summary) { display: block; }
  }
}
/* Outside the layer: the responsive .lab column rules in styles.css are unlayered. */
.lab.exposure-lab { grid-template-columns: 1fr; }
/* Section 07: use-case blocks and the pitfalls list. */
@layer components {
  .usecase { margin-top: -2px; }
  .usecase > div { grid-template-columns: 150px 1fr; }
  .usecase-table tbody th a { color: var(--ink); text-decoration: none; }
  .usecase-table tbody th a:hover { color: var(--accent); }
  .callout ul { margin: 0; padding-left: 18px; font-size: 13px; max-width: 820px; }
  .callout li { margin-bottom: 6px; }
  .callout li:last-child { margin-bottom: 0; }
  @media (max-width: 650px) { .usecase > div { grid-template-columns: 1fr; gap: 2px; } .callout { grid-template-columns: 1fr; gap: 8px; } }
}
