/* /degreepathways and /degreepathways/compare (inc/gofurther.php), on top of cti-program.css: Apple's layouts in NMC red.
   The register page (register.css) also builds on this file.
   NMC red #a22631 and its darker shades #791c25 / #64171e come from the site's theme (the red top bar). */

/* ---- brand: the CTI page's tokens recoloured; headlines near-black like Apple, red for the accents ------------- */
.gof { --navy: #1d1d1f; --blue: #a22631; --red: #a22631; --red-dark: #791c25; --red-deep: #64171e; --gold-ink: #a22631;
  --tint: #fbecee; }
.gof .ctip-btn:hover { background: var(--red-dark); }
.gof .ctip-btn--light { color: var(--red) !important; }
.gof .ctip-btn--light:hover { background: #fbecee; }
.gof .ctip-btn--ghost:hover { background: rgba(255,255,255,.14); }
.gof .ctip-grad { background-image: linear-gradient(90deg, #7a1b25 0%, #a22631 45%, #d4473f 100%); }
.gof .ctip-grad--light { background-image: linear-gradient(90deg, #fff 0%, #ffd9d3 60%, #ffb8a8 100%); }
.gof .ctip-cta { background: radial-gradient(120% 120% at 50% 0%, #b8323d 0%, var(--red) 42%, var(--red-deep) 100%); }
.gof .ctip-person a { color: #ffd9d3; }
.gof .ctip-dock-list a:hover { background: rgba(162,38,49,.07); }

/* "[to confirm]" text, should any come back */
.gof .gof-todo { background: #fff1a8; color: inherit; padding: 0 .2em; border-radius: 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.gof .ctip-cta .gof-todo { background: rgba(255, 225, 120, .25); color: #fff2c4; }

.gof-pill { display: inline-flex; align-items: center; min-height: 24px; margin: 0 0 12px !important; padding: 0 10px; border-radius: 980px;
  background: #ececf0; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .01em; line-height: 1; }
.gof-pill--open { background: var(--tint); color: var(--red); }

/* section heads: big title left, a link at the right (Apple's "Explore the lineup.  Compare all models >") */
.gof-row-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px 32px; flex-wrap: wrap; margin-bottom: 44px; }
.gof-row-head .ctip-h2 { margin: 0; }
.gof-row-head .ctip-link { min-height: 0; padding-bottom: .45em; }

/* ---- hero: the campus map's look (icon circle, big title), centred ----------------------------------------------- */
.dp .dp-hero { padding: clamp(48px, 8vh, 96px) 0 clamp(56px, 9vh, 104px); text-align: center; }
.dp-hero-ico { display: grid; place-items: center; width: 88px; height: 88px; margin: 0 auto 22px; border-radius: 50%;
  background: linear-gradient(160deg, #c23542, var(--red) 55%, var(--red-deep)); box-shadow: 0 10px 30px rgba(162,38,49,.25); }
.dp-hero-svg { width: 44px; height: 44px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dp .dp-hero-name { font-size: clamp(19px, 1.8vw, 24px); font-weight: 600; letter-spacing: -.01em; color: var(--red); margin: 0 0 10px; }
.dp-hero-title { font-size: clamp(42px, 5.6vw, 80px); font-weight: 700; letter-spacing: -.035em; line-height: 1.04; color: var(--ink); margin: 0 auto 18px; max-width: 900px; text-wrap: balance; }
.dp .dp-hero-lede { font-size: clamp(19px, 2vw, 24px); line-height: 1.4; color: var(--muted); max-width: 720px; margin: 0 auto 30px; }
.dp .dp-hero-cta { display: flex; justify-content: center; align-items: center; gap: 12px 28px; flex-wrap: wrap; margin: 0; }

/* ---- scrollers (the lineup, Why NMC): first column lines up with the text column, the last scrolls clear ------ */
.gof-scroller { --pad: max(22px, calc((100% - 1080px) / 2)); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); padding: 4px var(--pad) 12px; scrollbar-width: none; outline: none; }
.gof-scroller::-webkit-scrollbar { display: none; }
.gof-scroller:focus-visible { box-shadow: inset 0 0 0 2px var(--red); border-radius: 12px; }
.gof-paddles { display: flex; justify-content: flex-end; gap: 14px; margin-top: 24px; }
.gof-paddles[hidden] { display: none; }
.gof-paddle { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  background: #e8e8ed; color: var(--ink); cursor: pointer; transition: background .2s, opacity .2s, transform .2s; }
.gof-paddle:hover { background: #dcdce1; }
.gof-paddle:active { transform: scale(.94); }
.gof-paddle:disabled { opacity: .35; cursor: default; }
.gof-paddle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- the lineup: columns side by side sharing rows (subgrid), so titles and buttons line up --------------- */
.gof-start { padding: 120px 0 120px; }
.gof-cards { display: grid; grid-auto-flow: column; grid-auto-columns: 288px; grid-template-rows: repeat(6, auto);
  column-gap: 36px; width: max-content; margin: 0 !important; }
.gof-card { grid-row: span 6; display: grid; grid-template-rows: subgrid; row-gap: 0; scroll-snap-align: start; text-align: center; }
.gof-card > p { margin: 0; }
.gof-card .gof-card-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .01em; color: var(--red); margin: 0 0 8px; }
.gof-card-title { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; color: var(--ink); margin: 0 0 12px; }
.gof-card .gof-card-ways { font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--ink); margin: 0 0 12px; }
.gof-dot { color: #aeb4bf; }
.gof-card .gof-card-gain { font-size: 17px; line-height: 1.35; color: var(--muted); margin: 0 0 22px; }
.gof-card .gof-card-cta { display: flex; justify-content: center; align-items: center; gap: 6px 18px; flex-wrap: wrap; margin: 0; }
.gof .gof-btn-sm { min-height: 36px; padding: 0 18px; font-size: 15px; }
.gof-card-cta .ctip-link { min-height: 36px; font-size: 15px; }

/* ---- Why NMC: Apple's "Why Apple is the best place to buy" cards ------------------------------------------- */
.gof-why { padding: 110px 0 120px; background: var(--gray); }
.gof-whys { display: grid; grid-auto-flow: column; grid-auto-columns: 372px; column-gap: 20px; width: max-content; margin: 0 !important; }
.gof-whycard { display: flex; flex-direction: column; min-height: 500px; padding: 34px 32px 32px; border-radius: 28px; background: #fff;
  scroll-snap-align: start; transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s; }
.gof-whycard:hover { transform: scale(1.012); box-shadow: 0 6px 30px rgba(0,0,0,.08); }
.gof .gof-why-eyebrow { font-size: 15px; font-weight: 600; color: var(--red); margin: 0 0 8px; }
.gof-why-title { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.14; color: var(--ink); margin: 0 0 12px; }
.gof .gof-why-text { font-size: 17px; line-height: 1.45; color: var(--ink); margin: 0 0 24px; }

/* ---- Why NMC with a photo (field dp_why_photo here, register_why on /register): the heading on the grey, then the
   picture full width below it (fading in from the grey), the cards rising over its lower part --------------------- */
.gof-why.has-photo, .rg-why.has-photo { display: flex; flex-direction: column; }
.has-photo > * { order: 2; }
.has-photo > .gof-row-head { order: 0; }
.has-photo > .why-bg { order: 1; }
.why-bg { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 92vh; margin-top: -24px; overflow: hidden; }
.why-bg img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 30%; }
.why-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, #f5f5f7 0%, rgba(245,245,247,0) 16%, rgba(245,245,247,0) 58%, rgba(245,245,247,.9) 86%, #f5f5f7 100%); }
.has-photo > .gof-scroller { position: relative; z-index: 1; margin-top: max(-34vw, -380px); }
.has-photo .gof-whycard, .has-photo .rg-whycard { box-shadow: 0 10px 40px rgba(0,0,0,.12); }

/* ---- compare page (apple.com/ipad/compare) ----------------------------------------------------------------- */
.gofc-head { padding: 80px 0 64px; }
.gofc-title { font-size: clamp(40px, 6vw, 80px); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; color: var(--ink); margin: 0 0 18px; }
.gofc .gofc-links, .gofc .gofc-sub { font-size: 21px; margin: 0 0 6px; }
.gofc .gofc-links .ctip-link, .gofc .gofc-sub .ctip-link { font-size: 21px; min-height: 0; }
.gofc-table { margin-bottom: 96px; }
.gofc-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.gofc-col { position: relative; text-align: center; }
.gofc-pick .gofc-col { text-align: left; }
.gofc-select { -webkit-appearance: none; appearance: none; width: 100%; height: 60px; padding: 0 44px 0 20px; border: 1px solid var(--line);
  border-radius: 16px; background: #fff; color: var(--ink); font: 600 19px/1.2 var(--font); letter-spacing: -.01em; cursor: pointer; }
.gofc-select:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.gofc-caret { position: absolute; right: 18px; top: 50%; width: 14px; height: 14px; margin-top: -7px; pointer-events: none; fill: none;
  stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gofc-top { padding: 56px 0 44px; }
.gofc-badge { display: grid; place-items: center; width: 112px; height: 112px; margin: 0 auto 22px; border-radius: 50%; background: var(--gray); }
.gofc-icon { width: 54px; height: 54px; fill: none; stroke: var(--red); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.gofc-name { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; color: var(--ink); margin: 0 0 8px; }
.gofc .gofc-v .gofc-line { font-size: 17px; color: var(--muted); margin: 0 0 20px; }
.gofc .gofc-v .gof-pill { margin: 0 0 12px; }
.gofc .gofc-cta { margin: 0; }
.gofc-q { display: flex; align-items: center; gap: 8px; margin: 0; padding: 30px 0 18px; border-top: 1px solid var(--line);
  font-size: 15px; font-weight: 600; letter-spacing: .01em; color: var(--muted); }
.gofc-q .gof-row-icon { width: 20px; height: 20px; fill: none; stroke: var(--red); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.gofc-row:not(.gofc-pick):not(.gofc-top) .gofc-col { padding: 0 0 34px; }
.gofc .gofc-v .gofc-office { margin: 0 0 10px; }
.gofc-office a { font-weight: 600; color: var(--red); }
.gofc .gofc-v p { font-size: 17px; line-height: 1.45; color: var(--ink); margin: 0; }
.gofc .gofc-v .gofc-empty { color: #aeb4bf; }
.gofc-parts { margin: 16px 0 0 !important; display: grid; gap: 12px; }
.gofc-parts li { padding: 14px 16px; border-radius: 14px; background: var(--gray); font-size: 15px; line-height: 1.4; color: var(--muted); }
.gofc-parts strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }

/* ---- the same hero on other pages (block nmc/page-hero): no script there, so the words fade in by CSS ---------- */
.dp-pagehero .ctip-intro { opacity: 0; transform: translate3d(0, 24px, 0); animation: dp-rise .9s cubic-bezier(.16,1,.3,1) .1s forwards; }
.dp-pagehero .dp-hero-name { animation-delay: .2s; }
.dp-pagehero .dp-hero-title { animation-delay: .3s; }
.dp-pagehero .dp-hero-lede { animation-delay: .42s; }
.dp-pagehero .dp-hero-cta { animation-delay: .54s; }
@keyframes dp-rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dp-pagehero .ctip-intro { animation: none; opacity: 1; transform: none; } }

/* ---- starting-point cards: an icon tile instead of a photo ------------------------------------------------------ */
.dp .gof-cards { grid-template-rows: repeat(6, auto); }
.dp-tile { display: grid; place-items: center; aspect-ratio: 1 / 1; margin: 0 0 22px; border-radius: 28px; }
.dp-tile-icon { width: 38%; height: 38%; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.dp-tile--sky { background: linear-gradient(160deg, #eaf2fb, #d6e6f7); color: #2f6db5; }
.dp-tile--sand { background: linear-gradient(160deg, #fbf3e6, #f3e2c4); color: #9a6a1c; }
.dp-tile--sea { background: linear-gradient(160deg, #e6f6f4, #c9ebe6); color: #1d7f74; }
.dp-tile--sunset { background: linear-gradient(160deg, #fdeeea, #f8d6cc); color: #b8452e; }
.dp-tile--jungle { background: linear-gradient(160deg, #eaf5e8, #d2ebcd); color: #3c7d34; }
.dp-tile--night { background: linear-gradient(160deg, #3a3f4c, #1d2029); color: #fff; }
.dp-why-icon { width: 44px; height: 44px; margin: 0 0 20px; fill: none; stroke: var(--red); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.dp .gof-whycard { min-height: 0; }

/* ---- offices ("Want to learn more? Ask us.") ------------------------------------------------------------------------ */
.dp-offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; text-align: left; }
.dp-office { display: flex; flex-direction: column; padding: 22px 22px 18px; border-radius: 20px; background: var(--gray); }
.dp-office-name { font-size: 18px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; color: var(--ink); margin: 0 0 4px; }
.dp .dp-office-for { font-size: 14px; line-height: 1.4; color: var(--muted); margin: 0 0 14px; }
.dp-office-list { display: grid; gap: 8px; margin: 0 0 12px !important; padding: 0; list-style: none; }
.dp-office-list li { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: 15px; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.dp-office-list a { color: var(--red); }
.dp-office-icon { flex: none; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: var(--red); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dp-office-page { margin-top: auto; min-height: 0; font-size: 15px; }
.dp-help .dp-offices--cta { margin: 40px auto 36px; max-width: 1080px; }
.dp-help .dp-office { background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.dp-help .dp-office-name, .dp-help .dp-office-list li { color: #fff; }
.dp-help .dp-office-for { color: rgba(255,255,255,.75); }
.dp-help .dp-office-list a, .dp-help .dp-office-page { color: #ffd9d3; }
.dp-help .dp-office-icon { stroke: #ffd9d3; }

/* ---- the sheet: "Learn more" opens a dialog over the page, the page blurred behind it -------------------------------- */
.dp-modal { width: min(860px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 48px); margin: auto; padding: 0; border: 0;
  border-radius: 28px; background: #fff; color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.28); overflow: hidden; }
.dp-modal::backdrop { background: rgba(20,20,24,.38); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); }
.dp-modal[open] { display: flex; animation: dp-in .45s cubic-bezier(.16,1,.3,1); }
.dp-modal[open]::backdrop { animation: dp-fade .35s ease; }
.dp-modal.is-closing { animation: dp-out .22s ease forwards; }
.dp-modal.is-closing::backdrop { animation: dp-fade .22s ease reverse forwards; }
@keyframes dp-in { from { opacity: 0; transform: translateY(28px) scale(.98); } }
@keyframes dp-out { to { opacity: 0; transform: translateY(18px) scale(.985); } }
@keyframes dp-fade { from { opacity: 0; } }
.dp-sheet { flex: 1; overflow-y: auto; overscroll-behavior: contain; max-height: calc(100dvh - 48px); padding: 56px clamp(22px, 6vw, 64px) 48px; }
.dp-close { position: absolute; top: 16px; right: 16px; z-index: 3; display: grid; place-items: center; width: 40px; height: 40px; margin: 0;
  padding: 0; border: 0; border-radius: 50%; background: rgba(232,232,237,.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 0 0 6px rgba(255,255,255,.85); color: var(--ink); cursor: pointer; transition: background .2s; }
.dp-close:hover { background: #dcdce1; }
.dp-close:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.dp-close-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.dp-panel[hidden] { display: none; }
.dp-panel-head { margin: 0 0 30px; padding-right: 36px; }
.dp-panel-badge { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 0 18px; border-radius: 50%;
  background: linear-gradient(160deg, #c23542, var(--red) 55%, var(--red-deep)); box-shadow: 0 8px 22px rgba(162,38,49,.22); }
.dp-panel-icon { width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dp .dp-panel-eyebrow { font-size: 15px; font-weight: 600; color: var(--red); margin: 0 0 6px; }
.dp-panel-title { font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: -.03em; line-height: 1.08; color: var(--ink); margin: 0 0 10px; }
.dp .dp-panel-intro { font-size: clamp(19px, 2vw, 22px); line-height: 1.35; color: var(--muted); margin: 0; }
.dp .dp-note { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--tint);
  font-size: 15px; line-height: 1.45; color: var(--ink); }
.dp-note-icon { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--red); stroke-width: 1.6; stroke-linecap: round; }
.dp-way { padding: 28px 0 8px; border-top: 1px solid var(--line); }
.dp-way-name { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 18px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; color: var(--ink); }
.dp-way-name small { display: block; margin-top: 4px; font-size: 16px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.dp-way-icon { flex: none; width: 34px; height: 34px; fill: none; stroke: var(--red); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.dp-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 36px; margin: 0 0 18px; }
.dp-facts > div { min-width: 0; }
.dp-facts dt { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.dp-facts dd { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink); }
.dp-parts { display: grid; gap: 10px; margin: 14px 0 0 !important; padding: 0; list-style: none; }
.dp-parts li { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--gray); font-size: 15px; line-height: 1.45; color: var(--muted); }
.dp-parts strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }
.dp-way-links { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0 0 16px; }
.dp-way-links .ctip-link { min-height: 0; font-size: 17px; }
.dp-ask { margin-top: 18px; padding-top: 28px; border-top: 1px solid var(--line); }
.dp-ask-h { font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); margin: 0 0 18px; }
html.dp-locked { overflow: hidden; }

/* ---- tablet and phone ---------------------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .why-bg { aspect-ratio: auto; height: 460px; margin-top: -12px; }
  .why-bg img { object-position: 46% 18%; }
  .has-photo > .gof-scroller { margin-top: -120px; }
  .dp-facts { grid-template-columns: 1fr; gap: 18px; }
  .dp-modal { width: 100%; max-height: calc(100dvh - 24px); margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .dp-sheet { max-height: calc(100dvh - 24px); padding: 48px 20px 36px; }
  .dp-close { top: 12px; right: 12px; }
  .dp-tile { border-radius: 22px; aspect-ratio: 4 / 3; }
  .dp .dp-hero-cta { flex-direction: column; }
  .gof-start { padding: 80px 0; }
  .gof-why { padding: 72px 0 80px; }
  .gof-scroller { --pad: 16px; }
  .gof-cards { grid-auto-columns: min(300px, calc(100vw - 64px)); column-gap: 14px; }
  /* phones: each card is its own panel, so the next one peeks in as a box instead of loose text */
  .dp .gof-card { padding: 12px 18px 22px; border-radius: 26px; background: #f5f5f7; }
  .dp .gof-card .dp-tile { margin: 0 -6px 18px; border-radius: 18px; }
  .dp .gof-card-title { font-size: 22px; }
  .dp .gof-card .gof-card-ways { font-size: 14px; }
  .dp .gof-card .gof-card-gain { font-size: 16px; margin-bottom: 18px; }
  .gof-whys { grid-auto-columns: min(320px, calc(100vw - 56px)); column-gap: 14px; }
  .gof-whycard { min-height: 440px; padding: 28px 24px 24px; }
  .gofc-head { padding: 48px 0 40px; }
  .gofc .gofc-links, .gofc .gofc-sub, .gofc .gofc-links .ctip-link, .gofc .gofc-sub .ctip-link { font-size: 17px; }
  .gofc-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
  .gofc-col[data-col="2"] { display: none; }
  .gofc-select { height: 52px; padding: 0 34px 0 14px; font-size: 16px; }
  .gofc-caret { right: 12px; }
  .gofc-badge { width: 84px; height: 84px; }
  .gofc-icon { width: 42px; height: 42px; }
  .gofc-name { font-size: 22px; }
  .gofc .gofc-v p { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .dp-modal[open], .dp-modal[open]::backdrop, .dp-modal.is-closing, .dp-modal.is-closing::backdrop { animation: none; }
}
