/* University of SEO — header category hubs: split label/chevron in the desktop nav, hub link in dropdowns,
   expandable categories in the mobile drawer, and the hub pages (/learn, /practice, /explore/community,
   /explore/services). Design tokens only (uos-theme.css). */

/* ---- Desktop nav: the label navigates to the hub, the chevron opens the menu ----
   The two controls share ONE pill: the item (li) owns the shape, background and outline, so hover, open and
   active states always draw a single capsule instead of two half-pills. */
.uh-nav>li.uh-has-drop{display:flex;align-items:center;border-radius:999px;transition:background-color .15s,box-shadow .15s}
.uh-nav>li.uh-has-drop>.uh-link{padding-right:4px;border-radius:999px 0 0 999px;background:transparent!important;box-shadow:none!important}
.uh-drop-toggle{display:inline-flex;align-items:center;justify-content:center;width:30px;height:38px;margin:0;padding:0 12px 0 4px;border:0;border-radius:0 999px 999px 0;background:transparent;color:var(--uos-muted);cursor:pointer;transition:color .15s}
.uh-drop-toggle i{font-size:10px;opacity:.8;transition:transform .15s}
.uh-nav>li.uh-has-drop.open,.uh-nav>li.uh-has-drop:focus-within{background:var(--uos-glass-hi)}
.uh-nav>li.uh-has-drop.open>.uh-link,.uh-nav>li.uh-has-drop.open>.uh-drop-toggle,.uh-drop-toggle:hover{color:var(--uos-ink)}
.uh-nav>li.uh-has-drop.open>.uh-drop-toggle i{transform:rotate(180deg)}
@media (hover:hover) and (min-width:1200px){
  .uh-nav>li.uh-has-drop:hover{background:var(--uos-glass-hi)}
  .uh-nav>li.uh-has-drop:hover>.uh-link,.uh-nav>li.uh-has-drop:hover>.uh-drop-toggle{color:var(--uos-ink)}
}
.uh-link:focus-visible,.uh-drop-toggle:focus-visible,.uh-drop-item:focus-visible,.uh-drop-all:focus-visible{outline:2px solid var(--uos-accent-text);outline-offset:2px}

.uh-drop-item .uh-lock-note{display:inline-flex;align-items:center;gap:5px;font-size:.75rem;font-weight:600;color:var(--uos-text);margin-top:3px}
.uh-drop-item .uh-lock-note i{font-size:.7rem;color:var(--uos-subtle)}
.uh-drop-all{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:6px;padding:11px 12px;border-top:1px solid var(--uos-line);border-radius:0 0 14px 14px;color:var(--uos-accent-text);font-weight:600;font-size:.88rem;text-decoration:none}
/* Learn holds course categories + every learning tool: three columns keep it within one screen */
@media (min-width:1200px){.uh-drop-wide{min-width:880px;grid-template-columns:repeat(3,minmax(0,1fr))}}
/* wide menus anchor to the whole nav row so they never run past the right edge */
@media (min-width:1200px){.uh-nav{position:relative}.uh-nav>li:has(>.uh-drop-wide){position:static}}
.uh-drop-all:hover{background:var(--uos-glass-hi);color:var(--uos-ink)}

/* ---- Mobile drawer: category title links to the hub, the toggle expands the sub-links ---- */
.ud-cat-head{display:flex;align-items:center;gap:4px;margin:6px 0 2px}
.ud-group .ud-cat-link{flex:1;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 12px;border-radius:14px;color:var(--uos-ink);font-weight:600}
.ud-group .ud-cat-link small{font-size:.75rem;font-weight:500;color:var(--uos-muted)}
.ud-group .ud-cat-link.active{background:var(--uos-glass-hi)}
.ud-cat-toggle{flex:0 0 auto;width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:14px;border:1px solid var(--uos-line);background:transparent;color:var(--uos-ink);cursor:pointer}
.ud-cat-toggle i{transition:transform .2s;font-size:12px}
.ud-cat-toggle[aria-expanded="true"] i{transform:rotate(180deg)}
.ud-cat-toggle:hover{background:var(--uos-glass-hi)}
.ud-cat-toggle:focus-visible,.ud-group .ud-cat-link:focus-visible{outline:2px solid var(--uos-accent-text);outline-offset:2px}
.ud-cat-list{padding-left:8px;border-left:1px solid var(--uos-line);margin-left:16px}
.ud-cat-list[hidden]{display:none}
.ud-group .ud-cat-list a .ud-lock{margin-left:auto;font-size:.72rem;color:var(--uos-muted);display:inline-flex;align-items:center;gap:5px}
.ud-group .ud-cat-list a .ud-lock i{width:auto;color:var(--uos-subtle)}

