/* Benefit tiles with "Learn more". Baseline: native <details> expands inline (no JS).
   With JS: the same content opens in an accessible modal. Only widely supported CSS. */
.benefit-tiles { margin: 1.15rem 0 0; }
.benefit-tiles .benefit-grid { margin-top: 0; list-style: none; padding: 0; }
ul.benefit-grid.tile-grid > li,
.panel--wide ul.benefit-grid.tile-grid > li {
  padding: 0; background: transparent; border: 0; border-top: 0; box-shadow: none; position: relative;
}
.benefit-card {
  display: block;
  height: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.benefit-card > summary {
  display: block;
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.1rem;
  min-height: 44px;
  -webkit-tap-highlight-color: rgba(146,30,45,.15);
  touch-action: manipulation;
}
.benefit-card > summary::-webkit-details-marker { display: none; }
.benefit-card > summary::marker { content: ""; }
.benefit-card > summary:focus { outline: 3px solid var(--red); outline-offset: -3px; }
.tile-row { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-align-items: flex-start; align-items: flex-start; }
.tile-icon {
  -webkit-flex: 0 0 52px; flex: 0 0 52px;
  width: 52px; height: 52px;
  margin-right: .9rem;
  border-radius: 50%;
  background: var(--navy-50);
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-align-items: center; align-items: center;
  -webkit-justify-content: center; justify-content: center;
}
.tile-icon svg { width: 30px; height: 30px; display: block; }
.tile-text { -webkit-flex: 1 1 auto; flex: 1 1 auto; min-width: 0; }
.benefit-card strong {
  display: block; font-family: var(--serif); color: var(--navy);
  font-size: 1.05rem; margin-bottom: .15rem;
}
.benefit-card summary span.blurb { display: block; color: var(--muted); font-size: .95rem; font-weight: 400; }
.benefit-card summary .more-label {
  display: inline-block;
  margin-top: .5rem;
  padding: .5rem .95rem;
  min-height: 44px;
  box-sizing: border-box;
  line-height: 1.75;
  border: 1.5px solid var(--red);
  border-radius: 999px;
  font-size: .86rem; font-weight: 700; color: var(--red); letter-spacing: .02em;
  background: #fff;
}
.benefit-card summary .more-label::after { content: " +"; }
.benefit-card[open] summary .more-label::after { content: " \2212"; }
@media (hover: hover) and (pointer: fine) {
  .benefit-card > summary:hover .more-label { background: var(--red); color: #fff; }
  .benefit-card > summary:hover { background: #FBFCFE; }
}
.benefit-card[open] { border-top-color: var(--navy); }

/* Inline details (no-JS baseline) */
.benefit-more { padding: 0 1.1rem 1.1rem; border-top: 1px solid var(--line); }
.benefit-more ul { margin: .75rem 0 0; padding: 0 0 0 1.15rem; }
.benefit-more li { margin: 0 0 .5rem; color: var(--ink); font-size: .95rem; }
.benefit-more .panel-access, .benefit-panel .panel-access {
  margin: .9rem 0 0; padding: .8rem 1rem; background: var(--navy-50);
  border-left: 4px solid var(--navy); border-radius: 0 12px 12px 0; font-size: .95rem;
}
.benefit-more .panel-fine, .benefit-panel .panel-fine { margin: .8rem 0 0; font-size: .82rem; color: var(--muted); }

/* Modal (JS only). The layer is a sibling of <main> and <footer>, never a wrapper. */
.benefit-panel-layer[hidden] { display: none !important; }
.benefit-panel-layer {
  position: fixed; left: 0; right: 0; top: 0; bottom: 0;
  z-index: 1000;
  background: rgba(6,34,71,.5);
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-align-items: flex-end; align-items: flex-end;
  -webkit-justify-content: center; justify-content: center;
  padding: .75rem .75rem 1rem;
  box-sizing: border-box;
}
@media (min-width: 720px) {
  .benefit-panel-layer { -webkit-align-items: center; align-items: center; padding: 2rem; }
}
.benefit-panel {
  background: #fff; color: var(--ink);
  width: 100%; max-width: 580px; max-height: 100%;
  overflow: auto; -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(6,34,71,.28);
  border-top: 6px solid var(--red);
  padding: 1.25rem 1.3rem 1.4rem;
  position: relative;
}
.benefit-panel:focus { outline: none; }
.panel-head { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; margin: 0 3.2rem .8rem 0; }
.panel-head .tile-icon { margin-right: .8rem; }
.benefit-panel h3 { margin: 0; font-size: 1.35rem; line-height: 1.25; }
.benefit-panel ul { margin: 0; padding: 0 0 0 1.15rem; }
.benefit-panel li { margin: 0 0 .55rem; }
.panel-close {
  position: absolute; top: .7rem; right: .7rem;
  width: 44px; height: 44px;
  border: 1.5px solid var(--navy); border-radius: 10px;
  background: #fff; color: var(--navy);
  font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0;
}
.panel-close:focus { outline: 3px solid var(--red); outline-offset: 2px; }
body.panel-open { overflow: hidden; }
@media (max-width: 380px) {
  .tile-icon { -webkit-flex-basis: 44px; flex-basis: 44px; width: 44px; height: 44px; margin-right: .7rem; }
  .tile-icon svg { width: 26px; height: 26px; }
}
