/* Families scan the directory by department, then name and responsibility.
   Staff stories retain their original photography and complete article titles. */
body:has(.native-content[data-native-record="3310"]) .ce-chapter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-block: 1rem 2rem;
  border-bottom: 1px solid var(--line);
}
body:has(.native-content[data-native-record="3310"]) .ce-chapter-nav a {
  padding: 0.65rem 1rem;
  border-radius: 2rem;
  font-size: 1rem;
  line-height: 1.4;
  background: #fffdf7;
}
body:has(.native-content[data-native-record="3310"]) .ce-chapter-nav a:hover,
body:has(.native-content[data-native-record="3310"])
  .ce-chapter-nav
  a:focus-visible {
  background: var(--blue);
  color: white;
}
.native-content[data-native-record="3310"] .page-story {
  padding-block: 1.5rem 2.5rem;
}
.native-content[data-native-record="3310"] > .native-section {
  padding-block: clamp(1.5rem, 3vw, 3rem);
  margin-block: 0;
  border-bottom: 1px solid var(--line);
}
.native-content[data-native-record="3310"] > #section-programas-integrados {
  border-bottom: 0;
}
.native-content[data-native-record="3310"] > .native-section > h2 {
  width: 100%;
  max-width: none;
  margin: 0 0 1.75rem;
  color: var(--blue);
  font-family: "Newsreader Variable", Georgia, serif;
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 450;
  line-height: 1.12;
}
.native-content[data-native-record="3310"] .native-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 1rem;
  margin: 0;
}
.native-content[data-native-record="3310"] .native-card-grid > article {
  display: block;
  min-width: 0;
  min-height: 0;
  padding: clamp(1.2rem, 2vw, 1.75rem);
  border: 1px solid #dfded5;
  border-top: 0.2rem solid #aebed5;
  border-radius: 0.25rem 0.25rem 1rem 1rem;
  background: #fffdf7;
  color: var(--ink);
  transform: none;
  box-shadow: none;
}
.native-content[data-native-record="3310"] .native-card-grid > article::before {
  content: none;
}
.native-content[data-native-record="3310"] .native-card-grid h3 {
  margin: 0 0 0.8rem;
  color: var(--deep);
  font-size: clamp(1.15rem, 1.45vw, 1.4rem);
  font-weight: 650;
  line-height: 1.4;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.native-content[data-native-record="3310"] .native-card-grid p {
  margin: 0.5rem 0 0;
  color: #515d70;
  font-size: clamp(1rem, 1.1vw, 1.05rem);
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.native-content[data-native-record="3310"]
  .native-section:first-of-type
  .native-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.native-content[data-native-record="3310"]
  .native-section:first-of-type
  .native-card-grid
  > article {
  border-top-color: var(--blue);
  background: #eef1f8;
}
.native-content[data-native-record="3310"]
  #section-secundaria-y-preparatoria
  .native-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.native-content[data-native-record="3310"] .native-table {
  margin: 1.2rem 0 0;
  border-top: 1px solid #dedfd9;
}
.native-content[data-native-record="3310"] .native-table td {
  padding: 0.6rem 0.75rem 0.25rem 0;
  border: 0;
  width: 50%;
}
.native-content[data-native-record="3310"] .native-table td:last-child {
  padding-right: 0;
}
.native-content[data-native-record="3478"] .native-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.native-content[data-native-record="3478"] .native-card-grid > article {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
  min-width: 0;
  border-color: #deded6;
  background: #fffdf7;
  border-radius: 1.2rem;
}
.native-content[data-native-record="3478"] .native-card-grid .native-photo {
  max-width: none;
}
.native-content[data-native-record="3478"] .native-card-grid .native-photo img {
  border-radius: 0;
  aspect-ratio: 3 / 2;
  object-position: center 35%;
}
.native-content[data-native-record="3478"] .native-card-grid h2 {
  margin: 0;
  padding: clamp(1.3rem, 2.5vw, 2rem);
  font-family: "Newsreader Variable", Georgia, serif;
  font-size: clamp(1.65rem, 2.3vw, 2.3rem);
  font-weight: 450;
  line-height: 1.2;
  text-wrap: balance;
}
.native-content[data-native-record="3478"] .native-card-grid h2 a {
  color: inherit;
  text-decoration: none;
}
.native-content[data-native-record="3478"] .native-card-grid h2 a:hover,
.native-content[data-native-record="3478"]
  .native-card-grid
  h2
  a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
}
.native-content[data-native-record="3478"]
  .native-card-grid
  > article:not(:has(img)) {
  justify-content: center;
  min-height: 20rem;
  background: #173b50;
  color: #fffdf7;
}
.native-content[data-native-record="3478"]
  .native-card-grid
  > article:not(:has(img))::before {
  content: none;
}
@media (max-width: 62rem) {
  .native-content[data-native-record="3310"] .native-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 42rem) {
  .native-content[data-native-record="3310"] .native-card-grid,
  .native-content[data-native-record="3310"]
    .native-section:first-of-type
    .native-card-grid,
  .native-content[data-native-record="3310"]
    #section-secundaria-y-preparatoria
    .native-card-grid,
  .native-content[data-native-record="3478"] .native-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.staff-context-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.2rem;
  margin-top: 1rem;
  border: 1px solid currentColor;
  border-radius: 2rem;
  font-size: 1rem;
  font-weight: 650;
  text-decoration: none;
}
.staff-context-link .cec-icon {
  width: 1.1rem;
  height: 1.1rem;
}
.staff-context-link:hover,
.staff-context-link:focus-visible {
  background: var(--blue);
  color: white;
}
.staff-activities {
  padding-top: clamp(2rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: 7rem;
}
.staff-activities-heading {
  max-width: 54rem;
  margin-inline: auto;
}
.staff-activities-heading h2 {
  margin: 0.75rem 0 1rem;
  font-family: "Newsreader Variable", Georgia, serif;
  font-weight: 450;
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1.1;
}
.staff-activities-heading > p:last-child {
  font-size: clamp(1.1rem, 1.4vw, 1.25rem);
  line-height: 1.65;
}

/* Pair each subject with its year even when mobile text wraps. */
.native-content[data-native-record="3310"] .native-table table,
.native-content[data-native-record="3310"] .native-table tbody {
  display: block;
}
.native-content[data-native-record="3310"] .native-table tr {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 0.65rem 1rem;
}
.native-content[data-native-record="3310"] .native-table td {
  display: contents;
}
.native-content[data-native-record="3310"] .native-table td p {
  margin: 0;
}
.native-content[data-native-record="3310"] .native-table td:first-child p {
  grid-column: 1;
}
.native-content[data-native-record="3310"] .native-table td:last-child p {
  grid-column: 2;
}
.native-content[data-native-record="3310"] .native-table td p:nth-child(1) {
  grid-row: 1;
}
.native-content[data-native-record="3310"] .native-table td p:nth-child(2) {
  grid-row: 2;
}
.native-content[data-native-record="3310"] .native-table td p:nth-child(3) {
  grid-row: 3;
}
.native-content[data-native-record="3310"] .native-table td p:nth-child(4) {
  grid-row: 4;
}
.native-content[data-native-record="3310"] .native-table td p:nth-child(5) {
  grid-row: 5;
}
.native-content[data-native-record="3310"] .native-table td p:nth-child(6) {
  grid-row: 6;
}
.native-content[data-native-record="3310"] .native-table td p:nth-child(7) {
  grid-row: 7;
}
.native-content[data-native-record="3310"] .native-table td p:nth-child(8) {
  grid-row: 8;
}
