/* Patients info section: accordion of legal modules. */

.aic-patients {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 880px;
  margin: 32px auto;
}

.aic-patients__module {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
}
.aic-patients__module[open] {
  box-shadow: 0 4px 14px rgba(15, 23, 42, .07);
  border-color: rgba(9, 202, 143, .25);
}
.aic-patients__module summary { list-style: none; }
.aic-patients__module summary::-webkit-details-marker { display: none; }

.aic-patients__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  font-size: 17px;
  color: #0f172a;
  transition: background .15s;
}
.aic-patients__head:hover { background: #f8fafc; }
.aic-patients__head:focus-visible { outline: 2px solid var(--primary-color, #09CA8F); outline-offset: -2px; }

.aic-patients__icon {
  flex-shrink: 0;
  color: var(--primary-color, #09CA8F);
}

.aic-patients__title { flex: 1; line-height: 1.3; }

.aic-patients__chev {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform .25s ease;
}
.aic-patients__chev::before,
.aic-patients__chev::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 10px;
  height: 2px;
  background: #64748b;
  border-radius: 2px;
}
.aic-patients__chev::before { left: 2px; transform: rotate(45deg); }
.aic-patients__chev::after  { right: 2px; transform: rotate(-45deg); }
.aic-patients__module[open] .aic-patients__chev { transform: rotate(180deg); }

.aic-patients__body {
  padding: 4px 22px 22px;
  border-top: 1px solid #f1f5f9;
  color: #334155;
  font-size: 15px;
  line-height: 1.55;
}
.aic-patients__body p { margin: 12px 0; }
.aic-patients__body h4 {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  margin: 18px 0 8px;
}
.aic-patients__body ul,
.aic-patients__body ol {
  margin: 8px 0 12px;
  padding-left: 22px;
}
.aic-patients__body li { margin: 6px 0; }
.aic-patients__body a {
  color: var(--primary-color, #09CA8F);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.aic-patients__body a:hover { color: var(--primary-hover, #08AB79); }

.aic-patients__dl {
  display: grid;
  grid-template-columns: minmax(180px, max-content) 1fr;
  gap: 8px 18px;
  margin: 12px 0;
}
.aic-patients__dl dt {
  font-weight: 500;
  color: #64748b;
  font-size: 14px;
}
.aic-patients__dl dd {
  margin: 0;
  color: #0f172a;
  font-size: 15px;
}

.aic-patients__authorities {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.aic-patients__authorities li {
  padding: 14px 16px;
  background: #f8fafc;
  border-radius: 10px;
  line-height: 1.6;
  font-size: 14.5px;
}
.aic-patients__authorities strong { color: #0f172a; font-size: 15px; }

.aic-patients__note {
  margin: 14px 0 0 !important;
  padding: 10px 14px;
  background: rgba(9, 202, 143, .07);
  border-left: 3px solid var(--primary-color, #09CA8F);
  border-radius: 6px;
  font-size: 14px;
  color: #0f172a;
}

@media (max-width: 768px) {
  .aic-patients { gap: 10px; margin: 24px auto; }
  .aic-patients__head { padding: 14px 16px; font-size: 15.5px; gap: 12px; }
  .aic-patients__icon { width: 22px; height: 22px; }
  .aic-patients__body { padding: 4px 16px 18px; font-size: 14px; }
  .aic-patients__dl {
    grid-template-columns: 1fr;
    gap: 4px 0;
  }
  .aic-patients__dl dt { margin-top: 8px; }
  .aic-patients__dl dt:first-child { margin-top: 0; }
  .aic-patients__authorities li { padding: 12px 14px; font-size: 14px; }
}

@media (max-width: 480px) {
  .aic-patients__head { font-size: 14.5px; }
  .aic-patients__title { line-height: 1.35; }
}

/* Polish #2: aic-patients__title was span, promoted to h2 for semantic hierarchy */
h2.aic-patients__title {
  font-size: 17px;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
  flex: 1;
}
@media (max-width: 768px) {
  h2.aic-patients__title { font-size: 15.5px; }
}
@media (max-width: 480px) {
  h2.aic-patients__title { font-size: 14.5px; line-height: 1.35; }
}
