/* Professor Py — plain CSS, no remote fonts or runtime dependencies.
   Colours and spacing are shared by the public page layouts. */
:root {
  color-scheme: light;
  --ink: #142e3e;
  --muted: #526574;
  --blue: #075a7b;
  --blue-dark: #06415c;
  --blue-soft: #eaf3f7;
  --amber: #b37413;
  --line: #d5dfe5;
  --paper: #f7f9fa;
  --white: #fff;
  --radius: 8px;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 4px; }
a:hover { color: var(--blue-dark); }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; border-radius: 2px; }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { line-height: 1.2; }
.wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; top: 8px; left: 16px; z-index: 10; padding: 12px 20px; background: var(--ink); color: white; transform: translateY(-160%); }
.skip-link:focus { transform: none; color: white; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.brand img { width: 66px; height: 44px; object-fit: contain; }
.brand-name { font-size: 1.25rem; font-weight: 750; letter-spacing: -.04em; }
.brand-name span { color: var(--blue); }
.top-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; }
.top-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: .9375rem; text-decoration: none; }
.top-nav a:hover, .top-nav a[aria-current="page"] { color: var(--ink); }
.top-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 10px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 40px; align-items: center; padding-block: 38px 32px; }
.eyebrow { font: 500 .75rem/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.hero h1 { margin-top: 13px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 4.4vw, 3.75rem); font-weight: 400; letter-spacing: -.045em; line-height: 1.07; overflow-wrap: anywhere; }
.hero h1 em { color: var(--blue); font-weight: 400; }
.hero-copy > p:not(.eyebrow) { max-width: 540px; margin-top: 19px; color: var(--muted); font-size: 1.125rem; line-height: 1.6; }
.collection-meta { display: flex; gap: 22px; margin-top: 20px; color: var(--muted); font-size: .8125rem; }
.collection-meta span + span { border-left: 1px solid var(--line); padding-left: 22px; }
/* The portrait rises out of a circular blue field, cropped at the waist. */
.hero-portrait { position: relative; isolation: isolate; display: flex; align-items: flex-start; justify-content: center; height: 280px; overflow: hidden; border-radius: 48% 48% 44% 44%; }
.hero-portrait::before { content: ""; position: absolute; inset: 33px 15px -18px; z-index: -2; border-radius: 50%; background: var(--blue-soft); }
.hero-portrait::after { content: ""; position: absolute; inset: 20px 3px 5px; z-index: -1; border: 1px solid #b3741366; border-radius: 50%; transform: rotate(-15deg); }
.hero-portrait img { width: 258px; height: 387px; max-width: none; object-fit: contain;  }
.disclosure { display: flex; align-items: flex-start; gap: 13px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; color: var(--muted); font-size: .875rem; line-height: 1.65; }
.disclosure svg { width: 19px; height: 19px; flex: 0 0 19px; margin-top: 3px; color: var(--blue); }
.disclosure strong { color: var(--ink); font-weight: 650; }
.disclosure a { white-space: nowrap; }
.category-nav { padding-block: 23px 30px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.category-nav .nav-label { font: .75rem/1.5 var(--mono); color: var(--muted); margin-right: 13px; }
.category-nav a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; border: 1px solid var(--line); background: var(--white); border-radius: 5px; padding: 9px 15px; color: var(--ink); font-size: .875rem; text-decoration: none; }
.category-nav a:hover { background: var(--blue-soft); border-color: #8eaab8; }
.category-nav .nav-count { font: .75rem/1 var(--mono); color: var(--muted); }
.resource-section { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 28px; padding-bottom: 38px; margin-bottom: 38px; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.section-intro { padding-top: 5px; }
.section-index { font: .75rem/1.5 var(--mono); color: var(--blue); letter-spacing: .07em; }
.section-intro h2 { font-size: 1.4rem; letter-spacing: -.03em; margin-top: 12px; line-height: 1.25; }
.section-intro p { font-size: .9375rem; line-height: 1.6; margin-top: 12px; color: var(--muted); }
.resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.resource-card { display: flex; flex-direction: column; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.resource-card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; border-top: 3px solid var(--blue); }
.featured-action { display: flex; flex-direction: column; }
.resource-card--featured .teaching-note { margin-top: 3px; }
.resource-card:hover { border-color: #92aebb; }
.card-top { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.product-monogram { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid #d3e2e9; border-radius: 7px; background: #edf4f7; color: var(--blue-dark); font: 600 1rem/1 var(--mono); letter-spacing: -.03em; }
.product-logo { width: 44px; height: 44px; flex: 0 0 44px; object-fit: contain; }
.resource-card h3 { font-size: 1.2rem; letter-spacing: -.02em; }
.product-type { color: var(--muted); font-size: .8125rem; line-height: 1.4; margin-top: 4px; }
.best-for { color: var(--blue-dark); font-size: .875rem; font-weight: 650; margin-bottom: 10px; }
.card-description { color: var(--muted); font-size: 1rem; line-height: 1.6; }
.teaching-note { border-left: 2px solid #d2a14c; padding-left: 12px; margin-top: 18px; margin-bottom: 24px; color: var(--muted); font-size: .875rem; line-height: 1.6; }
.teaching-note strong { font-weight: 650; color: var(--ink); }
.card-bottom { margin-top: auto; padding-top: 17px; border-top: 1px solid #e8edf0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 8px; }
.resource-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-weight: 650; font-size: .9375rem; text-decoration: none; }
.resource-link:hover { text-decoration: underline; }
.resource-link svg { width: 15px; height: 15px; flex: 0 0 15px; }
.link-status { font-size: .75rem; color: var(--muted); }
.about { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 28px; padding: 8px 0 46px; }
.about-heading h2 { font: 400 2rem/1.15 Georgia, "Times New Roman", serif; letter-spacing: -.035em; margin-top: 12px; }
.about-content { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 35px; }
.about-copy { color: var(--muted); max-width: 540px; }
.about-copy p + p { margin-top: 14px; }
.subject-list { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 18px 0 0; padding: 0; list-style: none; font: .75rem/1.6 var(--mono); color: var(--blue-dark); }
.contact-box { border-left: 1px solid var(--line); padding-left: 25px; }
.contact-box h3 { font-size: 1rem; margin: 2px 0 10px; }
.contact-box p { color: var(--muted); font-size: .875rem; margin-bottom: 10px; }
.contact-box a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; overflow-wrap: anywhere; }
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding-block: 28px 23px; }
.footer-top { display: flex; gap: 25px; align-items: center; justify-content: space-between; }
.footer-brand { font-size: 1rem; font-weight: 700; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 7px 25px; min-width: 0; max-width: 100%; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; min-width: 0; max-width: 100%; overflow-wrap: anywhere; font-size: .875rem; color: var(--muted); }
.footer-bottom { display: flex; gap: 12px 30px; justify-content: space-between; flex-wrap: wrap; margin-top: 15px; color: var(--muted); font-size: .75rem; }
.document { width: min(760px, calc(100% - 64px)); margin: 60px auto 76px; }
.document h1 { font: 400 clamp(2.25rem, 5vw, 3.25rem)/1.12 Georgia, "Times New Roman", serif; letter-spacing: -.04em; margin: 15px 0 20px; }
.document .lead { font-size: 1.125rem; color: var(--muted); }
.document h2 { font-size: 1.25rem; margin: 32px 0 10px; }
.document p + p { margin-top: 16px; }
.document ul { padding-left: 24px; }
.document li + li { margin-top: 8px; }
.notice { padding: 20px 24px; margin-block: 28px; border-left: 3px solid var(--amber); background: var(--white); }
.button-link { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; border-radius: 5px; background: var(--blue); color: white; padding: 11px 20px; font-weight: 600; text-decoration: none; }
.button-link:hover { color: white; background: var(--blue-dark); }
.error-page { min-height: 52vh; }
.error-page .button-link { margin-top: 26px; }
.error-page .button-link + p { margin-top: 18px; }
@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr) 245px; gap: 25px; }
  .resource-section, .about { grid-template-columns: 1fr; gap: 20px; }
  .section-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; align-items: end; }
  .section-index { grid-column: 1 / -1; }
  .section-intro h2 { margin-top: 7px; }
  .section-intro p { margin: 0; }
  .about-content { grid-template-columns: minmax(0, 1fr) 260px; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { gap: 8px; min-height: 106px; flex-wrap: wrap; justify-content: center; padding-block: 10px 8px; }
  .brand { gap: 4px; }
  .brand img { width: 54px; height: 36px; }
  .brand-name { font-size: 1.1875rem; }
  .top-nav { width: 100%; justify-content: center; gap: 4px 24px; }
  .top-nav a { font-size: .875rem; }
  .top-nav a[aria-current="page"] { text-underline-offset: 7px; }
  /* Enlarged text gets priority over the decorative portrait's width. */
  .hero { grid-template-columns: minmax(0, 1fr) clamp(0px, calc(100vw - 10rem), 78px); align-items: center; gap: 10px 12px; padding-block: 25px; }
  .hero-copy { display: contents; }
  .hero-copy .eyebrow { grid-column: 1 / -1; }
  .hero h1 { grid-column: 1; grid-row: 2; font-size: 2.25rem; margin: 0; }
  .hero h1 br { display: none; }
  .eyebrow { font-size: .75rem; letter-spacing: .035em; }
  .hero-copy > p:not(.eyebrow) { grid-column: 1 / -1; grid-row: 3; font-size: 1rem; margin-top: 0; }
  .hero-portrait { grid-column: 2; grid-row: 2; height: auto; aspect-ratio: 78 / 106; min-width: 0; margin-top: 0; }
  .hero-portrait img { width: 120%; height: auto; }
  .hero-portrait::before { inset: 12px 3px -6px; }
  .hero-portrait::after { inset: 7px 0 2px; }
  .collection-meta { grid-column: 1 / -1; grid-row: 4; flex-wrap: wrap; gap: 3px 14px; margin-top: 2px; font-size: .75rem; }
  .collection-meta span + span { border: 0; padding: 0; }
  .disclosure { font-size: .875rem; gap: 9px; padding-block: 15px; }
  .category-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-block: 20px 25px; }
  .category-nav .nav-label { display: none; }
  .category-nav a { padding: 9px 11px; min-width: 0; overflow-wrap: anywhere; justify-content: space-between; gap: 6px; font-size: .875rem; }
  .category-nav .nav-count { display: none; }
  .resource-section { margin-bottom: 29px; padding-bottom: 29px; }
  .section-intro { display: block; }
  .section-intro h2 { margin-top: 7px; font-size: 1.375rem; }
  .section-intro h2 br { display: none; }
  .section-intro p { margin-top: 8px; }
  .resource-grid { grid-template-columns: 1fr; gap: 16px; }
  .resource-card { padding: 22px; }
  .resource-card--featured { grid-template-columns: 1fr; gap: 15px; }
  .about { padding-bottom: 34px; }
  .about-content { grid-template-columns: 1fr; gap: 24px; }
  .contact-box { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 0; }
  .footer-top { align-items: flex-start; flex-direction: column; gap: 8px; }
  .footer-nav { gap: 2px 20px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .document { width: calc(100% - 36px); margin-block: 36px 48px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  body { background: white; font-size: 11pt; }
  .wrap { width: 100%; }
  .top-nav, .category-nav, .skip-link { display: none; }
  .resource-card { break-inside: avoid; }
  .resource-section { display: block; }
  .section-intro { margin-bottom: 15px; }
}


/* October visual refinement. Existing grid, local fonts and identities retained. */
.resources-page .hero { padding-block: 36px 30px; }
.resources-page .hero h1 { font-size: clamp(2.5rem, 4.6vw, 3.75rem); line-height: 1.12; letter-spacing: -.04em; }
.resources-page .hero-copy > p:not(.eyebrow) { color: var(--blue-dark); max-width: 36ch; font-size: 1.1875rem; }
.resources-page .eyebrow { font-weight: 600; letter-spacing: .11em; }
.resources-page .hero-portrait::after { border-color: #b3741366; transform: none; }
.resources-page .disclosure { padding: 16px 18px; background: #edf3f6; border: 1px solid var(--line); border-radius: var(--radius); }
.resources-page .category-nav { padding-bottom: 34px; }
.resources-page .section-intro { padding-top: 0; }
.resources-page .section-intro h2 { margin-top: 0; font-size: 1.5rem; line-height: 1.25; }
.resources-page .section-intro p strong { color: var(--ink); font-weight: 600; }
.resources-page .resource-card { box-shadow: 0 2px 5px #142e3e06; transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.resources-page .resource-card--featured { background: #fbfdfe; }
.resources-page .card-top { align-items: flex-start; gap: 14px; }
.resources-page .card-top > div { min-width: 0; }
.resources-page .product-logo { width: 48px; height: 48px; flex-basis: 48px; padding: 6px; border: 1px solid #e0e8ed; border-radius: 10px; background: white; object-fit: contain; }
.resources-page .resource-card h3 { font-size: 1.25rem; }
.resources-page .best-for { font-size: .9375rem; line-height: 1.5; }
.resources-page .teaching-note { border-left: 2px solid var(--line); margin-block: 16px 20px; }
.resources-page .offer-strip { background: var(--blue-soft); border: 1px solid #d5e5ed; border-radius: 5px; padding: 12px 14px; margin-block: 2px 20px; color: var(--blue-dark); font-size: .875rem; line-height: 1.55; }
.resources-page .offer-strip strong { font-weight: 600; }
.resources-page .link-arrow { transition: transform 180ms ease; }
.resources-page .link-status { padding-left: 1px; }
.resources-page .course-panel { grid-column: 1 / -1; background: #eef2f4; border-color: #d5dfe5; box-shadow: none; }
.resources-page .course-panel .card-top { margin-bottom: 12px; }
.resources-page .course-panel .teaching-note { border: 0; padding: 0; margin-block: 10px 18px; }
.resources-page .course-panel .card-bottom { border-color: #d0dce3; padding-top: 12px; color: var(--muted); font: 500 .8125rem/1.6 var(--mono); }
.resources-page .about-heading h2 { margin-top: 10px; }
.resources-page .about-copy > p:nth-child(2) { color: var(--ink); margin-block: 22px 10px; }
.resources-page .about-copy .channel-row { margin-top: 8px; }
.resources-page .channel-row a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 11px 12px; background: white; border: 1px solid var(--line); border-radius: 5px; font-size: .875rem; font-weight: 500; line-height: 1.5; text-decoration: none; }
.resources-page .channel-row a:hover { background: var(--blue-soft); border-color: #92aebb; }
.resources-page .channel-icon { width: 21px; height: 21px; flex: 0 0 21px; }
.resources-page .link-arrow { width: 15px; height: 15px; flex: 0 0 15px; margin-left: auto; }
.resources-page a:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .resources-page .resource-card:not(.course-panel):hover { transform: translateY(-2px); box-shadow: 0 6px 16px #142e3e0d; }
  .resources-page .channel-row a:hover .link-arrow { transform: translate(1px, -1px); }
}
@media (max-width: 1000px) {
  .resources-page .section-intro { align-items: start; }
}
@media (max-width: 600px) {
  .resources-page .hero { padding-block: 26px; }
  .resources-page .hero h1 { font-size: clamp(2rem, 7.8vw, 2.5rem); line-height: 1.13; }
  .resources-page .hero-copy > p:not(.eyebrow) { font-size: 1.0625rem; margin-top: 5px; max-width: 31ch; }
  .resources-page .disclosure { padding: 14px; }
  .resources-page .category-nav { grid-template-columns: 1fr; padding-block: 18px 28px; }
  .resources-page .category-nav a { justify-content: flex-start; }
  .resources-page .section-intro h2 { font-size: 1.5rem; }
  .resources-page .resource-card { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .resources-page *, .resources-page *::before, .resources-page *::after { transition: none !important; animation: none !important; }
}
@media print {
  .resources-page .resource-card { box-shadow: none; transform: none; }
}
.resources-page .brand { min-height: 44px; }
/* Allow long names and enlarged text to reflow inside the existing grid. */
.resources-page .resource-section,
.resources-page .about { overflow-wrap: anywhere; }
.resources-page .resource-section > *,
.resources-page .about > *,
.resources-page .about-content > *,
.resources-page .resource-card > * { min-width: 0; }
.resources-page .card-description + .offer-strip { margin-top: 16px; }
/* Aiven's source mark has more built-in whitespace than the other logos. */
.resources-page .product-logo[src$="aiven.svg"] { padding: 2px; }

/* Requested revision: compact brand introduction and larger original header mark. */
.resources-page .header-inner { min-height: 92px; }
.resources-page .brand { gap: 12px; }
.resources-page .brand-mark { position: relative; display: block; width: 62px; height: 76px; flex: 0 0 62px; overflow: hidden; }
.resources-page .brand-mark img { position: absolute; width: 114px; height: 76px; max-width: none; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.resources-page .brand-name { font-size: 1.4375rem; font-weight: 750; letter-spacing: -.035em; }
.resources-page .hero { grid-template-columns: minmax(0, 1fr) 180px; gap: 28px; padding-block: 22px; }
.resources-page .hero-copy { min-width: 0; }
.resources-page .hero .eyebrow { display: flex; align-items: center; gap: 10px; font-size: .6875rem; letter-spacing: .14em; }
.resources-page .hero .eyebrow::before { content: ""; width: 20px; height: 2px; background: var(--amber); flex: 0 0 20px; }
.resources-page .hero h1 { margin-top: 9px; font-family: var(--sans); font-size: clamp(2rem, 4vw, 3rem); font-weight: 750; letter-spacing: -.045em; line-height: 1.12; }
.resources-page .hero-amp { color: var(--blue); font-weight: 450; }
.resources-page .hero-copy > p:not(.eyebrow) { margin-top: 12px; max-width: 46ch; color: var(--muted); font-size: 1.0625rem; line-height: 1.55; }
.resources-page .hero-portrait { height: 168px; border-radius: 48%; }
.resources-page .hero-portrait img { width: 164px; height: 246px; }
.resources-page .hero-portrait::before { inset: 18px 6px -9px; }
.resources-page .hero-portrait::after { inset: 10px 1px 3px; }
.resources-page .resource-link { max-width: 100%; }
@media (max-width: 600px) {
  .resources-page .header-inner { padding-block: 6px 8px; gap: 0; }
  .resources-page .brand { gap: 9px; }
  .resources-page .brand-mark { width: 56px; height: 66px; flex-basis: 56px; }
  .resources-page .brand-mark img { width: 99px; height: 66px; }
  .resources-page .brand-name { font-size: 1.375rem; }
  .resources-page .hero { grid-template-columns: minmax(0, 1fr) 74px; gap: 8px 14px; padding-block: 20px; }
  .resources-page .hero-copy .eyebrow { grid-column: 1; grid-row: 1; }
  .resources-page .hero h1 { grid-column: 1; grid-row: 2; margin-top: 0; font-size: clamp(1.875rem, 7.8vw, 2.25rem); }
  .resources-page .hero-copy > p:not(.eyebrow) { grid-column: 1 / -1; grid-row: 3; margin-top: 3px; font-size: 1rem; max-width: 40ch; }
  .resources-page .hero-portrait { grid-column: 2; grid-row: 1 / span 2; height: 96px; align-self: center; aspect-ratio: auto; }
  .resources-page .hero-portrait img { width: 90px; height: 135px; }
  .resources-page .hero-portrait::before { inset: 12px 0 -4px; }
  .resources-page .hero-portrait::after { inset: 7px 0 2px; }
}

/* Desktop hero: preserve the shared left alignment with the brand/header,
   bring the portrait modestly inward without changing its scale or the mobile layout. */
@media (min-width: 1001px) {
  .resources-page .hero { padding-right: clamp(42px, calc(50vw - 380px), 326px); }
}

/* Match the existing DigitalOcean top border across the six product cards. */
.resources-page #compute .resource-card,
.resources-page #search .resource-card { border-top: 3px solid var(--blue); }
