/* Coffee-pouch application study and its Applications-page entrance. */
.case-feature-section {
  padding: 0 0 36px;
}
.case-feature {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 44px;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--light);
  transition: border-color 0.2s;
}
.case-feature:hover {
  border-color: #73bfb9;
}
.case-feature h2 {
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin: 16px 0;
}
.case-feature p {
  color: var(--muted);
  max-width: 470px;
}
.case-feature figure {
  margin: 0;
}
.case-feature img {
  display: block;
  width: 100%;
  border-radius: 10px;
}
.case-feature-link {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  color: var(--blue);
  font-weight: 700;
  margin-top: 22px;
}
.coffee-case h1,
.coffee-case h2 {
  letter-spacing: -0.045em;
  line-height: 1.12;
}
.coffee-case h3 {
  line-height: 1.3;
  margin: 0 0 14px;
  font-size: 23px;
  letter-spacing: -0.025em;
}
.case-hero {
  background: linear-gradient(135deg, #f4f8fa, #fff 75%);
  padding: 32px 0 0;
}
.case-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 48px;
}
.case-crumb a:hover {
  color: var(--blue);
}
.case-hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.15fr;
  gap: 48px;
  align-items: center;
}
.coffee-case h1 {
  font-size: clamp(42px, 4.7vw, 66px);
  margin: 18px 0 24px;
}
.case-lead {
  max-width: 500px;
  color: var(--muted);
  font-size: 18px;
}
.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}
.case-tags span {
  color: #245659;
  background: #e6f3f1;
  border: 1px solid #cde6e2;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 650;
}
.case-hero-figure {
  margin: 0;
}
.case-hero-figure img {
  width: 100%;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.coffee-case figcaption {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  margin-top: 12px;
}
.case-facts {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.3fr 1fr;
  padding: 28px 0;
  margin: 44px 0 0;
  border-top: 1px solid var(--line);
  gap: 24px;
}
.case-facts dt {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 8px;
}
.case-facts dd {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
}
.case-facts a {
  color: var(--blue);
}
.case-jump {
  border-block: 1px solid var(--line);
  background: #fff;
}
.case-jump .container {
  display: flex;
  gap: 34px;
  padding-block: 17px;
  overflow-x: auto;
}
.case-jump a {
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
}
.case-jump a:hover {
  color: var(--blue);
}
.case-section {
  padding: 76px 0;
  scroll-margin-top: 105px;
}
.case-heading {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: end;
  gap: 70px;
  margin-bottom: 38px;
}
.case-heading h2 {
  font-size: clamp(32px, 3.5vw, 46px);
  margin: 16px 0 0;
}
.case-heading > p {
  color: var(--muted);
  max-width: 490px;
  margin: 0;
}
.case-light {
  background: var(--light);
}
.case-pass {
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 14px 0;
}
.case-pass-title {
  display: flex;
  gap: 20px;
  align-items: center;
}
.case-pass-title > span {
  display: grid;
  place-items: center;
  background: #e6f3f1;
  color: #187d7a;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  font-weight: 700;
}
.case-pass-title h3 {
  margin-bottom: 2px;
}
.case-pass-title p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.case-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  padding: 0;
  gap: 12px 28px;
  margin: 24px 0 0;
}
.case-flow li {
  position: relative;
  border-radius: 6px;
  background: #f0f5f8;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 12px;
}
.case-flow li:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -22px;
  color: #198984;
}
.case-note {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 20px 0 0;
  max-width: 980px;
}
.case-table-wrap {
  overflow-x: auto;
  margin-top: 32px;
}
.case-table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 14px;
  min-width: 640px;
}
.case-table caption {
  text-align: left;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
}
.case-table th,
.case-table td {
  border-bottom: 1px solid var(--line);
  padding: 19px 20px;
  vertical-align: top;
}
.case-table thead {
  background: var(--navy);
  color: #fff;
  font-size: 12px;
}
.case-table tbody tr:nth-child(even) {
  background: #f4f8fa;
}
.case-table small {
  color: var(--muted);
  font-size: 12px;
}
.case-materials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.case-materials article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px;
}
.case-material-label {
  display: block;
  color: #168a86;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 750;
  margin-bottom: 28px;
}
.case-materials p,
.case-two-col p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 0;
}
.case-principle {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 44px;
  background: #e5f0f0;
  border-radius: 10px;
  padding: 30px;
  margin-top: 24px;
}
.case-principle h3 {
  font-size: 21px;
  margin: 10px 0 0;
}
.case-principle p {
  color: #466773;
  font-size: 14px;
  margin: 0;
}
.case-text-link {
  display: inline-block;
  color: #108b87;
  font-size: 13px;
  font-weight: 700;
  margin-top: 24px;
}
.case-temperature {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.case-temperature > div {
  padding: 28px 32px;
  background: #f0f7f6;
}
.case-temperature > div:nth-child(2) {
  background: #e7f1ef;
}
.case-temperature > div:nth-child(3) {
  background: #dbece8;
}
.case-temperature > div > span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.case-temperature strong {
  display: block;
  font-size: clamp(29px, 3.5vw, 48px);
  letter-spacing: -0.04em;
  margin-top: 12px;
}
.case-temperature strong span {
  font-size: 22px;
  margin-left: 4px;
}
.case-temperature p {
  font-size: 12px;
  color: #426270;
}
.case-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 36px;
}
.case-dark {
  background: var(--navy);
  color: #fff;
}
.case-dark .eyebrow {
  color: #88d6cc;
}
.case-dark .case-heading > p,
.case-dark-note {
  color: #b7ccd7;
}
.case-diagnostics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.case-diagnostics details {
  border: 1px solid #35546a;
  border-radius: 10px;
  background: #17394f;
  padding: 24px;
}
.case-diagnostics summary {
  cursor: pointer;
  font-size: 17px;
  font-weight: 650;
}
.case-diagnostics summary span {
  color: #82d4ca;
  margin-right: 10px;
  font-size: 12px;
}
.case-diagnostics p {
  font-size: 14px;
  color: #c6d6df;
  margin: 18px 0 0;
}
.case-dark-note {
  font-size: 12px;
  max-width: 840px;
  margin: 28px 0 0;
}
.case-speed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 18px;
}
.case-speed li {
  padding: 24px 30px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.case-speed li:last-child {
  background: var(--navy);
  color: #fff;
}
.case-speed li > span {
  font-size: 11px;
  color: var(--muted);
}
.case-speed li:last-child > span {
  color: #86d2c8;
}
.case-speed strong {
  display: block;
  font-size: 44px;
  letter-spacing: -0.04em;
}
.case-speed small {
  font-size: 14px;
  letter-spacing: 0;
  font-weight: 500;
}
.case-result {
  border-left: 3px solid #37b2a7;
  padding: 22px 28px;
  margin: 24px 0 32px;
  background: #f0f7f5;
}
.case-result p {
  font-size: 24px;
  margin: 8px 0 12px;
  letter-spacing: -0.02em;
}
.case-result small {
  display: block;
  max-width: 840px;
  color: var(--muted);
  font-size: 12px;
}
.case-wide-figure {
  margin: 0;
}
.case-wide-figure img {
  display: block;
  width: 100%;
  max-width: 1000px;
  margin: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.case-wide-figure figcaption {
  max-width: 1000px;
  margin: 12px auto 0;
}
.case-verification {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  margin-top: 38px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.case-verification p {
  color: var(--muted);
  font-size: 14px;
}
.case-verification ul {
  padding-left: 20px;
  margin: 0;
  font-size: 14px;
}
.case-verification li {
  margin-bottom: 12px;
}
.case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
}
.case-actions .case-text-link {
  margin-top: 0;
}
@media (max-width: 900px) {
  .case-hero-grid,
  .case-feature {
    grid-template-columns: 1fr;
  }
  .case-hero-grid {
    gap: 32px;
  }
  .case-hero-figure {
    max-width: 720px;
  }
  .case-heading {
    gap: 30px;
  }
  .case-materials {
    grid-template-columns: 1fr;
  }
  .case-material-label {
    margin-bottom: 14px;
  }
  .case-facts {
    grid-template-columns: 1fr 1fr;
  }
  .case-principle {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
@media (max-width: 600px) {
  .case-section {
    padding: 50px 0;
  }
  .case-feature {
    padding: 24px;
    gap: 26px;
  }
  .case-heading,
  .case-two-col,
  .case-verification,
  .case-diagnostics {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .case-crumb {
    margin-bottom: 28px;
  }
  .case-pass {
    padding: 22px 18px;
  }
  .case-flow {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .case-flow li:not(:last-child)::after {
    content: '↓';
    right: auto;
    bottom: -18px;
    left: 50%;
  }
  .case-temperature {
    grid-template-columns: 1fr;
  }
  .case-temperature > div {
    padding: 22px;
  }
  .case-temperature strong {
    font-size: 38px;
  }
  .case-speed {
    gap: 8px;
  }
  .case-speed li {
    padding: 16px 10px;
  }
  .case-speed strong {
    font-size: 29px;
  }
  .case-speed small {
    display: block;
    font-size: 12px;
  }
  .case-jump .container {
    gap: 24px;
  }
  .case-facts dd {
    font-size: 12px;
  }
  .case-result {
    padding: 20px;
  }
  .case-actions .btn {
    width: 100%;
  }
}
/* Preserve the approved illustration aspect ratios despite intrinsic dimensions. */
.info-card[id] {
  scroll-margin-top: 110px;
}
.case-feature img,
.case-hero-figure img,
.case-wide-figure img {
  height: auto;
  object-fit: contain;
}

/* Interactive study: retain the full case when JavaScript is unavailable. */
.coffee-case {
  --case-nav-top: 82px;
}
.case-jump {
  position: sticky;
  top: var(--case-nav-top);
  z-index: 20;
  background: #fffffff5;
  backdrop-filter: blur(12px);
}
.case-jump .container {
  padding-block: 0;
}
.case-jump a {
  padding-block: 20px;
  flex: 0 0 auto;
}
.case-jump a[aria-current='location'] {
  color: var(--blue);
  box-shadow: inset 0 -2px var(--blue);
}
.case-reading-track {
  height: 2px;
  overflow: hidden;
  background: #e8f0f4;
}
.case-reading-track span {
  display: block;
  height: 100%;
  background: #188b88;
  transform: scaleX(0);
  transform-origin: left;
}
.coffee-case .case-section {
  scroll-margin-top: calc(var(--case-nav-top) + 92px);
}
.case-control-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.case-control-group[hidden],
.coffee-case [hidden] {
  display: none;
}
.case-control-group button {
  appearance: none;
  min-height: 48px;
  padding: 14px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #3c5c70;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition:
    background 180ms,
    border-color 180ms;
}
.case-control-group button[aria-pressed='true'] {
  background: #123d56;
  border-color: #123d56;
  color: #fff;
}
.case-pass-selector button {
  min-width: 230px;
  text-align: left;
}
.case-pass-selector button span {
  display: block;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.15em;
  opacity: 0.75;
  margin-bottom: 7px;
}
.coffee-case button:focus-visible,
.coffee-case summary:focus-visible,
.case-schematic-scroll:focus-visible,
.case-jump a:focus-visible {
  outline: 3px solid #299ee7;
  outline-offset: 3px;
}
.case-pass-selector button:hover {
  border-color: #188b88;
}
.case-schematic {
  margin: 22px 0 0;
}
.case-schematic-scroll {
  overflow-x: auto;
  border: 1px solid #dfebf0;
  border-radius: 10px;
  background: #f7fafb;
}
.case-schematic svg {
  width: 100%;
  min-width: 700px;
  display: block;
  font-family: inherit;
}
.case-schematic-node > rect {
  fill: #fff;
  stroke: #d2e1e9;
  stroke-width: 1.5;
  transition:
    fill 180ms,
    stroke 180ms;
}
.case-schematic-node.is-active > rect {
  fill: #e8f6f3;
  stroke: #188b88;
  stroke-width: 2.5;
}
.case-schematic-node > text {
  text-anchor: middle;
  font-size: 13px;
  font-weight: 650;
  fill: #163e56;
}
.case-schematic-small {
  font-size: 11px !important;
  fill: #637e90 !important;
  font-weight: 450 !important;
}
.case-schematic-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  fill: #188b88;
}
.case-schematic-feed {
  text-anchor: middle;
  fill: #163e56;
  font-size: 13px;
  font-weight: 650;
}
.case-schematic-feed + text {
  text-anchor: middle;
}
.case-flow-interactive {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
#case-pass-second .case-flow-interactive {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.case-flow-interactive li {
  padding: 0;
  background: none;
}
.case-flow-interactive li:not(:last-child)::after {
  content: none;
}
.case-flow-interactive button {
  width: 100%;
  height: 100%;
  min-height: 70px;
  text-align: left;
  appearance: none;
  border: 1px solid #d8e5eb;
  border-radius: 8px;
  color: #45677b;
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  padding: 12px;
  cursor: pointer;
  transition:
    background 180ms,
    border-color 180ms;
}
.case-flow-interactive button:disabled {
  cursor: default;
  opacity: 1;
}
.case-flow-interactive button[aria-pressed='true'] {
  background: #eaf6f3;
  border-color: #188b88;
  color: #116f6b;
}
.case-step-number {
  display: block;
  font-size: 10px;
  color: #638c92;
  margin-bottom: 6px;
  letter-spacing: 0.1em;
}
.case-step-note {
  margin-top: 16px;
  padding: 20px 24px;
  border-left: 3px solid #188b88;
  background: #f2f8f8;
  min-height: 125px;
}
.case-step-note h4 {
  margin: 0 0 8px;
  font-size: 15px;
}
.case-step-note p {
  color: #58768b;
  font-size: 14px;
  margin: 0;
  line-height: 1.75;
}
.case-material-note {
  margin-top: 22px;
  border-top: 1px solid #dae5eb;
  padding-top: 16px;
}
.case-material-note summary {
  display: flex;
  justify-content: space-between;
  list-style: none;
  font-size: 12px;
  font-weight: 650;
  color: #117e78;
  cursor: pointer;
  min-height: 44px;
  align-items: center;
}
.case-material-note summary::-webkit-details-marker {
  display: none;
}
.case-material-note summary span {
  font-size: 19px;
  transition: transform 180ms;
}
.case-material-note[open] summary span {
  transform: rotate(45deg);
}
.case-material-note p {
  margin-top: 12px;
}
.case-dark .case-control-group button {
  background: #17394f;
  border-color: #416074;
  color: #c7dbe5;
}
.case-dark .case-control-group button[aria-pressed='true'] {
  background: #a0e0d8;
  color: #103b48;
  border-color: #a0e0d8;
}
.case-symptom-notes {
  border: 1px solid #416074;
  border-radius: 12px;
  padding: 28px;
  background: #113449;
  margin-bottom: 24px;
}
.case-symptom-notes article + article {
  margin-top: 22px;
}
.coffee-case[data-enhanced] .case-symptom-notes article {
  margin-top: 0;
  min-height: 145px;
}
.case-symptom-kicker {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8bd6cc;
  font-weight: 650;
}
.case-symptom-notes h3 {
  margin: 12px 0;
  font-size: 24px;
}
.case-symptom-notes p {
  max-width: 920px;
  color: #c6d6df;
  font-size: 14px;
  margin: 0;
}
.case-symptom-notes .case-text-link {
  color: #94ddd4;
  margin-top: 12px;
}
.case-diagnostics .is-recommended {
  border-color: #76bdb4;
}
.case-speed li {
  padding: 0;
  overflow: hidden;
  background: #fff;
}
.case-speed li:last-child {
  background: #fff;
  color: var(--navy);
}
.case-speed button {
  display: block;
  text-align: left;
  width: 100%;
  min-height: 130px;
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 24px 30px;
  cursor: pointer;
  transition: background 180ms;
}
.case-speed button > span {
  font-size: 11px;
  color: #637e90;
}
.case-speed button:disabled {
  cursor: default;
  opacity: 1;
}
.case-speed button[aria-pressed='true'] {
  background: #123d56;
  color: #fff;
}
.case-speed button[aria-pressed='true'] > span {
  color: #90d9d0;
}
.case-speed button:focus-visible {
  outline-offset: -4px;
}
.case-trial-focus {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 40px;
  align-items: center;
  background: #f4f8fa;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 18px;
  padding: 28px 32px;
}
.case-trial-focus h3 {
  margin: 12px 0;
  font-size: 24px;
}
.case-trial-focus p {
  font-size: 14px;
  color: #5f7c90;
  margin: 0;
}
.case-trial-focus .case-note {
  font-size: 12px;
  margin-top: 14px;
}
.case-trial-metric {
  border-right: 1px solid var(--line);
  padding-right: 30px;
}
.case-trial-metric > span {
  color: #56798a;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.case-trial-metric strong {
  display: block;
  font-size: 48px;
  color: #147f78;
  letter-spacing: -0.045em;
  line-height: 1.2;
  margin: 8px 0 12px;
}
.case-trial-metric small {
  font-size: 20px;
  letter-spacing: 0;
  font-weight: 500;
}
.case-trial-metric p {
  font-size: 11px;
  line-height: 1.8;
}
@media (max-width: 780px) {
  .coffee-case {
    --case-nav-top: 70px;
  }
  .case-pass-selector button {
    min-width: 0;
    flex: 1;
    padding: 14px 16px;
  }
  .case-flow-interactive,
  #case-pass-second .case-flow-interactive {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .case-trial-focus {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 24px;
  }
  .case-trial-metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 20px;
  }
  .case-symptom-notes {
    padding: 22px;
  }
  .case-symptom-notes h3 {
    font-size: 21px;
  }
}
@media (max-width: 600px) {
  .case-speed button {
    padding: 16px 10px;
    min-height: 112px;
  }
  .case-symptom-selector {
    gap: 8px;
  }
  .case-symptom-selector button {
    font-size: 12px;
    padding-inline: 12px;
    flex-grow: 1;
  }
  .case-step-note {
    padding: 18px;
    min-height: 170px;
  }
  .case-schematic figcaption {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .case-control-group button,
  .case-flow-interactive button,
  .case-schematic-node > rect,
  .case-material-note summary span,
  .case-speed button {
    transition: none;
  }
}
