/* Prisma resident help center: shared styles */
:root {
  --navy: #0b2a42;
  --navy-deep: #08223a;
  --blue: #0b6cb0;
  --blue-link: #0a62a5;
  --blue-tint: #e3f2fb;
  --yellow: #fcc22d;
  --yellow-tint: #fff4d6;
  --text: #1a2633;
  --muted: #55606b;
  --border: #dde3e9;
  --page: #f3f5f7;
  --card: #ffffff;
  --radius: 10px;
  --wrap: 1164px;
  font-family: "Helvetica Neue", Arial, system-ui, sans-serif;
  color: var(--text);
}

* { box-sizing: border-box; }
/* Many readers are older or less confident online: 18px text, roomy lines. */
body { margin: 0; background: var(--page); font-size: 18px; line-height: 1.6; }
img, svg { display: block; }
/* Anything the page hides stays hidden, even if a style gives it a display. */
[hidden] { display: none !important; }
a { color: var(--blue-link); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
.icon { width: 20px; height: 20px; flex: none; }

/* Header */
.site-header { background: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 86px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--navy); }
.logo-word { display: flex; flex-direction: column; line-height: 1; }
.logo-word b { font-weight: 400; font-size: 32px; letter-spacing: -0.5px; }
.logo-word small { font-size: 9px; letter-spacing: 1.5px; color: #0069aa; text-align: right; margin-top: 2px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none;
  border-radius: 8px; padding: 12px 20px; border: 2px solid transparent; cursor: pointer;
}
.btn .icon { width: 20px; height: 20px; }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); padding: 10px 18px; font-size: 17px; min-height: 48px; }
.btn-outline:hover { background: var(--blue-tint); }
.btn-primary { background: var(--navy); color: #fff; font-size: 18px; min-height: 52px; padding: 12px 24px; }
.btn-primary:hover { background: var(--blue); color: #fff; }

/* Hero */
.hero {
  /* No overflow:hidden here: it would clip the search results dropdown.
     z-index keeps the dropdown above the page content that follows. */
  position: relative; z-index: 2; color: #fff; padding: 110px 0 96px;
  background: #0A2540;
}
.hero .wrap { position: relative; }

/* The Prisma gradient banner (build/lib/banner.mjs, drawn by app.js) is the
   background on every page: flowing on the home page, still on the slim
   inner-page strip. The art fills the hero and crops itself, so the hero
   still doesn't need overflow:hidden. Until the canvas draws (or where it
   can't), this still gradient in the same colours shows instead. */
.hero.home { min-height: 340px; display: flex; align-items: center; padding: 0; }
.hero.home .wrap { flex: 1; padding-top: 40px; padding-bottom: 40px; }
.hero-art {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(45% 85% at 82% 40%, rgba(255,198,41,.5), rgba(255,198,41,0) 70%),
    linear-gradient(115deg, #00263A 0%, #003f66 35%, #005f97 70%, #0a6aa6 100%);
}
.hero-gradient { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .6s ease; }
.hero-gradient.ready { opacity: 1; }
.hero h1, .hero-title { margin: 0 0 14px; font-size: 38px; font-weight: 700; line-height: 1.15; }
/* Inner pages: a slim search bar, so the page's own title leads. */
.hero.compact { padding: 22px 0 24px; }
.hero.compact .hero-title { font-size: 18px; margin-bottom: 10px; }
.search { display: flex; }
.search label { position: absolute; left: -9999px; }
.search input {
  flex: 1; min-width: 0; font: inherit; font-size: 18px; padding: 8px 12px;
  border: 0; border-radius: 0; color: var(--text);
}
.search button {
  display: flex; align-items: center; gap: 8px; padding: 0 22px; min-height: 52px;
  border: 0; background: var(--yellow); color: var(--navy); cursor: pointer;
  font: inherit; font-size: 18px; font-weight: 700;
}
.search button:hover { background: #f2b511; }
.search input { min-height: 52px; }
.search-results {
  position: absolute; left: 16px; right: 16px; top: 100%; z-index: 5; margin: 0; padding: 6px 0;
  list-style: none; background: #fff; border: 1px solid var(--border); border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  max-height: min(420px, 60vh); overflow-y: auto;
}
.search-wrap { position: relative; }
.search-results a { display: block; padding: 12px 16px 4px; color: var(--blue-link); font-size: 18px; }
.search-results a:hover, .search-results a:focus { background: var(--blue-tint); }
.search-results li > span { display: block; padding: 0 16px 12px; font-size: 15px; color: var(--muted); }
.search-results .none { padding: 12px 16px; color: var(--muted); font-size: 16px; }

/* Breadcrumb */
.crumbs { background: #fff; border-bottom: 1px solid var(--border); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 0 auto; padding: 8px 16px; font-size: 16px; }
.crumbs a { display: inline-block; padding: 8px 0; }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--muted); }
.crumbs [aria-current] { font-weight: 700; }

/* Layout */
main { padding: 34px 0 40px; }
.layout { display: grid; grid-template-columns: 300px 1fr; gap: 34px; align-items: start; }
/* The sidebar comes after the main content in the page (so screen readers
   reach the answer first) but is shown on the left. */
.layout > .side { order: -1; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }

/* Company features (see app.js): hold back what might not apply until we know, then drop it. */
.kb-pending [data-needs], .kb-pending [data-topic-needs] { visibility: hidden; }
.kb-off { display: none !important; }
.kb-notice { margin: 48px 0; padding: 36px 30px; text-align: center; font-size: 22px; line-height: 1.5; }
.kb-notice p { margin: 0; }
h2.section { font-size: 24px; margin: 0 0 22px; color: var(--navy); }

/* Home page: "Popular questions" with the language switch beside it. */
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 0 0 22px; }
.section-head h2.section { margin: 0; }
/* Language menu: the current language with its flag; the list drops down under it. */
.lang-menu { position: relative; }
.lang-menu summary {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 16px;
  border: 1px solid var(--border); border-radius: 10px; background: #fff; cursor: pointer; list-style: none;
  color: var(--navy); font-size: 18px; font-weight: 700; box-shadow: 0 1px 2px rgba(11, 42, 66, .06);
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after {
  content: ""; width: 8px; height: 8px; margin: -4px 4px 0 8px;
  border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.lang-menu[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.lang-menu summary:hover { background: var(--blue-tint); }
.lang-menu ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 20; min-width: 230px;
  list-style: none; margin: 0; padding: 6px 0; background: #fff;
  border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(11, 42, 66, .16);
}
.lang-menu li a {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 18px;
  color: var(--navy); font-size: 18px; text-decoration: none;
}
.lang-menu li a:hover, .lang-menu li a:focus { background: var(--blue-tint); }
.lang-menu li a[aria-current] { font-weight: 700; }
.lang-menu li a[aria-current]::after {
  content: ""; width: 6px; height: 12px; margin-inline-start: auto; margin-top: -3px;
  border: solid var(--blue); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.flag { flex: none; width: 27px; height: 18px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }

/* Sidebar */
.side { display: grid; gap: 22px; }
.topics h2 { margin: 0; padding: 18px 22px; font-size: 17px; border-bottom: 1px solid var(--border); }
.topics ul { list-style: none; margin: 0; padding: 0; }
.topic-link {
  display: flex; align-items: center; gap: 14px; padding: 14px 22px; min-height: 52px;
  color: var(--navy); font-weight: 700; text-decoration: none; font-size: 17px; line-height: 1.35;
}
.topic-link .icon { color: var(--blue); width: 20px; height: 20px; }
.topic-link:hover { background: var(--blue-tint); color: var(--navy); }
.topic-link.current { background: var(--blue-tint); box-shadow: inset 4px 0 0 var(--blue); }

/* Article list */
.article-list { list-style: none; margin: 0 0 40px; padding: 0; display: grid; gap: 14px; }
.article-item { position: relative; display: flex; gap: 22px; align-items: center; padding: 22px 30px 22px 26px; }
.article-item > .icon { color: var(--blue); }
.article-item .body { flex: 1; }
.article-item h3 { margin: 0 0 4px; font-size: 19px; line-height: 1.35; }
.article-item h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.article-item p { margin: 0; color: var(--muted); font-size: 16px; }
.article-item > .arrow { color: var(--blue); width: 18px; }
.article-item:hover { border-color: var(--blue); }
.tag { display: inline-block; margin-top: 8px; background: var(--blue-tint); color: var(--navy); font-size: 14px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }

/* Topic hero */
.topic-hero {
  position: relative; overflow: hidden; border-radius: 16px; padding: 24px 28px; color: #fff; margin-bottom: 32px;
  display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: center;
  background:
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(252,194,45,.55), transparent 60%),
    linear-gradient(120deg, #082440 0%, #0e3d63 55%, #13649e 100%);
}
.topic-hero .badge { grid-row: span 2; width: 52px; height: 52px; border-radius: 12px; background: rgba(255,255,255,.12); display: grid; place-items: center; color: var(--yellow); }
.topic-hero .badge .icon { width: 26px; height: 26px; }
.topic-hero h1 { margin: 0 0 4px; font-size: 36px; font-weight: 700; line-height: 1.15; }
.topic-hero p { margin: 0; font-size: 18px; }

/* Topic page: How-to guides and Frequently asked questions as plain link lists */
.topic-groups { padding: 4px 30px; margin-bottom: 32px; }
.doc-group { padding: 24px 0; }
.doc-group + .doc-group { border-top: 1px solid var(--border); }
.doc-group h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 22px; color: var(--navy); }
.doc-group h2 .icon { width: 22px; height: 22px; color: var(--blue); flex: none; }
.doc-group > p { margin: 0 0 12px; color: var(--muted); font-size: 17px; }
/* Each row is one large target: the whole line is clickable, 48px or taller. */
.link-list { margin: 0; padding: 0; list-style: none; }
.link-list li + li { border-top: 1px solid var(--border); }
.link-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 52px; padding: 10px 6px; font-size: 18px; line-height: 1.4;
}
.link-list a::after {
  content: ""; flex: none; width: 9px; height: 9px; margin-right: 6px;
  border: solid var(--blue); border-width: 2.5px 2.5px 0 0; transform: rotate(45deg);
}
.link-list a:hover { background: var(--blue-tint); }

/* Topic menu for narrow screens, where the sidebar is hidden */
.topic-jump { display: none; margin-bottom: 20px; }
.topic-jump summary {
  display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none;
  padding: 14px 18px; font-weight: 700; color: var(--navy);
}
.topic-jump summary::-webkit-details-marker { display: none; }
.topic-jump summary::after {
  content: ""; width: 8px; height: 8px; margin-top: -4px;
  border: solid var(--blue); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.topic-jump[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.topic-jump ul { list-style: none; margin: 0; padding: 0 0 8px; border-top: 1px solid var(--border); }



/* Home */
.quick { list-style: none; margin: 0 0 50px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.quick a {
  position: relative; display: block; height: 100%; padding: 20px; min-height: 182px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--navy); text-decoration: none; font-weight: 700; font-size: 18px; line-height: 1.35;
}
.quick a:hover { border-color: var(--blue); box-shadow: 0 4px 14px rgba(11,42,66,.08); }
.quick .ico { width: 47px; height: 47px; border-radius: 9px; display: grid; place-items: center; background: var(--blue-tint); color: var(--blue); margin-bottom: 30px; }
.quick .arrow { position: absolute; top: 22px; right: 20px; color: var(--blue); width: 18px; }
/* Home topic tiles: one big link each (icon, name, one line about it). */
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; margin: 0; padding: 0; }
.topic-tile {
  /* align-content: start keeps the summary right under the title, however
     much taller a neighbouring tile makes this one. */
  position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: start;
  align-content: start; height: 100%; padding: 22px; text-decoration: none; color: var(--text);
}
.topic-tile:hover { border-color: var(--blue); box-shadow: 0 4px 14px rgba(11,42,66,.08); color: var(--text); }
.topic-tile h3 { margin: 4px 0 6px; font-size: 21px; color: var(--navy); line-height: 1.25; text-decoration: underline; text-underline-offset: 3px; }
.topic-tile p { grid-column: 2; margin: 0; font-size: 16px; color: var(--muted); }
.ico-sm { grid-row: span 2; width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-tint); color: var(--blue); flex: none; }
.ico-sm .icon { width: 24px; height: 24px; }

/* Article: large, plain text in a comfortable reading width (about 70
   characters a line), numbered steps that stand out, and warnings that look
   like warnings. */
.article { padding: 34px 36px 30px; }
.article > *, .article .steps > li > div { max-width: 40em; }
.article h1 { margin: 0 0 8px; font-size: 34px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.article .meta { margin: 0 0 18px; color: var(--muted); font-size: 16px; }
.article .views { white-space: nowrap; }
.article .views .icon { display: inline-block; width: 18px; height: 18px; vertical-align: -3px; margin-inline-end: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.article .lede { margin: 0 0 18px; font-size: 19px; }
.tools { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.article p, .article li { font-size: 18px; }
.article ul, .article ol { padding-left: 26px; }
.article li + li { margin-top: 6px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps > li + li { margin-top: 0; }
.step { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 4px 0 24px; border-bottom: 1px solid var(--border); margin-bottom: 22px; }
.step:last-child { border-bottom: 0; }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--yellow); font-weight: 700; font-size: 19px; display: grid; place-items: center; }
.article .step-title { margin: 4px 0 8px; font-size: 21px; line-height: 1.3; color: var(--navy); }
.step > div > p { margin: 0 0 10px; }
.step figure, .intro figure, .extra figure { margin: 14px 0 0; text-align: left; }
.step figure img, .intro figure img, .extra figure img { max-width: 100%; height: auto; border: 1px solid var(--border); border-radius: 8px; display: block; }
.step figcaption { font-size: 15px; color: var(--muted); margin-top: 8px; }

/* Comparison tables from WordPress */
figure:has(> table) { margin: 16px 0; overflow-x: auto; }
.article table { width: 100%; border-collapse: collapse; font-size: 17px; }
.article th, .article td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.article th { background: var(--blue-tint); color: var(--navy); }

/* Callouts: WordPress one-cell boxes ("Important:", "Tip:") become these. */
.callout { display: grid; grid-template-columns: 30px 1fr; gap: 12px; margin: 16px 0; padding: 14px 18px; border-radius: 8px; border-left: 5px solid; font-size: 18px; }
.callout::before { content: "!"; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 17px; line-height: 1; }
.callout-warn { background: var(--yellow-tint); border-color: var(--yellow); }
.callout-warn::before { background: var(--yellow); color: var(--navy); }
.callout-tip { background: var(--blue-tint); border-color: var(--blue); }
.callout-tip::before { content: "i"; background: var(--blue); color: #fff; font-family: Georgia, serif; }
.callout > * { margin: 0; }

.intro { margin-bottom: 24px; }
.intro p { margin: 0 0 12px; }
.extra { border-top: 1px solid var(--border); padding-top: 20px; margin-bottom: 22px; }
.extra h2 { margin: 0 0 10px; font-size: 22px; color: var(--navy); }
.done { display: flex; align-items: center; gap: 10px; background: #e7f6ec; border-left: 5px solid #2e8b57; border-radius: 8px; padding: 14px 18px; font-weight: 700; font-size: 19px; margin-bottom: 20px; }
.done .icon { width: 22px; height: 22px; color: #2e8b57; }
.feedback { border-top: 1px solid var(--border); padding-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 18px; font-weight: 700; }
.feedback .btn-outline { min-width: 88px; }
.feedback [role="status"] { flex-basis: 100%; font-weight: 400; color: var(--text); }
.feedback [role="status"]:empty { display: none; }
.back { margin: 26px 0 0; }
.related h2 { font-size: 22px; margin: 34px 0 14px; color: var(--navy); }
.related .article-item { padding: 18px 22px; gap: 16px; }
.related .article-item h3 { font-size: 18px; }
.related .article-item p { font-size: 16px; }
.related .tag { font-size: 14px; }

/* Search results page */
.search-page { padding: 30px 36px; }
.search-page h1 { margin: 0 0 6px; font-size: 32px; color: var(--navy); }
.search-page .summary { margin: 0 0 22px; color: var(--muted); }
.search-page .article-list { margin-bottom: 10px; }
.search-help h2 { font-size: 22px; color: var(--navy); margin: 26px 0 12px; }

/* Footer */
.site-footer { background: var(--navy); color: #fff; padding: 30px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.site-footer .logo { color: #fff; }
.site-footer .logo-word b { font-size: 28px; }
.site-footer .logo-word small { color: #39b5e5; font-size: 8px; }
.site-footer nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0; }

/* Responsive */
@media (max-width: 1100px) {
  .quick { grid-template-columns: repeat(3, 1fr); }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  /* The topic menu moves to .topic-jump at the top of the page, so the
     sidebar would only repeat it at the page end. */
  .layout > .side { display: none; }
  .topic-jump { display: block; }
}
@media (max-width: 640px) {
  .topic-groups { padding: 4px 18px; }
  .hero { padding: 56px 0 52px; }
  .hero.home { min-height: 280px; padding: 0; }
  .hero h1, .hero-title { font-size: 28px; }
  .site-header .wrap { height: 70px; }
  .logo-word b { font-size: 26px; }
  .quick { grid-template-columns: 1fr 1fr; gap: 12px; }
  .quick a { min-height: 150px; font-size: 16px; padding: 16px; }
  .quick .ico { margin-bottom: 20px; }
  .topic-hero h1 { font-size: 28px; }
  .topic-hero { padding: 20px; column-gap: 14px; }
  .topic-hero p { font-size: 16px; }
  .topic-hero .badge { width: 44px; height: 44px; }
  .hero.compact { padding: 16px 0 18px; }
  .topic-grid { grid-template-columns: 1fr; }
  .article-item { padding: 18px; gap: 14px; }
  .article, .search-page { padding: 24px 18px 22px; }
  .article h1, .search-page h1 { font-size: 28px; }
  .step { grid-template-columns: 38px 1fr; gap: 12px; }
  .step-num { width: 34px; height: 34px; font-size: 17px; }
  .article .step-title { font-size: 20px; margin-top: 2px; }
  .search button { padding: 0 16px; }
  .site-footer nav { margin-left: 0; }
  .crumbs ol { padding: 4px 16px; }
}

@media print {
  .hero, .crumbs, .side, .tools, .feedback, .related, .back, .topic-jump, .site-footer nav { display: none !important; }
  body { background: #fff; }
  .layout { display: block; }
  .card { border: 0; }
  .step { break-inside: avoid; }
}

/* Right-to-left languages (Arabic): mirror what points or sits on one side. */
[dir="rtl"] .skip, [dir="rtl"] .search label { left: auto; right: -9999px; }
[dir="rtl"] .skip:focus { right: 16px; }
[dir="rtl"] .logo-word small { text-align: left; }
[dir="rtl"] .crumbs li + li::before { content: "‹"; margin-right: 0; margin-left: 8px; }
[dir="rtl"] .link-list a::after { margin-right: 0; margin-left: 6px; transform: rotate(-135deg); }
[dir="rtl"] .topic-link.current { box-shadow: inset -4px 0 0 var(--blue); }
[dir="rtl"] .arrow { transform: scaleX(-1); }
[dir="rtl"] .quick .arrow { right: auto; left: 20px; }
[dir="rtl"] .article ul, [dir="rtl"] .article ol { padding-left: 0; padding-right: 26px; }
[dir="rtl"] .step figure, [dir="rtl"] .intro figure, [dir="rtl"] .extra figure,
[dir="rtl"] .article th, [dir="rtl"] .article td { text-align: right; }
[dir="rtl"] .callout, [dir="rtl"] .done { border-left-width: 0; border-right-width: 5px; border-right-style: solid; }
[dir="rtl"] .done { border-right-color: #2e8b57; }
[dir="rtl"] .site-footer nav { margin-left: 0; margin-right: auto; }
[dir="rtl"] .lang-menu summary::after { margin: -4px 8px 0 4px; }
[dir="rtl"] .lang-menu li a[aria-current]::after { transform: rotate(45deg) scaleX(-1); }
