.island-port { color: #153f3b; --port-edge: #d5dfd3; --port-teal: #165849; }
.island-port h1, .island-port h2, .island-port h3 { letter-spacing: -.045em; line-height: 1.07; }
.island-port h2 { font-size: clamp(25px, 3.1vw, 38px); font-weight: 950; }
.port-hero { position: relative; overflow: hidden; isolation: isolate; display: grid; align-items: center; min-height: clamp(330px, 34vw, 430px); border-radius: 28px; background: #fff5d8; border: 1px solid #d6dfc6; }
.port-landscape, .port-hero::before { position: absolute; inset: 0; z-index: -1; }
.port-landscape { background: url('./assets/journey/dipolog-from-above.webp') right center / 76% auto no-repeat; }
.port-hero::before { content: ''; z-index: 0; background: linear-gradient(90deg,#fff4d3 12%,#fff4d3 32%,#fff4d3ef 42%,#fff4d372 55%,#fff4d300 69%); }
.port-intro { position: relative; z-index: 1; width: 54%; padding: clamp(24px, 4vw, 58px); }
.port-location { color: #6e571c; font-size: 12px; font-weight: 950; letter-spacing: .085em; text-transform: uppercase; }
.port-intro h1 { margin: 14px 0 15px; color: #113f39; font-weight: 1000; font-size: clamp(44px, 5.2vw, 76px); }
.port-intro > p:not(.port-location), .port-welcome-header > p { font-size: clamp(16px, 1.5vw, 20px); line-height: 1.5; max-width: 41ch; color: #35554c; }
.port-actions, .port-more, .port-family-links { display: flex; flex-wrap: wrap; gap: 10px; }
.port-actions { margin-top: 23px; }
.port-button, .port-back { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; font-size: 15px; font-weight: 900; }
.port-button { padding: 10px 16px; background: #fffdf6; color: #215848; border: 1px solid #bdcfc1; border-radius: 14px; }
.port-primary { background: var(--port-teal); color: white; border-color: var(--port-teal); }
.port-button:hover, .port-back:hover { text-decoration: underline; text-underline-offset: 3px; }
.port-minda { position: absolute; height: 96%; max-width: 49%; width: auto; right: 3.4%; bottom: -3%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 8px 8px #1b403a32); }
.port-roles, .port-roles + section { margin-top: clamp(26px, 3.5vw, 46px); }
.port-role-grid, .port-feature-grid { display: grid; gap: 12px; margin-top: 17px; }
.port-role-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }
.port-role { position: relative; display: flex; align-items: flex-start; flex-direction: column; gap: 14px; padding: 17px; min-width: 0; background: #fffef9; border: 1px solid var(--port-edge); border-radius: 18px; }
.port-role:hover, .port-feature:hover { border-color: #628c79; box-shadow: 0 4px 12px #183b2c10; }
.port-icon { display: grid; flex: none; place-items: center; width: 46px; height: 46px; border-radius: 15px; font-size: 25px; background: var(--tile-bg, #cceadf); }
.port-students { --tile-bg: #c8e9f1; } .port-families { --tile-bg: #f8dfb2; } .port-teachers { --tile-bg: #d8ebcb; } .port-schools { --tile-bg: #e7dff4; } .port-districts { --tile-bg: #fbd9c9; }
.port-role strong, .port-role small, .port-feature-copy > * { display: block; }
.port-role strong { font-size: clamp(16px, 1.7vw, 22px); font-weight: 950; line-height: 1.15; }
.port-role small { margin-top: 5px; color: #516b60; font-size: 13px; }
.port-arrow { font-size: 20px; }
.port-role .port-arrow { position: absolute; right: 15px; top: 18px; color: #608074; }
.port-feature-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.port-feature { overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-content: start; border: 1px solid var(--port-edge); border-radius: 19px; background: #fffef9; }
.port-feature-art { display: block; grid-column: 1/-1; height: clamp(110px, 12vw, 160px); overflow: hidden; }
.port-feature-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.port-feature-homework-help .port-feature-art { background: #f2d8a5; }
.port-feature-library .port-feature-art { background: #cce2dc; }
.port-feature-homework-help img, .port-feature-library img { object-fit: contain; object-position: center 14%; height: 160%; }
.port-feature-copy { padding: 17px 2px 18px 17px; }
.port-feature .port-arrow { padding: 14px 12px 0 3px; color: #608074; }
.port-feature-copy strong { font-size: 19px; font-weight: 950; line-height: 1.2; }
.port-feature-copy > span { font-size: 14px; line-height: 1.45; color: #50695e; margin-top: 6px; }
.port-more, .port-family-links { margin-top: 17px; }
.port-welcome { max-width: 960px; margin-inline: auto; }
.port-back { color: var(--port-teal); justify-content: flex-start; }
.port-welcome-header { padding: clamp(24px, 5vw, 52px); margin-top: 8px; border-radius: 24px; background: #ecf3e2; border: 1px solid var(--port-edge); }
.port-welcome-header h1 { font-size: clamp(36px,5vw,58px); margin: 14px 0; }
.port-welcome-header > p { max-width: 54ch; }
.port-welcome-header small, .port-routine small { display: block; font-size: 13px; color: #556d61; margin-top: 12px; }
.port-steps { list-style-position: inside; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 18px 0 0; padding: 0; }
.port-steps li, .port-routine { border: 1px solid var(--port-edge); border-radius: 19px; background: #fffef9; padding: 23px; }
.port-steps li::marker { color: var(--port-teal); font-weight: 900; }
.port-steps h2 { display: inline; font-size: 20px; }
.port-steps p, .port-routine > p { line-height: 1.5; color: #50695e; margin-top: 10px; }
.port-routine { margin-top: 18px; }
.port-routine h2 { font-size: 26px; }
.port-checks { display: flex; flex-wrap: wrap; gap: 10px; margin: 15px 0; }
.port-checks label { display: flex; align-items: center; gap: 7px; background: #edf5e6; border-radius: 12px; min-height: 46px; padding: 8px 12px; cursor: pointer; }
.port-checks input { width: 19px; height: 19px; accent-color: var(--port-teal); }
.port-reward { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.port-reward select { max-width: 100%; min-height: 44px; border: 1px solid var(--port-edge); border-radius: 10px; padding: 5px 10px; background: #fff; }
@media(max-width: 900px) {
  .port-role { padding: 13px; }
  .port-role-grid { gap: 7px; }
  .port-feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .port-feature-art { height: 145px; }
}
@media(max-width: 680px) {
  .port-hero { display: flex; flex-direction: column; align-items: stretch; }
  .port-landscape { inset: auto 0 0; height: 200px; background-size: cover; background-position: 50% 48%; }
  .port-hero::before { background: linear-gradient(0deg,transparent 110px,#fff4d3 196px); }
  .port-intro { width: auto; padding: 23px 20px 0; }
  .port-intro h1 { margin: 8px 0 10px; }
  .port-intro > p { max-width: none; }
  .port-actions { margin-top: 14px; }
  .port-minda { position: relative; align-self: flex-end; height: 172px; width: auto; max-width: 65%; bottom: -3px; right: 5%; }
  .port-role-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .port-role { flex-direction: row; align-items: center; gap: 8px; min-height: 72px; padding: 10px; }
  .port-role .port-arrow { display: none; }
  .port-icon { width: 38px; height: 38px; border-radius: 12px; font-size: 21px; }
  .port-role small { font-size: 12px; }
  .port-steps { grid-template-columns: 1fr; }
}
@media(max-width: 430px) {
  .port-feature-grid { grid-template-columns: 1fr; }
  .port-feature { grid-template-columns: 91px 1fr auto; align-items: center; }
  .port-feature-art { grid-column: auto; height: 100%; min-height: 100px; position: relative; }
  .port-feature-art img { position: absolute; inset: 0; }
  .port-feature-homework-help img, .port-feature-library img { height: 100%; }
  .port-feature-copy { padding: 12px 0 12px 11px; }
  .port-feature .port-arrow { padding: 0 8px; }
  .port-role .port-icon { width: 30px; height: 35px; font-size: 18px; }
}
.product-menu > .port-menu-group { padding-block: 2px; border-bottom: 1px solid #e4e9df; }
.product-menu .port-menu-group > summary { display: flex; justify-content: space-between; min-height: 44px; background: transparent; }
.product-menu .port-menu-group > summary::after { content: '+'; padding-left: 8px; font-size: 18px; }
.product-menu .port-menu-group[open] > summary::after { content: '−'; }
.product-menu .port-menu-group > summary:hover { background: #eff3e7; }
.product-menu .port-menu-group a[hidden] { display: none; }
.port-brand-mark { width: 41px; height: 41px; flex: none; border-radius: 13px; background: #f7e8ba url('./assets/journey/minda-guide.png') 41% 0% / 225% auto no-repeat; }
minda-pilot-plan { display: block; margin-top: 18px; }
.port-pilot { border: 1px solid var(--port-edge); border-radius: 20px; padding: clamp(18px, 3.5vw, 34px); background: #fffef9; }
.port-pilot-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.port-pilot-top h2 { margin: 0; font-size: clamp(25px, 3vw, 34px); }
.port-pilot-top button { font-family: inherit; cursor: pointer; }
.port-plan-storage, .port-pilot-steps small { color: #50695e; font-size: 14px; line-height: 1.45; }
.port-plan-storage { margin: 5px 0 18px; }
.port-plan-field { display: grid; gap: 6px; font-size: 16px; font-weight: 900; }
.port-plan-field input, .port-plan-field textarea { width: 100%; min-width: 0; font: inherit; font-weight: 550; color: inherit; background: white; border: 1px solid #a1b5a5; border-radius: 11px; padding: 10px 12px; }
.port-plan-field input { max-width: 33rem; min-height: 44px; }
.port-plan-field textarea { resize: vertical; }
.port-pilot-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 13px; margin: 23px 0 13px; font-size: 14px; font-weight: 900; }
.port-pilot-progress progress { width: 11rem; max-width: 100%; height: 12px; accent-color: #28715b; }
.port-pilot-steps { display: grid; gap: 8px; margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.port-pilot-steps legend { padding: 0; margin-bottom: 9px; font-size: 18px; font-weight: 900; }
.port-pilot-steps label { display: flex; gap: 12px; align-items: start; cursor: pointer; padding: 11px 13px; background: #f2f5ea; border: 1px solid #d4dfd1; border-radius: 11px; }
.port-pilot-steps input { flex: none; width: 20px; height: 20px; margin: 2px 0; accent-color: var(--port-teal); }
.port-pilot-steps strong, .port-pilot-steps small { display: block; }
.port-pilot-steps strong { margin-bottom: 3px; line-height: 1.25; }
.port-print-value { display: none; }
@media print {
  body:has(minda-pilot-plan) > :not(main), .port-welcome:has(minda-pilot-plan) > :not(minda-pilot-plan),
  .port-pilot button, .port-pilot progress, .port-plan-storage, .port-plan-field input, .port-plan-field textarea { display: none; }
  body:has(minda-pilot-plan), body:has(minda-pilot-plan) .shell, .port-pilot { background: white; padding: 0; margin: 0; width: 100%; max-width: none; border: 0; box-shadow: none; }
  minda-pilot-plan { margin: 0; }
  .port-pilot { color: #18221d; }
  .port-pilot-top { margin-bottom: 1em; }
  .port-print-value { display: inline; }
  .port-plan-field .port-print-value { display: block; white-space: pre-wrap; overflow-wrap: anywhere; font-weight: 500; }
  .port-pilot-steps label { break-inside: avoid; background: white; }
  .port-pilot-steps input { display: none; }
  .port-pilot-steps input + span > strong::before { content: 'To do · '; }
  .port-pilot-steps input:checked + span > strong::before { content: 'Done · '; }
}

.port-test-tip, .test-role-tools small { display: block; color: #446057; margin-top: 7px; font-size: 14px; }
.test-intro { padding: clamp(16px, 4vw, 40px) 0 20px; }
.test-intro h1 { font-size: clamp(36px, 5vw, 60px); margin: 0 0 12px; }
.test-intro p { margin: 0; max-width: 58ch; line-height: 1.5; }
.test-role-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.test-role-card { display: grid; grid-template-columns: 1fr auto; align-content: start; gap: 12px; padding: 16px; border: 1px solid #c4d6c8; border-radius: 18px; color: #18483f; background: #fcfcf7; }
.test-role-card:hover { border-color: #477462; }
.test-role-card img { grid-column: 1/-1; width: 100%; height: 155px; object-fit: contain; background: #ecf1df; border-radius: 12px; }
.test-role-card strong, .test-role-card div span { display: block; }
.test-role-card strong { font-size: 22px; }
.test-role-card div span { margin-top: 4px; line-height: 1.4; }
.test-role-tools { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 14px 18px; margin-bottom: 18px; background: #f1f5e8; border: 1px solid #c4d6c8; border-radius: 16px; }
.test-role-tools .port-actions { margin: 0; }
@media (max-width: 640px) {
  .test-role-grid { grid-template-columns: 1fr; }
  .test-role-card { grid-template-columns: 72px 1fr auto; align-items: center; }
  .test-role-card img { grid-column: auto; height: 78px; }
}
