/* Home page styles (/). Tokens only; shared components live in /components.css. */

/* ------------------------------------------------------------------------ banner */
.hero .in{max-width:none}
.hero h1.greet{display:flex;align-items:center;gap:14px}
.greet-ic{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--banner-fill);
  border:1px solid var(--banner-line);flex:none}
.greet-ic svg.i{width:22px;height:22px;display:none}
.greet[data-period="morning"] .g-morning,
.greet[data-period="afternoon"] .g-afternoon,
.greet[data-period="evening"] .g-evening{display:block}
.greet-ic,.greet-txt{transition:opacity .25s ease,transform .25s ease}
.greet.is-swapping .greet-ic,.greet.is-swapping .greet-txt{opacity:0;transform:translateY(8px)}
.hero .lead{max-width:480px}
.home-search{margin-top:22px;max-width:560px;width:100%}
.home-search input::placeholder{color:var(--placeholder);opacity:1}
.home-search input{text-overflow:ellipsis}

/* ------------------------------------------------------------------- division tiles */
.tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
/* the 2 px hover / focus lift and the one-pass ring personality live in /motion.css */
.tile .tile-link{color:inherit;text-decoration:none}
/* the title link covers the whole tile (HANDOFF s3: clicking the tile opens the division). Its cover
   must be positioned against the tile, so the title is not a positioned box; the ring SVG sits
   under the text instead (the tile's contain:paint makes it the stacking context). */
.tile h3{position:static}
.tile svg.rings{z-index:-1}
.tile .tile-link::after{content:"";position:absolute;inset:0;border-radius:18px;z-index:1}
.tile .tile-link:focus-visible{outline:none}
.tile .tile-link:focus-visible::after{outline:2px solid var(--on-banner);outline-offset:-4px}
.tile .go{z-index:2;pointer-events:none}
.tile .rg{z-index:2}
.tile .rg > a{text-decoration:none;position:relative}
.tile .rg > a:focus-visible{outline:2px solid var(--on-banner);outline-offset:2px}
.tile .rg > a::after{content:"";position:absolute;inset:-12px -6px}   /* 44px hit area on the JHB chip */
@media (max-width:1199px){.tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:767px){.tiles{grid-template-columns:minmax(0,1fr)}}

/* ----------------------------------------------------------------------- quick launch */
.qstrip{display:flex;align-items:center;gap:20px;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:16px 18px}
.qstrip h2{flex:none;width:150px;font-size:15px;font-weight:700;display:flex;flex-direction:column;gap:2px}
.qsub{font-size:12px;font-weight:500;color:var(--text-2)}
.tools{flex:1;min-width:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.tool{display:flex;align-items:center;gap:10px;min-width:0;min-height:52px;padding:10px;border:1px solid var(--line);border-radius:12px;
  font-size:13px;font-weight:600;color:var(--text);text-decoration:none;white-space:nowrap;transition:background-color .15s}
@media (hover:hover){.tool:hover{background:var(--btn-2-hover)}}
.tool .tl-ic{width:32px;height:32px;border-radius:9px;background:var(--surface-raised);border:1px solid var(--line);display:grid;place-items:center;
  flex:none;overflow:hidden;font-weight:700;font-size:13px;color:var(--text)}
.tool .tl-ic img{width:20px;height:20px;object-fit:contain}
.tool .tl-name{min-width:0;overflow:hidden;text-overflow:ellipsis}
@media (max-width:1199px){.tools{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:767px){
  .qstrip{flex-direction:column;align-items:stretch;gap:12px}
  .qstrip h2{width:auto;flex-direction:row;align-items:baseline;gap:10px}
  .tools{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* --------------------------------------------------------------------- Mini Apps */
#home-ma-h + .chips{margin-left:6px}
