:root {
  --port-navy: #0d2142;
  --port-blue: #2f7fd3;
  --port-pale: #f3f7fb;
  --port-line: #dbe4ed;
  --port-text: #27364c;
  --port-muted: #65758a;
  --port-gold: #d6bd79;
}

.port-lesson-page,
.port-course-page,
.port-course-index-page {
  color: var(--port-text);
}

.port-lesson-page .l-mainContent,
.port-lesson-page .l-article,
.port-course-page .l-mainContent,
.port-course-index-page .l-mainContent {
  min-width: 0;
}

.port-lesson-page .post_content,
.port-lesson-page .c-postTitle__ttl,
.port-course-page .post_content,
.port-course-index-page .post_content {
  word-break: normal;
  overflow-wrap: break-word;
  line-break: strict;
  text-wrap: pretty;
}

.port-lesson-page .c-postTitle__ttl {
  line-height: 1.5;
  text-wrap: balance;
}

.port-course-page .c-pageTitle,
.port-course-index-page .c-pageTitle {
  display: none;
}

.port-course-page .l-content,
.port-course-index-page .l-content {
  max-width: none;
}

.port-lesson-page .l-content {
  padding-top: clamp(1.75rem, 3.5vw, 2.5rem);
}

.port-lesson-page .post_content {
  margin-top: 2rem;
}

.port-course-page .l-mainContent__inner > .post_content,
.port-course-index-page .l-mainContent__inner > .post_content {
  padding-top: 0;
}

.port-learning-bar {
  margin: 0 0 2.4rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--port-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 26px rgb(13 33 66 / 5%);
}

.port-learning-route {
  display: flex;
  align-items: center;
  gap: 0.65rem 1rem;
  min-width: 0;
  color: var(--port-muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.port-learning-route a {
  flex: 0 0 auto;
  color: var(--port-navy);
  font-weight: 800;
  text-decoration: none;
}

.port-learning-route span {
  min-width: 0;
}

.port-learning-route strong {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--port-navy);
  font-size: 0.75rem;
}

.port-learning-progress {
  height: 4px;
  margin-top: 0.85rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef5;
}

.port-learning-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--port-blue);
}

.port-lesson-content {
  min-width: 0;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.01em;
}

.port-lesson-content > :first-child {
  margin-top: 0;
}

.port-lesson-content p,
.port-lesson-content li,
.port-lesson-content figcaption,
.port-lesson-content dd {
  line-break: strict;
  word-break: normal;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.port-lesson-content p {
  margin: 0 0 1.55em;
}

.port-lesson-content h2,
.port-lesson-content .port-upgrade h2,
.port-lesson-content .port-canva-guide h2 {
  display: block;
  margin: 4em -16px 1.8em !important;
  padding: 0.65em 0.8em 0.65em 1em !important;
  border: 0 !important;
  border-left: 6px solid var(--port-navy) !important;
  border-radius: 0 8px 8px 0 !important;
  background: #f4f6f9 !important;
  box-shadow: none !important;
  color: var(--port-navy) !important;
  font-size: 1.4rem !important;
  line-height: 1.55 !important;
  letter-spacing: 0.02em !important;
  text-wrap: balance;
}

.port-lesson-content h2::before,
.port-lesson-content h2::after {
  display: none !important;
}

.port-lesson-content h3,
.port-lesson-content .port-upgrade h3,
.port-lesson-content .port-canva-guide h3 {
  margin: 2.7em 0 1em !important;
  padding: 0 0 0.55em !important;
  border: 0 !important;
  border-bottom: 2px solid var(--port-line) !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--port-navy) !important;
  font-size: 1.17rem !important;
  line-height: 1.65 !important;
  text-wrap: balance;
}

.port-lesson-content h3::before,
.port-lesson-content h3::after {
  display: none !important;
}

.port-lesson-content h2 > span:first-child,
.port-mac-lesson h2 > span:first-child {
  display: inline-flex !important;
  box-sizing: border-box;
  width: 2rem !important;
  min-width: 2rem !important;
  height: 2rem !important;
  margin: 0 0.65rem 0 0 !important;
  padding: 0 !important;
  align-items: center;
  justify-content: center;
  vertical-align: 0.08em;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--port-navy) !important;
  color: #fff !important;
  font-size: 0.85rem !important;
  line-height: 1 !important;
  white-space: nowrap;
}

