/* ==========================================================================
   Painaimana - Travel & Event  ·  article_content styles for ruedee.com
   Loaded from inside article_content on the three /app/painaimana-* pages
   only (article_group_id 85). It therefore has to coexist with main.css and
   the CMS header/footer: EVERY rule is scoped under .pnm, and there are no
   bare element selectors (body, img, a, h1…) that could leak into the shell.

   Same structure as /images/app/expenses.css so the two app pages read as
   one family; only the palette changes — the app's own blue #2A78D6 on a
   deep navy #102138, with the ruedee lime #d8ec9d kept for kickers.
   Assets live in /images/app/02-painaimana/.
   ========================================================================== */

/* The layout-0 template prints a full-width <img src="{fb_page_banner}">
   above the H1. These pages carry their own responsive hero instead, and the
   banner field is kept only so og:image resolves — so hide the strip. This is
   the one rule outside .pnm; it is safe because this file is only ever loaded
   by the three Painaimana articles. */
.sectionwidebanner_container { display: none !important; }

.pnm {
  --pnm-ink: #102138;
  --pnm-ink-soft: #3c4c63;
  --pnm-muted: #6c7a8d;
  --pnm-cream: #fbfcfe;
  --pnm-paper: #fff;
  --pnm-lime: #d8ec9d;
  --pnm-blue: #2a78d6;
  --pnm-blue-dark: #1c5aa8;
  --pnm-orange: #eb6834;
  --pnm-line: rgba(16, 33, 56, .12);
  --pnm-line-soft: rgba(16, 33, 56, .07);
  --pnm-shadow-s: 0 1px 2px rgba(16, 33, 56, .06), 0 4px 14px rgba(16, 33, 56, .05);
  --pnm-shadow-m: 0 2px 6px rgba(16, 33, 56, .07), 0 18px 44px rgba(16, 33, 56, .12);
  --pnm-radius: 18px;
  --pnm-radius-l: 28px;
  --pnm-sans: "DM Sans", "Noto Sans Thai", "Sarabun", -apple-system,
              BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  margin: 0 -10px;                 /* cancel .spacelr so bands can go edge to edge */
  color: var(--pnm-ink);
  background: var(--pnm-cream);
  font-family: var(--pnm-sans);
  font-size: 17px;
  line-height: 1.65;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

.pnm *, .pnm *::before, .pnm *::after { box-sizing: border-box; }

.pnm img { max-width: 100%; height: auto; display: block; }
.pnm a { color: var(--pnm-blue-dark); text-underline-offset: 3px; }
.pnm a:hover { color: var(--pnm-ink); }
.pnm p { margin: 0 0 1.1em; }
.pnm h2, .pnm h3, .pnm h4 {
  margin: 0 0 .5em; padding: 0; border: 0;
  line-height: 1.18; letter-spacing: -.02em; font-weight: 700; color: var(--pnm-ink);
}
.pnm h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); letter-spacing: -.03em; }
.pnm h3 { font-size: 1.2rem; }
.pnm ul { margin: 0 0 1.1em; padding-left: 1.25em; }
.pnm li { margin-bottom: .5em; }
.pnm code {
  padding: 2px 7px; border-radius: 6px; background: rgba(16, 33, 56, .07);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; white-space: nowrap;
}
.pnm :focus-visible { outline: 3px solid var(--pnm-blue); outline-offset: 3px; border-radius: 6px; }

/* The article template drops content inside .spacelr (10px side margins), which
   the negative margin above cancels. The /app/ LISTING page (article_group
   page_detail) prints straight into the column with no .spacelr, so that one
   adds .pnm-flush to put the margin back to zero. */
.pnm-flush { margin-left: 0; margin-right: 0; }

