/* ==========================================================================
   PIATTO IMMIGRATION — custom theme for Sngine v5 (Nova)
   Overrides Nova's compiled Tailwind CSS. Do NOT edit dist/assets/*.css.
   Colours from the approved design image.
   ========================================================================== */
:root {
  --piatto-navy: #0A2463;
  --piatto-navy-dark: #071A45;
  --piatto-gold: #C9A227;
  --piatto-gold-light: #D4AF37;
  --piatto-red: #D42B2B;
  --piatto-cream: #FFF8E1;
  --piatto-bg: #EEF1F6;
}

body {
  background: var(--piatto-bg);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Serif headings: hero + section titles */
.piatto-hero h1,
.piatto-section-title,
.piatto-card-title,
.piatto-brand-name {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
}

/* ---- Top bar: navy + gold bottom border, white text -------------------- */
.piatto-topbar {
  background: var(--piatto-navy) !important;
  border-bottom: 3px solid var(--piatto-gold) !important;
  color: #fff;
}
/* header is a flex row in Nova: keep it a single bar (design image) */
header.piatto-topbar { flex-wrap: wrap; }
/* let the single bar use the full width so nav + search + icons all fit */
.piatto-topbar > div.mx-auto { max-width: none; }
/* dropdown panels live inside the navy topbar: their text must stay dark on
   white. The broad white-text rule below must NOT reach inside menus. */
.piatto-topbar .dropdown-menu { color: var(--color-base-content); }
.piatto-topbar a:not(.dropdown-menu a),
.piatto-topbar button:not(.dropdown-menu button),
.piatto-topbar span:not(.dropdown-menu span) { color: #fff; }
.piatto-user-menu { display: inline-grid; grid-template-columns: auto auto; align-items: center; column-gap: .3rem; }
.piatto-user-caret { color: #fff; font-size: .65rem; line-height: 1; }
.piatto-user-name { color: #fff; display: none; font-size: .72rem; font-weight: 600; grid-column: 1; grid-row: 2; text-align: center; white-space: nowrap; }
/* name under the avatar (like the design image) on wide screens. Plain CSS,
   not Tailwind's xl:inline — the compiled Tailwind bundle was built before
   that utility existed in the templates, so xl:inline is missing from it
   and the span stayed hidden. */
@media (min-width: 1280px) { .piatto-user-name { display: block; } }
.piatto-topbar .site-topbar-search {
  background: #fff !important;
  color: #334155 !important;
}
/* placeholder text slightly smaller so the full mockup text fits the
   ~320px the search button gets at a 1534px viewport */
.piatto-topbar .site-topbar-search .truncate { font-size: .85rem; }
.piatto-topbar .site-topbar-search span { color: #64748b !important; }
.piatto-brand-name {
  color: var(--piatto-gold-light);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
}
.piatto-brand-sub {
  color: rgba(255,255,255,.75);
  font-size: .68rem;
  letter-spacing: .06em;
  line-height: 1.1;
  white-space: nowrap;
}

/* ---- Nav: inline in the single top bar (design image) --------------------- */
.piatto-navrow {
  background: transparent;
  border-bottom: 0;
  display: none;
}
@media (min-width: 1024px) { .piatto-navrow { display: flex; } }
.piatto-navrow-inner {
  align-items: center;
  display: flex;
  gap: .85rem;
}
.piatto-navrow a.piatto-nav-link {
  color: #fff !important;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.piatto-navrow a.piatto-nav-link:hover { color: var(--piatto-gold-light) !important; }
.piatto-navrow a.piatto-nav-link.piatto-active {
  border-bottom: 3px solid var(--piatto-gold);
  color: #fff !important;
  padding-bottom: .35rem;
}
.piatto-navrow .piatto-cta-gold { margin-left: .4rem; padding: .5rem .9rem; white-space: nowrap; }
.piatto-cta-red {
  background: var(--piatto-red) !important;
  border-radius: 6px;
  color: #fff !important;
  font-weight: 700;
  margin-left: auto;
  padding: .45rem 1.1rem;
  text-decoration: none;
  white-space: nowrap;
}
.piatto-cta-red:hover { background: #b42323 !important; }
.piatto-cta-gold {
  background: linear-gradient(180deg, var(--piatto-gold-light), var(--piatto-gold)) !important;
  border-radius: 6px;
  color: #071A45 !important;
  font-weight: 700;
  padding: .6rem 1.4rem;
  text-decoration: none;
}
.piatto-cta-gold:hover { filter: brightness(1.07); }

/* ---- Hero: split layout like the design image (text left, photo right) ---- */
.piatto-hero {
  background: linear-gradient(120deg, var(--piatto-navy-dark) 0%, var(--piatto-navy) 58%, #123a8f 100%);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  margin-bottom: 1.25rem;
  min-height: 260px;
  overflow: hidden;
  position: relative;
}
.piatto-hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 2rem;
  position: relative;
}
.piatto-hero-media { min-height: 260px; }
.piatto-hero-media img { display: block; height: 100%; object-fit: cover; object-position: center; width: 100%; }
.piatto-hero h1 {
  color: #fff;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .5rem;
  max-width: 34rem;
}
.piatto-hero h1::after {
  background: var(--piatto-gold);
  content: "";
  display: block;
  height: 3px;
  margin-top: .9rem;
  width: 72px;
}
.piatto-hero p {
  color: rgba(255,255,255,.92);
  font-size: 1rem;
  margin: 0 0 1.4rem;
  max-width: 34rem;
}
.piatto-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.piatto-hero-actions .piatto-cta-red,
.piatto-hero-actions .piatto-cta-gold { margin-left: 0; padding: .65rem 1.5rem; }

/* ---- Piatto cards --------------------------------------------------------- */
.piatto-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(7,26,69,.06);
  margin-bottom: 1.25rem;
  overflow: hidden;
}
.piatto-card-head {
  background: var(--piatto-navy);
  border-bottom: 3px solid var(--piatto-gold);
  color: #fff;
  padding: .8rem 1rem;
}
.piatto-card-head h2,
.piatto-card-head h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}
.piatto-card-head a { color: #fff; text-decoration: none; }
.piatto-card-body { padding: 1rem; }
.piatto-card-body .piatto-row {
  align-items: center;
  border-bottom: 1px solid #eef2f7;
  display: flex;
  gap: .75rem;
  padding: .65rem 0;
}
.piatto-card-body .piatto-row:last-child { border-bottom: 0; }
.piatto-card-body .piatto-row a { color: var(--piatto-navy); font-weight: 600; text-decoration: none; }
.piatto-card-body .piatto-row a:hover { color: var(--piatto-red); }
.piatto-avatar { border-radius: 50%; height: 48px; object-fit: cover; width: 48px; }
.piatto-featured { background: var(--piatto-cream); border-radius: 10px; padding: .75rem; }
.piatto-group-btn {
  background: var(--piatto-navy);
  border-radius: 8px;
  color: #fff !important;
  display: block;
  font-weight: 600;
  margin-bottom: .5rem;
  padding: .7rem .9rem;
  text-decoration: none;
}
.piatto-group-btn:hover { background: var(--piatto-navy-dark); }
.piatto-group-btn span { float: right; }
.piatto-event-date {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: var(--piatto-red);
  flex-shrink: 0;
  font-weight: 800;
  line-height: 1.1;
  padding: .4rem .55rem;
  text-align: center;
  width: 52px;
}
.piatto-event-date small { color: #64748b; display: block; font-size: .65rem; font-weight: 600; text-transform: uppercase; }

/* ---- Bottom sections ------------------------------------------------------ */
.piatto-sections {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr 1fr;
  margin-top: .5rem;
}
.piatto-sections .piatto-card { margin-bottom: 0; min-width: 0; }
/* Lawyers Directory spans the full centre width so its 3 photo cards fit */
.piatto-sections .piatto-card--wide { grid-column: 1 / -1; }
@media (max-width: 900px) {
  .piatto-sections { grid-template-columns: 1fr; }
}
.piatto-section-title {
  color: var(--piatto-navy);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 .25rem;
}
.piatto-section-title::after {
  background: var(--piatto-gold);
  content: "";
  display: block;
  height: 3px;
  margin-top: .4rem;
  width: 56px;
}
.piatto-lawyers { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
.piatto-lawyer { text-align: center; }
.piatto-lawyer img {
  border-radius: 10px;
  height: 150px;
  object-fit: cover;
  object-position: top;
  width: 100%;
}
.piatto-lawyer strong { color: var(--piatto-navy); display: block; margin-top: .5rem; }
.piatto-lawyer strong a { color: var(--piatto-navy); text-decoration: none; }
.piatto-lawyer span { color: #64748b; font-size: .82rem; }
.piatto-lawyer .piatto-rating { color: #475569; display: block; font-size: .82rem; margin-top: .25rem; }
.piatto-lawyer .piatto-stars { color: #f59e0b; letter-spacing: .05em; }
.piatto-view-profile {
  background: var(--piatto-navy);
  border-radius: 8px;
  color: #fff !important;
  display: inline-block;
  font-size: .85rem;
  font-weight: 700;
  margin-top: .6rem;
  padding: .5rem 1.4rem;
  text-decoration: none;
}
.piatto-view-profile:hover { background: var(--piatto-navy-dark); }

/* Featured Lawyer badge + stats (right rail, like the design image) */
.piatto-badge-gold {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 999px;
  color: #92400e;
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  margin-top: .3rem;
  padding: .1rem .5rem;
}
.piatto-featured-stats { color: #475569; font-size: .8rem; margin-top: .3rem; }
.piatto-blog { display: flex; gap: .9rem; }
.piatto-blog img { border-radius: 8px; flex-shrink: 0; height: 72px; object-fit: cover; width: 96px; }
.piatto-blog > div { flex: 1; min-width: 0; }
.piatto-blog a { color: var(--piatto-navy); font-weight: 700; line-height: 1.3; overflow-wrap: break-word; text-decoration: none; }
.piatto-blog a:hover { color: var(--piatto-red); }
.piatto-blog p { color: #64748b; font-size: .85rem; margin: .3rem 0 0; }

/* ---- Left sidebar: Quick Links -------------------------------------------- */
.piatto-quicklinks { margin-top: 1rem; }
.piatto-quicklinks a {
  align-items: center;
  border-bottom: 1px solid #eef2f7;
  color: var(--piatto-navy);
  display: flex;
  font-weight: 600;
  justify-content: space-between;
  padding: .6rem .25rem;
  text-decoration: none;
}
.piatto-quicklinks a:last-child { border-bottom: 0; }

.piatto-card-body .piatto-row > div { flex: 1; min-width: 0; }

/* ---- Stats strip (design image footer: 500+ cases, 98%, 24/7) ------------- */
.piatto-stats {
  background: var(--piatto-navy);
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-around;
  margin-top: 1.25rem;
  padding: 1.1rem 1rem;
  text-align: center;
}
.piatto-stats div { color: #fff; font-size: .95rem; }
.piatto-stats strong { color: var(--piatto-gold-light); font-size: 1.5rem; font-weight: 800; margin-right: .35rem; }

/* ---- Responsive: stack under 1024px --------------------------------------- */
@media (max-width: 1023px) {
  .piatto-hero { grid-template-columns: 1fr; }
  .piatto-hero-media { min-height: 190px; }
  .piatto-hero-inner { padding: 1.75rem 1.25rem; }
  .piatto-hero h1 { font-size: 1.5rem; }
  .piatto-lawyers { grid-template-columns: repeat(3, 1fr); gap: .6rem; }
  .piatto-lawyer img { height: 110px; }
  .piatto-blog img { height: 72px; width: 96px; }
}
@media (max-width: 560px) {
  .piatto-lawyers { grid-template-columns: 1fr 1fr; }
  .piatto-hero-actions .piatto-cta-red,
  .piatto-hero-actions .piatto-cta-gold { padding: .6rem 1rem; }
}

/* ---- Feed tabs + publisher (as in the design) --------------------------- */
.piatto-tabs {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  display: flex;
  gap: 1.5rem;
  padding: .85rem 1.1rem 0;
}
.piatto-tab {
  border-bottom: 3px solid transparent;
  color: #475569;
  font-size: .9rem;
  font-weight: 600;
  padding-bottom: .7rem;
  text-decoration: none;
}
.piatto-tab:hover { color: var(--piatto-navy); }
.piatto-tab.piatto-active { border-bottom-color: #2563eb; color: var(--piatto-navy); }
.piatto-publisher-btns { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .85rem; }
.piatto-pub-btn {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: var(--piatto-navy);
  font-size: .85rem;
  font-weight: 600;
  padding: .5rem .95rem;
  text-decoration: none;
}
.piatto-pub-btn--navy { background: var(--piatto-navy); border-color: var(--piatto-navy); color: #fff !important; }
.piatto-pub-btn--navy:hover { background: var(--piatto-navy-dark); }

/* ---- Round 4: match the design image (2026-11-27) ------------------------ */
/* Header: bell/mail as plain white icons (design has no pale square buttons) */
.piatto-topbar .site-topbar-icon {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #fff !important;
}
.piatto-topbar .site-topbar-icon:hover { background: rgba(255,255,255,.12) !important; }
/* Sidebar: hide the collapse button; active item navy like the design */
#site-sidebar button[aria-controls="site-sidebar"] { display: none; }
#site-sidebar .menu a[aria-current="page"] { background: var(--piatto-navy) !important; color: #fff !important; }
#site-sidebar .menu a[aria-current="page"] span { color: #fff !important; }
/* Sidebar: hide the extra Sngine menu items not in the design (People and
   Groups are hidden by the template filter — their URLs match Lawyers and
   My Groups — so they must not be hidden by URL here). */
#site-sidebar a[href$="/scheduled"],
#site-sidebar a[href$="/memories"],
#site-sidebar a[href$="/stories"],
#site-sidebar a[href$="/pages"],
#site-sidebar a[href$="/reels"],
#site-sidebar a[href$="/watch"] { display: none; }
/* Sidebar: no "See More" in the design */
#site-nav-more, #site-nav-more-toggle { display: none; }
/* Newsfeed: hide the stories strip (not in the design) */
.js_stories { display: none !important; }
/* Hero: gold Contact Us, outline Learn More, side by side */
.piatto-cta-outline {
  background: transparent !important;
  border: 2px solid #fff;
  border-radius: 6px;
  color: #fff !important;
  font-weight: 700;
  padding: .6rem 1.4rem;
  text-decoration: none;
  white-space: nowrap;
}
.piatto-cta-outline:hover { background: rgba(255,255,255,.12) !important; }
.piatto-hero-sub2 { margin-top: -.9rem; }
@media (min-width: 1024px) {
  .piatto-hero-actions { flex-wrap: nowrap; }
  .piatto-hero-actions .piatto-cta-gold,
  .piatto-hero-actions .piatto-cta-outline { padding: .65rem 1.25rem; }
}
/* Featured Lawyer card: white like the design, stats on one line */
.piatto-featured { background: #fff; }
.piatto-featured-stats { white-space: nowrap; }
/* Lawyers Directory: keep the specialism line on one line */
.piatto-lawyer > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Join Our Groups rows (right rail, like the design) */
.piatto-group-row { align-items: center; border-bottom: 1px solid #eef2f7; display: flex; gap: .75rem; padding: .65rem 0; }
.piatto-group-row:last-child { border-bottom: 0; }
.piatto-group-row > div { flex: 1; min-width: 0; }
.piatto-group-row a { color: var(--piatto-navy); font-weight: 600; text-decoration: none; }
.piatto-join-btn {
  background: #fff !important;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: var(--piatto-navy) !important;
  flex-shrink: 0;
  font-size: .8rem;
  font-weight: 700;
  padding: .3rem .8rem;
  text-decoration: none;
}
.piatto-join-btn:hover { border-color: var(--piatto-navy); }
/* Blog & Resources meta + view-all link */
.piatto-blog-meta { color: #64748b; font-size: .8rem; margin-top: .2rem; }
.piatto-view-all { color: var(--piatto-navy); display: inline-block; font-size: .85rem; font-weight: 700; margin-top: .7rem; text-decoration: none; }
/* Stats strip: full-width navy band like the design */
.piatto-stats { border-radius: 0; left: 50%; margin-left: -50vw; margin-right: -50vw; position: relative; width: 100vw; }
.piatto-stats div + div { border-left: 1px solid rgba(255,255,255,.25); padding-left: 2rem; }