.port-lesson-content img,
.port-lesson-content video,
.port-lesson-content iframe {
  max-width: 100%;
  height: auto;
}

.port-lesson-content figure {
  max-width: 100%;
  margin: 2rem 0 3rem;
}

.port-lesson-content figure img {
  display: block;
  width: 100%;
  border-radius: 10px;
}

.port-lesson-content figcaption {
  margin-top: 0.75rem;
  color: var(--port-muted);
  font-size: 0.8rem;
  line-height: 1.7;
  text-align: left;
}

.port-lesson-content ul,
.port-lesson-content ol {
  margin: 1.4rem 0 2rem;
  padding-left: 1.4em;
}

.port-lesson-content li {
  margin: 0.55em 0;
}

.port-lesson-content blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--port-line);
  border-left: 4px solid var(--port-blue);
  border-radius: 0 10px 10px 0;
  background: #f6f9fc;
}

.port-lesson-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.port-lesson-content th,
.port-lesson-content td {
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--port-line);
  vertical-align: top;
}

.port-lesson-content th {
  background: var(--port-navy);
  color: #fff;
}

.port-lesson-content .pu-answer,
.port-lesson-content .pu-help,
.port-lesson-content .port-note,
.port-lesson-content .lesson-note,
.port-lesson-content .practice-box,
.port-lesson-content .port-practice,
.port-lesson-content .media-missing {
  margin: 2rem 0 !important;
  padding: 1.25rem 1.35rem !important;
  border: 1px solid var(--port-line) !important;
  border-left: 4px solid var(--port-blue) !important;
  border-radius: 0 10px 10px 0 !important;
  background: var(--port-pale) !important;
  box-shadow: none !important;
}

.port-lesson-content .pu-help h3,
.port-lesson-content .practice-box h3,
.port-lesson-content .port-practice h3 {
  margin-top: 0 !important;
}

.port-lesson-content .pu-toc,
.port-lesson-content .p-toc,
.port-lesson-content .lesson-toc {
  margin: 2rem 0 3rem !important;
  padding: 1.35rem 1.5rem !important;
  border: 1px solid var(--port-line) !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 7px 22px rgb(13 33 66 / 4%) !important;
}

.port-lesson-content .port-intro,
.port-lesson-content .port-intro-row,
.port-lesson-content .port-talk {
  max-width: 100%;
}

.port-lesson-content .port-intro-row,
.port-lesson-content .port-talk {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 1.5rem 0;
}

.port-lesson-content .port-intro-row.editor,
.port-lesson-content .port-talk.editor {
  flex-direction: row-reverse;
}

.port-lesson-content .port-intro-face,
.port-lesson-content .port-avatar {
  flex: 0 0 48px;
  width: 48px;
  text-align: center;
}

.port-lesson-content .port-intro-face img,
.port-lesson-content .port-avatar-circle,
.port-lesson-content .port-avatar-circle img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
}

.port-lesson-content .port-intro-bubble,
.port-lesson-content .port-bubble {
  flex: 1;
  min-width: 0;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: #f1f4f7;
}

.port-lesson-content .editor .port-intro-bubble,
.port-lesson-content .editor .port-bubble {
  border: 1px solid #d9e6f2;
  background: #edf5fc;
}

.port-lesson-content .port-intro-bubble p,
.port-lesson-content .port-bubble p {
  margin: 0 !important;
}

.port-lesson-content .operation-screenshot__frame,
.port-lesson-content .screenshot-sample,
.port-lesson-content .pilot-diagram,
.port-lesson-content .port-reader-visual,
.port-lesson-content .pv-figure {
  overflow: hidden;
  border: 1px solid var(--port-line) !important;
  border-radius: 12px !important;
  background: #f7f9fb !important;
}

.port-lesson-content .pilot-diagram,
.port-lesson-content .port-reader-visual,
.port-lesson-content .pv-figure {
  padding: 1rem !important;
}