/* ---- Hub pages: plain header, a two-column list of tools, category links, then the other hubs ---- */
.uhub{padding-bottom:clamp(48px,7vw,88px)}
.uhub :focus-visible{outline:2px solid var(--uos-accent-text);outline-offset:3px;border-radius:10px}
.uhub-crumbs ol{display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin:0 0 4px;padding:0;font-size:.9rem;color:var(--uos-muted)}
.uhub-crumbs li{display:inline-flex;align-items:center;gap:6px}
.uhub-crumbs li+li:before{content:"/";color:var(--uos-muted)}
.uhub-crumbs a{display:inline-flex;align-items:center;min-height:44px;color:var(--uos-muted);text-decoration:underline;text-underline-offset:.2em}
.uhub-crumbs a:hover{color:var(--uos-ink)}
.uhub-crumbs [aria-current]{color:var(--uos-ink);font-weight:600}
.uhub-hero{padding:clamp(12px,2vw,24px) 0 clamp(16px,3vw,28px)}
.uhub-hero h1{font-size:clamp(2rem,3.8vw,3rem);font-weight:600;line-height:1.08;letter-spacing:-.03em;color:var(--uos-ink);margin:0 0 14px;max-width:22ch;text-wrap:balance}
.uhub-hero p{font-size:1.08rem;line-height:1.62;color:var(--uos-muted);max-width:62ch;margin:0}
.uhub-hero .uhub-note{margin-top:14px;font-size:.95rem;color:var(--uos-text)}
.uhub-hero .uhub-note i{color:var(--uos-muted)}
.uhub-hero .uhub-note a{color:var(--uos-accent-text);font-weight:600;text-decoration:underline;text-underline-offset:.2em}
.uhub-h2{font-size:1.25rem;font-weight:600;letter-spacing:-.01em;margin:clamp(32px,4vw,48px) 0 6px;color:var(--uos-ink)}
.uhub-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:48px}
.uhub-list>li{border-bottom:1px solid var(--uos-line);min-width:0}
.uhub-item{display:flex;align-items:flex-start;gap:14px;padding:18px 0;color:var(--uos-text);text-decoration:none}
.uhub-item:hover{color:var(--uos-text)}
.uhub-item:hover strong{text-decoration:underline;text-underline-offset:.2em}
.uhub-ico{width:22px;flex:0 0 auto;margin-top:3px;text-align:center;color:var(--uos-accent-text);font-size:17px}
.uhub-item.is-locked .uhub-ico{color:var(--uos-muted)}
.uhub-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.uhub-body strong{color:var(--uos-ink);font-weight:600;font-size:1.05rem;line-height:1.3}
.uhub-body small{color:var(--uos-muted);font-size:.93rem;line-height:1.5}
.uhub-lock{display:inline-flex;align-items:center;gap:6px;margin-top:4px;font-size:.85rem;font-weight:600;color:var(--uos-text)}
.uhub-lock i{color:var(--uos-muted)}
.uhub-empty{color:var(--uos-muted)}
.uhub-chips{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:10px}
.uhub-chips a{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border-radius:999px;border:1px solid var(--uos-line-2);background:var(--uos-surface-solid);color:var(--uos-ink);font-weight:500;text-decoration:none}
.uhub-chips a:hover{border-color:var(--uos-ink)}
.uhub-more ul{list-style:none;margin:6px 0 0;padding:0;border-top:1px solid var(--uos-line)}
.uhub-more li{border-bottom:1px solid var(--uos-line)}
.uhub-more a{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;padding:16px 0;min-height:44px;color:var(--uos-text);text-decoration:none}
.uhub-more a strong{color:var(--uos-ink);font-weight:600;min-width:120px}
.uhub-more a span{color:var(--uos-muted);flex:1}
.uhub-more a i{color:var(--uos-accent-text);font-size:.85em}
.uhub-more a:hover strong{text-decoration:underline;text-underline-offset:.2em}
@media (max-width:767px){
    .uhub-list{grid-template-columns:minmax(0,1fr)}
    .uhub-more a{flex-direction:column;gap:2px}
    .uhub-more a i{display:none}
}
@media (prefers-reduced-motion:reduce){.uh-drop-toggle i,.ud-cat-toggle i{transition:none}}
@media (pointer:coarse){.uhub-crumbs a{min-height:44px}.uhub-hero .uhub-note a{display:inline-block;padding:10px 2px}}

