@charset "utf-8";
/* Page-specific layer for professor-after-hours.html.
   Rules already provided by site.css / components.css have
   been removed; this is only what is unique to this page.

   Layout note. The widget was built as a chat column and never given a
   wide-screen form, so on a desktop it sat capped at 680px and flush against
   the left edge — body is a flex column, so a max-width child aligns to the
   start rather than centring. Two fixes below: it centres at every width, and
   above 1080px it becomes two columns with the Professor beside the
   conversation instead of squeezed above it. The reading measure is unchanged;
   only the empty half of the screen is put to work. */
@layer components {
.widget{width:100%;max-width:680px;margin-inline:auto;border:1px solid var(--line);border-radius:8px;background:var(--cream);overflow:hidden}
.head{display:flex;align-items:center;gap:14px;padding:18px 22px;border-bottom:1px solid var(--line)}
.head .seal{width:44px;height:44px;background:var(--verm);color:var(--cream);font-family:var(--font-display);font-size:26px;display:flex;align-items:center;justify-content:center;border-radius:3px;transform:rotate(-4deg)}
.head h1{font-family:var(--font-display);font-size:25px;font-weight:600;color:var(--indigo);line-height:1}
.head .sub{font-family:system-ui,sans-serif;font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--soft);margin-top:5px}
.upsell{background:var(--card);border-bottom:1px solid var(--line);padding:10px 22px;font-size:14px;color:var(--soft);display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.upsell a{font-family:system-ui,sans-serif;font-size:12.5px;color:var(--indigo);border:1px solid var(--indigo);border-radius:16px;padding:5px 12px;text-decoration:none;white-space:nowrap}
.log{height:400px;overflow-y:auto;padding:20px 22px;display:flex;flex-direction:column;gap:16px}
.prof{display:flex;gap:11px;align-items:flex-start}
.prof .av{flex-shrink:0;width:30px;height:30px;border-radius:50%;border:1px solid var(--verm);background:var(--card);display:flex;align-items:center;justify-content:center;overflow:hidden}
.prof .av svg{transform:rotate(6deg)}
.prof .txt{font-size:16.5px;line-height:1.55;max-width:520px;white-space:pre-wrap}
.you{align-self:flex-end;background:var(--indigo);color:#EFE9DB;padding:9px 14px;border-radius:12px 12px 3px 12px;font-size:14.5px;max-width:420px;font-family:system-ui,sans-serif;line-height:1.45}
.chips{display:flex;flex-wrap:wrap;gap:7px;padding:0 22px 12px}
.chip{background:transparent;border:1px solid var(--line);color:var(--soft);border-radius:18px;padding:5px 12px;font-size:12.5px;font-family:system-ui,sans-serif;cursor:pointer}
.chip:hover{background:var(--card);border-color:var(--verm)}
.bar{display:flex;gap:9px;padding:13px 22px 18px;border-top:1px solid var(--line)}
.bar input{flex:1;background:var(--card);border:1px solid var(--line);border-radius:4px;padding:10px 13px;font-size:16px;font-family:var(--font-body);color:var(--ink);outline:none}
.bar input::placeholder{color:#A79D89}
.bar button{background:var(--indigo);color:var(--cream);border:none;border-radius:4px;padding:0 20px;font-size:14px;font-family:system-ui,sans-serif;cursor:pointer}
.bar button:disabled{opacity:.5;cursor:default}
.hic{font-style:italic;color:var(--soft)}

/* The stage. Lamplight behind him rather than flat card, so the circle reads
   as a window into the study instead of an avatar pasted on paper. */
.stage{display:flex;justify-content:center;padding:16px 0 4px;border-bottom:1px solid var(--line);
  background:var(--card);
  background-image:radial-gradient(60% 55% at 50% 42%, rgb(201 161 74 / .20) 0%, rgb(201 161 74 / .06) 45%, transparent 72%)}
.stage .vwrap{position:relative;width:clamp(190px,26vw,280px);aspect-ratio:1;border-radius:50%;overflow:hidden;border:2px solid var(--gold);box-shadow:0 8px 20px rgba(34,30,25,.2),0 0 0 8px var(--card),0 0 0 9px var(--line)}
.stage video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .28s ease}
.stage video.on{opacity:1}

/* ---- Wide screens: he sits beside the conversation, not above it ---- */
@media (min-width:1080px){
  .widget{
    max-width:1160px;
    display:grid;
    grid-template-columns:minmax(0,1fr) clamp(340px,32%,460px);
    grid-template-areas:
      "head   stage"
      "upsell stage"
      "log    stage"
      "chips  stage"
      "bar    stage";
  }
  .head   { grid-area:head }
  .upsell { grid-area:upsell }
  .log    { grid-area:log }
  .chips  { grid-area:chips }
  .bar    { grid-area:bar }

  .stage{
    grid-area:stage;
    align-items:center;
    padding:28px 26px;
    border-bottom:0;
    border-inline-start:1px solid var(--line);
  }
  /* Free of the 280px cap, he fills the column he now has. */
  .stage .vwrap{width:min(400px,100%)}

  /* The conversation grows into the height the portrait sets, instead of
     leaving a hole under a fixed 400px box. */
  .log{height:auto;min-height:430px}
}

@media (min-width:1440px){
  .widget{max-width:1280px}
  .stage .vwrap{width:min(440px,100%)}
}
}