.port-lesson-content .lesson-glossary {
  margin: 0 0 3rem;
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--port-line);
  border-radius: 12px;
  background: #fff;
}

.port-lesson-content .lesson-glossary > h2 {
  margin: 0 0 1rem !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 1rem !important;
}

.port-lesson-content .lesson-glossary dl {
  display: grid;
  gap: 0.8rem;
  margin: 0;
}

.port-lesson-content .lesson-glossary dl > div {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  padding-top: 0.9rem;
  border-top: 1px solid #e8edf2;
}

.port-lesson-content .lesson-glossary dl > div > p:empty {
  display: none;
}

.port-lesson-content .lesson-glossary dl > div > div {
  grid-column: 2;
  min-width: 0;
}

.port-lesson-content .lesson-glossary .term-icon {
  grid-column: 1;
  grid-row: 1;
  line-height: 1.5;
}

.port-lesson-content .lesson-glossary dt {
  min-width: 0;
  color: var(--port-navy);
  font-weight: 800;
  line-break: strict;
  word-break: normal;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.port-lesson-content .lesson-glossary dd {
  margin: 0;
  color: var(--port-muted);
  font-size: 0.9rem;
}

.port-lesson-content .lesson-steps {
  list-style: none;
  padding: 0;
}

.port-lesson-content .lesson-steps li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  align-items: start;
}

.port-lesson-content .lesson-steps b {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--port-navy);
  color: #fff;
  line-height: 1;
}

.port-lesson-content .lesson-summary,
.port-lesson-content .port-summary {
  margin: 3rem 0 2rem !important;
  padding: 1.5rem 1.6rem !important;
  border: 1px solid var(--port-line) !important;
  border-left: 6px solid var(--port-navy) !important;
  border-radius: 10px !important;
  background: #f5f7fa !important;
  color: var(--port-text) !important;
}

.port-lesson-content .lesson-summary h2,
.port-lesson-content .port-summary h2 {
  margin: 0 0 0.8rem !important;
  padding: 0 0 0.65rem !important;
  border: 0 !important;
  border-bottom: 2px solid var(--port-navy) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--port-navy) !important;
  font-size: 1.25rem !important;
}

.port-deliverables,
.port-mistakes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.5rem 0 2.2rem;
}

.port-deliverables article,
.port-mistakes article {
  padding: 1.1rem;
  border: 1px solid var(--port-line);
  border-radius: 10px;
  background: #fff;
}

.port-deliverables strong,
.port-deliverables span {
  display: block;
}

.port-deliverables span,
.port-mistakes p {
  margin: 0.35rem 0 0;
  color: var(--port-muted);
  font-size: 0.88rem;
}

.port-practice-steps {
  list-style: none;
  padding: 0 !important;
}

.port-practice-steps li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--port-line);
}

.port-practice-steps li > span {
  color: var(--port-blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.port-practice-steps p {
  margin: 0.3rem 0 0;
}

.port-rubric {
  margin: 1.5rem 0 2rem;
  border-top: 1px solid var(--port-line);
}

.port-rubric > div {
  display: grid;
  grid-template-columns: 10rem 1fr 3.5rem;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--port-line);
}

.port-rubric b {
  color: var(--port-blue);
  text-align: right;
}

.port-lesson-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--port-line);
}

.port-lesson-navigation a {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--port-line);
  border-radius: 10px;
  background: #fff;
  color: var(--port-navy);
  text-decoration: none;
}

.port-lesson-navigation a:hover {
  border-color: #9dbddc;
  background: #f7fafc;
}

.port-lesson-navigation .is-next {
  text-align: right;
}

.port-lesson-navigation small {
  color: var(--port-blue);
  font-size: 0.7rem;
  font-weight: 800;
}

.port-lesson-navigation strong {
  line-height: 1.55;
  text-wrap: pretty;
}

.port-course-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  color: var(--port-text);
}

.port-course-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 4rem;
  align-items: center;
  padding: 4.5rem 0 3.5rem;
}

