/* Three clear starting points, with a compact home page on each screen size. */
.entry-page .site-header{padding-top:15px;padding-bottom:15px}
.entry-page .site-header nav{display:none}
.entry-shell{max-width:1180px;margin:auto;padding:0 40px}
.entry-intro{padding:25px 0 23px}
.entry-intro .location-label{margin:0 0 5px;font-size:12px}
.entry-intro h1{font-size:38px;margin:0 0 8px}
.entry-intro h1 span{white-space:nowrap}
.entry-intro>p:last-child{font-size:15px;margin:0}
.entry-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.entry-card{position:relative;min-width:0;display:flex;flex-direction:column;border:1px solid #ccd6cb;border-radius:7px;padding:22px;background:#fff}
.entry-card:hover{border-color:#7b927d}
.entry-art{height:100px;margin-bottom:20px;display:flex;align-items:center;gap:14px;overflow:hidden}
.entry-about .entry-art img{width:100%;height:100%;border-radius:3px;object-position:55% 54%}
.entry-art .entry-avatar{width:96px;height:96px;border-radius:50%;flex-shrink:0;object-position:center 43%}
.avatar-caption{font-size:14px;color:var(--green);line-height:1.5}
.entry-card h2{font-size:27px;margin:0 0 8px}
.entry-card h2 span{display:block;font:12px/1.5 Arial,sans-serif;color:var(--muted);letter-spacing:0;margin-top:4px}
.entry-copy>p{font-size:14px;line-height:1.6;margin:0 0 22px}
.entry-action{width:100%;min-height:48px;font-size:13px;margin-top:auto;justify-content:space-between;gap:10px;white-space:normal;text-align:left}
.entry-action::after{position:absolute;inset:0;content:'';border-radius:7px}
.btn-outline{color:var(--green);background:#fff;border-color:#8ea58b}
.btn-outline:hover{background:var(--wash);color:var(--green)}
.entry-book{background:#eff4eb;border-color:#a9bba5}
.calendar-art{color:var(--green)}
.calendar-art svg{width:72px;height:72px;flex-shrink:0}
.calendar-art span{font-size:14px}
.entry-help{font-size:12px;margin:20px 0 24px}
.entry-help a{color:var(--green);text-decoration:underline}
.entry-footer{max-width:1100px;margin:auto;border-top:1px solid var(--line);padding:16px 0;display:flex;flex-wrap:wrap;gap:10px 23px;font-size:11px;color:var(--muted)}
.entry-footer address{font-style:normal;margin-right:auto}
.entry-footer a{text-decoration:underline;text-underline-offset:3px}
.entry-page .mobile-bar{display:none}
.entry-noscript{font-size:12px}

/* The person and the conversation stay visible together. */
#chat-dialog{width:calc(100vw - 32px);max-width:840px;height:min(620px,var(--consult-height,calc(100dvh - 32px)));max-height:calc(100dvh - 24px);border-radius:8px;overflow:hidden}
#chat-dialog[open]{display:flex;flex-direction:column}
.chat-head{flex-shrink:0;padding:17px 22px}
.chat-head h2{font-size:20px}
.chat-head p{font-size:12px}
.icon-btn{width:44px;height:44px;flex-shrink:0}
.consult-layout{display:grid;grid-template-columns:230px minmax(0,1fr);flex:1;min-height:0}
.consult-person{padding:24px 22px;background:#fafbf7;border-right:1px solid var(--line);min-width:0;overflow:auto}
.portrait-wrap{width:144px;height:144px;border-radius:50%;margin:0 auto 18px;padding:4px;border:2px solid #d3ddcd;transition:border-color .15s}
.portrait-wrap img{width:100%;height:100%;border-radius:50%;object-position:center 42%}
.portrait-wrap.speaking{border-color:#255339;box-shadow:0 0 0 5px #e4eddf}
.portrait-wrap.listening{border-color:#a66e30;box-shadow:0 0 0 5px #f2e8d8}
.person-copy{text-align:center}
.person-copy strong{font-size:17px;font-weight:500}
.person-copy>p{font-size:11px;margin:4px 0}
.person-copy #voice-status{font-size:12px;color:var(--green);min-height:20px;margin:8px 0 16px}
.voice-controls{display:grid;gap:8px}
.voice-controls button{border:1px solid #b6c4af;background:#fff;border-radius:4px;min-height:44px;padding:8px 10px;font-size:12px}
.voice-controls button:hover{background:#eef3e9}
.voice-controls button[aria-pressed=true]{background:var(--green);color:#fff;border-color:var(--green)}
.voice-controls button:disabled{opacity:.55;cursor:default}
.voice-controls label{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;margin-top:4px}
.voice-controls select{font:12px Arial,sans-serif;padding:8px;border:1px solid #b6c4af;border-radius:3px;background:#fff;color:var(--ink);min-height:40px}
.voice-note{font-size:10px;line-height:1.6;margin:13px 0 0}
.voice-note a{text-decoration:underline}
.chat-conversation{display:flex;flex-direction:column;min-width:0;min-height:0}
.chat-scope{font-size:11px;padding:12px 20px;flex-shrink:0}
.chat-messages{height:auto;min-height:70px;flex:1;padding:18px 20px;overflow:auto}
.message{font-size:14px;line-height:1.65}
.message-links{font-size:12px}
.chat-prompts{padding:0 20px 12px;flex-shrink:0}
.chat-prompts button{font-size:12px;min-height:40px}
#chat-form{padding:14px 20px;flex-shrink:0}
#chat-input{font-size:16px;height:46px}
#chat-form .btn{font-size:13px;min-height:46px}
.chat-foot{padding:0 20px 17px;font-size:12px;flex-shrink:0}
.chat-foot a:first-child{color:var(--green);font-weight:600}
select:focus-visible{outline:3px solid #ab6c2d;outline-offset:3px}

@media(min-width:700px) and (max-width:1000px){
  .entry-shell{padding:0 24px}.entry-choices{gap:12px}.entry-card{padding:18px}
  .entry-card h2{font-size:23px}.entry-copy>p{font-size:13px;min-height:42px}
  .entry-art{height:90px;gap:8px}.entry-art .entry-avatar{width:82px;height:82px}
  .avatar-caption,.calendar-art span{font-size:12px}.calendar-art svg{width:60px;height:60px}
  .entry-action{padding:10px 12px;font-size:12px;min-height:48px}
  .entry-footer{margin:0 24px}.entry-page .site-header{flex-wrap:nowrap}
}
@media(max-width:900px){
  .inner-page .site-header{flex-wrap:wrap}.inner-page .site-header nav{order:3;width:100%;border-top:1px solid var(--line);padding-top:12px}
}
@media(max-width:699px){
  .entry-page .contact-strip{display:none}
  .entry-page .site-header{padding:13px 18px;flex-wrap:nowrap;gap:10px}
  .entry-page .brand img{width:40px;height:40px}.entry-page .brand{gap:9px}
  .entry-page .brand>span{font-size:23px}.entry-page .brand small{font-size:9px;margin-top:4px}
  .entry-page .header-book{font-size:12px;min-height:42px;padding:10px 13px}
  .entry-shell{padding:0 18px}
  .entry-intro{padding:18px 0 16px}.entry-intro .location-label{display:none}
  .entry-intro h1{font-size:27px;line-height:1.14;margin-bottom:7px}.entry-intro h1 span{display:block}.entry-intro>p:last-child{font-size:12px;line-height:1.5}
  .entry-choices{grid-template-columns:1fr;gap:10px}
  .entry-card{display:grid;grid-template-columns:72px minmax(0,1fr);gap:0 15px;padding:13px 15px;align-items:center}
  .entry-art{grid-column:1;grid-row:1/3;width:72px;height:76px;margin:0}
  .entry-about .entry-art img{border-radius:4px;object-position:62% center}
  .entry-art .entry-avatar{width:72px;height:72px}.avatar-caption,.calendar-art span{display:none}
  .calendar-art svg{width:60px;height:60px;margin:auto}
  .entry-copy{grid-column:2}.entry-card h2{font-size:21px;margin:0 0 4px}
  .entry-card h2 span{display:inline;font-size:10px;margin-left:5px;white-space:nowrap}
  .entry-copy>p{font-size:11px;line-height:1.5;margin:0 0 6px}
  .entry-action{grid-column:2;font-size:12px;padding:8px 10px;min-height:40px;margin:0}
  .entry-help{font-size:11px;line-height:1.6;margin:14px 0 16px}
  .entry-footer{margin:0 18px;padding:12px 0;gap:6px 16px;font-size:10px}
  .entry-footer address{width:100%}
  #chat-dialog{width:calc(100vw - 20px);height:var(--consult-height,calc(100dvh - 20px));max-height:calc(100dvh - 20px)}
  .chat-head{padding:10px 14px}.chat-head h2{font-size:18px}.chat-head p{font-size:11px}
  .consult-layout{display:flex;flex-direction:column}
  .consult-person{padding:12px 14px;display:grid;grid-template-columns:72px minmax(0,1fr);gap:0 14px;border-right:0;border-bottom:1px solid var(--line);overflow:visible;flex-shrink:0}
  .portrait-wrap{width:72px;height:72px;margin:0;grid-row:1;grid-column:1;padding:2px}
  .person-copy{grid-column:2;text-align:left;align-self:center}.person-copy strong{font-size:16px}
  .person-copy>p{font-size:11px}.person-copy #voice-status{font-size:12px;margin:5px 0 0;min-height:18px}
  .voice-controls{grid-column:1/-1;grid-template-columns:1fr 1fr;gap:7px;margin-top:12px}
  .voice-controls button{font-size:12px;min-height:40px;padding:7px}
  .voice-controls label{font-size:10px;margin:0;justify-content:center}.voice-controls select{font-size:12px;min-height:40px;padding:6px}
  .voice-note{grid-column:1/-1;font-size:9px;line-height:1.4;margin:7px 0 0}
  .chat-conversation{flex:1}.chat-scope{font-size:10px;line-height:1.5;padding:8px 14px}
  .chat-messages{padding:12px 14px;min-height:40px}.message{font-size:13px;padding:10px 12px;margin-bottom:10px}
  .chat-prompts{padding:0 14px 8px;gap:5px}.chat-prompts button{font-size:10px;padding:5px 8px;min-height:32px}
  #chat-form{padding:10px 14px;gap:8px}#chat-input{font-size:16px;height:44px;padding:9px 10px}
  #chat-form .btn{font-size:12px;min-height:44px;padding:9px 12px}
  .chat-foot{padding:0 14px 12px;font-size:10px;gap:8px}
  .mobile-bar>.btn{width:44%}.mobile-bar .plain-link{font-size:12px}
  #chat-dialog.keyboard-open .consult-person{display:none}
  #chat-dialog.keyboard-open .chat-prompts,#chat-dialog.keyboard-open .chat-scope{display:none}
}
@media(max-width:380px){
  .entry-page .brand>span{font-size:21px}.entry-page .brand small{font-size:8px}
  .entry-card{grid-template-columns:60px minmax(0,1fr);gap:0 12px;padding:12px}
  .entry-art{width:60px;height:68px}.entry-art .entry-avatar{width:60px;height:60px}
  .entry-card h2{font-size:19px}.entry-card h2 span{font-size:9px}.entry-action{font-size:11px}
}
@media(min-width:700px) and (max-height:650px){
  .entry-intro{padding-top:16px;padding-bottom:16px}.entry-intro h1{font-size:31px}
  .entry-card{padding:17px}.entry-art{height:72px;margin-bottom:14px}.entry-art .entry-avatar{width:72px;height:72px}
  .entry-card h2{font-size:23px}.entry-copy>p{margin-bottom:14px}.entry-help{margin:14px 0}
}
@media(prefers-reduced-motion:reduce){.portrait-wrap{transition:none}}

@media(min-width:700px) and (max-height:500px){
  .entry-page .contact-strip{display:none}
  .entry-page .site-header{padding:10px 24px}.entry-page .brand img{width:36px;height:36px}
  .entry-page .brand>span{font-size:22px}.entry-page .brand small{font-size:8px;margin-top:3px}
  .entry-intro{padding:13px 0}.entry-intro .location-label{display:none}
  .entry-intro h1{font-size:27px;margin-bottom:4px}.entry-intro>p:last-child{font-size:12px}
  .entry-card{padding:14px}.entry-art{display:flex;height:44px;margin-bottom:8px}
  .entry-art .entry-avatar{width:44px;height:44px}.calendar-art svg{width:40px;height:40px}
  .entry-card h2{font-size:23px}.entry-card h2 span{display:inline;font-size:10px;margin-left:5px}
  .entry-copy>p{font-size:12px;min-height:0;margin-bottom:13px}
  .entry-action{min-height:42px}.entry-help{margin:10px 0;font-size:11px}
  .entry-footer{padding:10px 0;font-size:10px}
}

html.consult-open{overflow:hidden}
