/* ── MetaLife tenant skin — shared by all /portal/mt/ pages ──
   Page-scoped brand palette (tenant portals carry their own look, like diary's
   --amber; contained under /portal/mt/). Page-specific styles stay in each page. */
:root {
  --mt-navy:    #0e1526;
  --mt-navy-2:  #16203a;
  --mt-blue:    #3546d3;
  --mt-blue-lt: #4d5ee0;
  --mt-blue-bg: #eceef8;
  --mt-gold:    #c9b98a;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(14,21,38,0.12), 0 2px 6px rgba(14,21,38,0.07);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
/* Below the branded header/hero zone the portal uses the RAKUSALAB role tokens
   (owner ruling 08-29: "except this part, keep the same color with rakusalab") —
   MetaLife identity lives in the navbar, logo, hero photo, and small decorations. */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Hiragino Sans',
               'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }

/* ══ NAVBAR ══ */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--mt-navy);
  border-bottom: 3px solid var(--mt-blue);
  display: flex; align-items: center;
  padding: 0 28px; height: 56px;
  box-shadow: 0 2px 8px rgba(14,21,38,0.35);
}
.navbar-brand { display: flex; align-items: center; gap: 10px; margin-right: 36px; flex-shrink: 0; }
.navbar-brand img { height: 34px; width: auto; display: block; }
.navbar-brand-sub { font-size: 10px; color: rgba(255,255,255,0.45); line-height: 1.2; border-left: 1px solid rgba(255,255,255,0.18); padding-left: 10px; }
.navbar-links { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.navbar-links::-webkit-scrollbar { display: none; }
.navbar-links a {
  color: rgba(255,255,255,0.75); font-size: 13px; font-weight: 500;
  padding: 6px 14px; border-radius: 6px; white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.navbar-links a:hover  { background: rgba(255,255,255,0.1); color: #fff; }
.navbar-links a.active { color: #fff; background: rgba(53,70,211,0.55); }
.navbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-login {
  background: var(--mt-blue); color: #fff; border: none;
  padding: 7px 18px; border-radius: 6px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background 0.15s;
}
.btn-login:hover { background: var(--mt-blue-lt); }
.btn-logout {
  background: transparent; color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 5px 12px; border-radius: 6px; font-size: 12px; cursor: pointer;
}
.btn-logout:hover { border-color: rgba(255,255,255,0.5); color: #fff; }
.nav-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--mt-blue); display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.nav-username { font-size: 13px; color: rgba(255,255,255,0.8); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ══ SHARED PAGE PIECES ══ */
.page-body { max-width: 980px; margin: 0 auto; padding: 20px 20px 48px; }
.section-title { font-size: 15px; font-weight: 700; color: var(--text); margin: 28px 0 12px; display: flex; align-items: center; gap: 8px; }
.section-title .bar { width: 4px; height: 16px; background: var(--primary); border-radius: 2px; }
.btn-primary {
  background: var(--primary); color: var(--primary-contrast); border: none; cursor: pointer;
  padding: 8px 18px; border-radius: 6px; font-size: 12.5px; font-weight: 600;
  display: inline-block;
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost {
  background: var(--surface); color: var(--primary); border: 1px solid var(--primary);
  padding: 8px 18px; border-radius: 6px; font-size: 12.5px; font-weight: 600; cursor: pointer;
  display: inline-block;
}
.btn-ghost:hover { background: var(--primary-subtle); }
.badge-soon {
  display: inline-block; font-size: 10.5px; font-weight: 700;
  background: #f2ecdc; color: #8a7a4a; border: 1px solid var(--mt-gold);
  padding: 2px 10px; border-radius: 20px; margin-left: 8px; vertical-align: 2px;
}

/* ══ FOOTER ══ */
.footer {
  margin-top: 44px; padding: 22px 20px 30px;
  border-top: 1px solid var(--border); text-align: center;
  font-size: 12px; color: var(--text-muted);
}
.footer .company { font-weight: 600; color: var(--text); margin-bottom: 4px; }
.footer a.powered { color: var(--primary); font-weight: 600; }
.footer a.powered:hover { text-decoration: underline; }
