/* Altitude Breathing Simulator v1.0 - scoped, responsive WordPress styling */
.absim, .absim * { box-sizing: border-box; }
.absim {
  --absim-bg: #071726;
  --absim-panel: #10283a;
  --absim-panel-2: #122e43;
  --absim-border: rgba(144,203,223,.17);
  --absim-muted: #a3bbca;
  --absim-text: #eef8fc;
  --absim-cyan: #6fe4e9;
  --absim-blue: #2bb4d8;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--absim-text);
  line-height: 1.58;
  background: radial-gradient(ellipse 65% 22% at 83% 3%, rgba(22,133,174,.20), transparent 90%),
              linear-gradient(145deg, #091c2e 0%, #061420 78%);
  border: 1px solid rgba(76,160,186,.27);
  border-radius: 22px;
  max-width: 1240px;
  margin: 24px auto;
  padding: clamp(18px, 3vw, 36px);
  box-shadow: 0 24px 60px rgba(5,21,32,.15);
  isolation: isolate;
  overflow: hidden;
}
.absim p, .absim h2, .absim h3, .absim h4 { margin-top: 0; }
.absim h2, .absim h3, .absim h4 { color: var(--absim-text); line-height: 1.24; }
.absim button, .absim input { font: inherit; }
.absim button { cursor: pointer; }
.absim button:focus-visible, .absim a:focus-visible, .absim summary:focus-visible, .absim input:focus-visible {
  outline: 3px solid #a3fbff; outline-offset: 3px;
}
.absim a { color: #81e7f4; text-decoration: underline; text-underline-offset: 3px; }
.absim a:hover { color: white; }
.absim-header { display: flex; justify-content: space-between; gap: 22px; align-items: flex-start; margin-bottom: 28px; }
.absim-header__copy { max-width: 760px; }
.absim-eyebrow { display: flex; align-items: center; gap: 9px; font-weight: 750; font-size: 11px; letter-spacing: .14em; color: var(--absim-cyan); margin: 0 0 13px !important; }
.absim-eyebrow__dot { width: 8px; height: 8px; background: var(--absim-cyan); border-radius: 50%; box-shadow: 0 0 0 5px rgba(111,228,233,.12); }
.absim .absim-header h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 770; letter-spacing: -.045em; margin-bottom: 12px; }
.absim-header__copy > p:last-child { color: var(--absim-muted); font-size: 14px; margin: 0; max-width: 720px; }
.absim-header__copy strong { color: #ecf8ff; font-weight: 650; }
.absim-header__badge { flex: 0 0 auto; border: 1px solid rgba(118,213,233,.3); border-radius: 99px; background: rgba(53,155,177,.1); padding: 7px 11px; font-size: 11px; font-weight: 650; color: #bddde7; line-height: 1.5; margin-top: 4px; }
.absim-scenarios { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.absim .absim-scenario {
  display: grid; grid-template-columns: auto 1fr; gap: 3px 9px; align-content: start; text-align: left;
  width: 100%; min-height: 111px; padding: 13px 15px; color: #c4d9e5;
  background: rgba(22,47,67,.8); border: 1px solid var(--absim-border);
  border-radius: 13px; transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
  text-decoration: none; box-shadow: none; appearance: none;
}
.absim .absim-scenario:hover { transform: translateY(-1px); border-color: rgba(111,228,233,.48); }
.absim .absim-scenario.is-active { border-color: var(--absim-cyan); background: linear-gradient(140deg, rgba(35,121,144,.32), rgba(19,56,78,.96)); box-shadow: inset 0 3px 0 rgba(112,237,238,.86); }
.absim-scenario__index { font-size: 10px; letter-spacing: .06em; color: #80a1b2; margin-top: 3px; font-weight: 700; }
.absim-scenario.is-active .absim-scenario__index { color: var(--absim-cyan); }
.absim-scenario__title { font-weight: 700; font-size: 13px; color: var(--absim-text); }
.absim-scenario__range { grid-column: 2; font-weight: 760; font-size: 16px; letter-spacing: -.01em; color: #d9eff7; }
.absim-scenario__sample { grid-column: 2; font-size: 11px; color: #95b8c8; }
.absim-stat-row { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; margin-bottom: 20px; }
.absim-stat { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 16px 16px 15px; border-radius: 13px; background: #10283b; border: 1px solid var(--absim-border); }
.absim-stat--primary { background: linear-gradient(120deg, #103c50, #104158 120%); border-color: rgba(73,216,230,.4); }
.absim-stat__label { color: #a4becb; font-size: 11px; font-weight: 640; line-height: 1.5; min-height: 30px; }
.absim-stat strong { font-size: clamp(27px, 3vw, 38px); letter-spacing: -.05em; line-height: 1.2; font-weight: 750; color: #f6fdff; font-variant-numeric: tabular-nums; }
.absim-stat--primary strong { color: var(--absim-cyan); }
.absim-stat__unit { font-size: 12px; color: #a4c1cf; }
.absim-workspace { display: grid; grid-template-columns: minmax(260px, .83fr) minmax(360px, 1.65fr); gap: 12px; align-items: stretch; }
.absim-lung-card, .absim-chart-card { min-width: 0; border: 1px solid var(--absim-border); border-radius: 15px; background: linear-gradient(160deg, #102b3d, #0d2233); padding: 17px 17px 13px; }
.absim-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #afc7d4; font-size: 10px; font-weight: 750; letter-spacing: .075em; }
.absim-live { display: inline-flex; gap: 7px; align-items: center; color: var(--absim-cyan); font-weight: 700; letter-spacing: 0; }
.absim-live i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--absim-cyan); box-shadow: 0 0 0 3px rgba(111,228,233,.12); }
.absim-lungs { display: block; width: 100%; height: auto; max-width: 306px; margin: 5px auto -12px; overflow: visible; }
.absim-lung-readout { text-align: center; padding: 0 8px 5px; }
.absim-lung-readout > span { color: #a5c1d2; font-size: 11px; }
.absim-lung-readout > div:nth-of-type(1) { font-size: 38px; color: #e9ffff; font-weight: 760; font-variant-numeric: tabular-nums; line-height: 1.25; }
.absim-lung-readout > div:nth-of-type(1) small { font-size: 13px; font-weight: 500; color: #91b8c8; }
.absim-volume-track { height: 5px; width: min(100%, 190px); margin: 9px auto 12px; background: rgba(124,191,206,.17); border-radius: 99px; overflow: hidden; }
.absim-volume-track span { display: block; background: linear-gradient(90deg, #2baacb, #87f4f3); height: 100%; width: 0; border-radius: 99px; }
.absim-lung-readout > small { display: block; color: #7d9baa; font-size: 10px; line-height: 1.4; }
.absim-chart-card { display: flex; flex-direction: column; }
.absim-chart-sub { color: #8fbdca; font-weight: 600; letter-spacing: 0; }
.absim-chart-wrap { position: relative; width: 100%; height: clamp(250px, 31vw, 356px); margin: 12px 0 6px; }
.absim-chart-wrap canvas { display: block; width: 100%; height: 100%; }
.absim-chart-footer { display: flex; gap: 15px; flex-wrap: wrap; align-items: center; justify-content: space-between; color: #9eb9c9; font-size: 11px; }
.absim-chart-footer > span { display: inline-flex; align-items: center; gap: 8px; }
.absim-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.absim-dot--cyan { background: #6fe4e9; }
.absim-compare { display: inline-flex; align-items: center; cursor: pointer; gap: 8px; }
.absim-compare input { appearance: auto; cursor: pointer; width: 15px; height: 15px; accent-color: var(--absim-cyan); margin: 0; }
.absim-scenario-note { color: #a3c2ce; margin: auto 0 0 !important; padding-top: 14px; font-size: 12px; line-height: 1.6; }
.absim-control-panel { display: grid; grid-template-columns: 188px minmax(0,1fr); gap: 25px; align-items: center; margin: 13px 0 13px; padding: 18px 21px; background: #102a3c; border: 1px solid var(--absim-border); border-radius: 14px; }
.absim-clock-block { border-right: 1px solid rgba(149,201,218,.19); }
.absim-time-label { font-size: 10px; font-weight: 750; letter-spacing: .1em; color: #9cbdca; }
.absim-clock { font-size: 44px; font-weight: 780; letter-spacing: -.05em; color: var(--absim-text); line-height: 1.28; font-variant-numeric: tabular-nums; }
.absim-count { font-size: 11px; color: #a6c2ce; }
.absim-control-main { min-width: 0; }
.absim-actions { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.absim .absim-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 41px; padding: 9px 14px; border-radius: 9px; font-size: 12px; font-weight: 740; line-height: 1.4; white-space: nowrap; border: 1px solid rgba(115,192,213,.24); transition: filter .15s, border-color .15s, background-color .15s; box-shadow: none; text-decoration: none; text-transform: none; letter-spacing: 0; }
.absim .absim-btn:hover { filter: brightness(1.1); }
.absim .absim-btn--primary { background: #78e4ec; color: #082635; border-color: #78e4ec; }
.absim .absim-btn--secondary { background: #1a3c51; color: #cbe6ed; }
.absim .absim-btn--outline { background: transparent; color: #b9d6e0; }
.absim .absim-btn--outline.is-running { border-color: #78e4ec; color: #78e4ec; }
.absim-progress { width: 100%; height: 5px; border-radius: 99px; background: rgba(119,173,195,.18); overflow: hidden; margin: 17px 0 9px; }
.absim-progress span { display: block; width: 0; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #24accd, #85f8f6); }
.absim-controls-foot { display: flex; justify-content: space-between; gap: 15px; align-items: flex-start; }
.absim-controls-foot [data-role="status"] { font-size: 11px; color: #a0bdcb; }
.absim .absim-text-button { border: 0; padding: 0; margin: 0; background: transparent; color: #81d5e9; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; font-size: 11px; box-shadow: none; }
.absim-adjustments { background: rgba(19,48,68,.68); border: 1px solid var(--absim-border); border-radius: 12px; margin-bottom: 25px; }
.absim-adjustments summary { color: #e0f3f8; font-size: 13px; font-weight: 670; padding: 12px 17px; cursor: pointer; }
.absim-mini-label { color: #8baab9; font-size: 11px; font-weight: 400; margin-left: 5px; }
.absim-adjustments__body { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; gap: 25px; align-items: center; padding: 7px 18px 10px; }
.absim-slider-heading { display: flex; justify-content: space-between; gap: 7px; color: #bed8e4; font-size: 12px; font-weight: 620; }
.absim-slider-heading output { color: var(--absim-cyan); font-weight: 730; font-variant-numeric: tabular-nums; }
.absim-slider-group input[type="range"] { display: block; width: 100%; padding: 0; height: 19px; margin: 9px 0 2px; border: 0; box-shadow: none; background: transparent; cursor: pointer; accent-color: #65dbe7; }
.absim-slider-range { display: flex; justify-content: space-between; font-size: 10px; color: #819eae; }
.absim .absim-reset-params { font-size: 11px; white-space: normal; }
.absim-adjustments__hint { font-size: 11px; padding: 0 18px 13px; color: #8caabb; margin: 0 !important; }
.absim-lower { border-top: 1px solid var(--absim-border); padding-top: 21px; }
.absim-lower__head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 13px; }
.absim .absim-lower__head h3, .absim .absim-science h3 { font-size: 18px; font-weight: 730; letter-spacing: -.025em; margin-bottom: 0; }
.absim-lower__head > span { color: #91afbe; font-size: 12px; }
.absim-table-scroll { width: 100%; overflow-x: auto; border: 1px solid var(--absim-border); border-radius: 11px; }
.absim .absim-table { width: 100%; min-width: 625px; margin: 0; border: 0; border-collapse: collapse; background: rgba(9,32,48,.62); font-size: 12px; color: #d5e8f1; table-layout: auto; }
.absim .absim-table th, .absim .absim-table td { color: inherit; background: transparent; border: 0; border-bottom: 1px solid rgba(135,191,214,.12); padding: 11px 14px; text-align: left; font-size: 12px; font-weight: 500; }
.absim .absim-table thead th { font-weight: 720; background: #183548; color: #aac9d8; font-size: 11px; }
.absim .absim-table tbody th { font-weight: 670; }
.absim .absim-table tr.is-active { background: rgba(39,151,172,.12); }
.absim .absim-table tr:last-child th, .absim .absim-table tr:last-child td { border-bottom: 0; }
.absim-table-foot { color: #9fb9c6; margin: 11px 0 0 !important; font-size: 11px; }
.absim-table-foot strong { color: #e1f1f6; }
.absim-science { margin-top: 24px; padding-top: 21px; border-top: 1px solid var(--absim-border); }
.absim-science-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; margin: 16px 0 12px; }
.absim-science-item { min-width: 0; border: 1px solid rgba(136,193,214,.13); border-radius: 11px; background: rgba(27,61,80,.45); padding: 14px 15px; }
.absim-science-item > span { color: #4bd6e1; letter-spacing: .08em; font-size: 10px; font-weight: 720; }
.absim .absim-science-item h4 { font-size: 13px; font-weight: 720; margin: 5px 0 7px; }
.absim-science-item p { color: #a8c3d0; margin: 0; font-size: 11px; line-height: 1.7; }
.absim-science-item p strong { color: #dff9fd; }
.absim-method { font-size: 11px; color: #9eb7c5; line-height: 1.7; margin: 10px 0 15px !important; }
.absim-references { border-top: 1px solid var(--absim-border); padding-top: 11px; }
.absim-references summary { font-size: 13px; font-weight: 700; color: #d7f0f5; cursor: pointer; }
.absim-references ol { padding: 5px 0 2px 23px; margin: 6px 0 0; }
.absim-references li { color: #aabfcd; font-size: 11px; padding-left: 3px; margin: 0 0 11px; line-height: 1.7; }
.absim-credit { border-top: 1px solid rgba(135,190,210,.13); padding-top: 15px; margin-top: 18px; color: #8fa8b6; font-size: 10px; text-align: center; }
.absim-credit span { color: #6f90a1; }
@media (max-width: 980px) {
  .absim-header { flex-direction: column; gap: 12px; }
  .absim-header__badge { align-self: flex-start; }
  .absim-workspace { grid-template-columns: minmax(225px, .8fr) minmax(310px, 1.4fr); }
  .absim-control-panel { grid-template-columns: 148px minmax(0,1fr); gap: 17px; }
  .absim-clock { font-size: 36px; }
  .absim-actions { gap: 7px; }
  .absim .absim-btn { font-size: 11px; padding: 9px 11px; }
  .absim-adjustments__body { grid-template-columns: 1fr 1fr; }
  .absim-reset-params { grid-column: 1/-1; justify-self: start; }
}
@media (max-width: 740px) {
  .absim { border-radius: 15px; margin: 15px auto; padding: 16px; }
  .absim-scenarios { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .absim .absim-scenario { padding: 11px; min-height: 99px; }
  .absim-scenario__range { font-size: 14px; }
  .absim-scenario__title { font-size: 12px; }
  .absim-stat-row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .absim-stat { padding: 13px 13px 12px; }
  .absim-stat__label { min-height: 26px; }
  .absim-workspace { grid-template-columns: minmax(0,1fr); }
  .absim-lungs { max-width: 245px; }
  .absim-lung-card { display: grid; grid-template-columns: 1fr 1fr; column-gap: 8px; align-items: center; }
  .absim-lung-card .absim-panel-heading { grid-column: 1/-1; }
  .absim-lung-readout { text-align: left; }
  .absim-volume-track { margin-left: 0; }
  .absim-chart-wrap { height: 260px; }
  .absim-control-panel { grid-template-columns: minmax(0,1fr); gap: 14px; padding: 15px; }
  .absim-clock-block { display: grid; grid-template-columns: 1fr auto; align-items: center; border: 0; gap: 0 15px; }
  .absim-time-label { grid-column: 1; }
  .absim-clock { grid-column: 2; grid-row: 1/3; }
  .absim-count { grid-column: 1; }
  .absim-science-grid { grid-template-columns: 1fr; gap: 9px; }
}
@media (max-width: 480px) {
  .absim .absim-header h2 { font-size: 29px; }
  .absim .absim-scenario { min-height: 106px; }
  .absim-scenario__range { font-size: 13px; }
  .absim .absim-btn { flex: 1 1 auto; }
  .absim-actions .absim-btn--outline { flex-basis: 100%; }
  .absim-controls-foot { flex-direction: column; gap: 8px; }
  .absim-lung-card { grid-template-columns: 1fr; }
  .absim-lung-readout { text-align: center; }
  .absim-volume-track { margin-left: auto; }
  .absim-adjustments__body { grid-template-columns: 1fr; gap: 17px; }
  .absim-reset-params { grid-column: auto; }
  .absim-lower__head { display: block; }
  .absim-lower__head > span { display: block; padding-top: 7px; }
  .absim-science-item { padding: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .absim *, .absim *::before, .absim *::after { transition: none !important; }
}