/* Hub pages: one card per page in the section, each with a line illustration (helpers/uos_illo_helper.php) */
.uhub-cards{list-style:none;margin:14px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px}
.uhub-cards>li{min-width:0;display:flex}
.uhub-card{display:flex;flex-direction:column;width:100%;border:1px solid var(--uos-line);border-radius:var(--uos-radius);background:var(--uos-surface-solid);color:var(--uos-text);text-decoration:none;overflow:hidden;transition:border-color .18s ease,background-color .18s ease}
.uhub-card:hover{border-color:var(--uos-line-2);color:var(--uos-text)}
.uhub-card:hover strong{text-decoration:underline;text-underline-offset:.2em}
.uhub-art{display:block;aspect-ratio:240/140;padding:10px 12px 0;background:var(--uos-canvas-2);border-bottom:1px solid var(--uos-line)}
.uhub-card.is-locked .uhub-art{opacity:.62}
.uhub-card-body{flex:1;display:flex;flex-direction:column;gap:5px;padding:14px 16px 16px}
.uhub-card-body strong{display:flex;align-items:center;gap:8px;color:var(--uos-ink);font-weight:600;font-size:1.04rem;line-height:1.3}
.uhub-card-body strong i{color:var(--uos-accent-text);font-size:.9em;width:1.1em;text-align:center}
.uhub-card.is-locked .uhub-card-body strong i{color:var(--uos-muted)}
.uhub-card-body small{color:var(--uos-muted);font-size:.93rem;line-height:1.5}
.uhub-card-foot{margin-top:auto;padding-top:8px}
.uhub-go{display:inline-flex;align-items:center;gap:6px;font-size:.9rem;font-weight:600;color:var(--uos-accent-text)}
.uhub-go i{font-size:.8em}
.uhub-card .uhub-lock{margin-top:0}
@media (max-width:575px){.uhub-cards{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.uhub-card-body{padding:12px}.uhub-card-body small{font-size:.86rem}}
@media (max-width:379px){.uhub-cards{grid-template-columns:minmax(0,1fr)}}
/* Six main menu items: the header pill is 1116 px wide on every desktop, so menu padding is tighter and search is compact */
@media (min-width:1200px){.uh-nav .uh-link{padding-left:10px;padding-right:10px}.uh-nav .uh-has-drop .uh-link{padding-right:3px}.uh-drop-toggle{width:26px;padding-right:8px}.uh-actions .uh-icon.uh-hide-sm,.uh-actions .uh-pop.uh-hide-sm{display:none!important}.uh-bar{gap:10px}}
/* Messages and Wishlist stay reachable from the account menu when the header hides their icons. */
/* Desktop: search is a compact button that opens into a field over the icons when clicked or focused */
@media (min-width:1200px){.uh-search{flex:0 0 44px;max-width:44px;height:44px;margin-left:auto}.uh-search input{position:absolute;left:0;top:0;width:44px;padding:0 0 0 40px;cursor:pointer;transition:width .18s ease,border-color .2s,box-shadow .2s}.uh-search input::placeholder{color:transparent}.uh-search:focus-within input{width:260px;padding-right:16px;cursor:text;z-index:6;background:var(--uos-surface-solid)}.uh-search:focus-within input::placeholder{color:var(--uos-subtle)}.uh-search>i{z-index:7}}
/* Logged-out header (Log in + Join free) also fits the 1116 px pill */
@media (min-width:1200px){.uh-nav{gap:0}.uh-nav .uh-link{font-size:.87rem;padding-left:6px;padding-right:6px}.uh-nav .uh-has-drop .uh-link{padding-right:2px}.uh-drop-toggle{width:24px;padding:0 6px 0 2px}.uh-login{padding:9px 6px}.uh-join{padding:0 12px}.uh-bar{gap:6px;padding:8px 8px 8px 12px}.uh-actions{gap:4px}html body .uh-bar .uh-brand img.uos-logo{height:27px!important}}
/* chevron buttons are 24 px wide (WCAG 2.5.8 target size); the spacing above (and the 27 px logo, still over 180 px wide)
   keeps the logged-out header (search, cart, Log in, Join free, theme) inside the 1116 px pill */
/* Learn also lists the SEO topics: course categories and topics are compact rows (title only) so the menu fits one screen */
.uh-drop-wide .uh-drop-item-1{align-items:center;padding:6px 12px}
.uh-drop-wide .uh-drop-item-1 .uh-ico{width:32px;height:32px;border-radius:10px;font-size:14px}
.uh-drop-wide .uh-drop-head:not(:first-child){margin-top:6px}
/* short laptop screens: the long Learn menu scrolls inside itself instead of running past the bottom edge */
@media (min-width:1200px) and (max-height:900px){.uh-drop-wide{max-height:calc(100vh - 150px);overflow-y:auto;overscroll-behavior:contain}}

/* Header wordmark: "University of" as real text + the coded S-E-O mark (same artwork as the footer). Sizes are fluid. */
.uh-brand .uh-wm{display:inline-flex;align-items:center;gap:clamp(6px,.6vw,9px);white-space:nowrap;line-height:1}
.uh-brand .uh-wm-text{font-family:var(--uos-font-display);font-weight:600;font-size:clamp(.98rem,.86rem + .45vw,1.18rem);letter-spacing:-.02em;color:var(--uos-logo-ink,var(--uos-ink))}
.uh-brand svg.uh-wm-mark{width:auto;height:clamp(20px,1.1rem + .4vw,26px);flex:0 0 auto;fill:var(--uos-logo-mark,var(--uos-accent))}
/* phones: the actions need the width, so the name sits above the mark (still real text, still "University of SEO") */
@media (max-width:520px){.uh-brand .uh-wm{flex-direction:column;align-items:flex-start;gap:3px}.uh-brand .uh-wm-text{font-size:.78rem;letter-spacing:-.01em}.uh-brand svg.uh-wm-mark{height:18px}}
@media (max-width:350px){.uh-brand .uh-wm-text{font-size:.72rem}.uh-brand svg.uh-wm-mark{height:16px}}
