:root {
  --port-navy-950: #06182f;
  --port-navy-900: #0a1f3d;
  --port-navy-800: #173455;
  --port-navy-700: #314e6d;
  --port-gold-500: #d3a21a;
  --port-gold-100: #fff7df;
  --port-ink: #12233e;
  --port-muted: #5f7087;
  --port-line: #dce4ec;
  --port-mist: #f3f6f9;
  --port-white: #fff;
  --port-shadow: 0 12px 34px rgba(9, 31, 61, 0.08);
  --port-radius-sm: 8px;
  --port-radius-md: 14px;
  --port-radius-lg: 28px;
  --port-content: 1390px;
  --port-reading: 760px;
  --port-font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--port-ink);
  background: var(--port-white);
  font-family: var(--port-font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
body, button, input, select { font-family: var(--port-font); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
button, a, input, select { outline-offset: 3px; }
:focus-visible { outline: 3px solid rgba(211, 162, 26, 0.58); }
.port-shell { width: min(calc(100% - 40px), var(--port-content)); margin-inline: auto; }
.port-skip {
  position: fixed; z-index: 999; top: 8px; left: 8px; padding: 8px 14px;
  color: #fff; background: var(--port-navy-900); opacity: 0; pointer-events: none; transform: translateY(-150%);
}
.port-skip:focus, .port-skip:focus-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.port-header {
  position: relative; z-index: 30; height: 80px; border-bottom: 1px solid var(--port-line); background: rgba(255,255,255,.97);
}
.port-header__inner { height: 100%; display: flex; align-items: center; gap: 54px; }
.port-logo { display: inline-flex; align-items: center; min-width: 150px; }
.port-logo__text { font-size: 36px; line-height: 1; font-weight: 400; letter-spacing: .25em; color: var(--port-navy-900); }
.port-logo__mark { width: 9px; height: 3px; margin: -25px 0 0 -13px; background: var(--port-gold-500); transform: skew(-28deg); }
.port-nav { display: flex; align-items: stretch; gap: 42px; height: 100%; }
.port-nav a { display: flex; align-items: center; position: relative; font-weight: 700; white-space: nowrap; }
.port-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--port-navy-900); }
.port-header__actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.port-icon-button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--port-navy-900); }
.port-v1-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 48px; padding: 0 28px;
  border: 1px solid var(--port-navy-900); border-radius: 9px; font-weight: 700; line-height: 1.3;
}
.port-v1-button--primary { min-height: 54px; color: #fff; background: var(--port-navy-900); box-shadow: 4px 4px 0 rgba(211,162,26,.18); }
.port-v1-button--primary .arrow { color: var(--port-gold-500); font-size: 22px; }
.port-v1-button--ghost { color: var(--port-navy-900); background: #fff; border-color: #cdd7e1; }
.port-mobile-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.port-mobile-toggle i { display: block; width: 24px; height: 2px; margin: 3px auto; border-radius: 2px; background: var(--port-navy-900); transition: transform .2s, opacity .2s; }
.port-breadcrumbs { border-bottom: 1px solid #e7edf2; background: #f8fafc; }
.port-breadcrumbs ol { display: flex; min-width: 0; gap: 10px; align-items: center; min-height: 46px; margin: 0 auto; padding: 0; list-style: none; color: var(--port-muted); font-size: 13px; }
.port-breadcrumbs li { flex: 0 0 auto; min-width: 0; }
.port-breadcrumbs li:last-child { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; }
.port-breadcrumbs li + li::before { content: "›"; margin-right: 10px; color: #9cabb9; }

/* Home */
.port-home-hero { min-height: 430px; overflow: hidden; background: #f7f9fb; }
.port-home-hero__inner { display: grid; grid-template-columns: minmax(560px, 44%) 1fr; height: 430px; }
.port-home-hero__copy { z-index: 2; padding: 54px 36px 42px 36px; background: linear-gradient(90deg,#f7f9fb 82%,rgba(247,249,251,.5)); }
.port-home-hero h1 { max-width: 580px; margin: 0 0 18px; font-size: clamp(42px, 3.15vw, 51px); line-height: 1.32; letter-spacing: .02em; font-weight: 700; }
.port-home-hero p { max-width: 470px; margin: 0 0 24px; font-size: 16px; line-height: 1.65; font-weight: 400; }
.port-home-hero__actions { display: flex; align-items: center; gap: 32px; }
.port-text-link { display: inline-flex; align-items: center; gap: 12px; padding: 9px 0 5px; border-bottom: 2px solid var(--port-gold-500); font-weight: 700; }
.port-atlas-home { position: relative; min-width: 0; overflow: hidden; border-bottom-left-radius: 80px; }
.port-atlas-home::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("../images/home-hero.png"); background-repeat: no-repeat;
  background-size: cover; background-position: center;
}
.port-benefits { border-bottom: 1px solid #eef2f5; background: #fff; }
.port-benefits__grid { display: grid; grid-template-columns: repeat(3, 1fr); min-height: 106px; align-items: center; }
.port-benefit { display: grid; grid-template-columns: 58px 1fr; gap: 20px; align-items: center; padding: 22px 38px; }
.port-benefit + .port-benefit { border-left: 1px solid var(--port-line); }
.port-icon { display: grid; place-items: center; width: 50px; height: 50px; color: var(--port-navy-800); }
.port-icon svg { width: 42px; height: 42px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.port-benefit strong { display: block; font-size: 20px; line-height: 1.35; }
.port-benefit span { color: #344960; font-size: 14px; }
.port-section { padding: 46px 0; }
.port-section--mist { background: var(--port-mist); }
.port-section__heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 26px; }
.port-title-group h2 { margin: 0; font-size: 29px; line-height: 1.35; }
.port-title-group h2::before { content: ""; display: inline-block; width: 28px; height: 4px; margin: 0 17px 8px 0; background: var(--port-gold-500); }
.port-title-group p { margin: 2px 0 0 47px; color: #344960; }
.port-category-grid { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; }
.port-category {
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 114px; padding: 14px 8px;
  border: 1px solid #e0e6ec; border-radius: 8px; background: linear-gradient(160deg,#fff,#f4f7f9); text-align: center;
}
.port-category svg { width: 37px; height: 37px; margin-bottom: 12px; fill: none; stroke: var(--port-navy-800); stroke-width: 1.8; }
.port-category span { font-size: 14px; line-height: 1.35; font-weight: 700; }
.port-flow { margin-top: 38px; padding: 34px 28px; border-radius: 26px; background: linear-gradient(120deg,#f2f6f9,#fff); box-shadow: var(--port-shadow); }
.port-flow__layout { display: grid; grid-template-columns: 30% 1fr; gap: 40px; align-items: center; }
.port-flow__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; counter-reset: step; }
.port-flow-step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 16px; min-height: 102px; padding: 22px; border-radius: 12px; background: #fff; }
.port-flow-step + .port-flow-step::before { content: "→"; position: absolute; left: -31px; top: 34px; color: var(--port-navy-900); font-size: 25px; }
.port-flow-step__number { position: absolute; left: 16px; top: 14px; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: #fff; background: var(--port-gold-500); font-weight: 700; }
.port-flow-step .port-icon { margin-top: 19px; }
.port-flow-step strong { display: block; margin-top: 8px; font-size: 16px; }
.port-flow-step p { margin: 6px 0 0; font-size: 13px; line-height: 1.6; }

/* Course catalog */
.port-catalog-hero { min-height: 165px; overflow: hidden; background: #edf2f6; }
.port-catalog-hero__inner { display: grid; grid-template-columns: 58% 42%; min-height: 165px; }
.port-catalog-hero__copy { padding: 27px 0 24px 75px; background: linear-gradient(90deg,#edf2f6 88%,rgba(237,242,246,.2)); }
.port-catalog-hero h1 { margin: 0; font-size: 43px; line-height: 1.4; }
.port-catalog-hero p { margin: 3px 0 0; color: #435b78; font-size: 19px; }
.port-atlas-catalog { position: relative; overflow: hidden; }
.port-atlas-catalog::before {
  content: ""; position: absolute; inset: 0; background: url("../images/courses-hero.png") center / cover no-repeat;
}
.port-catalog { display: grid; grid-template-columns: 290px minmax(0,1fr); gap: 38px; padding: 34px 0 72px; }
.port-filter { align-self: start; }
.port-filter__heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.port-filter h2 { margin: 0 0 14px; font-size: 20px; }
.port-filter-close { display: none; width: 42px; height: 42px; border: 0; border-radius: 50%; color: var(--port-navy-900); background: #eef3f8; font-size: 26px; line-height: 1; cursor: pointer; }
.port-filter-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.port-filter-button {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 0 16px; border: 0; border-radius: 7px;
  color: var(--port-ink); background: transparent; text-align: left; cursor: pointer;
}
.port-filter-button:hover, .port-filter-button[aria-pressed="true"] { background: #eef3f8; font-weight: 700; }
.port-filter-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.port-filter-button .count { margin-left: auto; color: #4f647c; font-size: 13px; }
.port-catalog__main { min-width: 0; }
.port-catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--port-line); }
.port-tabs { display: flex; gap: 42px; }
.port-tab { position: relative; padding: 4px 12px 14px; border: 0; color: #4f647c; background: transparent; font-weight: 700; cursor: pointer; }
.port-tab[aria-selected="true"] { color: var(--port-navy-900); }
.port-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--port-gold-500); }
.port-sort { display: flex; align-items: center; gap: 10px; color: #596b81; font-size: 13px; }
.port-sort select { min-width: 168px; min-height: 38px; padding: 0 13px; border: 1px solid var(--port-line); border-radius: 9px; color: var(--port-ink); background: #fff; }
.port-search { position: relative; display: block; margin: 20px 0 16px; }
.port-search svg { position: absolute; left: 16px; top: 50%; width: 21px; height: 21px; transform: translateY(-50%); fill: none; stroke: var(--port-navy-900); stroke-width: 2; }
.port-search input { width: 100%; height: 43px; padding: 0 16px 0 48px; border: 1px solid #ccd7e3; border-radius: 11px; color: var(--port-ink); background: #fbfcfd; }
.port-results-meta { margin: 0 0 20px; color: var(--port-muted); font-size: 12px; }
.port-active-filters { display: flex; min-width: 0; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 10px; }
.port-active-filters span { max-width: 100%; padding: 5px 10px; border-radius: 999px; color: #334d69; background: #eef3f8; font-size: 12px; overflow-wrap: anywhere; }
.port-active-filters b { color: var(--port-navy-900); }
.port-active-filters button { margin-left: auto; padding: 5px 0; border: 0; border-bottom: 1px solid var(--port-gold-500); color: var(--port-navy-900); background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.port-course-group { margin: 0 0 24px; }
.port-course-group h2 { margin: 0 0 20px; padding-left: 12px; border-left: 4px solid var(--port-gold-500); font-size: 21px; line-height: 1.3; }
.port-course-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 17px; }
.port-course-card { overflow: hidden; border: 1px solid #dce3ea; border-radius: 12px; background: #fff; transition: transform .2s, box-shadow .2s; }
.port-course-card:hover { transform: translateY(-3px); box-shadow: var(--port-shadow); }
.port-course-card[hidden] { display: none !important; }
.port-course-card__image { position: relative; height: 108px; overflow: hidden; background: #eef3f7; }
.port-course-card__image::before { content: none; }
.port-course-card__image > img { width: 100%; height: 100%; object-fit: cover; }
.port-image-missing { position: absolute; inset: 0; display: grid; place-items: center; color: #6d7f91; font-size: 12px; }
.atlas-mac::before { background-position: -418px -479px; }
.atlas-pc::before { background-position: -680px -479px; }
.atlas-web::before { background-position: -943px -479px; }
.atlas-word::before { background-position: -1205px -479px; }
.atlas-excel::before { background-position: -418px -695px; }
.atlas-ai::before { background-position: -680px -695px; }
.atlas-mail::before { background-position: -943px -695px; }
.atlas-work::before { background-position: -1205px -695px; }
.port-status { position: absolute; z-index: 1; left: 10px; top: 10px; min-width: 64px; padding: 2px 12px; border-radius: 6px; color: #fff; background: var(--port-navy-900); font-size: 12px; font-weight: 700; text-align: center; }
.port-status--planned { background: #9ba8b5; }
.port-course-card__body { padding: 12px 14px 14px; }
.port-course-card__category { color: #60738a; font-size: 11px; }
.port-course-card h3 { min-height: 49px; margin: 2px 0 7px; font-size: 17px; line-height: 1.4; }
.port-course-card__meta { display: flex; gap: 16px; color: #435a73; font-size: 11px; }
.port-empty { padding: 54px 20px; border: 1px dashed #bdc9d6; border-radius: 12px; color: var(--port-muted); text-align: center; }
.port-empty strong, .port-empty span { display: block; }
.port-empty strong { margin-bottom: 6px; color: var(--port-ink); font-size: 18px; }
.port-empty button { min-height: 42px; margin-top: 18px; padding: 0 18px; border: 1px solid var(--port-navy-900); border-radius: 8px; color: #fff; background: var(--port-navy-900); font-weight: 700; cursor: pointer; }
.port-mobile-filter { display: none; }

/* Learning guide */
.port-kicker { display: block; color: #667a90; font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.port-learning-v1-hero { background: var(--port-mist); }
.port-learning-v1-hero__inner { display: grid; min-height: 510px; grid-template-columns: minmax(480px,44%) 1fr; align-items: stretch; }
.port-learning-v1-hero__copy { display: flex; padding: 66px 55px 60px 36px; flex-direction: column; justify-content: center; }
.port-learning-v1-hero h1 { margin: 14px 0 20px; font-size: clamp(38px,3.4vw,52px); line-height: 1.3; letter-spacing: .01em; }
.port-learning-v1-hero h1 span,
.port-learning-v1-hero h1 em { display: block; }
.port-learning-v1-hero h1 em { max-width: 100%; color: var(--port-navy-700); font-style: normal; white-space: nowrap; }
.port-learning-v1-hero p { max-width: 530px; margin: 0; color: #405975; font-size: 16px; line-height: 1.9; }
.port-learning-v1-hero .port-v1-button { align-self: flex-start; margin-top: 30px; }
.port-learning-v1-hero__image { min-width: 0; margin: 0; overflow: hidden; border-bottom-left-radius: 80px; }
.port-learning-v1-hero__image img { width: 100%; height: 100%; object-fit: cover; }
.port-learning-v1-intro { padding: 78px 24px 40px; text-align: center; }
.port-learning-v1-intro h2 { margin: 8px 0 10px; font-size: 34px; }
.port-learning-v1-intro p { margin: 0; color: var(--port-muted); }
.port-learning-v1-steps { display: grid; gap: 18px; padding: 28px 0 90px; }
.port-learning-v1-steps article { display: grid; min-height: 250px; padding: 42px 52px; grid-template-columns: 90px minmax(0,1fr) 180px; gap: 34px; align-items: center; border: 1px solid var(--port-line); border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(9,31,61,.05); }
.port-learning-v1-steps article:nth-child(2) { background: #f7f9fb; }
.port-learning-v1-step__number { color: var(--port-gold-500); font-family: Georgia,serif; font-size: 48px; }
.port-learning-v1-steps h2 { margin: 8px 0 12px; font-size: 29px; line-height: 1.45; }
.port-learning-v1-steps p { max-width: 620px; margin: 0 0 14px; color: #405975; line-height: 1.9; }
.port-learning-v1-step__icon { display: grid; place-items: center; width: 150px; height: 150px; border-radius: 50%; color: var(--port-navy-800); background: var(--port-gold-100); }
.port-learning-v1-step__icon svg { width: 58px; height: 58px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.port-learning-v1-cta { padding: 58px 0; color: #fff; background: var(--port-navy-950); }
.port-learning-v1-cta .port-shell { display: flex; gap: 30px; align-items: center; justify-content: space-between; }
.port-learning-v1-cta .port-kicker { color: #c7d4df; }
.port-learning-v1-cta h2 { margin: 6px 0 2px; color: #fff; font-size: 30px; }
.port-learning-v1-intro h2,
.port-learning-v1-steps h2,
.port-learning-v1-cta h2 { text-wrap: balance; }
.port-learning-v1-cta p { margin: 0; color: #c7d4df; }
.port-learning-v1-cta .port-v1-button { border-color: #fff; background: #fff; color: var(--port-navy-950); box-shadow: 4px 4px 0 rgba(211,162,26,.35); }

/* Course top */
.port-course-v1-hero { padding: 58px 0 38px; background: linear-gradient(120deg,#f3f6f9,#fff); }
.port-course-v1-hero__inner { display: grid; grid-template-columns: 1fr 260px; gap: 50px; align-items: center; }
.port-course-v1-hero h1 { margin: 8px 0 12px; font-size: 58px; line-height: 1.25; }
.port-course-v1-hero p { max-width: 680px; margin: 0; color: #405975; font-size: 17px; }
.port-course-v1-hero .port-v1-button { margin-top: 28px; }
.port-course-v1-hero__mark { display: grid; place-items: center; width: 190px; height: 190px; margin-inline: auto; border-radius: 50%; color: #fff; background: var(--port-navy-900); box-shadow: 18px 18px 0 #e5ebf1; font-size: 74px; }
.port-course-v1-facts { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 28px; border: 1px solid var(--port-line); border-radius: 12px; background: #fff; }
.port-course-v1-facts div { padding: 20px; text-align: center; }
.port-course-v1-facts div + div { border-left: 1px solid var(--port-line); }
.port-course-v1-facts span, .port-course-v1-facts strong { display: block; }
.port-course-v1-facts span { color: var(--port-muted); font-size: 10px; letter-spacing: .12em; }
.port-course-v1-facts strong { margin-top: 4px; font-size: 17px; }
.port-course-v1-guide { display: flex; gap: 30px; align-items: center; justify-content: space-between; margin-top: 42px; padding: 28px 34px; border-radius: 14px; background: var(--port-gold-100); }
.port-course-v1-guide h2 { margin: 5px 0 4px; font-size: 25px; }
.port-course-v1-guide p { margin: 0; color: #405975; }
.port-course-v1-curriculum { padding-top: 72px; padding-bottom: 90px; }
.port-course-v1-curriculum > header { margin-bottom: 38px; padding-bottom: 24px; border-bottom: 3px solid var(--port-navy-900); }
.port-course-v1-curriculum > header h2 { margin: 7px 0 0; font-size: 36px; }
.port-course-v1-chapter { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 38px; padding: 34px 0; border-bottom: 1px solid var(--port-line); }
.port-course-v1-chapter__heading span { color: #60738a; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.port-course-v1-chapter__heading h3 { margin: 7px 0; font-size: 23px; }
.port-course-v1-chapter__heading p { margin: 0; color: var(--port-muted); font-size: 13px; }
.port-course-v1-chapter ol { margin: 0; padding: 0; list-style: none; }
.port-course-v1-chapter li { margin: 0; }
.port-course-v1-chapter li > a, .port-course-v1-chapter li > div { display: grid; min-height: 62px; padding: 13px 12px; grid-template-columns: 38px minmax(0,1fr) auto 20px; gap: 10px; align-items: center; border-bottom: 1px solid #edf1f4; }
.port-course-v1-chapter li > a:hover { background: #f7f9fb; }
.port-course-v1-chapter li > div.is-planned { color: #78899b; background: #fafbfc; }
.port-course-v1-lesson__number { color: #57738e; font-size: 12px; font-weight: 700; }
.port-course-v1-lesson__status { display: inline-flex; min-width: 44px; padding: 3px 8px; align-items: center; justify-content: center; border-radius: 999px; color: #526174; background: #edf1f4; font-size: 10px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.port-course-v1-lesson__status.is-open { color: #fff; background: var(--port-navy-800); }
.port-course-v1-lesson__status.is-published { color: #fff; background: var(--port-navy-800); }
.port-course-v1-lesson__status.is-review { color: #fff; background: var(--port-navy); }
.port-course-v1-lesson__meta { display: inline-flex; gap: 9px; align-items: center; white-space: nowrap; }
.port-course-v1-chapter time { color: var(--port-muted); font-size: 12px; }
.port-course-v1-chapter i { color: var(--port-gold-500); font-style: normal; font-weight: 700; }

/* Lesson */
.port-lesson-wrap { padding: 36px 0 80px; }
.port-v1-lesson-layout { display: grid; grid-template-columns: minmax(700px,var(--port-reading)) minmax(250px,290px); gap: 40px; width: min(calc(100% - 40px), 1090px); margin-inline: auto; align-items: start; }
.port-v1-lesson-main { min-width: 0; width: 100%; }
.port-lesson-header { padding: 10px 0 27px; border-bottom: 3px solid #e6ebf0; }
.port-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 13px; border-radius: 5px; color: var(--port-navy-950); background: var(--port-gold-500); font-size: 13px; font-weight: 700; }
.port-lesson-kicker { margin: 13px 0 4px; color: #344b67; font-size: 15px; font-weight: 600; }
.port-lesson-header h1 { margin: 0; font-size: 35px; line-height: 1.4; letter-spacing: .01em; }
.port-lesson-lead { margin: 16px 0 18px; color: #405975; font-size: 16px; }
.port-meta { display: flex; flex-wrap: wrap; gap: 31px; color: #233c59; font-size: 14px; }
.port-meta span { display: inline-flex; gap: 9px; align-items: center; }
.port-meta svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.port-article { min-width: 0; padding-top: 42px; overflow-wrap: anywhere; }
.port-article > * { min-width: 0; }
.port-article h2 { margin: 0 0 19px; padding: 11px 18px; border-left: 5px solid var(--port-navy-900); border-radius: 0 6px 6px 0; background: linear-gradient(90deg,#eef3f7,#f7f9fa); font-size: 26px; line-height: 1.35; text-wrap: pretty; }
.port-article p { margin: 0 0 25px; font-size: 16px; line-height: 1.85; }
.port-article .is-style-port-section-heading { margin: 34px 0 19px; padding: 11px 18px; border-left: 5px solid var(--port-navy-900); border-radius: 0 6px 6px 0; background: linear-gradient(90deg,#eef3f7,#f7f9fa); }
.port-article .is-style-port-point { margin: 27px 0; padding: 17px 23px; border-radius: 7px; background: #fff8e7; }
.port-article .is-style-port-summary { margin: 32px 0; padding: 22px; border: 1px solid var(--port-line); border-radius: 10px; background: var(--port-mist); }
.port-article .is-style-port-procedure,
.port-v1-step-list { display: grid; counter-reset: port-step; gap: 12px; margin: 20px 0 30px; padding: 0; list-style: none; }
.port-article .is-style-port-procedure > li,
.port-v1-step-list > li { position: relative; display: block; min-height: 63px; margin: 0; padding: 17px 17px 17px 68px; border: 1px solid #dfe6ed; border-radius: 9px; background: #fff; font-size: 15px; line-height: 1.75; counter-increment: port-step; }
.port-article .is-style-port-procedure > li + li::after,
.port-v1-step-list > li + li::after { content: ""; position: absolute; left: 31px; top: -13px; width: 1px; height: 12px; background: #cbd6e0; }
.port-article .is-style-port-procedure strong,
.port-v1-step-list strong { display: inline-block; margin-bottom: 3px; color: var(--port-navy-900); }
.port-article kbd { display: inline-flex; min-height: 28px; align-items: center; margin: 0 2px; padding: 1px 8px; border: 1px solid #c9d3dd; border-bottom-width: 3px; border-radius: 6px; color: var(--port-navy-950); background: #fff; box-shadow: 0 1px 0 rgba(6,24,47,.08); font-family: var(--port-font); font-size: .9em; font-weight: 700; line-height: 1.35; white-space: nowrap; }
.port-article .is-style-port-procedure > li::before,
.port-v1-step-list > li::before { content: counter(port-step); position: absolute; top: 15px; left: 17px; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; color: #fff; background: var(--port-navy-900); font-weight: 700; line-height: 1; }
.port-article .port-lesson-goals { margin: 0 0 34px; padding: 22px 24px; border: 1px solid #e0e7ee; border-radius: 10px; background: var(--port-mist); }
.port-article .port-lesson-goals h2 { margin: 0 0 8px; padding: 0; border: 0; background: transparent; font-size: 21px; }
.port-article .port-lesson-goals ul { margin-bottom: 0; }
.port-article .wp-block-image { margin: 24px 0 32px; }
.port-article .wp-block-image img { display: block; width: 100%; max-width: 100%; height: auto; border: 1px solid #dce4ec; border-radius: 9px; box-shadow: 0 10px 26px rgba(17,39,70,.1); }
.port-article .wp-block-image.is-port-image-detail { overflow: hidden; border-radius: 9px; background: #eef3f7; }
.port-article .wp-block-image.is-port-image-detail img { aspect-ratio: 6 / 5; object-fit: cover; object-position: top; }
.port-article .wp-block-image.is-port-image-detail--wide img { aspect-ratio: 3 / 2; }
.port-article .wp-block-image.is-port-image-detail--target { border: 2px solid rgba(211, 163, 45, .65); background: #fff; }
.port-article .wp-block-image.is-port-image-detail--target img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
.port-article .wp-block-image figcaption { margin-top: 9px; color: var(--port-muted); font-size: 13px; line-height: 1.7; text-align: left; }

/*
 * PORT teaching-media scale (RC27)
 * A: full Mac screen, B: app/settings window, C: partial UI, D: control detail.
 * The figure owns the maximum width; the image always keeps its natural ratio.
 */
.port-article .wp-block-image.is-port-media {
  --port-media-max: 600px;
  width: min(100%, var(--port-media-max));
  max-width: var(--port-media-max);
  margin: 28px auto 34px;
  overflow: visible;
  background: transparent;
}
.port-article .wp-block-image.is-port-media--screen { --port-media-max: 600px; }
.port-article .wp-block-image.is-port-media--window { --port-media-max: 520px; }
.port-article .wp-block-image.is-port-media--partial { --port-media-max: 400px; }
.port-article .wp-block-image.is-port-media--control { --port-media-max: 280px; }
.port-article .wp-block-image.is-port-media--portrait { --port-media-max: 400px; }
.port-article .wp-block-image.is-port-media--partial.is-port-media--portrait { --port-media-max: 360px; }
.port-article .wp-block-image.is-port-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}
.port-article .wp-block-image.is-port-media figcaption {
  max-width: 62ch;
  margin: 10px auto 0;
}
@media (max-width: 600px) {
  .port-article .wp-block-image.is-port-media {
    margin-top: 22px;
    margin-bottom: 28px;
  }
}
.port-v1-explainer { margin: 0 0 24px; padding: 17px 20px; border-left: 4px solid #9cb1c6; border-radius: 0 8px 8px 0; background: #f6f8fa; }
.port-v1-explainer p:last-child { margin-bottom: 0; }
.port-article .wp-block-group.port-v1-term-grid { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 20px 0 34px; }
.port-v1-term-grid > .wp-block-group__inner-container { display: grid !important; grid-column: 1 / -1; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; min-width: 0; }
.port-article .wp-block-group.port-v1-term-card { position: relative; display: block !important; min-width: 0; min-height: 82px; padding: 17px 17px 17px 79px; border: 1px solid #dfe6ed; border-radius: 10px; background: #fff; }
.port-v1-term-card > .wp-block-group__inner-container { display: block !important; min-width: 0; }
.port-v1-term-card > .wp-block-group,
.port-v1-term-card > .wp-block-group__inner-container > .wp-block-group { min-width: 0; width: auto !important; max-width: none !important; margin: 0 !important; }
.port-v1-term-card__icon { position: absolute; top: 17px; left: 17px; display: grid; place-items: center; width: 48px; min-height: 42px; padding: 5px; border-radius: 9px; color: var(--port-navy-900); background: #eaf2f8; font-size: 11px; font-weight: 700; line-height: 1.1; text-align: center; }
.port-v1-term-card__icon::before { content: ""; display: block; width: 27px; height: 27px; background: var(--port-term-icon) center / contain no-repeat; }
.port-v1-term-card__icon.is-finder { --port-term-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect x='3' y='3' width='26' height='26' rx='6' fill='none' stroke='%230b294d' stroke-width='2'/%3E%3Cpath d='M16 4v24M10 12c1-1 2-1 3 0M19 12c1-1 2-1 3 0M9 20c4 3 10 3 14 0' fill='none' stroke='%230b294d' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.port-v1-term-card__icon.is-dock { --port-term-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect x='3' y='8' width='26' height='17' rx='5' fill='none' stroke='%230b294d' stroke-width='2'/%3E%3Crect x='7' y='12' width='5' height='5' rx='1' fill='%230b294d'/%3E%3Crect x='14' y='12' width='5' height='5' rx='1' fill='%230b294d'/%3E%3Crect x='21' y='12' width='5' height='5' rx='1' fill='%230b294d'/%3E%3Cpath d='M8 22h16' stroke='%230b294d' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.port-v1-term-card__icon.is-file { --port-term-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M8 3h11l6 6v20H8z' fill='none' stroke='%230b294d' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M19 3v7h6M12 16h9M12 21h9' fill='none' stroke='%230b294d' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.port-v1-term-card__icon.is-folder { --port-term-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M3 9h10l3 3h13v15H3z' fill='none' stroke='%230b294d' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M3 9V6h10l3 3h13v3' fill='none' stroke='%230b294d' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.port-v1-term-card__icon.is-sidebar { --port-term-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect x='3' y='4' width='26' height='24' rx='4' fill='none' stroke='%230b294d' stroke-width='2'/%3E%3Cpath d='M12 4v24M7 10h2M7 15h2M7 20h2M16 10h9M16 16h9M16 22h6' fill='none' stroke='%230b294d' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.port-v1-term-card__icon.is-term { --port-term-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M5 5h9c3 0 5 2 5 5v17c0-3-2-5-5-5H5zM27 5h-8v22c0-3 2-5 5-5h3z' fill='none' stroke='%230b294d' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.port-v1-term-card__icon.is-pointer { --port-term-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M7 3l17 16-8 1 4 7-4 2-4-8-5 5z' fill='none' stroke='%230b294d' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.port-v1-term-card__icon.is-click { --port-term-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect x='9' y='4' width='14' height='24' rx='7' fill='none' stroke='%230b294d' stroke-width='2'/%3E%3Cpath d='M16 4v8M13 8h6' fill='none' stroke='%230b294d' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.port-v1-term-card__icon.is-secondary-click { --port-term-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect x='6' y='6' width='20' height='20' rx='5' fill='none' stroke='%230b294d' stroke-width='2'/%3E%3Cpath d='M16 6v9H6M20 18h3M20 22h3' fill='none' stroke='%230b294d' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.port-v1-term-card__icon.is-scroll { --port-term-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect x='9' y='3' width='14' height='26' rx='7' fill='none' stroke='%230b294d' stroke-width='2'/%3E%3Cpath d='M16 7v8M13 10l3-3 3 3M16 25v-8M13 22l3 3 3-3' fill='none' stroke='%230b294d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.port-v1-term-card__icon.is-drag { --port-term-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M7 16h18M21 12l4 4-4 4M11 12l-4 4 4 4M16 7v18M12 11l4-4 4 4M12 21l4 4 4-4' fill='none' stroke='%230b294d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.port-article .port-v1-practice { margin: 34px 0; padding: 22px 24px; border: 1px solid #e4c777; border-radius: 10px; background: #fffbef; }
.port-article .port-v1-practice h2 { margin: 0 0 10px; padding: 0; border: 0; background: transparent; font-size: 22px; }
.port-article .port-v1-practice ol { margin-bottom: 14px; }
.port-article .port-v1-sources { margin: 30px 0 0; padding: 18px 20px; border-top: 1px solid var(--port-line); color: #42566c; font-size: 14px; }
.port-article .port-v1-sources h3 { margin: 0 0 8px; font-size: 17px; }
.port-v1-term-card strong { display: block; margin: 0 0 4px; color: var(--port-ink); font-size: 15px; line-height: 1.45; }
.port-v1-term-card p { margin: 0; color: #405975; font-size: 14px; font-weight: 400; line-height: 1.7; }
.port-lesson-figure { margin: 22px 30px 28px; }
.port-lesson-figure__image { position: relative; width: 648px; max-width: 100%; aspect-ratio: 648 / 367; overflow: hidden; border-radius: 8px; background: #eaf0f5; box-shadow: 0 8px 22px rgba(17,39,70,.12); }
.port-lesson-figure__image::before { content: none; }
.port-note { display: grid; grid-template-columns: 34px 1fr; gap: 9px; margin: 27px 0; padding: 17px 23px; border-radius: 7px; background: #fff8e7; }
.port-note__icon { color: var(--port-gold-500); font-size: 24px; }
.port-note strong { display: block; color: #b07c00; }
.port-note p { margin: 2px 0 0; font-size: 14px; line-height: 1.7; }
.port-steps { margin: 20px 0 28px; padding-left: 26px; }
.port-steps li { margin-bottom: 12px; padding-left: 6px; }
.port-lesson-footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--port-line); }
.port-lesson-footer-nav a, .port-lesson-footer-nav .is-disabled { display: block; padding: 16px 18px; border: 1px solid var(--port-line); border-radius: 9px; }
.port-lesson-footer-nav > :last-child { text-align: left; }
.port-lesson-footer-nav .is-disabled { color: #748599; background: #f7f9fb; }
.port-lesson-footer-nav small, .port-lesson-footer-nav strong { display: block; }
.port-v1-sidebar { display: grid; min-width: 0; width: 100%; gap: 24px; position: static; align-self: start; }
.port-v1-sidecard { overflow: hidden; min-width: 0; border: 1px solid #dbe3eb; border-radius: 10px; background: #fff; }
.port-v1-sidecard h2 { margin: 0; padding: 13px 22px; border-bottom: 1px solid #e8edf2; background: linear-gradient(180deg,#f4f7f9,#fff); font-size: 18px; }
.port-course-summary { padding: 22px; }
.port-course-summary__title { display: flex; gap: 16px; align-items: center; margin-bottom: 15px; font-size: 18px; }
.port-course-summary__title .port-icon { width: 43px; height: 43px; background: #e7f6fb; }
.port-course-summary p { margin: 0 0 15px; padding-bottom: 16px; border-bottom: 1px solid var(--port-line); color: #3f5670; font-size: 14px; line-height: 1.8; }
.port-course-summary ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.port-course-summary li { display: flex; align-items: center; gap: 9px; }
.port-course-summary li svg { flex: 0 0 20px; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.port-v1-chapters { margin: 0; padding: 0; font-size: 13px; }
.port-v1-chapter { display: block; margin: 0; padding: 0; border: 0; border-bottom: 1px solid var(--port-line); background: transparent; }
.port-v1-chapter:last-child { border-bottom: 0; }
.port-v1-chapter summary { display: flex; align-items: center; gap: 9px; width: 100%; padding: 14px 18px; cursor: pointer; font-weight: 700; line-height: 1.5; list-style: none; }
.port-v1-chapter summary::-webkit-details-marker { display: none; }
.port-v1-chapter summary::marker { content: ""; }
.port-v1-chapter summary::before { content: "›"; flex: 0 0 auto; color: #4d6682; transition: transform .2s; }
.port-v1-chapter[open] summary::before { transform: rotate(90deg); }
.port-v1-lesson-list { display: block; margin: 0 12px 12px; padding: 0; list-style: none; }
.port-v1-lesson-list li { display: block; margin: 0; padding: 0; border: 0; }
.port-v1-lesson-list a { display: flex; grid-template-columns: none; min-height: 0; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 6px; color: var(--port-ink); line-height: 1.45; text-align: left; overflow-wrap: anywhere; }
.port-v1-lesson-list .is-planned { display: flex; min-height: 0; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 6px; color: #748599; line-height: 1.45; overflow-wrap: anywhere; }
.port-v1-lesson-list .is-planned small { display: block; margin-top: 3px; color: #8797a8; font-size: 10px; font-weight: 700; }
.port-v1-lesson-list a small { display: block; margin-top: 3px; color: #8b6900; font-size: 10px; font-weight: 700; }
.port-v1-lesson-list a[aria-current="page"] { background: #fff7df; }
.port-v1-progress-dot { flex: 0 0 18px; display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid #9dadbd; border-radius: 50%; font-size: 9px; }
.port-v1-lesson-list a[aria-current="page"] .port-v1-progress-dot { color: #fff; border-color: var(--port-gold-500); background: var(--port-gold-500); }
.port-v1-toc { margin: 0; padding: 13px 24px 20px; list-style: none; }
.port-v1-toc a { display: block; padding: 8px 0 8px 17px; border-left: 3px solid #e2e8ee; font-size: 13px; line-height: 1.6; }
.port-v1-toc a[aria-current="location"] { border-color: var(--port-navy-900); font-weight: 700; }
.port-v1-sidebar-toggle { display: none; }
.port-preview-note { display: none; }
.port-image-dialog { width: min(94vw,1200px); max-width: 1200px; max-height: calc(100dvh - 32px); padding: 48px 20px 20px; overflow: auto; border: 0; border-radius: 14px; background: #fff; box-shadow: 0 24px 80px rgba(6,24,47,.28); }
.port-image-dialog::backdrop { background: rgba(6,24,47,.78); }
.port-image-dialog img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(100dvh - 100px); margin: 0 auto; object-fit: contain; }
.port-image-dialog button { position: absolute; top: 8px; right: 10px; display: grid; width: 36px; height: 36px; padding: 0; place-items: center; border: 0; border-radius: 50%; color: #fff; background: var(--port-navy-900); font-size: 24px; line-height: 1; cursor: pointer; }
.port-image-dialog button:focus-visible,
.port-article .wp-block-image img[role="button"]:focus-visible { outline: 3px solid var(--port-gold-500); outline-offset: 4px; }
.port-article .wp-block-image img[role="button"] { cursor: zoom-in; }
body.port-image-dialog-open { position: fixed; inset-inline: 0; width: 100%; overflow: hidden; }
.port-footer { padding: 34px 0; color: #dbe5ef; background: var(--port-navy-950); }
.port-footer__inner { display: flex; justify-content: space-between; gap: 30px; }
.port-footer small { color: #aebdcb; }

@media (max-width: 1180px) {
  .port-shell { width: min(calc(100% - 32px), var(--port-content)); }
  .port-header__inner { gap: 24px; }
  .port-nav { gap: 22px; }
  .port-home-hero__inner { grid-template-columns: 48% 52%; }
  .port-home-hero__copy { padding-left: 22px; }
  .port-atlas-home::before { left: -8%; }
  .port-category-grid { grid-template-columns: repeat(5, 1fr); }
  .port-course-grid { grid-template-columns: repeat(3, 1fr); }
  .port-benefit { padding-inline: 20px; }
  .port-v1-lesson-layout { grid-template-columns: minmax(620px,760px) 280px; gap: 30px; width: min(calc(100% - 32px), 1070px); }
}

@media (max-width: 900px) {
  .port-header { height: 68px; }
  .port-logo { min-width: auto; }
  .port-logo__text { font-size: 30px; }
  .port-nav, .port-header__actions .port-icon-button, .port-header__actions .port-v1-button--ghost { display: none; }
  .port-mobile-toggle { display: block; order: 3; }
  .port-nav[data-open="true"] { display: grid; position: absolute; z-index: 40; top: 67px; left: 0; right: 0; height: auto; gap: 0; padding: 10px 16px 16px; border-bottom: 1px solid var(--port-line); background: #fff; box-shadow: 0 16px 30px rgba(9,31,61,.12); }
  .port-nav[data-open="true"] a { min-height: 52px; padding: 0 12px; border-bottom: 1px solid #edf1f4; }
  .port-nav[data-open="true"] a[aria-current="page"]::after { left: 12px; right: auto; width: 30px; }
  .port-mobile-toggle[aria-expanded="true"] i:nth-of-type(1) { transform: translateY(5px) rotate(45deg); }
  .port-mobile-toggle[aria-expanded="true"] i:nth-of-type(2) { opacity: 0; }
  .port-mobile-toggle[aria-expanded="true"] i:nth-of-type(3) { transform: translateY(-5px) rotate(-45deg); }
  .port-home-hero__inner { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .port-home-hero__copy { padding: 40px 24px; order: 2; }
  .port-home-hero h1 { font-size: 40px; }
  .port-atlas-home { min-height: 320px; order: 1; border-radius: 0 0 50px 0; }
  .port-benefits__grid { grid-template-columns: 1fr; }
  .port-benefit + .port-benefit { border-left: 0; border-top: 1px solid var(--port-line); }
  .port-category-grid { grid-template-columns: repeat(3,1fr); }
  .port-flow__layout { grid-template-columns: 1fr; }
  .port-flow__steps { gap: 16px; }
  .port-flow-step + .port-flow-step::before { display: none; }
  .port-catalog-hero__copy { padding-left: 28px; }
  .port-catalog { grid-template-columns: 1fr; }
  .port-filter { display: none; }
  body.port-filter-open { overflow: hidden; }
  .port-filter[data-mobile-open="true"] { display: block; position: fixed; z-index: 100; inset: 0; overflow-y: auto; padding: 24px max(20px, calc((100% - 540px) / 2)); background: #fff; }
  .port-filter[data-mobile-open="true"] .port-filter-close { display: grid; place-items: center; }
  .port-filter[data-mobile-open="true"] h2 { margin: 0; font-size: 24px; }
  .port-filter[data-mobile-open="true"] .port-filter__heading { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--port-line); }
  .port-mobile-filter { display: flex; width: 100%; min-height: 46px; align-items: center; justify-content: space-between; padding: 0 16px; border: 1px solid var(--port-line); border-radius: 8px; background: #fff; font-weight: 700; }
  .port-course-grid { grid-template-columns: repeat(2,1fr); }
  .port-learning-v1-hero__inner { grid-template-columns: 1fr; }
  .port-learning-v1-hero__copy { padding: 54px 28px; order: 2; }
  .port-learning-v1-hero__image { min-height: 330px; order: 1; border-radius: 0 0 60px 0; }
  .port-learning-v1-steps article { grid-template-columns: 70px minmax(0,1fr) 120px; padding: 34px 28px; }
  .port-learning-v1-step__icon { width: 110px; height: 110px; }
  .port-course-v1-hero__inner { grid-template-columns: 1fr 180px; }
  .port-course-v1-chapter { grid-template-columns: 220px minmax(0,1fr); }
  .port-v1-lesson-layout { grid-template-columns: minmax(0,var(--port-reading)); width: min(calc(100% - 32px), var(--port-reading)); }
  .port-v1-sidebar { position: static; }
  .port-v1-sidebar-toggle { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: space-between; padding: 0 18px; border: 1px solid var(--port-line); border-radius: 8px; background: #fff; font-weight: 700; }
  .port-v1-sidebar[data-collapsed="true"] .port-v1-sidecard { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .port-shell { width: min(calc(100% - 28px), var(--port-content)); }
  .port-header__inner { gap: 10px; }
  .port-header__actions { gap: 5px; }
  .port-header__actions { margin-left: auto; }
  .port-header__actions .port-v1-button--primary { min-height: 42px; padding: 0 15px; font-size: 13px; box-shadow: none; }
  .port-logo__text { font-size: 25px; }
  .port-logo__mark { margin-top: -20px; }
  .port-breadcrumbs .port-shell { width: 100%; padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
  .port-breadcrumbs ol { overflow: hidden; white-space: nowrap; }
  .port-breadcrumbs li { overflow: visible; text-overflow: clip; }
  .port-breadcrumbs li:last-child { overflow: hidden; text-overflow: ellipsis; }
  .port-home-hero { min-height: 0; }
  .port-atlas-home { min-height: 240px; }
  .port-home-hero__copy { padding: 30px 18px 36px; }
  .port-home-hero h1 { margin-bottom: 15px; font-size: 31px; }
  .port-home-hero p { font-size: 15px; }
  .port-home-hero__actions { align-items: stretch; flex-direction: column; gap: 12px; }
  .port-benefit { grid-template-columns: 45px 1fr; gap: 12px; padding: 18px 10px; }
  .port-benefit strong { font-size: 17px; }
  .port-section { padding: 36px 0; }
  .port-section__heading { align-items: start; flex-direction: column; gap: 14px; }
  .port-title-group h2 { font-size: 25px; }
  .port-title-group p { margin-left: 0; font-size: 14px; }
  .port-category-grid { grid-template-columns: repeat(2,1fr); gap: 8px; }
  .port-flow { padding: 26px 18px; }
  .port-flow__steps { grid-template-columns: 1fr; }
  .port-catalog-hero__inner { grid-template-columns: 1fr; }
  .port-catalog-hero__copy { padding: 22px 14px; }
  .port-catalog-hero h1 { font-size: 34px; }
  .port-catalog-hero p { font-size: 16px; }
  .port-atlas-catalog { min-height: 140px; }
  .port-catalog { gap: 20px; padding-top: 22px; }
  .port-catalog__main { display: flex; flex-direction: column; }
  .port-search { order: 1; margin: 0 0 12px; }
  .port-mobile-filter { order: 2; min-height: 42px; }
  .port-catalog-toolbar { order: 3; display: grid; grid-template-columns: minmax(0,1fr) 104px; gap: 8px; align-items: end; margin-top: 9px; border: 0; }
  .port-tabs { gap: 0; min-width: 0; border-bottom: 1px solid var(--port-line); }
  .port-tab { flex: 1; min-width: 0; padding: 6px 2px 10px; font-size: 11px; white-space: nowrap; }
  .port-sort { display: grid; gap: 2px; align-items: stretch; font-size: 10px; line-height: 1.2; }
  .port-sort select { min-width: 0; width: 100%; min-height: 36px; padding: 0 6px; font-size: 12px; }
  .port-active-filters { order: 4; gap: 6px; margin: 12px 0 8px; }
  .port-results-meta { order: 5; margin: 0 0 14px; }
  .port-course-group { order: 6; }
  .port-course-grid { grid-template-columns: 1fr; }
  .port-course-card__image { height: 150px; }
  .port-active-filters span { padding: 4px 8px; font-size: 11px; }
  .port-active-filters button { width: auto; margin: 0 0 0 auto; flex: 0 0 auto; text-align: right; }
  .port-learning-v1-hero__copy { padding: 38px 18px 42px; }
  .port-learning-v1-hero h1 { font-size: clamp(25px,8vw,33px); }
  .port-learning-v1-hero p { font-size: 15px; }
  .port-learning-v1-hero__image { min-height: 240px; }
  .port-learning-v1-intro { padding: 54px 14px 24px; text-align: left; }
  .port-learning-v1-intro h2 { font-size: 27px; }
  .port-learning-v1-steps { gap: 12px; padding: 20px 14px 58px; }
  .port-learning-v1-steps article { min-height: 0; padding: 25px 20px; grid-template-columns: 45px 1fr; gap: 14px; }
  .port-learning-v1-step__number { font-size: 34px; }
  .port-learning-v1-steps h2 { font-size: 22px; }
  .port-learning-v1-steps p { font-size: 14px; }
  .port-learning-v1-step__icon { display: none; }
  .port-learning-v1-cta { padding: 42px 0; }
  .port-learning-v1-cta .port-shell { align-items: flex-start; flex-direction: column; }
  .port-learning-v1-cta h2 { font-size: 25px; }
  .port-course-v1-hero { padding: 38px 0 28px; }
  .port-course-v1-hero__inner { grid-template-columns: 1fr; }
  .port-course-v1-hero h1 { font-size: 43px; }
  .port-course-v1-hero p { font-size: 15px; }
  .port-course-v1-hero__mark { display: none; }
  .port-course-v1-facts { grid-template-columns: repeat(2,1fr); }
  .port-course-v1-facts div:nth-child(3) { border-left: 0; border-top: 1px solid var(--port-line); }
  .port-course-v1-facts div:nth-child(4) { border-top: 1px solid var(--port-line); }
  .port-course-v1-guide { align-items: flex-start; flex-direction: column; margin-top: 28px; padding: 22px; }
  .port-course-v1-guide h2 { font-size: 22px; }
  .port-course-v1-curriculum { padding-top: 50px; padding-bottom: 58px; }
  .port-course-v1-curriculum > header h2 { font-size: 29px; }
  .port-course-v1-chapter { grid-template-columns: 1fr; gap: 16px; padding: 28px 0; }
  .port-course-v1-chapter li > a, .port-course-v1-chapter li > div { min-height: 74px; padding: 12px 6px; grid-template-columns: 32px minmax(0,1fr) auto; gap: 8px; }
  .port-course-v1-lesson__meta { grid-column: 2; display: flex; gap: 10px; align-items: center; justify-self: start; }
  .port-course-v1-chapter i { grid-column: 3; grid-row: 1 / span 2; }
  .port-course-v1-lesson__status { align-self: start; }
  .port-lesson-wrap { padding-top: 20px; }
  .port-v1-lesson-layout { width: min(calc(100% - 28px), var(--port-reading)); }
  .port-lesson-header h1 { font-size: 29px; }
  .port-lesson-lead { font-size: 15px; }
  .port-meta { gap: 13px 18px; }
  .port-article { padding-top: 30px; font-size: 16px; line-height: 1.85; }
  .port-article p { font-size: 16px; line-height: 1.85; }
  .port-article h2 { padding: 10px 14px; font-size: 22px; text-wrap: balance; }
  .port-article .port-no-break { white-space: nowrap; }
  .port-article .wp-block-group.port-v1-term-grid,
  .port-v1-term-grid > .wp-block-group__inner-container { grid-template-columns: 1fr; gap: 10px; }
  .port-article .wp-block-group.port-v1-term-card { min-height: 67px; padding: 16px 16px 16px 72px; }
  .port-v1-term-card__icon { top: 14px; left: 14px; width: 43px; min-height: 39px; }
  .port-v1-term-card strong { font-size: 16px; }
  .port-v1-term-card p { font-size: 15px; line-height: 1.75; }
  .port-article .is-style-port-procedure > li,
  .port-v1-step-list > li { min-height: 57px; padding: 16px 14px 16px 56px; font-size: 16px; line-height: 1.8; }
  .port-article .is-style-port-procedure > li::before,
  .port-v1-step-list > li::before { top: 13px; left: 13px; width: 29px; height: 29px; }
  .port-article .wp-block-image { margin: 22px 0 30px; }
  .port-article .wp-block-image figcaption { margin-top: 10px; font-size: 14px; line-height: 1.75; }
  .port-image-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); padding: 48px 10px 10px; border-radius: 10px; }
  .port-image-dialog img { max-height: calc(100dvh - 86px); }
  .port-lesson-figure { margin-inline: 0; }
  .port-lesson-footer-nav { grid-template-columns: 1fr; }
  .port-footer__inner { flex-direction: column; }
}

@media (max-width: 340px) {
  .port-catalog-toolbar { grid-template-columns: 1fr; align-items: stretch; }
  .port-tabs { width: 100%; }
  .port-sort { grid-template-columns: auto 104px; align-items: center; justify-self: end; }
  .port-learning-v1-intro h2 { font-size: clamp(22px,6.9vw,24px); }
  .port-learning-v1-steps article { grid-template-columns: 1fr; }
  .port-learning-v1-step__number { font-size: 30px; line-height: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
