:root {
  --blue: #147a45;
  --blue-light: #3ccf85;
  --navy: #03041c;
  --navy-2: #0d2a4f;
  --bg: #ffffff;
  --bg-alt: #f1f8f4;
  --surface: #ffffff;
  --text: #1c2233;
  --muted: #5b6478;
  --border: #dcebe2;
  --shadow: 0 1px 2px rgba(3, 4, 28, .06), 0 8px 24px rgba(3, 4, 28, .06);
  --radius: 14px;
  --max: 1120px;
  --font: "Source Sans 3", "Source Sans Pro", "Segoe UI", Helvetica, Arial, sans-serif;
}
:root[lang="ja"] {
  --font: "Source Sans 3", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}
:root[lang="zh-CN"] {
  --font: "Source Sans 3", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #060b14;
    --bg-alt: #0a1520;
    --surface: #0f1d29;
    --text: #e6efea;
    --muted: #a2b5ad;
    --border: #1d3340;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); }
img, svg { display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(3, 4, 28, .92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .2px; }
.brand-logo { height: 28px; width: auto; }
.brand small { font-weight: 400; color: #93e2b6; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .25); }
.nav { display: flex; gap: 18px; margin-left: auto; }
.nav a { color: #d7ebe0; text-decoration: none; font-size: 15px; }
.nav a:hover { color: #fff; }
.lang { display: flex; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; overflow: hidden; font-size: 13px; }
.lang a, .lang span { padding: 4px 12px; color: #d7ebe0; text-decoration: none; }
.lang [aria-current] { background: var(--blue); color: #fff; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(110, 230, 150, .55) 0%, rgba(60, 170, 110, .35) 28%, transparent 55%),
    linear-gradient(135deg, var(--navy) 0%, #0b1f4a 50%, #1f6b55 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0 0 0 55%;
  background-image: radial-gradient(rgba(255, 255, 255, .12) 1.4px, transparent 1.4px);
  background-size: 22px 22px; pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding-top: 96px; padding-bottom: 104px; }
.eyebrow { margin: 0 0 14px; font-size: 14px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: #93e2b6; }
.hero h1 { margin: 0 0 18px; font-size: clamp(40px, 6vw, 64px); line-height: 1.08; font-weight: 700; }
.hero p.lead { margin: 0 0 32px; max-width: 34em; font-size: 20px; color: #d7ebe0; }
/* Hero mark: the Liferay logo's pattern of squares (4 x 4, the anti-diagonal empty) on a translucent tile that
   fades from the accent green to clear; the squares fade from white (top left) to faint (bottom right). */
.hero-mark {
  --mark: 240px;
  justify-self: end; width: var(--mark); height: var(--mark); box-sizing: border-box;
  padding: calc(var(--mark) * 24 / 162);
  display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 1fr); gap: calc(var(--mark) * 7 / 162);
  border-radius: calc(var(--mark) * 20 / 162);
  background: linear-gradient(135deg, rgba(23, 138, 78, .95) 0%, rgba(23, 138, 78, .55) 55%, rgba(60, 207, 133, .15) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 24px 60px rgba(0, 0, 0, .25);
}
.hero-mark span { border-radius: 12%; }
.hero-mark span:nth-child(4), .hero-mark span:nth-child(7), .hero-mark span:nth-child(10), .hero-mark span:nth-child(13) { visibility: hidden; }
.hero-mark span:nth-child(1){background:rgba(255,255,255,0.95)}
.hero-mark span:nth-child(2){background:rgba(255,255,255,0.75)}
.hero-mark span:nth-child(3){background:rgba(255,255,255,0.55)}
.hero-mark span:nth-child(5){background:rgba(255,255,255,0.75)}
.hero-mark span:nth-child(6){background:rgba(255,255,255,0.55)}
.hero-mark span:nth-child(8){background:rgba(255,255,255,0.28)}
.hero-mark span:nth-child(9){background:rgba(255,255,255,0.55)}
.hero-mark span:nth-child(11){background:rgba(255,255,255,0.28)}
.hero-mark span:nth-child(12){background:rgba(255,255,255,0.2)}
.hero-mark span:nth-child(14){background:rgba(255,255,255,0.28)}
.hero-mark span:nth-child(15){background:rgba(255,255,255,0.2)}
.hero-mark span:nth-child(16){background:rgba(255,255,255,0.14)}

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  background: var(--blue); color: #fff; border: 1px solid var(--blue);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #0047d6; transform: translateY(-1px); }
.btn.ghost { background: transparent; border-color: rgba(255, 255, 255, .4); }
.btn.ghost:hover { background: rgba(255, 255, 255, .1); }
.btn svg { width: 18px; height: 18px; }

/* Sections */
section { padding: 88px 0; scroll-margin-top: 64px; }
section.alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 { margin: 0 0 10px; font-size: clamp(28px, 3.6vw, 38px); line-height: 1.2; }
.section-head p { margin: 0; color: var(--muted); font-size: 18px; }
.kicker { display: inline-block; margin-bottom: 10px; font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); }

/* Concepts */
.concepts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.concepts li { grid-column: span 2; }
.concepts li:nth-child(4) { grid-column: 2 / span 2; }
.card {
  height: 100%; padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.icon { width: 52px; height: 52px; border-radius: 12px; background: var(--blue); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.card .num { font-size: 13px; font-weight: 700; color: var(--blue); letter-spacing: .12em; }
.card h3 { margin: 4px 0 10px; font-size: 21px; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); }

/* Resources */
.resources { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.resource { display: flex; flex-direction: column; }
.resource .tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: rgba(20, 122, 69, .1); color: var(--blue); margin-bottom: 14px; }
.resource.soon .tag { background: var(--bg-alt); color: var(--muted); border: 1px solid var(--border); }
.resource p { flex: 1; }
.resource .meta { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--muted); }
.resource a.more { margin-top: 18px; font-weight: 600; text-decoration: none; }
.resource a.more:hover { text-decoration: underline; }

/* Subscribe steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 0 0 36px; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; }
.steps .card::before {
  content: counter(step); display: grid; place-items: center;
  width: 36px; height: 36px; margin-bottom: 14px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700;
}
@media (prefers-color-scheme: dark) { .steps .card::before { background: var(--blue); } }
.steps h3 { margin: 0 0 6px; font-size: 19px; }
.steps code { font-family: inherit; font-weight: 600; color: var(--text); background: var(--bg-alt); padding: 1px 6px; border-radius: 6px; border: 1px solid var(--border); }

/* Contact CTA */
.cta {
  color: #fff; border-radius: 20px; padding: 56px;
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(110, 230, 150, .4) 0%, transparent 60%),
    linear-gradient(120deg, var(--navy) 0%, #0b1f4a 50%, #1f6b55 100%);
  display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
}
.cta h2 { margin: 0 0 8px; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; }
.cta p { margin: 0; color: #d7ebe0; font-size: 18px; }
.cta .btn { background: #fff; color: var(--navy); border-color: #fff; }
.cta .btn:hover { background: #e3f6ea; }

/* Footer */
.site-footer { padding: 36px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-brand img { height: 32px; width: auto; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--blue); }

/* Disclaimer */
:root { --warn-bg: #fff6e0; --warn-border: #f0a202; --warn-text: #6b4100; }
@media (prefers-color-scheme: dark) { :root { --warn-bg: #2b2210; --warn-border: #f0a202; --warn-text: #ffd98a; } }
.notice {
  display: flex; gap: 16px; align-items: flex-start;
  margin: -12px 0 32px; padding: 18px 22px;
  background: var(--warn-bg); color: var(--warn-text);
  border: 1px solid var(--warn-border); border-left-width: 6px; border-radius: 12px;
}
.notice svg { flex: none; width: 28px; height: 28px; margin-top: 2px; fill: none; stroke: var(--warn-border); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.notice strong { display: block; font-size: 18px; margin-bottom: 4px; }
.notice p { margin: 0; font-size: 16px; }
.disclaimer { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* User groups and events */
.subhead { margin: 56px 0 20px; }
.subhead h3 { margin: 0 0 6px; font-size: 24px; }
.subhead p { margin: 0; color: var(--muted); }
.groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card.group { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text); transition: border-color .15s ease, transform .15s ease; }
.card.group:hover { border-color: var(--blue); transform: translateY(-2px); }
.group .region { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.group strong { font-size: 18px; line-height: 1.35; flex: 1; }
.group .more { margin-top: 8px; font-weight: 600; color: var(--blue); }
.card.events { display: flex; align-items: center; gap: 20px; margin-top: 20px; }
.card.events .icon { flex: none; margin: 0; }
.card.events h3 { margin: 0 0 4px; font-size: 20px; }
.card.events p { margin: 0; color: var(--muted); }
.card.events > div:nth-child(2) { flex: 1; }
@media (max-width: 960px) { .groups { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .groups { grid-template-columns: 1fr; } .card.events { flex-direction: column; align-items: flex-start; } }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 72px; }
  .hero-mark { display: none; }
  .concepts { grid-template-columns: repeat(2, 1fr); }
  .concepts li, .concepts li:nth-child(4) { grid-column: auto; }
  .concepts li:nth-child(5) { grid-column: 1 / -1; }
  .resources, .steps { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; padding: 36px; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  .brand small { display: none; }
  .concepts { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .wrap { padding: 0 16px; }
  .cta { padding: 28px 22px; }
}
:root[lang="ja"] .hero h1, :root[lang="zh-CN"] .hero h1 { font-size: clamp(32px, 6vw, 60px); }
.not-found { min-height: calc(100vh - 64px); display: flex; align-items: center; }
.not-found .wrap { width: 100%; grid-template-columns: 1fr; }
:root[lang="ja"] .hero h1 { word-break: keep-all; overflow-wrap: anywhere; }

/* Knowledge base */
.resource.app .app-shot { width: calc(100% + 56px); height: auto; margin: -28px -28px 20px; border-radius: var(--radius) var(--radius) 0 0; border-bottom: 1px solid var(--border); aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }
.kb-all { margin-top: 28px; }
.hero.page .wrap { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 64px; }
.hero.page h1 { font-size: clamp(34px, 5vw, 52px); }
.crumbs { margin: 0 0 18px; font-size: 14px; color: #93e2b6; }
.crumbs a { color: #d7ebe0; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span { padding: 0 8px; opacity: .6; }
.shot { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.shot-caption { margin: 12px 0 0; font-size: 14px; color: var(--muted); text-align: center; }
.doc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card.doc { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text); transition: border-color .15s ease, transform .15s ease; }
.card.doc:hover { border-color: var(--blue); transform: translateY(-2px); }
.card.doc strong { font-size: 19px; }
.card.doc span { color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 32px; list-style: none; margin: 0; padding: 0; }
.features li { padding-left: 28px; position: relative; color: var(--muted); }
.features li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 4px; background: var(--blue); }
.features strong { color: var(--text); }
.features code, .prose code { font-size: .92em; background: var(--bg-alt); padding: 1px 6px; border-radius: 6px; border: 1px solid var(--border); }
.table-wrap { overflow-x: auto; }
.versions { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.versions th, .versions td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.versions th { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--bg-alt); }
.versions tr:last-child td { border-bottom: 0; }
.setup { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.setup li { counter-increment: step; display: grid; grid-template-columns: 36px 1fr; gap: 16px; align-items: start; }
.setup li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; }
@media (prefers-color-scheme: dark) { .setup li::before { background: var(--blue); } }
.setup p { margin: 0; color: var(--muted); }
.setup strong { color: var(--text); }
.kb-cat { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; align-items: start; }
.kb-cat + .kb-cat { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--border); }
.kb-cat h3 { margin: 0 0 6px; font-size: 24px; }
.kb-cat > div > p { margin: 0; color: var(--muted); }
.kb-cat .resources { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) {
  .doc-cards, .kb-cat, .kb-cat .resources { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
}

/* Docs pages */
:root { --code-bg: #f5f9f7; --c-note: #2b6cb0; --c-important: #7a3cff; --c-tip: #0f8a4b; --c-warning: #d1242f; }
@media (prefers-color-scheme: dark) { :root { --code-bg: #0a1520; --c-note: #7fb0f0; --c-important: #b394ff; --c-tip: #4cc98a; --c-warning: #ff7b72; } }
.docs { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; padding-top: 40px; padding-bottom: 72px; }
.docs-nav { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 104px); overflow-y: auto; font-size: 15px; }
.docs-nav summary { font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); list-style: none; cursor: default; margin-bottom: 12px; }
.docs-nav summary::-webkit-details-marker { display: none; }
.docs-nav ul { list-style: none; margin: 0; padding: 0; }
.docs-nav li { margin: 0; }
.docs-nav a { display: block; padding: 5px 10px; border-radius: 8px; color: var(--text); text-decoration: none; line-height: 1.4; }
.docs-nav a:hover { background: var(--bg-alt); color: var(--blue); }
.docs-nav a[aria-current="page"] { background: rgba(20, 122, 69, .1); color: var(--blue); font-weight: 600; }
.docs-nav-list > li > a { font-weight: 600; margin-top: 4px; }
.docs-nav-list > li > ul { display: none; margin: 2px 0 8px 10px; padding-left: 8px; border-left: 1px solid var(--border); }
.docs-nav-list > li.open > ul { display: block; }
.docs-nav-list > li > ul a { color: var(--muted); font-size: 14.5px; }
.docs-main { min-width: 0; }
.docs-crumbs { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.docs-crumbs a { color: var(--muted); text-decoration: none; }
.docs-crumbs a:hover { color: var(--blue); text-decoration: underline; }
.docs-crumbs span { padding: 0 8px; opacity: .6; }
.prose { max-width: 780px; }
.prose h1 { margin: 0 0 18px; font-size: clamp(30px, 4vw, 42px); line-height: 1.15; }
.prose h2 { margin: 44px 0 12px; font-size: 27px; line-height: 1.25; scroll-margin-top: 80px; }
.prose h3 { margin: 30px 0 8px; font-size: 21px; scroll-margin-top: 80px; }
.prose h4 { margin: 24px 0 6px; font-size: 18px; scroll-margin-top: 80px; }
.prose .anchor { margin-left: 8px; color: var(--border); text-decoration: none; font-weight: 400; opacity: 0; }
.prose h2:hover .anchor, .prose h3:hover .anchor, .prose h4:hover .anchor, .prose .anchor:focus { opacity: 1; color: var(--muted); }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin: 6px 0; }
.prose li > p { margin: 0 0 10px; }
.prose li > pre { margin: 8px 0 12px; }
.prose pre { margin: 0 0 18px; padding: 14px 18px; background: var(--code-bg); border: 1px solid var(--border); border-radius: 10px; overflow-x: auto; font-size: 14px; line-height: 1.55; }
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.prose pre code { overflow-wrap: normal; }
.prose figure { margin: 8px 0 24px; }
.prose img { max-width: 100%; height: auto; }
.prose .table-wrap { margin: 0 0 20px; }
.prose .versions th { white-space: nowrap; }
.prose .doc-cards { margin: 8px 0 28px; grid-template-columns: repeat(2, 1fr); }
.prose .card.doc { padding: 20px 22px; }
.prose .card.doc strong { font-size: 17px; }
.callout { margin: 0 0 18px; padding: 14px 18px; border-left: 4px solid var(--c); border-radius: 8px; background: color-mix(in srgb, var(--c) 7%, var(--surface)); --c: var(--c-note); }
.callout-important { --c: var(--c-important); }
.callout-tip { --c: var(--c-tip); }
.callout-warning { --c: var(--c-warning); }
.callout p { margin: 0 0 6px; }
.callout p:last-child { margin: 0; }
.callout-title { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c); }
.toc { margin: 0 0 28px; padding: 16px 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-alt); font-size: 15.5px; }
.toc-title { margin: 0 0 6px !important; font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.toc ul { margin: 0 !important; padding-left: 18px; }
.toc li { margin: 3px 0; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 780px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }
.pager a { display: flex; flex-direction: column; padding: 14px 18px; border: 1px solid var(--border); border-radius: 12px; text-decoration: none; font-weight: 600; background: var(--surface); }
.pager a:hover { border-color: var(--blue); }
.pager a span { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.pager .next { grid-column: 2; text-align: right; }
@media (max-width: 960px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 20px; }
  .docs-nav { position: static; max-height: none; padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-alt); }
  .docs-nav summary { cursor: pointer; margin: 0; list-style: disclosure-closed; }
  .docs-nav[open] summary { margin-bottom: 10px; list-style: disclosure-open; }
  .prose .doc-cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pager .next { grid-column: 1; } }

/* Shared header: current page and search */
.nav a[aria-current="page"] { color: #fff; font-weight: 600; }
.search-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06);
  color: #d7ebe0; font: inherit; font-size: 14px; cursor: pointer;
}
.search-btn:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.search-btn:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 2px; }
.search-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.search-dialog {
  width: min(720px, calc(100vw - 32px)); max-height: min(80vh, 760px); margin: 10vh auto auto; padding: 0;
  border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--text); box-shadow: 0 24px 64px rgba(3, 4, 28, .35);
  --pagefind-ui-scale: .9; --pagefind-ui-primary: var(--blue); --pagefind-ui-text: var(--text);
  --pagefind-ui-background: var(--surface); --pagefind-ui-border: var(--border); --pagefind-ui-tag: var(--bg-alt);
  --pagefind-ui-border-width: 1px; --pagefind-ui-border-radius: 10px; --pagefind-ui-font: var(--font);
}
.search-dialog::backdrop { background: rgba(3, 4, 28, .55); backdrop-filter: blur(2px); }
.search-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.search-close { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.search-close:hover { color: var(--text); background: var(--bg-alt); }
#site-search { padding: 16px 18px 20px; }
.search-note { margin: 0; color: var(--muted); }
@media (max-width: 720px) {
  .lang { margin-left: 0; }
  .search-btn { margin-left: auto; padding: 0 10px; }
  .search-btn span { display: none; }
  .search-dialog { margin-top: 16px; max-height: calc(100vh - 32px); }
}
.search-dialog .pagefind-ui__search-input { font-family: var(--font); font-weight: 600; color: var(--text); background: var(--bg-alt); }
.search-dialog .pagefind-ui__search-input::placeholder { color: var(--muted); opacity: 1; }
.search-dialog .pagefind-ui__search-clear { font-family: var(--font); color: var(--muted); background: transparent; border: 0; }
.search-dialog .pagefind-ui__search-clear:hover { color: var(--text); }
.search-dialog .pagefind-ui__result-link { color: var(--text); text-decoration: none; }
.search-dialog .pagefind-ui__result-link:hover { color: var(--blue); text-decoration: underline; }
.search-dialog .pagefind-ui__result-excerpt { color: var(--muted); }
.search-dialog mark { background: rgba(20, 122, 69, .16); color: var(--text); border-radius: 3px; padding: 0 2px; }
@media (prefers-color-scheme: dark) { .search-dialog mark { background: rgba(60, 207, 133, .25); } }

/* App docs built with Jekyll (templates/app-docs): kramdown's table of contents, callouts and screenshots */
.prose #markdown-toc { margin: 0 0 28px; padding: 16px 20px 16px 38px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-alt); font-size: 15.5px; }
.prose #markdown-toc::before { content: "On this page"; display: block; margin: 0 0 6px -18px; font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.prose #markdown-toc ul { margin: 0; padding-left: 18px; }
.prose #markdown-toc li { margin: 3px 0; }
.prose #markdown-toc a { text-decoration: none; }
.prose #markdown-toc a:hover { text-decoration: underline; }
.prose p.note, .prose p.important, .prose p.tip, .prose p.warning {
  margin: 0 0 18px; padding: 14px 18px; border-left: 4px solid var(--c); border-radius: 8px;
  background: color-mix(in srgb, var(--c) 7%, var(--surface)); --c: var(--c-note);
}
.prose p.important { --c: var(--c-important); }
.prose p.tip { --c: var(--c-tip); }
.prose p.warning { --c: var(--c-warning); }
.prose p.note::before, .prose p.important::before, .prose p.tip::before, .prose p.warning::before {
  display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c);
}
.prose p.note::before { content: "Note"; }
.prose p.important::before { content: "Important"; }
.prose p.tip::before { content: "Tip"; }
.prose p.warning::before { content: "Warning"; }
.prose img.screenshot { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 20px; display: block; overflow-x: auto; }
.prose table th, .prose table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose table th { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--bg-alt); white-space: nowrap; }
.prose .versions { display: table; }

/* Menu button (shared header): below 1120px the menu links fold into a panel, so the header never wraps */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nav a, .search-btn, .lang a, .lang span, .brand, .brand small { white-space: nowrap; }
.lang, .search-btn, .brand { flex: none; }
.menu-btn { display: none; }
@media (max-width: 1119px) {
  .nav { display: none; }
  .menu-btn {
    display: inline-grid; place-items: center; width: 36px; height: 34px; margin-left: auto; padding: 0;
    border-radius: 10px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: #d7ebe0; cursor: pointer;
  }
  .menu-btn:hover { background: rgba(255, 255, 255, .14); color: #fff; }
  .menu-btn:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 2px; }
  .menu-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
  .search-btn { margin-left: 0; }
  .site-header .wrap { gap: 10px; }
  .lang { flex: none; }
  .lang a, .lang span { padding: 4px 9px; white-space: nowrap; }
  .brand { flex: none; }
  .site-header.menu-open .nav {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 64px; left: 0; right: 0; margin: 0;
    padding: 8px 16px 14px; background: rgba(3, 4, 28, .98); border-bottom: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 16px 32px rgba(3, 4, 28, .35);
  }
  .site-header.menu-open .nav a { padding: 12px 4px; font-size: 17px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .site-header.menu-open .nav a:last-child { border-bottom: 0; }
}
@media (max-width: 374px) {
  .site-header .wrap { gap: 7px; }
  .brand-logo { height: 22px; }
  .menu-btn, .search-btn { width: 32px; height: 32px; }
  .search-btn { padding: 0; justify-content: center; }
  .lang a, .lang span { padding: 4px 6px; }
}

/* Marketplace app showcases (homepages and the Marketplace apps page) */
.showcases { display: grid; gap: 28px; }
.showcase {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center;
  padding: 32px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  scroll-margin-top: 88px;
}
.showcase-shot { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 12px 32px rgba(3, 4, 28, .16); }
.showcase-shot img { width: 100%; height: auto; transition: transform .3s ease; }
.showcase-shot:hover img { transform: scale(1.02); }
.showcase-body .tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: rgba(20, 122, 69, .1); color: var(--blue); }
.showcase-body h3 { margin: 12px 0 2px; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; }
.showcase-body .showcase-tagline { margin: 0 0 12px; font-size: 19px; font-weight: 600; color: var(--blue); }
.showcase-body > p { margin: 0 0 14px; color: var(--muted); }
.showcase-points { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.showcase-points li { position: relative; padding-left: 28px; color: var(--muted); }
.showcase-points li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--blue);
}
.showcase-points li::after { content: ""; position: absolute; left: 6px; top: calc(.3em + 4px); width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.showcase-points strong { color: var(--text); }
.showcase-body .meta { margin: 0 0 18px; font-size: 14px; font-weight: 600; color: var(--muted); }
.showcase-body .btns { margin-bottom: 14px; }
.showcase-powered { display: flex; align-items: center; gap: 16px; margin: 0 0 16px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-alt); }
.showcase-powered > a { flex: none; line-height: 0; }
.showcase-powered img { width: 64px; height: 64px; }
.showcase-powered p { margin: 0; font-size: 15px; color: var(--muted); }
.showcase-powered strong { color: var(--text); }
.showcase-powered p a { font-weight: 600; text-decoration: none; }
.showcase-powered p a:hover { text-decoration: underline; }
.showcase-body a.more { font-weight: 600; text-decoration: none; }
.showcase-body a.more:hover { text-decoration: underline; }
.btn.outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn.outline:hover { background: rgba(20, 122, 69, .08); }
@media (prefers-color-scheme: dark) { .btn.outline { color: #93e2b6; border-color: #3ccf85; } .btn.outline:hover { background: rgba(60, 207, 133, .14); } }
.showcase.full { align-items: start; }
.showcase-features, .showcase-gallery { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid var(--border); }
.showcase-features h4, .showcase-gallery h4 { margin: 0 0 16px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.gallery figcaption { margin-top: 10px; font-size: 15px; color: var(--muted); }
@media (max-width: 960px) {
  .showcase { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 22px; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-color-scheme: dark) {
  .showcase-body .showcase-tagline, .showcase-features h4, .showcase-gallery h4 { color: #93e2b6; }
  .showcase-body .tag { background: rgba(60, 207, 133, .18); color: #c8f0da; }
}
.notice p + p { margin-top: 8px; }
.support-note { max-width: 860px; margin: 20px 0 0; font-size: 15px; color: var(--muted); }

/* ------------------------------------------------------------------
   Compact layout: tighter spacing and type across every page
   (homepages, knowledge base, Marketplace apps, 404 and app docs).
   ------------------------------------------------------------------ */
body { font-size: 16px; line-height: 1.6; }
section { padding: 44px 0; scroll-margin-top: 64px; }
.hero { padding: 0; } /* a hero is a <section>: use only its own spacing */
.hero .wrap { padding-top: 56px; padding-bottom: 60px; gap: 32px; }
.hero h1 { font-size: clamp(32px, 4.2vw, 46px); margin-bottom: 12px; }
.hero p.lead { font-size: 18px; margin-bottom: 22px; }
.eyebrow { margin-bottom: 10px; font-size: 13px; }
.hero-mark { --mark: 200px; }
.hero.page .wrap { padding-top: 40px; padding-bottom: 44px; }
.hero.page h1 { font-size: clamp(28px, 3.6vw, 38px); }
.crumbs { margin-bottom: 12px; }
.section-head { margin-bottom: 22px; max-width: 760px; }
.section-head h2 { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 6px; }
.section-head p { font-size: 16px; }
.kicker { margin-bottom: 6px; font-size: 12px; }
.card { padding: 20px; }
.card h3 { font-size: 18px; margin: 2px 0 6px; }
.icon { width: 40px; height: 40px; margin-bottom: 12px; border-radius: 10px; }
.icon svg { width: 24px; height: 24px; }
.concepts, .resources, .groups, .steps, .doc-cards { gap: 14px; }
.resource .tag { margin-bottom: 10px; }
.resource .meta { margin-top: 10px; font-size: 13px; }
.resource a.more { margin-top: 12px; }
.resource.app .app-shot { width: calc(100% + 40px); margin: -20px -20px 16px; }
.subhead { margin: 30px 0 12px; }
.subhead h3 { font-size: 20px; }
.notice { margin: -6px 0 20px; padding: 14px 18px; }
.notice strong { font-size: 16px; }
.notice p { font-size: 15px; }
.kb-cat { gap: 24px; }
.kb-cat + .kb-cat { margin-top: 36px; padding-top: 36px; }
.showcases { gap: 20px; }
.showcase { padding: 22px; gap: 26px; }
.showcase-body h3 { font-size: 26px; }
.showcase-body .showcase-tagline { font-size: 17px; }
.showcase-points { gap: 4px; }
.showcase-features, .showcase-gallery { padding-top: 20px; }
.gallery { gap: 18px; }
.support-note { margin-top: 14px; font-size: 14px; }
.steps { margin-bottom: 22px; }
.steps .card::before { width: 30px; height: 30px; margin-bottom: 10px; }
.card.events { margin-top: 14px; }
.cta { padding: 32px 36px; }
.cta h2 { font-size: 26px; }
.cta p { font-size: 16px; }
.btn { padding: 10px 18px; font-size: 15px; }
.site-footer { padding: 24px 0; }
/* App docs */
.docs { padding-top: 24px; padding-bottom: 48px; gap: 36px; }
.docs-nav { top: 80px; }
.prose h1 { font-size: clamp(28px, 3.4vw, 36px); margin-bottom: 14px; }
.prose h2 { margin: 32px 0 10px; font-size: 24px; }
.prose h3 { margin: 24px 0 6px; font-size: 19px; }
.toc, .prose #markdown-toc { margin-bottom: 22px; padding-top: 12px; padding-bottom: 12px; }
.pager { margin-top: 36px; padding-top: 18px; }
@media (max-width: 960px) {
  .hero .wrap { padding-top: 44px; padding-bottom: 48px; }
  .cta { padding: 26px 22px; }
}
@media (max-width: 720px) {
  section { padding: 36px 0; }
  .hero h1 { font-size: clamp(30px, 8vw, 38px); }
  .hero p.lead { font-size: 17px; }
}
/* "Liferay Community APAC" is one name: the header shows the Liferay mark followed by the whole name
   (on the narrowest phones, the mark alone), and the homepage heading never breaks it across lines. */
.brand { gap: 10px; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { color: #fff; font-size: 19px; font-weight: 600; letter-spacing: .1px; white-space: nowrap; line-height: 1; }
@media (max-width: 519px) { .brand-name { display: none; } }
.hero:not(.page) h1, :root[lang] .hero:not(.page) h1 { white-space: nowrap; font-size: clamp(21px, 6.4vw, 46px); }
/* Homepage: one card per section of the site, and a "see all" link under each section. */
.sections { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card.section-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--text); transition: border-color .15s ease, transform .15s ease; }
.card.section-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.card.section-card .icon { width: 44px; height: 44px; margin-bottom: 6px; }
.card.section-card .icon svg { width: 24px; height: 24px; }
.card.section-card h3 { margin: 0; font-size: 20px; }
.card.section-card p { flex: 1; font-size: 15px; }
.card.section-card .meta { font-size: 13px; font-weight: 600; color: var(--blue); }
.section-more { margin-top: 22px; }
#resources .subhead:first-of-type, #apps .notice + .showcases { margin-top: 28px; }
@media (max-width: 960px) { .sections { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sections { grid-template-columns: 1fr; } }
/* "How can we help?": community help on Liferay Discuss, subscription support and sales, in one blue block. */
.cta.help-routes { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px 24px; align-items: stretch; }
.help-community { grid-row: span 2; }
.help-head { grid-column: 1 / -1; }
.help-route { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 22px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); }
.help-route h3 { margin: 0; font-size: 20px; color: #fff; }
.cta .help-route p { margin: 0; font-size: 15px; }
.help-route > .btn { align-self: flex-start; margin-top: auto; }
.help-form { display: grid; gap: 10px; margin-top: 4px; }
.help-form label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; color: #fff; }
.help-form select, .help-form input { font: inherit; font-size: 15px; font-weight: 400; padding: 9px 11px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .35); background: #fff; color: #10172a; width: 100%; box-sizing: border-box; }
.help-form .btn { justify-self: start; font: inherit; font-weight: 600; cursor: pointer; }
.cta .help-note { font-size: 13px; color: #b9dcc8; }
@media (max-width: 860px) { .cta.help-routes { grid-template-columns: 1fr; } .help-community { grid-row: auto; } }
/* Language menu (shared header): a globe button with the current language, opening a list of the others. */
.site-header .lang { position: relative; display: block; border: 0; border-radius: 0; overflow: visible; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px 0 11px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: #d7ebe0;
  font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .14); color: #fff; }
.lang-btn:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 2px; }
.lang-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lang-btn .chev { width: 14px; height: 14px; }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; display: flex; flex-direction: column; min-width: 180px; padding: 6px;
  background: rgba(3, 4, 28, .98); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; box-shadow: 0 16px 32px rgba(3, 4, 28, .35);
}
.lang-list[hidden] { display: none; }
.site-header .lang .lang-list a, .site-header .lang .lang-list span { padding: 9px 12px; border-radius: 8px; color: #d7ebe0; font-size: 15px; text-decoration: none; background: none; }
.site-header .lang .lang-list a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.site-header .lang .lang-list [aria-current] { color: #fff; font-weight: 600; background: var(--blue); }
@media (max-width: 374px) { .lang-btn { padding: 0 8px; gap: 4px; } .lang-btn .chev { display: none; } }
/* Shown on a page available only in English, when the visitor chose another language. */
.lang-note { margin: 0 0 16px; padding: 8px 12px; border-radius: 8px; background: var(--bg-alt); border: 1px solid var(--border); color: var(--muted); font-size: 14px; }
main > .lang-note { margin: 16px auto; max-width: var(--max); width: calc(100% - 48px); box-sizing: border-box; }
/* Community page: Liferay Discuss and liferay.dev */
.online { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card.online-card { display: flex; flex-direction: column; gap: 14px; }
.online-head { display: flex; align-items: center; gap: 14px; }
.online-head .icon { margin: 0; flex: none; }
.online-head h3 { margin: 0; }
.online-url { color: var(--blue); font-size: 14px; font-weight: 600; }
.online-card .features { grid-template-columns: 1fr; gap: 10px; }
.online-card .online-tip { font-size: 14px; padding: 10px 12px; border-radius: 8px; background: var(--bg-alt); }
.online-card > .btn { align-self: flex-start; margin-top: auto; }
@media (max-width: 860px) { .online { grid-template-columns: 1fr; } }
/* An app's logo next to its name in its showcase: half the size of a "Powered by" product logo. */
.showcase h3.with-logo { display: flex; align-items: center; gap: 10px; }
.app-logo { width: 32px; height: 32px; flex: none; }
/* Resources: index cards and the Masterclass checklist */
a.card.resource-link { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--text); transition: border-color .15s ease, transform .15s ease; }
a.card.resource-link:hover { border-color: var(--blue); transform: translateY(-2px); }
a.card.resource-link .icon { width: 44px; height: 44px; margin-bottom: 4px; }
a.card.resource-link .icon svg { width: 24px; height: 24px; }
a.card.resource-link .tag { align-self: flex-start; }
a.card.resource-link h3, a.card.resource-link p { margin: 0; }
.mc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
.mc-side { position: sticky; top: 84px; display: grid; gap: 18px; }
.mc-progress p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.mc-progress strong { color: var(--text); }
.mc-bar { height: 8px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--border); overflow: hidden; }
.mc-bar span { display: block; height: 100%; background: var(--blue); transition: width .2s ease; }
.mc-toc { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; }
.mc-toc a { text-decoration: none; }
.mc-toc a:hover { text-decoration: underline; }
.mc-reset { justify-self: start; font: inherit; font-size: 13px; color: var(--muted); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.mc-step { margin: 0 0 32px; padding: 0; scroll-margin-top: 84px; }
.mc-step-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.mc-num { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; }
.mc-step.complete .mc-num { background: #1f9d55; }
.mc-step-head h2 { margin: 2px 0 4px; font-size: 24px; }
.mc-step-head p { margin: 0; color: var(--muted); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.check-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface, #fff); }
.check-item input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); cursor: pointer; }
.check-item > div { min-width: 0; flex: 1; }
.check-title { display: block; font-weight: 600; cursor: pointer; }
.check-item p { margin: 4px 0 0; color: var(--muted); overflow-wrap: anywhere; }
.check-item:has(input:checked) { background: var(--bg-alt); }
.check-item:has(input:checked) .check-title { text-decoration: line-through; text-decoration-color: var(--muted); }
.cmd { margin: 8px 0 0; padding: 8px 12px; border-radius: 8px; background: #0a1622; color: #e3f0ea; font-size: 14px; overflow-x: auto; }
.mc-ready { margin: 0 0 20px; padding: 14px 16px; border-radius: 12px; background: #e8f7ee; border: 1px solid #b6e3c6; color: #165c34; }
.mc-help { color: var(--muted); }
@media (max-width: 860px) { .mc-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; } .mc-side { position: static; } .mc-toc { display: none; } }
/* Six menu items: slightly tighter header spacing on wide screens. */
@media (min-width: 1120px) {
  .site-header .wrap { gap: 18px; }
  .nav { gap: 16px; }
}
/* Masterclass step 6: how to run the readiness check, the prompt, and the example result */
.mc-howto { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 6px; }
.mc-howto ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.mc-prompt { margin: 0 0 14px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.mc-prompt-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: var(--bg-alt); border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--muted); }
.mc-copy { font: inherit; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 8px; border: 1px solid var(--blue); background: var(--blue); color: #fff; cursor: pointer; }
.mc-copy:hover { filter: brightness(1.1); }
.mc-prompt pre { margin: 0; padding: 12px 14px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13.5px; line-height: 1.55; background: #0a1622; color: #e3f0ea; }
.mc-shot { margin: 0 0 14px; }
.mc-shot img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(3, 4, 28, .12); }
.mc-shot figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
/* Masterclass step 1: install instructions per operating system, the check and the expected output */
.howto { margin: 10px 0 0; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-alt); }
.howto summary { cursor: pointer; padding: 8px 12px; font-weight: 600; color: var(--blue); }
.howto[open] summary { border-bottom: 1px solid var(--border); }
.howto .os { padding: 10px 12px 2px; }
.howto .os + .os { border-top: 1px dashed var(--border); }
.howto h4 { margin: 0 0 4px; font-size: 14px; color: var(--text); }
.howto .os p, .howto .note { margin: 0 0 6px; }
.howto .note { padding: 8px 12px; font-size: 14px; }
.howto .cmd { margin: 0 0 10px; }
.check-item .check-label { margin: 10px 0 0; font-size: 13px; font-weight: 600; color: var(--text); text-transform: uppercase; letter-spacing: .04em; }
.check-item .expect { margin: 8px 0 0; font-size: 14px; }
.cmd.out { background: #10222b; color: #b5d3c5; white-space: pre-wrap; overflow-wrap: anywhere; }
.mc-source { margin: -4px 0 12px; font-size: 14px; color: var(--muted); }
/* Masterclass step 2: the AI assistants are alternatives (choose one) */
.check-group-label { margin: 6px 0 -2px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.check-item.choice { margin-left: 18px; }
.check-item.choice input { border-radius: 50%; }
@media (max-width: 560px) { .check-item.choice { margin-left: 8px; } }
/* Marketplace Apps: a light square per app, linking to the app's own page */
.app-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 28px; }
.card.app-tile { display: flex; flex-direction: column; gap: 8px; padding: 16px; text-decoration: none; color: var(--text); transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.card.app-tile:hover { border-color: var(--blue); transform: translateY(-2px); }
.card.app-tile .app-tile-shot { display: block; width: 100%; height: 170px; max-width: none; object-fit: cover; object-position: top left; border-radius: 10px; border: 1px solid var(--border); margin-bottom: 6px; background: var(--bg-alt); }
.card.app-tile h3 { margin: 0; font-size: 19px; }
.card.app-tile h3.with-logo { display: flex; align-items: center; gap: 8px; }
.card.app-tile .app-logo { width: 28px; height: 28px; }
.card.app-tile p { margin: 0; flex: 1; font-size: 15px; color: var(--muted); }
.card.app-tile .meta { font-size: 13px; color: var(--muted); }
.card.app-tile .more { font-weight: 600; color: var(--blue); }
/* An app's own page: its logo in the heading */
.hero.page h1.with-logo { display: flex; align-items: center; gap: 14px; }
.hero.page h1 .app-logo { width: 40px; height: 40px; flex: none; }
#app .notice { margin-top: 28px; }

/* Dark mode: accent-coloured text uses the light green, which keeps AA contrast on the dark background
   (the darker accent stays the fill behind white text on buttons and icon tiles). */
@media (prefers-color-scheme: dark) {
  a, .kicker, .card .num, .resource .tag, .site-footer a:hover, .group .region, .group .more, .docs-nav summary,
  .docs-nav a:hover, .docs-nav a[aria-current="page"], .docs-crumbs a:hover, .search-dialog .pagefind-ui__result-link:hover,
  .card.section-card .meta, .online-url, .howto summary, .card.app-tile .more { color: var(--blue-light); }
}
