/* My.Hello handoff, adapted to the existing PHP application. */
:root{color-scheme:light;--primary:#7251c7;--primary-hover:#6040b0;--lavender:#a48deb;--tint:#f2edfc;--selected-ink:#50328c;--turquoise:#7fe1e5;--turquoise-tint:#dff6f6;--turquoise-ink:#254d50;--bg:#f8f6fc;--soft:#faf8fd;--surface:#fff;--ink:#262332;--muted:#645d70;--line:#e0dce8;--input-line:#9688a3;--button-ink:#fff}
:root[data-theme=dark]{color-scheme:dark;--primary:#a990ff;--primary-hover:#c2b0ff;--lavender:#806bc1;--tint:#292342;--selected-ink:#d6c8ff;--turquoise:#79d8db;--turquoise-tint:#17383e;--turquoise-ink:#c1f2f2;--bg:#14121b;--soft:#1d1928;--surface:#24202f;--ink:#f3effa;--muted:#c5bece;--line:#484052;--input-line:#81778e;--button-ink:#17131f}
:root body{background:var(--bg);color:var(--ink);padding-top:76px;font-size:16px;line-height:1.6}
:root{background:var(--bg)}
:root :focus-visible{outline:3px solid var(--primary);outline-offset:3px}
:root input[type=checkbox]{accent-color:var(--primary)}
.hnj-skip{position:fixed;top:8px;left:16px;transform:translateY(-150%);z-index:2000;background:var(--surface);color:var(--ink);padding:10px 16px;border-radius:8px}.hnj-skip:focus{transform:none}
:root header.hnj-header{height:76px;background:var(--surface);border-bottom:1px solid var(--line);box-shadow:none}
.hnj-header-inner{max-width:1160px;height:100%;margin:auto;padding:0 28px;display:flex;align-items:center;gap:28px}
.hnj-brand{display:flex;align-items:center;min-height:44px;flex:0 1 190px;min-width:0}
.hnj-nav{display:flex;align-items:center;gap:24px;height:100%;font-size:14px;white-space:nowrap}
.hnj-nav a{display:flex;align-items:center;min-height:46px;font-weight:600;color:var(--muted);position:relative}
.hnj-nav a[aria-current]{color:var(--selected-ink)}.hnj-nav a[aria-current]:after{content:'';height:3px;border-radius:4px;position:absolute;bottom:0;left:0;right:0;background:var(--primary)}
.hnj-header .theme-toggle{margin-left:auto;flex:none;width:38px;height:38px;display:grid;place-items:center;border:0;border-radius:50%;color:var(--selected-ink);background:transparent;font-size:19px;cursor:pointer}
.hnj-header .theme-toggle:hover{background:transparent;color:var(--primary)}.hnj-header .theme-toggle:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.hnj-account{min-width:0;font-size:14px}.hnj-account #userMenu>button{max-width:210px;overflow-wrap:anywhere;text-align:left}.hnj-account>a{white-space:nowrap}
:root #userMenuDropdown{background:var(--surface);border-color:var(--line);width:265px;border-radius:12px;box-shadow:0 12px 32px #26233218}
:root #userMenuDropdown a{min-height:46px;color:var(--ink)}:root #userMenuDropdown a:hover{background:var(--tint)}
:root .hnj-catalog{max-width:1120px;padding:32px 28px 0}
.catalog-intro{display:flex;align-items:center;justify-content:space-between;gap:36px;min-height:184px;margin-bottom:24px}.intro-copy{flex:1;max-width:690px;min-width:0;padding:8px 0}.eyebrow{font-size:12px;letter-spacing:1.4px;text-transform:uppercase;color:var(--muted);font-weight:600;margin:0 0 10px}.catalog-intro h1{font-size:44px;font-weight:700;line-height:1.12;letter-spacing:-1.5px;margin:0 0 10px}.intro-lead{font-size:16px;line-height:1.65;color:var(--muted);margin:0}.intro-art{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:194px;height:180px;border-radius:28px;background:var(--tint)}.intro-art img{width:202px;height:204px;object-fit:contain}
.search-wrap{display:flex;align-items:center;gap:12px;background:var(--surface);border:1px solid var(--input-line);border-radius:10px;padding:0 15px;min-height:48px;margin-top:18px;max-width:580px;color:var(--muted)}.search-wrap:focus-within{outline:3px solid var(--primary);outline-offset:3px}.search-wrap input{border:0;outline:none!important;background:transparent;color:var(--ink);padding:11px 0;font-size:16px;min-width:0;flex:1;width:100%}.search-wrap button{font-size:26px;min-width:36px;min-height:44px}.search-wrap input::placeholder{color:var(--muted)}
.catalog-controls{padding:18px 0;margin-bottom:26px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.tabs{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
:root .catalog .category-tab,.tab{display:inline-flex;align-items:center;min-height:46px;gap:10px;border:1px solid var(--line);border-radius:8px;padding:8px 14px;background:var(--surface);font-size:14px;font-weight:600;color:var(--muted);text-decoration:none;cursor:pointer}
:root .catalog .category-tab.active{background:var(--primary);border-color:var(--primary);color:var(--button-ink);box-shadow:0 3px 0 var(--lavender)}:root .catalog .category-tab:hover{border-color:var(--lavender)}
.hnj-section-heading,.section-heading{display:flex;gap:12px;align-items:center;margin-bottom:16px}.hnj-section-heading,.section-heading h2{font-size:23px;font-weight:700;line-height:30px;letter-spacing:-.5px}.section-count{display:inline-grid;place-items:center;min-width:30px;height:28px;padding:0 8px;border:1px solid var(--line);border-radius:6px;color:var(--selected-ink);background:var(--surface);font-size:13px;font-weight:600}.archive-heading{margin-top:34px}
:root .upcoming-empty{padding:20px 24px;display:flex;align-items:center;gap:18px;text-align:left;border:1px solid var(--line);background:var(--turquoise-tint);border-radius:16px;color:var(--turquoise-ink)}.upcoming-empty svg{margin:0;width:42px;height:42px;flex:none}
.event-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:stretch}
:root .catalog .event-card{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-top:3px solid var(--lavender);border-radius:14px;min-width:0;box-shadow:0 3px 0 #e0dce833}
:root .catalog .catalog-card{padding:14px 14px 18px}
:root .catalog-card h2{font-size:17px;font-weight:700;line-height:1.45;letter-spacing:-.15px;margin:0;overflow-wrap:anywhere}
:root .catalog-card h2 a{color:var(--ink)}.catalog-card h2 a:hover{color:var(--primary)}
.card-cover{display:block;aspect-ratio:16/9;overflow:hidden;border-radius:9px;background:var(--tint);margin-bottom:12px}.card-cover img{width:100%;height:100%;display:block;object-fit:contain}.card-date{font-size:14px;line-height:1.5;color:var(--selected-ink);font-weight:600;margin-bottom:7px}.no-results{grid-column:1/-1;border:1px dashed var(--input-line);border-radius:16px;background:var(--surface);font-size:16px;color:var(--muted);padding:34px}.no-results a{color:var(--primary);text-decoration:underline}.no-results p{margin:10px 0}
:root footer{background:var(--bg);border-color:var(--line);color:var(--muted);max-width:1120px;margin:48px auto 30px}.material-cover-logo{width:124px;grid-column:1;grid-row:3;align-self:end;justify-self:start}.material-cover--detail .material-cover-logo{grid-column:1;grid-row:3}
.field{display:flex;flex-direction:column;gap:8px;font-size:15px}.field select{background:var(--surface);color:var(--ink);border:1px solid var(--input-line);border-radius:8px}.material-read,.material-reset,.material-topics a{color:var(--primary)}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.catalog .event-card{transition:border-color .16s,box-shadow .16s}.catalog .event-card:hover{border-color:var(--lavender);box-shadow:0 5px 20px #7251c70c}}
@media(max-width:1000px){.hnj-header-inner{gap:18px}.hnj-brand{flex-basis:160px}.hnj-nav{gap:16px}.hnj-account #userMenu>button{max-width:145px}.hnj-account>span{display:none}}
@media(max-width:900px){.event-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){:root body{padding-top:116px}:root header.hnj-header{height:116px}.hnj-header-inner{padding:12px 20px 8px;flex-wrap:wrap;align-content:center;gap:5px 14px}.hnj-brand{flex:1;min-height:40px}.brand-mark{width:170px}.hnj-header .theme-toggle{width:36px;height:36px}.hnj-nav{order:4;width:100%;height:auto;gap:22px;overflow-x:auto;font-size:13px}.hnj-nav a{min-height:39px}.hnj-account #userMenu>button{font-size:12px;max-width:120px}.hnj-account{font-size:13px}.hnj-account>span{display:none}:root .hnj-catalog{padding:26px 20px 0}.catalog-intro{display:grid;grid-template-columns:minmax(0,1fr) 122px;gap:16px;margin-bottom:22px;min-height:0}.intro-copy{display:contents}.intro-copy .eyebrow{grid-column:1;grid-row:1;margin:0;align-self:end;font-size:11px}.intro-copy h1{grid-column:1;grid-row:2;margin:0;font-size:36px}.intro-copy .intro-lead{grid-column:1;grid-row:3;font-size:15px}.intro-copy .search-wrap{grid-column:1/-1;grid-row:4;width:100%;margin:6px 0 0;max-width:none}.intro-art{grid-column:2;grid-row:1/4;width:122px;height:146px;align-self:center}.intro-art img{width:146px;height:158px;max-width:none}.catalog-controls{padding:16px 0 20px;margin-bottom:24px}.hnj-section-heading,.section-heading h2{font-size:21px}.material-cover-logo{width:124px}footer .brand-mark{width:170px}}
@media(max-width:560px){.event-list{grid-template-columns:1fr}}
@media(max-width:400px){.hnj-header-inner{padding-left:16px;padding-right:16px;gap:5px 10px}.hnj-brand .brand-mark{width:138px}:root .hnj-catalog{padding-left:16px;padding-right:16px}.catalog-intro{grid-template-columns:minmax(0,1fr) 102px;gap:9px 12px}.intro-art{width:102px;height:132px}.intro-art img{width:126px;height:142px}.intro-copy h1{font-size:34px}.intro-copy .intro-lead{font-size:14px}.hnj-nav{gap:19px;font-size:12px}.hnj-account #userMenu>button{max-width:100px}}
@media print{:root body{padding-top:0}.hnj-header,.hnj-skip{display:none}}
.tab-count{display:inline-grid;place-items:center;min-width:22px;height:23px;padding:0 5px;border-radius:4px;font-size:12px;background:var(--soft);color:var(--muted)}

/* Original project wordmarks restored at the user’s request. */
:root .hnj-brand{flex:0 0 auto;gap:5px;color:var(--ink);font-size:16px;font-weight:400;white-space:nowrap}
.material-legacy-logo{width:auto;font-family:"IBM Plex Mono",monospace;font-size:11px;font-weight:700;white-space:nowrap;color:var(--ink)}
.material-legacy-logo>span{color:#4ddac0}
@media(max-width:700px){:root .hnj-brand{flex:1}}

/* Compact account control; the full email remains available on hover. */
:root .hnj-account #userMenu>.hnj-account-avatar{display:flex;align-items:center;justify-content:center;width:38px;height:38px;flex-shrink:0;padding:0;border:1px solid var(--lavender);border-radius:50%;background:var(--tint);color:var(--selected-ink);font-size:16px;font-weight:700;line-height:1;cursor:pointer}
:root .hnj-account #userMenu>.hnj-account-avatar:hover{background:var(--primary);border-color:var(--primary);color:var(--button-ink)}
@media(max-width:700px){:root .hnj-account #userMenu>.hnj-account-avatar{width:36px;height:36px}}

/* Email-derived pastel backgrounds stay identical across themes and surfaces. */
.hnj-avatar{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;border-radius:50%;background:var(--avatar-bg,#d9c7f2);color:#262332;font:700 14px/1 'Raleway',sans-serif}
.question-email-avatar{width:28px;height:28px;font-size:12px}.reply-email-avatar{width:24px;height:24px;font-size:11px}
:root .hnj-account #userMenu>.hnj-account-avatar,:root .hnj-account #userMenu>.hnj-account-avatar:hover{background:var(--avatar-bg,#d9c7f2);color:#262332;border-color:transparent}
:root .hnj-account #userMenu>.hnj-account-avatar:hover{box-shadow:0 0 0 2px var(--lavender)}