.port-course-hero > div:first-child > span,
.port-catalog-hero > p,
.port-curriculum > header > p {
  display: block;
  margin: 0 0 1rem;
  color: var(--port-blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.port-course-hero h1,
.port-catalog-hero h1 {
  margin: 0;
  color: var(--port-navy);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.port-course-hero p {
  max-width: 650px;
  margin: 1.4rem 0 1.8rem;
  color: var(--port-muted);
  font-size: 1rem;
  line-height: 1.9;
}

.port-button {
  display: inline-flex;
  min-height: 48px;
  padding: 0.8rem 1.3rem;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: var(--port-navy);
  color: #fff !important;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none !important;
}

.port-course-badge {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--port-navy);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 5rem;
  box-shadow: 22px 22px 0 #eaf0f6;
}

.port-course-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--port-line);
}

.port-course-facts > div {
  min-width: 0;
  padding: 1.35rem 1rem;
  text-align: center;
}

.port-course-facts > div + div {
  border-left: 1px solid var(--port-line);
}

.port-course-facts span,
.port-course-facts strong {
  display: block;
}

.port-course-facts span {
  color: var(--port-muted);
  font-size: 0.67rem;
  letter-spacing: 0.12em;
}

.port-course-facts strong {
  margin-top: 0.35rem;
  color: var(--port-navy);
  font-size: 1.1rem;
}

.port-curriculum {
  padding: 5rem 0 7rem;
}

.port-curriculum > header {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 3rem;
}

.port-curriculum > header h2 {
  margin: 0;
  color: var(--port-navy);
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: 1.35;
  text-wrap: balance;
}

.port-chapter {
  display: grid;
  grid-template-columns: minmax(210px, 0.75fr) minmax(0, 2fr);
  gap: 3rem;
  padding: 2.6rem 0;
  border-top: 1px solid var(--port-line);
}

.port-chapter-heading small {
  color: var(--port-blue);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.port-chapter-heading h3 {
  margin: 0.5rem 0 0;
  color: var(--port-navy);
  font-size: 1.4rem;
  line-height: 1.45;
  text-wrap: balance;
}

.port-chapter-heading p {
  margin: 0.8rem 0 0;
  color: var(--port-muted);
  font-size: 0.82rem;
  line-height: 1.75;
}

.port-lesson-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.port-lesson-list li {
  margin: 0;
  border-bottom: 1px solid #e8edf2;
}

.port-lesson-list a {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) 4.5rem 1.5rem;
  gap: 0.8rem;
  align-items: center;
  min-height: 64px;
  color: var(--port-text);
  text-decoration: none;
}

.port-lesson-list a:hover strong {
  color: var(--port-blue);
}

.port-lesson-number {
  color: var(--port-blue);
  font-size: 0.73rem;
  font-weight: 800;
}

.port-lesson-list strong {
  min-width: 0;
  line-height: 1.6;
  text-wrap: pretty;
}

.port-lesson-list time {
  color: var(--port-muted);
  font-size: 0.72rem;
  text-align: right;
}

.port-lesson-list i {
  color: var(--port-blue);
  font-style: normal;
  text-align: right;
}

.port-catalog-hero {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--port-line);
}

.port-catalog-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1.16;
}

.port-catalog-hero > span {
  display: block;
  margin-top: 1.5rem;
  color: var(--port-muted);
}

.port-subject {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(0, 2fr);
  gap: 3rem;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--port-line);
}

.port-subject > header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.port-subject > header > span {
  color: var(--port-blue);
  font-size: 0.72rem;
  font-weight: 800;
}

.port-subject h2 {
  margin: 0;
  color: var(--port-navy);
  font-size: 1.75rem;
}

.port-subject header p {
  margin: 0.7rem 0 0;
  color: var(--port-muted);
  font-size: 0.84rem;
  line-height: 1.75;
}

.port-subject ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.port-subject li {
  border-top: 1px solid #e8edf2;
}

.port-subject a {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.4fr) 3rem;
  gap: 1rem;
  min-height: 72px;
  align-items: center;
  color: var(--port-text);
  text-decoration: none;
}

.port-subject a.is-coming {
  cursor: default;
}

