.tense-story {
  margin: 24px 0;
  border: 1px solid #d8e0e5;
  border-top: 5px solid var(--gold);
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 50, 77, .06);
}
.tense-story-heading { padding: 24px 28px 17px; background: linear-gradient(135deg, #f4f7f9, #fff); border-bottom: 1px solid #e4e9ec; }
.tense-story-heading span { display: block; margin-bottom: 7px; color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.tense-story-heading h3 { margin: 0; color: var(--navy); font: 600 28px/1.2 Georgia, serif; }
.tense-story-copy { padding: 8px 28px 10px; color: #364651; font-size: 16px; line-height: 1.75; }
.tense-story-copy p { margin: 17px 0; }
.tense-story .spanish-sentence, .tense-story [lang="es"] { color: #165b8b; }
.tense-irregular-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 5px 28px 25px; border: 1px solid #dce3e7; background: #dce3e7; }
.tense-irregular-strip span { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; background: #f7f9fa; }
.tense-irregular-strip i { color: #6b7780; }
.tense-irregular-strip b { font-family: Georgia, serif; }
.tense-story-ending { padding: 20px 28px 23px; border-left: 5px solid var(--red); background: #fbf1f2; }
.tense-story-ending > b { color: var(--red); font-size: 17px; }
.tense-story-ending p { margin: 7px 0 0; line-height: 1.65; }

.tense-full-forms { margin: 4px 28px 26px; }
.tense-full-forms h4 { margin: 0 0 13px; color: var(--navy); font: 600 20px/1.3 Georgia, serif; }
.tense-full-forms-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tense-full-forms-grid section { border: 1px solid #dce3e7; background: #f8fafb; }
.tense-full-forms-grid h5 { margin: 0; padding: 12px 14px; background: var(--navy); color: #fff; font: 600 21px/1.2 Georgia, serif; }
.tense-full-forms-grid dl { margin: 0; }
.tense-full-forms-grid dl div { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(70px, .75fr); gap: 8px; padding: 9px 12px; border-bottom: 1px solid #e2e7ea; }
.tense-full-forms-grid dl div:last-child { border-bottom: 0; }
.tense-full-forms-grid dt { color: #687680; font-size: 13px; }
.tense-full-forms-grid dd { margin: 0; color: #165b8b; font: 700 16px/1.25 Georgia, serif; }
.tense-irregular-summary { display: none; }
@media (max-width: 700px) {
  .tense-story-heading, .tense-story-copy, .tense-story-ending { padding-left: 18px; padding-right: 18px; }
  .tense-irregular-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-left: 18px; margin-right: 18px; }
  .tense-full-forms { margin-left: 18px; margin-right: 18px; }
  .tense-full-forms-grid { grid-template-columns: 1fr; }
}
.tense-full-forms-grid h5{color:#fff!important}

.tense-story-subsection { margin: 0; padding: 18px 0 20px; border-bottom: 1px solid #e2e7ea; }
.tense-story-subsection:last-child { border-bottom: 0; }
.tense-story-subsection h4 { margin: 0 0 10px; color: #111; font: 700 21px/1.25 Georgia, serif; }
.tense-story-subsection > p { margin: 0 0 14px; }
.tense-story-subsection table { width: 100%; border: 1px solid #dce3e7; border-collapse: separate; border-spacing: 0; overflow: hidden; background: #fff; font-size: 14px; line-height: 1.35; }
.tense-story-subsection thead th { padding: 9px 11px; border-bottom: 1px solid #cfd9df; background: #eef3f6; color: #111; text-align: left; font-size: 12px; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.tense-story-subsection tbody th,
.tense-story-subsection tbody td { padding: 9px 11px; border-bottom: 1px solid #e5eaed; vertical-align: top; text-align: left; }
.tense-story-subsection tbody tr:last-child th,
.tense-story-subsection tbody tr:last-child td { border-bottom: 0; }
.tense-story-subsection tbody th { width: 25%; background: #fafbfc; color: #111; font-weight: 700; }
.tense-story-subsection [lang="es"] { color: var(--cs-spanish-blue, #2d7396); font-weight: 700; }
.tense-story-mini-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 14px; }
.tense-story-table-wrap { overflow-x: auto; }
.tense-story-compact-table { max-width: 780px; }

@media (max-width: 800px) {
  .tense-story-mini-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .tense-story-subsection h4 { font-size: 19px; }
  .tense-story-subsection table { min-width: 560px; }
  .tense-story-subsection .tense-story-compact-table { min-width: 0; }
  .tense-story-subsection .tense-story-compact-table thead { display: none; }
  .tense-story-subsection .tense-story-compact-table :is(tbody,tr,th,td) { display: block; width: 100%; box-sizing: border-box; }
  .tense-story-subsection .tense-story-compact-table tr { padding: 8px 0; border-bottom: 1px solid #e5eaed; }
  .tense-story-subsection .tense-story-compact-table tr:last-child { border-bottom: 0; }
  .tense-story-subsection .tense-story-compact-table :is(th,td) { padding: 4px 10px; border: 0; background: transparent; }
}
