.composition-page [hidden] { display: none; }
.comp-hero .page-hero-art { width: 100%; height: 100%; object-fit: cover; }
.comp-hero-grip { position: absolute; z-index: 2; right: clamp(24px, 6vw, 100px); bottom: 8%; width: clamp(150px, 16vw, 235px); margin: 0; overflow: hidden; border: 2px solid #f7fbff; border-radius: 15px; background: #f0f6fc; box-shadow: var(--shadow-sm); }
.comp-hero-grip img { display: block; width: 100%; height: auto; }
.comp-hero-grip figcaption { padding: 5px 8px; color: #173d61; font-size: clamp(.67rem, 1.1vw, .9rem); font-weight: 750; line-height: 1.3; }
.comp-image-credit { padding-block: 8px; text-align: right; }
.comp-detail-grid { padding-block: 32px; }
.comp-detail-grid .breath-service-content > .section:first-child { padding-top: 0; }
.comp-section { scroll-margin-top: 94px; }
.comp-section h2 { margin-bottom: 12px; }
.comp-jumps { display: grid; gap: 8px; margin: 16px 0 20px; padding-top: 12px; border-top: 1px solid var(--line); }
.comp-jumps a { font-size: .91rem; color: var(--blue-dark); text-decoration: underline; text-underline-offset: .2em; }
.comp-explorer { margin-top: 18px; padding: clamp(12px, 2vw, 22px); border: 1px solid var(--line); border-radius: var(--radius); background: #f2f7fc; }
.comp-controls { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.comp-controls button { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 12px; border: 1px solid #a8c1dc; border-radius: 10px; background: #fff; color: #173d61; font: inherit; font-size: .9rem; font-weight: 750; line-height: 1.25; text-align: left; cursor: pointer; }
.comp-controls button:hover { border-color: var(--blue); background: #e5f0fa; }
.comp-controls button[aria-pressed="true"] { border-color: #215781; background: #215781; color: #fff; }
.comp-controls button span { font-size: .76rem; }
.comp-step { display: grid; grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); align-items: start; gap: 16px; margin-bottom: 10px; padding: clamp(12px, 2vw, 18px); border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.comp-step-visuals img, .comp-extra img { display: block; width: 100%; height: auto; border-radius: 10px; }
.comp-step-visuals figure { margin: 10px 0 0; }
.comp-step-visuals figcaption { margin-top: 5px; color: #3f566d; font-size: .86rem; }
.comp-step h3 { margin: 5px 0 8px; }
.comp-step-note, .comp-caption { color: #3f566d; font-size: .91rem; }
.comp-step-note { margin-top: 10px; padding: 9px 10px; border-left: 3px solid #80aeca; background: #edf5fb; }
.comp-extra { margin-top: 12px; }
.comp-extra summary { color: var(--blue-dark); font-weight: 750; cursor: pointer; }
.comp-extra figure { margin: 8px 0 0; }
.comp-extra figcaption { margin-top: 6px; font-size: .86rem; }
.comp-film { padding: 13px; border: 1px solid var(--line); border-radius: 12px; }
.comp-film video { display: block; width: 100%; max-width: 680px; margin: 10px 0 6px; border-radius: 9px; background: #153655; aspect-ratio: 16 / 9; }
.comp-film p { font-size: .88rem; }
.comp-comparison { display: grid; gap: 12px; }
.comp-comparison .comp-controls { margin: 0; }
.comp-reading { padding: 12px; border: 1px solid #cbdce9; border-radius: 12px; background: #fff; }
.comp-reading-heading, .comp-legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.comp-meter { height: 18px; margin: 8px 0; overflow: hidden; border-radius: 999px; background: #eaf0f6; }
.comp-meter > span { display: block; width: var(--total-width); height: 100%; overflow: hidden; border-radius: inherit; background: #235e91; }
.comp-meter i { display: block; width: var(--fat-width); height: 100%; background: #b65e22; }
.comp-legend { font-size: .86rem; }
.comp-legend span::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 2px; background: #b65e22; }
.comp-legend span + span::before { background: #235e91; }
.comp-example p { margin-top: 8px; }
.comp-caption { margin: 0; }
.comp-checklist { margin: 16px 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; }
.comp-checklist legend { padding-inline: 5px; color: var(--blue-dark); font-weight: 750; }
.comp-checklist label { display: flex; align-items: start; gap: 9px; padding-block: 5px; cursor: pointer; }
.comp-checklist input { margin-top: .4em; accent-color: var(--blue); }
.comp-safety p, .comp-booking p { margin: 6px 0 0; }
.comp-related, .comp-booking { margin-top: 15px; }
.comp-related .card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.comp-related .button { margin-top: auto; border-color: #a8c1dc; }
.comp-related .button:is(:hover, :focus-visible) { border-color: var(--blue); background: #e5f0fa; }
.comp-booking .actions { margin-top: 13px; }
@media (prefers-reduced-motion: no-preference) {
  .comp-controls:not([hidden]) ~ .comp-step:not([hidden]), .comp-controls:not([hidden]) ~ .comp-example:not([hidden]) { animation: comp-reveal 240ms ease-out; }
  @keyframes comp-reveal { from { opacity: .45; transform: translateY(5px); } to { opacity: 1; transform: none; } }
}
@media (min-width: 1181px) {
  .comp-hero .page-hero-art { object-fit: contain; object-position: right center; transform-origin: 50% 16%; }
  .comp-summary { max-height: calc(100dvh - 126px); overflow-y: auto; }
}
@media (max-width: 780px) {
  .comp-hero .page-hero-art { height: 280px; object-position: right center; }
  .comp-hero-grip { top: 142px; right: auto; bottom: auto; left: 3%; width: min(35%, 145px); border-radius: 10px; }
  .comp-image-credit { text-align: left; }
}
@media (max-width: 620px) {
  .comp-step { grid-template-columns: 1fr; }
  .comp-controls button { flex: 1 1 42%; }
  .comp-comparison .comp-controls button { flex-basis: 100%; }
  .comp-related .button { width: 100%; }
}
