/* PSC Home polish v1 (Claude, 16 Nov 2026): the forum's finer look for PSC Home, About and the Founder page, in the dark
   and the light look (Ahmed, 16 Nov: "make landing page and about and founder page more beautiful ... keep universal look
   everywhere ... keep green dark and light themes"). Softer corners and depth, an icon on each card, rows that answer the
   pointer, PSC greens in place of the violet and cream cards, a real timeline for the career list. Only looks: no words,
   links or order change. Built by make_polish.py from psc-home-polish-v1.src.css; loaded last on the three pages. */
:root {
  --pl-radius: 14px;
  --pl-shadow: 0 1px 2px rgb(12 48 55 / .06), 0 10px 26px -18px rgb(12 48 55 / .35);
  --pl-lift: 0 2px 4px rgb(12 48 55 / .08), 0 18px 34px -18px rgb(12 48 55 / .4);
  --pl-accent: #175358;
  --pl-tint: #e1eee7;
  --pl-hover: rgb(23 83 88 / .07);
  --pl-edge: #d5dfdb;
  --pl-edge-strong: #9dbab1;
  --pl-card: #fff;
  --pl-card-green: #f0f6f2;
  --pl-glow: rgb(23 83 88 / .1);
  --pl-page: var(--paper, #f7f8f4);
  --pl-i-quiz: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='2' width='8' height='4' rx='1'/%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3Cpath d='m9 14 2 2 4-4'/%3E%3C/svg%3E");
  --pl-i-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.1-3.1a2 2 0 0 0-2.8 0L6 21'/%3E%3C/svg%3E");
  --pl-i-play: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m10 8 6 4-6 4z'/%3E%3C/svg%3E");
  --pl-i-spark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 1.9 5.1L19 10l-5.1 1.9L12 17l-1.9-5.1L5 10l5.1-1.9z'/%3E%3Cpath d='M19 15v4'/%3E%3Cpath d='M17 17h4'/%3E%3Cpath d='M5 3v3'/%3E%3Cpath d='M3.5 4.5h3'/%3E%3C/svg%3E");
  --pl-i-steth: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 2H4a2 2 0 0 0-2 2v5a6 6 0 0 0 12 0V4a2 2 0 0 0-2-2h-1'/%3E%3Cpath d='M8 15v1a6 6 0 0 0 12 0v-4'/%3E%3Ccircle cx='20' cy='10' r='2'/%3E%3C/svg%3E");
  --pl-i-people: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
  --pl-i-cap: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 10 12 5 2 10l10 5z'/%3E%3Cpath d='M6 12v5c3 3 9 3 12 0v-5'/%3E%3Cpath d='M22 10v6'/%3E%3C/svg%3E");
  --pl-i-talk: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3Cpath d='M8 9h8'/%3E%3Cpath d='M8 13h5'/%3E%3C/svg%3E");
  --pl-i-page: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M16 13H8'/%3E%3Cpath d='M16 17H8'/%3E%3Cpath d='M10 9H8'/%3E%3C/svg%3E");
  --pl-i-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M12 15V3'/%3E%3C/svg%3E");
  --pl-i-date: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4'/%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E");
  --pl-i-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 2 3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01z'/%3E%3C/svg%3E");
  --pl-i-find: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
  --pl-i-find-soft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237f9a94' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
}
html[data-theme="dark"] {
  --pl-shadow: 0 1px 2px rgb(0 0 0 / .18), 0 10px 28px -16px rgb(0 0 0 / .55);
  --pl-lift: 0 2px 4px rgb(0 0 0 / .2), 0 16px 32px -16px rgb(0 0 0 / .6);
  --pl-accent: #c5e9d1;
  --pl-tint: #233b3c;
  --pl-hover: rgb(197 233 209 / .08);
  --pl-edge: #354c4c;
  --pl-edge-strong: #6e8884;
  --pl-card: #18272a;
  --pl-card-green: #1b2f2e;
  --pl-glow: rgb(197 233 209 / .08);
}

/* The page. */
::selection { background: rgb(23 83 88 / .22); }
html[data-theme="dark"] ::selection { background: rgb(197 233 209 / .3); }
html body, html[data-theme] body {
  background-image: radial-gradient(64rem 30rem at 88% -6rem, var(--pl-glow), transparent 70%);
  background-repeat: no-repeat;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Buttons: the forum's corners, a little depth, an arrow that moves. */
.button { border-radius: 10px; transition: background-color .15s, border-color .15s, box-shadow .15s, transform .15s; }
.button:not(.button-light, .button-ghost) { box-shadow: 0 1px 0 rgb(255 255 255 / .14) inset, 0 10px 18px -14px rgb(12 48 55 / .75); }
.button:not(.button-light, .button-ghost):hover { transform: translateY(-1px); }
.button:active { transform: none; }
.button-light:hover, html[data-theme="dark"] .button-light:hover { border-color: var(--pl-edge-strong); background: var(--pl-hover); }
.arrow { display: inline-block; transition: transform .15s; }
.button:hover .arrow, .resource:hover .arrow, .directory-list a:hover .arrow { transform: translateX(3px); }

/* Section titles: a short green rule above each. */
.section-head h2::before, .purpose h2::before, .learning > h2::before, .founder-content h2::before {
  content: "";
  display: block;
  inline-size: 2.4rem;
  block-size: 3px;
  margin-block-end: .85rem;
  border-radius: 3px;
  background: var(--pl-accent);
  opacity: .55;
}

/* Home: the first screen. */
.hero-photo { border-radius: 1.1rem; box-shadow: var(--pl-lift), 0 0 0 1px var(--pl-edge); }
.hero-search input, html[data-theme] .hero-search input {
  min-height: 3rem;
  padding-inline-start: 2.7rem;
  border-radius: 10px;
  background-image: var(--pl-i-find-soft);
  background-repeat: no-repeat;
  background-position: .9rem center;
  background-size: 1.15rem 1.15rem;
  transition: border-color .15s, box-shadow .15s;
}
.hero-search input:focus { border-color: var(--pl-accent); box-shadow: 0 0 0 3px var(--pl-hover); }
.hero-topics a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: .1rem .75rem;
  border: 1px solid var(--pl-edge);
  border-radius: 999px;
  background: var(--pl-card);
  font-size: .86rem;
  text-decoration: none;
  transition: border-color .15s, background-color .15s;
}
.hero-topics a:hover { border-color: var(--pl-edge-strong); background: var(--pl-card-green); }

/* Cards on all three pages: one corner, one depth. */
.learning-card, .directory-card, #community-resources .resource, .club-details { border-radius: var(--pl-radius); box-shadow: var(--pl-shadow); }
.learning-card { transition: border-color .18s, box-shadow .18s; }
.learning-card:hover { box-shadow: var(--pl-lift); }

/* PSC greens for the gallery and Ask PSC cards (they were cream and violet). The video card stays deep teal. */
.gallery-card, .learning-card--gallery { border-color: #cfe0d6; background: var(--pl-card-green); }
html[data-theme="dark"] .gallery-card, html[data-theme="dark"] .learning-card--gallery { border-color: #35504b; background: var(--pl-card-green); color: var(--ink); }
.ask-card { border-color: #c3dccf; background: linear-gradient(160deg, #dcede4, #f4f9f5 72%); }
.ask-card .card-title { color: #0f373c; }
html[data-theme="dark"] .ask-card { border-color: #3d5c55; background: linear-gradient(160deg, #223f3c, #18272a 72%); }
html[data-theme="dark"] .ask-card .card-title { color: #c5e9d1; }
.video-card, .learning-card--video { background-image: linear-gradient(160deg, #13444b, #0a2a2f); }
html[data-theme="dark"] .video-card, html[data-theme="dark"] .learning-card--video { box-shadow: inset 0 0 0 1px #2c4a49, var(--pl-shadow); }

/* An icon on each card. The drawings are masks, so they take the look's own green. */
@supports ((-webkit-mask-image: none) or (mask-image: none)) {
  .learning-grid > .learning-card > h3 { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: .85rem; }
  .learning-grid > .learning-card > h3::before, .learning-grid > .learning-card > h3::after,
  .directory-card > .card-title::before, .directory-card > .card-title::after { content: ""; grid-area: 1 / 1; }
  .learning-grid > .learning-card > h3::before { inline-size: 2.75rem; block-size: 2.75rem; border-radius: .8rem; background: var(--pl-tint); }
  .learning-grid > .learning-card > h3::after {
    inline-size: 1.4rem;
    block-size: 1.4rem;
    margin-inline-start: .675rem;
    align-self: center;
    background: var(--pl-accent);
    -webkit-mask: var(--pl-icon) center / contain no-repeat;
    mask: var(--pl-icon) center / contain no-repeat;
  }
  .learning-grid > .video-card > h3::before, .learning-grid > .learning-card--video > h3::before { background: rgb(197 233 209 / .14); }
  .learning-grid > .video-card > h3::after, .learning-grid > .learning-card--video > h3::after { background: #f4d0a2; }
  .learning-grid > .ask-card > h3::before { background: rgb(23 83 88 / .14); }
  html[data-theme="dark"] .learning-grid > .ask-card > h3::before { background: rgb(197 233 209 / .14); }

  .directory-card > .card-title { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); align-items: center; column-gap: .8rem; }
  .directory-card > .card-title::before { inline-size: 2.5rem; block-size: 2.5rem; border-radius: .75rem; background: var(--pl-tint); }
  .directory-card > .card-title::after,
  #community-resources .resource::after {
    inline-size: 1.3rem;
    block-size: 1.3rem;
    place-self: center;
    background: var(--pl-accent);
    -webkit-mask: var(--pl-icon) center / contain no-repeat;
    mask: var(--pl-icon) center / contain no-repeat;
  }

  #community-resources .resource { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); align-content: center; align-items: center; column-gap: .9rem; }
  #community-resources .resource::before, #community-resources .resource::after { content: ""; grid-area: 1 / 1 / span 2 / 2; }
  #community-resources .resource::before { inline-size: 2.6rem; block-size: 2.6rem; border-radius: .75rem; background: var(--pl-tint); }
  #community-resources .resource > h3, #community-resources .resource > p { grid-column: 2; }

  #resources .learning-card { --pl-icon: var(--pl-i-quiz); }
  #resources .gallery-card, .learning-card--gallery { --pl-icon: var(--pl-i-image); }
  #resources .video-card, .learning-card--video { --pl-icon: var(--pl-i-play); }
  #resources .ask-card { --pl-icon: var(--pl-i-spark); }
  #learning .learning-card:nth-child(1) { --pl-icon: var(--pl-i-talk); }
  #learning .learning-card:nth-child(2) { --pl-icon: var(--pl-i-quiz); }
  #specialty-title { --pl-icon: var(--pl-i-steth); }
  #cases-title { --pl-icon: var(--pl-i-people); }
  #teaching-title { --pl-icon: var(--pl-i-cap); }
  #community-resources .resource { --pl-icon: var(--pl-i-page); }
  #community-resources .resource[href*="/files/"] { --pl-icon: var(--pl-i-down); }
  #community-resources .resource[href*="/events/"] { --pl-icon: var(--pl-i-date); }
  #community-resources .resource[href*="/featured/"] { --pl-icon: var(--pl-i-star); }
  #community-resources .resource[href*="/search/"] { --pl-icon: var(--pl-i-find); }
}

/* Home: the forum finder. Each row answers the pointer. */
.directory-list a { margin-inline: -.55rem; padding-inline: .55rem; border-radius: 8px; transition: background-color .15s; }
.directory-list a:hover { background: var(--pl-hover); text-decoration: none; }

/* Home: more from PSC. */
#community-resources .resource { transition: transform .18s, border-color .18s, box-shadow .18s, background-color .18s; }
#community-resources .resource:hover { transform: translateY(-2px); box-shadow: var(--pl-lift); }
#community-resources .resource:hover h3 { text-decoration: none; }

/* Home: the invitation at the foot of the page, as a panel. */
.join {
  margin-block: clamp(2rem, 4vw, 3.2rem);
  padding-inline: clamp(1.2rem, 3.2vw, 2.6rem);
  border: 1px solid var(--pl-edge);
  border-radius: 1.1rem;
  background: linear-gradient(135deg, var(--pl-card-green), var(--pl-card) 70%);
  box-shadow: var(--pl-shadow);
}

/* About and Founder: the deep teal band gets light and depth; the photo a softer frame. */
.about-hero, .founder-hero {
  background-image: radial-gradient(60rem 28rem at 88% -4rem, rgb(197 233 209 / .16), transparent 65%), linear-gradient(165deg, #11454d 0%, #0c3037 48%, #092a30 100%);
}
.hero-visual { border-color: rgb(197 233 209 / .3); border-radius: 1.1rem; box-shadow: 0 30px 50px -30px rgb(0 0 0 / .85); }
.club-details dd a { text-decoration-color: var(--pl-edge-strong); }

/* Founder: the page's own menu as pills. */
.founder-jump .container { gap: .2rem .4rem; }
.founder-jump a.text-link { min-height: 2.4rem; margin-block: .45rem; padding-inline: .95rem; border-radius: 999px; text-decoration: none; transition: background-color .15s; }
.founder-jump a.text-link:hover { background: rgb(23 83 88 / .12); }
html[data-theme="dark"] .founder-jump a.text-link:hover { background: rgb(197 233 209 / .14); }
.founder-bio p:first-of-type { color: var(--ink); font-size: 1.08rem; }

/* Founder: the career list as a timeline, one dot a step. */
.career-list { --pl-year: 4.4rem; --pl-gap: 2.1rem; border-top: 0; }
.career-list li { position: relative; grid-template-columns: var(--pl-year) minmax(0, 1fr); gap: 0 var(--pl-gap); padding-block: 0 1.5rem; border-bottom: 0; }
.career-list li:last-child { padding-block-end: 0; }
.career-list li::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: calc(var(--pl-year) + var(--pl-gap) / 2 - 1px);
  inline-size: 2px;
  background: var(--pl-edge);
}
.career-list li:first-child::before { inset-block-start: .7rem; }
.career-list li:last-child::before { inset-block-end: auto; block-size: .7rem; }
.career-list li:only-child::before { display: none; }
.career-list li::after {
  content: "";
  position: absolute;
  inset-block-start: .3rem;
  inset-inline-start: calc(var(--pl-year) + var(--pl-gap) / 2 - .4rem);
  inline-size: .8rem;
  block-size: .8rem;
  border-radius: 50%;
  background: var(--pl-accent);
  box-shadow: 0 0 0 4px var(--pl-page);
}
.career-list li > time, .founder-research li > time {
  justify-self: start;
  align-self: start;
  padding: .1rem .6rem;
  border-radius: 999px;
  background: var(--pl-tint);
  color: var(--pl-accent);
  font-size: .85rem;
  line-height: 1.5;
}

/* Founder: each publication is a row that answers the pointer. */
.founder-research ul { display: grid; gap: .55rem; border-top: 0; }
.founder-research li {
  align-items: start;
  padding: .9rem 1rem;
  border: 1px solid var(--pl-edge);
  border-radius: 12px;
  background: var(--pl-card);
  transition: border-color .15s, box-shadow .15s;
}
.founder-research li:hover { border-color: var(--pl-edge-strong); box-shadow: var(--pl-shadow); }
.founder-research li > time { margin-block-start: .05rem; }

@media (max-width: 33rem) {
  .career-list { --pl-year: 3.5rem; --pl-gap: 1.5rem; }
  .founder-research li { padding: .8rem .85rem; }
  .directory-list a { margin-inline: -.3rem; padding-inline: .3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .button, .arrow, .learning-card, #community-resources .resource, .hero-topics a, .directory-list a { transition: none; }
  .button:not(.button-light, .button-ghost):hover, #community-resources .resource:hover, .button:hover .arrow, .resource:hover .arrow, .directory-list a:hover .arrow { transform: none; }
}
@media print {
  .learning-card, .directory-card, #community-resources .resource, .club-details, .join, .hero-photo, .hero-visual { box-shadow: none; }
}
/* end PSC Home polish v1 */
