/* OGA Community (core 9.6.0) — uses the theme's tokens with safe fallbacks. */
.ogc, .ogcl-home { --c-ink: var(--oga-ink, #1f2328); --c-muted: var(--oga-ink-muted, #59636e); --c-line: var(--oga-border, #d1d9e0); --c-navy: var(--oga-navy, #1c3f8f); --c-mist: var(--oga-mist, #f6f8fa); --c-red: var(--oga-flag, #d81f36); }
.ogc__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; padding-block: 24px 40px; }
.ogc__main { min-width: 0; display: grid; gap: 16px; }
.ogc__aside { display: grid; gap: 16px; position: sticky; top: 16px; }
.ogc-box { background: #fff; border: 1px solid var(--c-line); border-radius: 14px; padding: 18px; }
.ogc .ogc-box__h { margin: 0 0 8px !important; font-size: 17px !important; font-weight: 700 !important; color: var(--c-ink) !important; }
.ogc-box p { margin: 0 0 10px; color: var(--c-muted); line-height: 1.55; }
.ogc-small { font-size: 13.5px; }
.ogc-rules { margin: 0 0 10px 18px; padding: 0; color: var(--c-ink); font-size: 14.5px; line-height: 1.6; }
.ogc-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
body .ogc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--c-navy); background: var(--c-navy); color: #fff !important; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none !important; }
body .ogc-btn:hover { background: var(--oga-night, #0f2557); }
body .ogc-btn--ghost { background: #fff; color: var(--c-navy) !important; border-color: var(--c-line); }
body .ogc-btn--ghost:hover { background: var(--c-mist); border-color: var(--c-navy); }
.ogc-join__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0 !important; }
.ogc-flash { margin: 0; padding: 12px 14px; border-radius: 10px; font-weight: 500; }
.ogc-flash--ok { background: #e8f7ee; color: #0e5e2b; border: 1px solid #b6e3c6; }
.ogc-flash--err { background: #fdecee; color: #8f1124; border: 1px solid #f3c2c9; }

/* composer */
.ogc-compose__row { display: flex; gap: 12px; align-items: flex-start; }
.ogc-compose textarea { flex: 1; min-height: 84px; resize: vertical; padding: 10px 12px; border: 1px solid var(--c-line); border-radius: 10px; font: inherit; font-size: 16px; color: var(--c-ink); }
.ogc-compose textarea:focus, .ogc-compose input:focus, .ogc-compose select:focus { outline: 2px solid var(--c-navy); outline-offset: 1px; border-color: var(--c-navy); }
.ogc-compose__extra { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 12px 0 0 52px; }
.ogc-compose__extra label { display: grid; gap: 4px; font-size: 13px; color: var(--c-muted); font-weight: 600; }
.ogc-compose__extra input[type=text], .ogc-compose__extra select { height: 38px; padding: 0 10px; border: 1px solid var(--c-line); border-radius: 8px; font: inherit; font-size: 15px; background: #fff; }
.ogc-compose__extra input[type=file] { font-size: 14px; max-width: 240px; }
.ogc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.ogc-compose__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--c-line); flex-wrap: wrap; }
.ogc-compose__hint { font-size: 13px; color: var(--c-muted); }

/* tabs */
.ogc-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
body .ogc-tabs a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--c-line); background: #fff; color: var(--c-ink); font-size: 14.5px; text-decoration: none; }
body .ogc-tabs a[aria-current="page"] { background: var(--c-navy); border-color: var(--c-navy); color: #fff; }

/* notes */
.ogc-feed { display: grid; gap: 14px; }
.ogc-note { background: #fff; border: 1px solid var(--c-line); border-radius: 14px; padding: 16px 18px; }
.ogc-note__head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.ogc-avatar { border-radius: 50%; display: block; flex: 0 0 auto; }
.ogc-note__who { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; }
body .ogc-note__name { font-weight: 700; color: var(--c-ink); text-decoration: none; }
body .ogc-note__name:hover { text-decoration: underline; }
.ogc-note__meta { flex-basis: 100%; font-size: 13.5px; color: var(--c-muted); }
body .ogc-note__meta a { color: inherit; text-decoration: none; }
.ogc-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--c-mist); color: var(--c-muted); border: 1px solid var(--c-line); }
.ogc-badge--guide { background: #eef3fc; color: var(--c-navy); border-color: #cfdcf3; }
.ogc-badge--local { background: #fff6e5; color: #7a4d00; border-color: #f0dcb0; }
.ogc-note__text { color: var(--c-ink); font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.ogc-note__text p { margin: 0 0 8px; }
.ogc-note__photo { margin: 10px 0 4px; border-radius: 12px; overflow: hidden; border: 1px solid var(--c-line); background: var(--c-mist); }
.ogc-note__photo img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; }
.ogc-note__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--c-line); }
.ogc-note__actions form { margin: 0; }
body .ogc-act { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border-radius: 8px; border: 0; background: none; color: var(--c-muted); font: inherit; font-size: 14.5px; cursor: pointer; text-decoration: none; }
body .ogc-act:hover { background: var(--c-mist); color: var(--c-ink); }
body .ogc-act.is-on { color: var(--c-red); font-weight: 600; }
.ogc-act--static { cursor: default; }
body .ogc-act--quiet { margin-left: auto; font-size: 13.5px; }
.ogc-pager { display: flex; justify-content: space-between; gap: 8px; }
.ogc-empty { padding: 28px; text-align: center; color: var(--c-muted); background: #fff; border: 1px dashed var(--c-line); border-radius: 14px; }

/* member + comments */
.ogc-profile { display: flex; gap: 18px; align-items: center; padding: 8px 0 4px; }
.ogc .ogc-profile__name { margin: 0 0 4px !important; font-size: clamp(26px, 3vw, 34px) !important; color: var(--c-ink) !important; }
.ogc-profile__meta { display: flex; gap: 10px; align-items: center; margin: 0 0 6px; color: var(--c-muted); }
.ogc-profile__bio { margin: 0; color: var(--c-ink); max-width: 60ch; }
.ogc-comment-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.ogc-comment-list .children { list-style: none; margin: 10px 0 0 28px; padding: 0; }
.ogc-comment-list .comment-body { padding: 10px 12px; background: var(--c-mist); border-radius: 10px; }
.ogc-comment-list .comment-author { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.ogc-comment-list .comment-author img { border-radius: 50%; }
.ogc-comment-list .comment-meta { font-size: 12.5px; color: var(--c-muted); }
.ogc-comment-list .comment-meta a { color: inherit; }
.ogc-comments textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--c-line); border-radius: 10px; font: inherit; font-size: 16px; }
.ogc-comments .comment-reply-title { font-size: 15px; margin: 0 0 8px; }

@media (max-width: 900px) {
	.ogc__grid { grid-template-columns: 1fr; }
	.ogc__aside { position: static; }
	.ogc-compose__extra { margin-left: 0; }
}
@media (max-width: 560px) {
	.ogc-compose__row .ogc-avatar { display: none; }
	.ogc-profile { align-items: flex-start; }
	.ogc-profile .ogc-avatar { width: 64px; height: 64px; }
}

/* ═══ 9.7.0 — Cambodia Travel Community page (/community/) and home section ═══ */
.ogcl-eyebrow { margin: 0 0 8px !important; color: var(--oga-flag, #d81f36); font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.ogc .ogcl-h2, .ogcl-home .ogcl-h2 { margin: 0 0 10px !important; font-size: clamp(24px, 2.8vw, 32px) !important; line-height: 1.15 !important; letter-spacing: -.015em; color: var(--oga-ink, #1f2328) !important; max-width: 28ch; }
.ogcl-lede { margin: 0 0 18px; color: var(--oga-ink-muted, #59636e); font-size: 17px; max-width: 62ch; line-height: 1.55; }
.ogcl-small, .ogcl-note { margin: 10px 0 0; color: var(--oga-ink-muted, #59636e); font-size: 14px; }
.ogcl-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0 !important; }
.ogcl-actions .ogc-btn { min-height: 46px; padding: 0 20px; font-size: 16px; }
.ogcl-actions--center { justify-content: center; }

.ogcl-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; padding: clamp(28px, 4vw, 52px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--oga-border, #d1d9e0); }
.ogc .ogcl-hero__title { margin: 0 0 14px !important; font-size: clamp(34px, 4.6vw, 54px) !important; line-height: 1.05 !important; letter-spacing: -.03em !important; color: var(--oga-ink, #1f2328) !important; }
.ogcl-hero__lede { margin: 0 0 10px; font-size: clamp(18px, 1.8vw, 21px); color: var(--oga-ink, #1f2328); line-height: 1.45; }
.ogcl-hero__text { margin: 0 0 12px; color: var(--oga-ink-muted, #59636e); font-size: 16.5px; line-height: 1.6; max-width: 58ch; }
.ogcl-hero__tag { margin: 0; font-weight: 700; color: var(--oga-navy, #1c3f8f); }
.ogcl-hero__media { border-radius: 16px; overflow: hidden; }
.ogcl-hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ogcl-hero__media--one { aspect-ratio: 4 / 3.4; border: 1px solid var(--oga-border, #d1d9e0); }
.ogcl-hero__media--grid { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; aspect-ratio: 4 / 3.4; }
.ogcl-hero__media--grid img { border-radius: 12px; }
.ogcl-hero__media--grid img:first-child { grid-row: 1 / 3; }

.ogcl-section { padding: clamp(36px, 5vw, 60px) 0 0; }
.ogcl-cards { display: grid; gap: 14px; }
.ogcl-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body .ogcl-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: #fff; border: 1px solid var(--oga-border, #d1d9e0); border-radius: 14px; color: var(--oga-ink, #1f2328); text-decoration: none; }
body a.ogcl-card:hover { border-color: var(--oga-navy, #1c3f8f); box-shadow: 0 6px 20px rgba(15,37,87,.08); text-decoration: none; }
.ogcl-card__ic { font-size: 26px; line-height: 1; }
.ogcl-card strong { font-size: 18px; }
.ogcl-card span:last-child { color: var(--oga-ink-muted, #59636e); line-height: 1.55; font-size: 15px; }
.ogcl-formula { margin: 16px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--oga-mist, #f6f8fa); color: var(--oga-ink, #1f2328); font-weight: 600; text-align: center; }

.ogcl-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 6px 0 4px; }
body .ogcl-filter { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--oga-border, #d1d9e0); border-radius: 12px; background: #fff; color: var(--oga-ink, #1f2328); text-decoration: none; }
body .ogcl-filter span { color: var(--oga-ink-muted, #59636e); font-size: 13.5px; }
body .ogcl-filter:hover { border-color: var(--oga-navy, #1c3f8f); text-decoration: none; }
body .ogcl-filter[aria-current="page"] { background: var(--oga-navy, #1c3f8f); border-color: var(--oga-navy, #1c3f8f); color: #fff; }
body .ogcl-filter[aria-current="page"] span { color: rgba(255,255,255,.85); }
.ogcl-feedgrid { padding-top: 14px; }

.ogcl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.ogcl-chips li { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--oga-border, #d1d9e0); font-size: 15px; }

.ogcl-why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.ogcl-why__copy p:not(.ogcl-eyebrow) { line-height: 1.65; font-size: 16.5px; }
.ogcl-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 10px; }
.ogcl-steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--oga-border, #d1d9e0); border-radius: 12px; }
.ogcl-steps li::before { content: counter(s); grid-row: 1 / 3; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #eef3fc; color: var(--oga-navy, #1c3f8f); font-weight: 700; }
.ogcl-steps strong { font-size: 16px; }
.ogcl-steps span { color: var(--oga-ink-muted, #59636e); font-size: 14.5px; }

.ogcl-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.ogcl-qlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
body .ogcl-qlist a { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid var(--oga-border, #d1d9e0); border-radius: 10px; background: #fff; color: var(--oga-ink, #1f2328); text-decoration: none; }
body .ogcl-qlist a:hover { border-color: var(--oga-navy, #1c3f8f); color: var(--oga-navy, #1c3f8f); }
.ogcl-place h3 { margin: 14px 0 6px; font-size: 16px; }
.ogcl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
body .ogcl-tags a { padding: 4px 10px; border-radius: 999px; background: var(--oga-mist, #f6f8fa); border: 1px solid var(--oga-border, #d1d9e0); color: var(--oga-ink, #1f2328); font-size: 14px; text-decoration: none; }
body .ogcl-tags a:hover { border-color: var(--oga-navy, #1c3f8f); color: var(--oga-navy, #1c3f8f); }

.ogcl-faq { display: grid; gap: 8px; max-width: 820px; }
.ogcl-faq details { background: #fff; border: 1px solid var(--oga-border, #d1d9e0); border-radius: 12px; padding: 0 16px; }
.ogcl-faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--oga-ink, #1f2328); }
.ogcl-faq details p { margin: 0 0 14px; color: var(--oga-ink-muted, #59636e); line-height: 1.6; }

.ogcl-final { margin: clamp(40px, 5vw, 64px) 0 8px; padding: clamp(28px, 4vw, 44px); border-radius: 18px; background: var(--oga-navy, #1c3f8f); color: #fff; text-align: center; }
.ogcl-final .ogcl-eyebrow { color: #ffb3bd; }
.ogc .ogcl-final .ogcl-h2 { color: #fff !important; margin-inline: auto !important; }
.ogcl-final > p { color: rgba(255,255,255,.88); max-width: 62ch; margin: 0 auto; line-height: 1.6; }
.ogcl-final .ogcl-note { color: rgba(255,255,255,.75); }
body .ogcl-final .ogc-btn { background: #fff; color: var(--oga-navy, #1c3f8f) !important; border-color: #fff; }
body .ogcl-final .ogc-btn--ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.6); }

/* home page section */
.ogcl-home { padding: clamp(36px, 5vw, 56px) 0 8px; }
.ogcl-home__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.ogcl-home__head .ogcl-lede { margin-bottom: 0; }
.ogcl-home__head .ogcl-actions { margin: 0 !important; }
.ogcl-home__notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
body .ogcl-mini { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: #fff; border: 1px solid var(--oga-border, #d1d9e0); border-radius: 14px; color: var(--oga-ink, #1f2328); text-decoration: none; }
body .ogcl-mini:hover { border-color: var(--oga-navy, #1c3f8f); text-decoration: none; }
.ogcl-mini__img { display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--oga-mist, #f6f8fa); }
.ogcl-mini__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ogcl-mini__text { line-height: 1.5; }
.ogcl-mini__who { color: var(--oga-ink-muted, #59636e); font-size: 13.5px; font-weight: 600; }

@media (max-width: 960px) {
	.ogcl-hero, .ogcl-why, .ogcl-two { grid-template-columns: 1fr; }
	.ogcl-cards--3, .ogcl-home__notes { grid-template-columns: 1fr; }
	.ogcl-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ogcl-hero__media img { height: 100% !important; max-width: none; }
.ogcl-hero__media--one img { aspect-ratio: auto; }
.ogcl-why__copy p:not(.ogcl-eyebrow) { color: var(--oga-ink, #1f2328); }
.ogcl-why__copy .ogcl-eyebrow { color: var(--oga-flag, #d81f36) !important; }
.ogcl-final, .ogcl-final p, .ogcl-final h2 { text-align: center !important; }
.ogcl-final .ogcl-eyebrow { margin: 0 auto 8px !important; }

.ogcl-final .ogcl-actions { max-width: none !important; margin: 20px auto 0 !important; justify-content: center; }

/* 10.0.1: intro under the theme's page head (render( array( 'hero' => false ) )) */
.ogcl-intro { margin: 0 0 28px; max-width: 760px; }
.ogcl-intro__text { margin: 0 0 8px; color: var(--c-muted); font-size: 16px; line-height: 1.6; }
.ogcl-intro__tag { margin: 0 0 14px; color: var(--c-ink); font-weight: 600; }
.ogcl-intro .ogcl-actions { margin: 4px 0 0 !important; }

/* 10.0.2 */
/* One-line hooks on /community/: the six headline sentences sit on one line on tablets and desktops,
   sized to fit; on phones they wrap evenly (balanced) instead of shrinking below readable size. */
.ogc #ogcl-voices, .ogc #ogcl-feed, .ogc #ogcl-share, .ogc #ogcl-final,
.ogc .ogcl-section[aria-labelledby="ogcl-voices"] > .ogcl-lede,
.ogx-page--community > .ogx-pagehead .ogx-pagehead__title { max-width: none !important; text-wrap: balance; }
@media (min-width: 768px) {
	.ogc #ogcl-voices, .ogc #ogcl-feed, .ogc #ogcl-share, .ogc #ogcl-final,
	.ogc .ogcl-section[aria-labelledby="ogcl-voices"] > .ogcl-lede,
	.ogx-page--community > .ogx-pagehead .ogx-pagehead__title { white-space: nowrap; }
	.ogc #ogcl-voices, .ogc #ogcl-feed, .ogc #ogcl-share, .ogc #ogcl-final { font-size: clamp(20px, 2.6vw, 32px) !important; }
	.ogx-page--community > .ogx-pagehead .ogx-pagehead__title { font-size: clamp(24px, 3.3vw, 42px) !important; }
	.ogc .ogcl-section[aria-labelledby="ogcl-voices"] > .ogcl-lede { font-size: clamp(14px, 1.6vw, 17px); }
}