.pnm-container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.pnm .pnm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border: 1px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: .98rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.pnm .pnm-btn:active { transform: translateY(1px); }
.pnm .pnm-btn-primary { background: var(--pnm-blue); color: #fff; box-shadow: 0 6px 18px rgba(42, 120, 214, .28); }
.pnm .pnm-btn-primary:hover { background: var(--pnm-blue-dark); color: #fff; }
.pnm .pnm-btn-ghost { background: transparent; border-color: var(--pnm-line); color: var(--pnm-ink); }
.pnm .pnm-btn-ghost:hover { background: rgba(16, 33, 56, .05); color: var(--pnm-ink); }
.pnm .pnm-btn-light { background: var(--pnm-lime); color: var(--pnm-ink); }
.pnm .pnm-btn-light:hover { background: #e6f4b8; color: var(--pnm-ink); }

.pnm .pnm-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 24px 11px 20px; border-radius: 14px;
  background: #1e1e1e; color: #fff; text-decoration: none;
}
.pnm a.pnm-badge { background: #000; transition: transform .15s ease; }
.pnm a.pnm-badge:hover { color: #fff; transform: translateY(-1px); }
.pnm .pnm-badge svg { width: 26px; height: 26px; flex: none; }
.pnm .pnm-badge span { display: block; line-height: 1.15; }
.pnm .pnm-badge .pnm-badge-kicker { font-size: .66rem; letter-spacing: .07em; text-transform: uppercase; opacity: .8; }
.pnm .pnm-badge .pnm-badge-name { font-size: 1.16rem; font-weight: 600; letter-spacing: -.01em; }

/* ==========================================================================
   Hero
   ========================================================================== */
.pnm-hero { padding: clamp(28px, 4vw, 52px) 0 clamp(34px, 5vw, 60px); }
.pnm-hero-grid {
  display: grid; gap: clamp(30px, 5vw, 62px); align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
}
.pnm-tagline {
  font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 700;
  line-height: 1.14; letter-spacing: -.035em; margin: 0 0 .4em; color: var(--pnm-ink);
}
.pnm-eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 16px;
  padding: 6px 15px 6px 10px; border-radius: 999px;
  background: rgba(42, 120, 214, .1); color: var(--pnm-blue-dark);
  font-size: .82rem; font-weight: 700;
}
.pnm-eyebrow svg { width: 16px; height: 16px; }
.pnm-lede { font-size: clamp(1.03rem, 1.9vw, 1.2rem); color: var(--pnm-ink-soft); max-width: 34em; }
.pnm-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 26px 0 16px; }
.pnm-note { font-size: .9rem; color: var(--pnm-muted); margin: 0; }
.pnm-note b { color: var(--pnm-ink); font-weight: 600; }

.pnm-hero-art { position: relative; display: flex; justify-content: center; }
.pnm-hero-art::before {
  content: ""; position: absolute; inset: 8% -6% 12% -6%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(42, 120, 214, .18), transparent 72%);
}
.pnm-phone {
  --pnm-phone-w: 300px;
  position: relative; width: var(--pnm-phone-w); flex: none;
  padding: 9px; border-radius: 42px;
  background: linear-gradient(160deg, #2c3542, #0d1117 55%, #232b36 100%);
  box-shadow: var(--pnm-shadow-m), inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.pnm-phone img { border-radius: 33px; width: 100%; background: #f2f2f7; }
.pnm-phone-lg { --pnm-phone-w: clamp(258px, 33vw, 336px); }

/* ==========================================================================
   Trust strip
   ========================================================================== */
.pnm-trust { border-block: 1px solid var(--pnm-line-soft); background: rgba(255, 255, 255, .7); }
.pnm-trust ul {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px 24px; margin: 0; padding: 22px 0; list-style: none;
}
.pnm-trust li {
  display: flex; align-items: center; gap: 10px; margin: 0;
  font-size: .92rem; font-weight: 600; color: var(--pnm-ink-soft);
}
.pnm-trust svg { width: 19px; height: 19px; flex: none; color: var(--pnm-blue); }

/* ==========================================================================
   Stat band — the numbers the app is really about
   ========================================================================== */
.pnm-stats {
  display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0; padding: 0; list-style: none;
}
.pnm-stat {
  padding: 22px 22px 20px; border: 1px solid var(--pnm-line-soft);
  border-radius: var(--pnm-radius); background: var(--pnm-paper);
  box-shadow: var(--pnm-shadow-s); margin: 0;
}
.pnm-stat b {
  display: block; font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 700;
  letter-spacing: -.03em; line-height: 1.1; color: var(--pnm-blue-dark);
}
.pnm-stat span { display: block; margin-top: 4px; font-size: .9rem; color: var(--pnm-ink-soft); }

/* ==========================================================================
   Sections
   ========================================================================== */
.pnm-section { padding: clamp(44px, 6vw, 84px) 0; }
.pnm-section-tight { padding-top: 0; }
.pnm-head { max-width: 44rem; margin-bottom: clamp(28px, 4vw, 48px); }
.pnm-head-center { margin-inline: auto; text-align: center; }
.pnm-head p { color: var(--pnm-ink-soft); margin-bottom: 0; font-size: 1.05rem; }
.pnm-kicker {
  display: block; margin-bottom: 12px;
  font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--pnm-blue-dark);
}

.pnm-feature {
  display: grid; gap: clamp(26px, 5vw, 66px); align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  padding: clamp(30px, 5vw, 54px) 0;
}
.pnm-feature + .pnm-feature { border-top: 1px solid var(--pnm-line-soft); }
.pnm-feature:nth-of-type(even) .pnm-feature-art { order: -1; }
.pnm-feature-art { display: flex; justify-content: center; }
.pnm-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin-bottom: 16px; border-radius: 50%;
  background: var(--pnm-ink); color: var(--pnm-lime); font-size: .9rem; font-weight: 700;
}
.pnm-feature-body h3 { font-size: clamp(1.32rem, 2.4vw, 1.72rem); letter-spacing: -.025em; }
.pnm-feature-body > p { color: var(--pnm-ink-soft); margin-bottom: 0; }
/* NB: the <li> stays in normal inline flow — it carries <b>, <em> and <code>,
   and a flex container would make each of those a separate flex item and pull
   the sentence apart. The tick is positioned instead. */
.pnm-points { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.pnm-points li { position: relative; margin: 0; padding-left: 28px; font-size: .96rem; color: var(--pnm-ink-soft); }
.pnm-points svg { position: absolute; left: 0; top: 4px; width: 18px; height: 18px; color: var(--pnm-blue); }

/* ==========================================================================
   Gallery
   ========================================================================== */
.pnm-gallery {
  display: flex; gap: 22px; padding: 6px 0 26px; margin: 0;
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.pnm-gallery > figure { scroll-snap-align: center; margin: 0; flex: none; width: 232px; }
.pnm-gallery .pnm-phone { --pnm-phone-w: 232px; }
.pnm-gallery figcaption {
  margin-top: 14px; font-size: .88rem; font-weight: 600; color: var(--pnm-ink-soft); text-align: center;
}

/* ==========================================================================
   Cards
   ========================================================================== */
.pnm-cards { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pnm-card {
  padding: 26px 24px; border: 1px solid var(--pnm-line-soft); border-radius: var(--pnm-radius);
  background: var(--pnm-paper); box-shadow: var(--pnm-shadow-s);
}
.pnm-card h3 { font-size: 1.04rem; margin-bottom: .4em; }
.pnm-card p { margin: 0; font-size: .94rem; color: var(--pnm-ink-soft); }
.pnm-card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-bottom: 15px; border-radius: 12px;
  background: rgba(42, 120, 214, .1); color: var(--pnm-blue-dark);
}
.pnm-card-icon svg { width: 21px; height: 21px; }

/* ==========================================================================
   Contact card
   ========================================================================== */
.pnm-contact {
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
  padding: clamp(24px, 4vw, 38px); border-radius: var(--pnm-radius-l);
  background: var(--pnm-ink); color: #fff;
}
.pnm-contact h2 { color: #fff; margin-bottom: .3em; }
.pnm-contact p { color: rgba(255, 255, 255, .78); margin: 0; max-width: 40em; font-size: .98rem; }
.pnm-contact .pnm-btn-light { flex: none; }
.pnm-mail { color: var(--pnm-lime) !important; font-weight: 700; text-decoration: none; }
.pnm-mail:hover { color: #fff !important; text-decoration: underline; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.pnm-faq { display: grid; gap: 12px; max-width: 52rem; }
.pnm-faq details {
  border: 1px solid var(--pnm-line-soft); border-radius: var(--pnm-radius);
  background: var(--pnm-paper); box-shadow: var(--pnm-shadow-s); overflow: hidden;
}
.pnm-faq details[open] { border-color: rgba(42, 120, 214, .3); }
.pnm-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em;
}
.pnm-faq summary::-webkit-details-marker { display: none; }
.pnm-faq summary::after {
  content: ""; flex: none; width: 11px; height: 11px; margin-right: 2px;
  border-right: 2.5px solid var(--pnm-blue); border-bottom: 2.5px solid var(--pnm-blue);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s ease;
}
.pnm-faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.pnm-faq-body { padding: 0 22px 20px; color: var(--pnm-ink-soft); font-size: .98rem; }
.pnm-faq-body > :last-child { margin-bottom: 0; }

/* ==========================================================================
   Document pages (support intro + privacy policy)
   ========================================================================== */
.pnm-doc { max-width: 46rem; font-size: 1.02rem; }
.pnm-doc h2 { margin-top: 2em; font-size: clamp(1.28rem, 2.6vw, 1.58rem); }
.pnm-doc h2:first-child { margin-top: 0; }
.pnm-doc .pnm-callout {
  padding: 20px 24px; margin: 0 0 1.6em; border-radius: var(--pnm-radius);
  border: 1px solid rgba(42, 120, 214, .28); background: rgba(42, 120, 214, .07);
}
.pnm-doc .pnm-callout p { margin: 0; }
.pnm-doc .pnm-callout strong { color: var(--pnm-blue-dark); }
.pnm-meta { margin: 14px 0 0; font-size: .9rem; color: var(--pnm-muted); }

/* Cross-links between the three articles are left to the template's own
   "related articles" strip, which already lists the other two pages in the
   group — so there is no .pnm-related block here. */

/* ==========================================================================
   Closing CTA
   ========================================================================== */
.pnm-cta-band {
  padding: clamp(40px, 6vw, 68px) clamp(24px, 5vw, 60px);
  border-radius: var(--pnm-radius-l); text-align: center; color: #fff;
  background:
    radial-gradient(120% 140% at 12% 100%, rgba(42, 120, 214, .55), transparent 60%),
    linear-gradient(150deg, #17304f, #0c1728);
}
.pnm-cta-band h2 { color: #fff; }
.pnm-cta-band p { color: rgba(255, 255, 255, .8); max-width: 36em; margin-inline: auto; }
.pnm-cta-band .pnm-cta { justify-content: center; margin-bottom: 6px; }
.pnm-cta-band .pnm-note { color: rgba(255, 255, 255, .62); }
.pnm-cta-band .pnm-note b { color: var(--pnm-lime); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .pnm-hero-grid, .pnm-feature { grid-template-columns: minmax(0, 1fr); }
  .pnm-hero-art { order: -1; }
  .pnm-feature .pnm-feature-art,
  .pnm-feature:nth-of-type(even) .pnm-feature-art { order: -1; }
  .pnm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pnm-trust ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pnm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .pnm { font-size: 16px; }
  .pnm-cards { grid-template-columns: minmax(0, 1fr); }
  .pnm-cta .pnm-btn, .pnm-cta .pnm-badge { width: 100%; }
  .pnm-contact { flex-direction: column; align-items: flex-start; }
  .pnm-contact .pnm-btn-light { width: 100%; }
}

/* Thai pages get Noto Sans Thai first and a little more line height.
   engine.php emits lang="th-TH", hence the prefix match; .pnm-th on the
   wrapper is the one that actually does the work. */
html[lang^="th"] .pnm,
.pnm-th {
  font-family: "Noto Sans Thai", "Sarabun", "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.8;
}
.pnm-th h2, .pnm-th h3, .pnm-th h4, .pnm-th .pnm-tagline { line-height: 1.4; letter-spacing: 0; }

@media print {
  .pnm-cta-band, .pnm-cta, .pnm-gallery { display: none !important; }
  .pnm { background: #fff; font-size: 12pt; }
}