.port-subject a span {
  color: var(--port-muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.port-subject a i {
  color: var(--port-blue);
  font-size: 0.72rem;
  font-style: normal;
  text-align: right;
}

/* SWELL full-width course pages and visual catalog cards. */
.port-course-page .l-sidebar,
.port-course-index-page .l-sidebar,
.port-lesson-page .l-sidebar {
  display: none !important;
}

.port-course-page .l-content,
.port-course-index-page .l-content,
.port-lesson-page .l-content {
  display: block !important;
}

.port-course-page .l-mainContent,
.port-course-index-page .l-mainContent,
.port-lesson-page .l-mainContent {
  width: 100% !important;
  max-width: none !important;
}

.port-course-page .port-curriculum,
.port-course-page .port-curriculum > header,
.port-course-page .port-curriculum > header h2,
.port-course-page .port-chapter,
.port-course-page .port-chapter-heading {
  background: transparent !important;
  color: var(--port-navy) !important;
}

.port-course-page .port-curriculum > header h2 {
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

.port-course-page .post_content,
.port-course-index-page .post_content {
  margin-top: 0 !important;
}

.port-course-page .port-course-hero {
  padding-top: 2.4rem;
}

.port-course-index-page .port-catalog-hero {
  padding-top: 3rem;
}

.port-catalog-v2 .port-subject {
  display: block;
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.port-catalog-v2 .port-subject > header {
  display: grid;
  max-width: 820px;
  margin-bottom: 2rem;
  grid-template-columns: 46px 1fr;
  gap: 1.1rem;
}

.port-catalog-v2 .port-subject-label {
  margin: 0 0 0.45rem !important;
  color: #6f7c8d !important;
  font-size: 0.68rem !important;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.port-catalog-v2 .port-subject h2 {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--port-navy) !important;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.45;
  text-wrap: balance;
}

.port-course-card-grid {
  display: grid;
  margin: 0 !important;
  padding: 0 !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 30px);
  list-style: none;
}

.port-course-card-grid > li {
  min-width: 0;
  border: 0;
}

.port-course-card {
  display: flex !important;
  min-height: 100% !important;
  flex-direction: column;
  gap: 0 !important;
  overflow: hidden;
  border: 1px solid #dfe6ec;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(13, 33, 66, 0.07);
  color: var(--port-text);
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.port-course-card:not(.is-coming):hover {
  border-color: #a8c5dd;
  box-shadow: 0 16px 34px rgba(13, 33, 66, 0.13);
  transform: translateY(-4px);
}

.port-course-cover {
  position: relative;
  display: grid;
  min-height: 174px;
  padding: 20px;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(255,255,255,.9) 0 8%, transparent 8.5%),
    linear-gradient(145deg, var(--subject-color), color-mix(in srgb, var(--subject-color) 60%, white));
}

.port-course-cover::before,
.port-course-cover::after {
  position: absolute;
  border: 1px solid rgba(13, 33, 66, 0.12);
  border-radius: 50%;
  content: "";
}

.port-course-cover::before {
  width: 180px;
  height: 180px;
  right: -58px;
  bottom: -74px;
}

.port-course-cover::after {
  width: 92px;
  height: 92px;
  right: -6px;
  bottom: -30px;
}

.port-course-cover small,
.port-course-cover em {
  position: absolute;
  z-index: 1;
  color: #33435a;
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.port-course-cover small {
  top: 18px;
  left: 18px;
}

.port-course-cover em {
  right: 18px;
  bottom: 16px;
  max-width: 60%;
  text-align: right;
}

.port-course-cover b {
  position: relative;
  z-index: 1;
  color: #183153;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 5vw, 4.8rem);
  font-weight: 500;
  line-height: 1;
}

.port-course-card-copy {
  display: flex;
  min-height: 220px;
  padding: 20px 20px 18px;
  flex-direction: column;
}

.port-course-card-copy > small {
  color: var(--port-blue);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.port-course-card-copy > strong {
  margin-top: 0.6rem;
  color: var(--port-navy);
  font-size: 1.03rem;
  line-height: 1.55;
  text-wrap: balance;
}

.port-course-card-copy > span {
  margin-top: 0.7rem;
  color: var(--port-muted);
  font-size: 0.78rem;
  line-height: 1.75;
  text-wrap: pretty;
}

.port-course-card-copy > i {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--port-blue);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  text-align: left;
}

.port-course-card.is-coming {
  cursor: default;
}

.port-course-card.is-coming .port-course-cover,
.port-course-card.is-coming .port-course-card-copy {
  opacity: 0.82;
}

@media (max-width: 900px) {
  .port-course-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .port-course-hero {
    grid-template-columns: 1fr 180px;
    gap: 2.5rem;
  }

  .port-chapter,
  .port-subject {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .port-lesson-page .l-content {
    padding-inline: 16px;
  }

  .port-learning-bar {
    margin-bottom: 1.8rem;
    padding: 1rem;
  }

  .port-learning-route {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.3rem 0.8rem;
  }

  .port-learning-route span {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .port-learning-route strong {
    grid-column: 2;
    grid-row: 1;
    margin-left: 0;
  }

  .port-lesson-content {
    font-size: 15.6px;
    line-height: 1.8;
  }

  .port-lesson-content h2,
  .port-lesson-content .port-upgrade h2,
  .port-lesson-content .port-canva-guide h2 {
    margin: 3.4em -16px 1.7em !important;
    padding: 0.75em 16px 0.75em 20px !important;
    border-left-width: 5px !important;
    border-radius: 0 !important;
    font-size: 1.18rem !important;
    line-height: 1.6 !important;
  }

  .port-lesson-content h3,
  .port-lesson-content .port-upgrade h3,
  .port-lesson-content .port-canva-guide h3 {
    margin-top: 2.4em !important;
    font-size: 1.05rem !important;
  }

  .port-lesson-content figure {
    margin-block: 1.7rem 2.5rem;
  }

  .port-lesson-content .port-intro-face,
  .port-lesson-content .port-avatar {
    flex-basis: 42px;
    width: 42px;
  }

  .port-lesson-content .port-intro-face img,
  .port-lesson-content .port-avatar-circle,
  .port-lesson-content .port-avatar-circle img {
    width: 40px;
    height: 40px;
  }

  .port-lesson-content .port-intro-bubble,
  .port-lesson-content .port-bubble,
  .port-lesson-content .pu-answer,
  .port-lesson-content .pu-help,
  .port-lesson-content .port-note,
  .port-lesson-content .lesson-note,
  .port-lesson-content .practice-box,
  .port-lesson-content .port-practice {
    padding: 1rem !important;
  }

  .port-deliverables,
  .port-mistakes,
  .port-lesson-navigation {
    grid-template-columns: 1fr;
  }

  .port-lesson-navigation .is-next {
    text-align: left;
  }

  .port-rubric > div {
    grid-template-columns: 1fr auto;
    gap: 0.4rem 0.8rem;
  }

  .port-rubric > div span {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .port-course-shell {
    width: min(100% - 32px, 1120px);
  }

  .port-course-hero {
    grid-template-columns: 1fr;
    padding: 3.2rem 0 2.5rem;
  }

  .port-course-hero h1 {
    font-size: clamp(2.7rem, 18vw, 4.2rem);
  }

  .port-course-badge {
    display: none;
  }

  .port-course-facts > div {
    padding: 1rem 0.45rem;
  }

  .port-course-facts strong {
    font-size: 0.9rem;
  }

  .port-curriculum {
    padding: 3.8rem 0 5rem;
  }

  .port-curriculum > header {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .port-chapter {
    padding: 2.2rem 0;
  }

  .port-lesson-list a {
    grid-template-columns: 2.1rem minmax(0, 1fr) 1.2rem;
    gap: 0.55rem;
    padding: 0.75rem 0;
  }

  .port-lesson-list time {
    display: none;
  }

  .port-catalog-hero {
    padding: 3.5rem 0 3rem;
  }

  .port-subject {
    padding: 2.6rem 0;
  }

  .port-subject a {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.35rem 0.8rem;
    padding: 0.85rem 0;
  }

  .port-subject a span {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .port-subject a i {
    grid-column: 2;
    grid-row: 1;
  }

  .port-course-card-grid {
    grid-template-columns: 1fr;
  }

  .port-course-card {
    display: flex !important;
  }

  .port-course-cover {
    min-height: 150px;
  }

  .port-course-card-copy {
    min-height: 0;
  }
}

