/* Research Support extends the portfolio's cream, navy and gold palette. */
.service-page { --focus-color: #665020; background: #efece4; color: #1c242c; font-size: 16px; line-height: 1.7; }
.service-header { position: sticky; top: 0; z-index: 100; display: grid; grid-template-columns: 1fr auto auto; gap: 28px; align-items: center; padding: 14px max(24px,5vw); background: #07111f; color: #eaf0f7; --focus-color: #badeff; }
.service-header .back-link { font-size: .85rem; text-decoration: underline; min-height: 44px; display: inline-flex; align-items: center; }
.service-page main { max-width: 1320px; margin: auto; }
.service-page section { padding: 80px clamp(24px,5vw,72px); }
.service-page section + section { border-top: 1px solid #c7c0b2; }
.service-page h1, .service-page h2 { font-family: Georgia,serif; font-weight: 400; letter-spacing: -.035em; line-height: 1.12; }
.service-page h1 { font-size: clamp(3rem,6.3vw,6.2rem); max-width: 1050px; margin: 22px 0; }
.service-page h1 span, .service-contact h2 span { display: block; }
.service-page h1 span:last-child { color: #77633b; }
.service-page h2 { font-size: clamp(2rem,3.6vw,3.5rem); max-width: 920px; margin: 0 0 24px; }
.service-page h3 { line-height: 1.4; }
.service-page p { max-width: 760px; }
.service-page .service-kicker { color: #665731; font-size: .72rem; font-weight: 500; letter-spacing: .14em; margin: 0 0 22px; }
.service-subtitle { font-size: 1rem; color: #665731; }
.service-lead { font-size: 1.1rem; color: #4c5359; }
.service-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 30px; }
.service-primary { background: #142235; color: #f8f5ed; }
.service-page .text-btn { color: inherit; }
.data-motif { display: flex; align-items: center; gap: 16px; margin-top: 60px; color: #665731; font-size: .65rem; letter-spacing: .08em; }
.data-motif i { flex: 1; height: 1px; background: #b4a17b; }
.service-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; background: #e7e3d9; }
.service-intro p { margin: 0; font-size: 1.1rem; }
.section-note { color: #555d62; font-size: .95rem; }
.package-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin-top: 40px; }
.package { min-width: 0; padding: 28px 24px; border: 1px solid #bbb4a5; border-radius: 12px; background: #f7f4ed; }
.package.comprehensive { border-top: 3px solid #8d784d; padding-top: 26px; background: #e9e3d6; }
.package h3 { font-size: .9rem; letter-spacing: .07em; margin: 0 0 16px; }
.package .package-price { font-size: clamp(1.3rem,2vw,1.8rem); line-height: 1.4; color: #19283a; font-weight: 500; }
.package p { color: #535752; font-size: .95rem; }
.package ul { padding-left: 20px; margin: 24px 0; }
.package li { margin: 12px 0; font-size: .92rem; }
.package .package-note { font-size: .85rem; border-top: 1px solid #ccc4b4; padding-top: 18px; }
.comparison { margin-top: 52px; }
.comparison table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .88rem; }
.comparison caption { text-align: left; color: #665731; padding: 12px 0; }
.comparison th, .comparison td { border-bottom: 1px solid #c7c0b2; padding: 16px 12px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.comparison thead th { font-size: .73rem; font-weight: 600; }
.comparison th:first-child { width: 34%; }
.comparison tbody th { font-weight: 500; }
.addon-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 32px; margin: 32px 0; }
.addon-grid div { padding: 22px 0; border-bottom: 1px solid #bbb4a5; }
.addon-grid dt { font-weight: 500; }
.addon-grid dd { margin: 8px 0 0; color: #665731; }
.service-context { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; background: #e7e3d9; }
.service-context h2 { font-size: 1.85rem; }
.service-context ul { padding-left: 20px; }
.service-context li { margin-bottom: 12px; }
.tool-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-list span { border: 1px solid #b9b1a0; padding: 5px 12px; border-radius: 999px; font-size: .85rem; }
.service-workflow { padding: 0; list-style: none; margin-top: 40px; }
.service-workflow li { display: grid; grid-template-columns: 70px minmax(0,1fr); gap: 24px; border-top: 1px solid #bbb4a5; padding: 28px 0; }
.step-number { font-family: Georgia,serif; font-size: 2.5rem; color: #8a7447; }
.service-workflow h3 { margin: 0; font-weight: 500; font-size: 1.35rem; }
.service-workflow p { margin-bottom: 0; color: #525b62; }
.service-notes { background: #e7e3d9; }
.service-notes ul { padding-left: 20px; max-width: 950px; }
.service-notes li { padding-bottom: 12px; }
.service-contact .email-contact { margin-top: 40px; padding: 24px 0 0; border-top: 1px solid #c7c0b2; scroll-margin-top: calc(var(--sticky-header-height,80px) + 20px); }
#contact-email { overflow-wrap: anywhere; font-size: clamp(1rem,2vw,1.35rem); }
#copy-email { min-height: 44px; padding: 10px 16px; color: #17283b; background: transparent; border: 1px solid #8f8776; border-radius: 6px; cursor: pointer; }
#copy-status { min-height: 1.75em; font-size: .9rem; }
.service-footer { margin: 0; padding: 32px max(24px,5vw); background: #07111f; color: #d4dfeb; --focus-color: #badeff; }
.service-footer a { text-decoration: underline; }
html[lang="th"] .service-page :is(h1,h2,h3) { font-family: "Anuphan", "Noto Sans Thai", system-ui, sans-serif; letter-spacing: normal; line-height: 1.45; font-weight: 500; }
html[lang="th"] .service-page h1 { font-size: clamp(2.1rem,4.8vw,4.5rem); }
html[lang="th"] .service-page .service-kicker { letter-spacing: normal; }
@media (max-width: 1024px) {
  .package-grid { gap: 12px; }
  .package { padding: 24px 16px; }
  .service-context { grid-template-columns: 1fr 1fr; }
  .service-context > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .service-header { grid-template-columns: minmax(0,1fr) auto; gap: 4px 12px; padding: 10px 20px; }
  .service-header .language-switch { grid-column: 2; grid-row: 1; }
  .service-header .back-link { grid-column: 1 / -1; min-height: 32px; font-size: .8rem; }
  .service-page section { padding: 52px 20px; }
  .service-intro, .service-context, .package-grid { grid-template-columns: 1fr; gap: 24px; }
  .service-context > div:first-child { grid-column: auto; }
  .service-page h1 { font-size: clamp(2.7rem,10vw,4rem); }
  html[lang="th"] .service-page h1 { font-size: clamp(1.8rem,7vw,3rem); }
  .package { padding: 26px; }
  .package .package-price { font-size: 1.65rem; }
  .comparison th,.comparison td { padding: 12px 4px; font-size: .72rem; }
  .comparison thead th { font-size: .62rem; }
  .comparison th:first-child { width: 30%; }
  .addon-grid { grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .data-motif { gap: 8px; font-size: .5rem; letter-spacing: 0; }
  .data-motif i { min-width: 4px; }
  .service-workflow li { grid-template-columns: 42px minmax(0,1fr); gap: 16px; }
  .service-footer { flex-wrap: wrap; gap: 16px; }
}

@media (max-width: 767px) {
  .comparison thead th { white-space: nowrap; letter-spacing: -.02em; }
}

/* Quiet analytical details: decoration stays behind the reading surface. */
.service-hero, .capabilities, #add-ons { position: relative; isolation: isolate; }
.service-hero::before, #add-ons::before { content: ""; position: absolute; z-index: -1; pointer-events: none; inset: 0; opacity: .045; background-image: linear-gradient(#665731 1px,transparent 1px),linear-gradient(90deg,#665731 1px,transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(110deg,transparent 40%,#000); }
.capability-grid { list-style: none; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; padding: 0; margin: 32px 0 0; }
.capability-grid li { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 16px 12px; border: 1px solid #c9c0af; border-radius: 8px; font-size: .85rem; line-height: 1.5; background: #f6f3ec; }
.notation { flex: 0 0 28px; color: #77633b; font-family: Georgia,serif; font-size: 1.3rem; text-align: center; }
.method-notation { display: flex; align-items: center; justify-content: center; min-width: 64px; width: fit-content; min-height: 44px; margin-bottom: 16px; padding: 4px 12px; border: 1px solid #c7bda8; border-radius: 6px; color: #77633b; font-family: Georgia,serif; font-size: 1.3rem; background: #f5f1e8; }
.addon-grid div { position: relative; padding: 24px 0; }
.addon-grid dd { font-variant-numeric: tabular-nums; }
.package, .capability-grid li, .tool-list span, .addon-grid div { transition: border-color .2s ease, background-color .2s ease, transform .2s ease; }
.comparison thead { background: #e7e1d4; }
.comparison tbody tr:nth-child(even) { background: rgba(102,87,49,.035); }
.service-context { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 48px; }
.service-context > div:first-child { grid-column: 1 / -1; padding-bottom: 36px; border-bottom: 1px solid #bcb4a3; }
.tool-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; max-width: 800px; margin-top: 28px; }
.tool-list span { display: flex; align-items: center; gap: 12px; padding: 18px; border-radius: 8px; background: #f5f1e8; font-size: 1rem; font-weight: 500; }
.tool-list span::before { content: ""; flex: 0 0 16px; height: 16px; border: 1px solid #8d784d; background: linear-gradient(90deg,transparent 45%,#8d784d 45% 52%,transparent 52%),linear-gradient(transparent 45%,#8d784d 45% 52%,transparent 52%); opacity: .7; }
.service-context ul { list-style: none; padding: 0; }
.service-context li { padding: 14px 0 14px 22px; position: relative; border-bottom: 1px solid #c7c0b2; margin: 0; }
.service-context li::before { content: ""; position: absolute; left: 0; top: 26px; width: 8px; height: 1px; background: #8d784d; }
.service-workflow li { position: relative; }
.service-workflow li:not(:last-child)::after { content: ""; position: absolute; top: 92px; bottom: 12px; left: 20px; width: 1px; background: #c7bda8; }
.step-number { position: relative; z-index: 1; }
.integrity-note { border-left: 2px solid #8d784d; padding: 12px 0 12px 24px; margin: 32px 0; max-width: 880px; }
.integrity-note h3 { font-family: Georgia,serif; font-size: clamp(1.4rem,2.6vw,2rem); font-weight: 400; margin: 0 0 16px; }
.integrity-note .service-kicker { margin-bottom: 14px; }
.integrity-note p:last-child { margin-bottom: 0; }
.service-primary, #copy-email { transition: background-color .2s ease, border-color .2s ease; }
@media (hover: hover) and (pointer: fine) {
  .package:hover, .capability-grid li:hover { border-color: #8d784d; transform: translateY(-2px); }
  .tool-list span:hover { background: #ebe4d6; border-color: #8d784d; }
  .addon-grid div:hover { border-color: #8d784d; }
  .service-primary:hover { background: #283d55; }
  #copy-email:hover { background: #e5ddce; }
}
@media (max-width: 1024px) { .capability-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 767px) {
  .capability-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .capability-grid li { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
  .notation { flex-basis: auto; }
  .service-context { grid-template-columns: 1fr; gap: 32px; }
  .tool-list { grid-template-columns: 1fr; gap: 10px; }
  .tool-list span { padding: 14px 16px; }
  .service-workflow li:not(:last-child)::after { left: 16px; }
  .integrity-note { padding-left: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .service-hero::before, #add-ons::before { display: none; }
  .package:hover, .capability-grid li:hover { transform: none; }
}

/* Final studio details: small accents, consistent analytical identities. */
.package-label { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.package-accent { flex: 0 0 auto; font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif; font-size: 1.15rem; line-height: 1; font-weight: 400; }
.package.comprehensive { border-color: #9e8b63; }
.service-intro > p { padding-left: 28px; border-left: 1px solid #bcb4a3; }
.methods-context { max-width: 840px; padding-bottom: 36px; margin-bottom: 44px; border-bottom: 1px solid #c7c0b2; }
.methods-context h3 { font-family: Georgia,serif; font-size: clamp(1.55rem,2.7vw,2.4rem); font-weight: 400; line-height: 1.3; margin: 0 0 18px; }
.methods-context > p:last-child { margin-bottom: 0; color: #525b62; }
.addon-grid { gap: 20px 32px; }
.addon-grid > div { padding: 24px 0 22px; border-top: 1px solid #c7c0b2; border-bottom: 0; }
.addon-grid dt { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; line-height: 1.45; }
.method-notation { width: 88px; height: 72px; min-height: 72px; margin: 0; padding: 8px; font-size: 1.8rem; font-weight: 400; line-height: 1; letter-spacing: -.02em; border-radius: 4px; color: #79633a; background: #f8f5ee; border-color: #c7bda8; box-shadow: inset 0 -3px 0 #ebe4d6; transition: transform .2s ease, border-color .2s ease; }
.addon-grid dd { margin-top: 10px; font-size: .95rem; color: #525b62; }
.tool-list > span { min-height: 80px; gap: 16px; }
.tool-list > span::before { content: none; }
.tool-logo { display: block; flex: 0 0 36px; width: 36px; height: 36px; object-fit: contain; }
.service-workflow li:not(:last-child)::after { bottom: -1px; }
@media (hover: hover) and (pointer: fine) {
  .addon-grid > div:hover .method-notation { transform: translateY(-2px); border-color: #8d784d; }
}
@media (max-width: 767px) {
  .service-intro > p { padding-left: 20px; }
  .methods-context { padding-bottom: 28px; margin-bottom: 32px; }
  .addon-grid { gap: 18px; }
  .tool-list > span { min-height: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .addon-grid > div:hover .method-notation { transform: none; }
}
.method-notation { white-space: nowrap; }
.addon-grid > div:first-child .method-notation { font-size: 1.25rem; }

/* Integrated package signatures and research badges. */
.package-accent { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: 0 0 42px; color: #7b6944; border: 1px solid #c9bea7; border-radius: 7px; background: #f0ebe0; }
.package-accent svg { display: block; width: 30px; height: 30px; }
.package.comprehensive .package-accent { color: #eee6d6; background: #263447; border-color: #263447; }
.package-label { min-height: 42px; }
.method-notation { width: 84px; height: 84px; min-height: 84px; min-width: 84px; border-radius: 50%; background: #f6f2e9; color: #263447; border: 1px solid #b8ab90; box-shadow: inset 0 0 0 5px #efe9dc; font-size: 1.85rem; }
.addon-grid > div:first-child .method-notation { font-size: 1.15rem; }
.addon-grid > div:nth-child(2n) .method-notation { color: #79633a; }
.addon-grid dt { gap: 20px; }
.addon-grid dd { padding-top: 2px; }
.tool-list > span { padding: 18px 22px; gap: 18px; background: #f6f2ea; border-color: #bfb5a1; border-radius: 7px; }
.tool-logo { padding: 2px; }
.service-contact .email-contact { max-width: 760px; border-top-color: #afa185; }
.service-contact #copy-email { background: #f6f2ea; }
@media (max-width: 767px) {
  .tool-list > span { padding: 16px 18px; }
  .package-label { gap: 12px; }
}

/* Final emblem family: fine geometry, consistent ink and double-ring seals. */
.service-page { --emblem-ink: #263447; --emblem-gold: #79633a; --emblem-rule: #b8ab90; --emblem-paper: #f6f2e9; }
.package-accent { color: var(--emblem-gold); background: var(--emblem-paper); border-color: var(--emblem-rule); }
.package-accent svg { stroke-width: 1.25; }
.package.comprehensive .package-accent { background: var(--emblem-ink); border-color: var(--emblem-ink); }
.method-notation { position: relative; isolation: isolate; color: var(--emblem-ink); border-color: var(--emblem-rule); background: var(--emblem-paper); box-shadow: none; }
.method-notation::before { content: ""; position: absolute; inset: 5px; border: 1px solid var(--emblem-rule); border-radius: 50%; opacity: .55; pointer-events: none; }
.method-notation::after { content: ""; position: absolute; left: 50%; bottom: 9px; width: 12px; height: 2px; transform: translateX(-50%); border-left: 1px solid var(--emblem-rule); border-right: 1px solid var(--emblem-rule); pointer-events: none; }
.method-notation.has-motif { padding-bottom: 17px; }
.method-notation.has-motif .method-glyph { font-size: 1.5rem; }
.method-motif { position: absolute; bottom: 13px; left: 50%; transform: translateX(-50%); width: 25px; height: 18px; color: var(--emblem-gold); }
.tool-list { align-items: stretch; }
.tool-list > span { min-height: 80px; padding: 18px 22px; gap: 18px; }
.tool-logo { flex-shrink: 0; }
@media (max-width: 767px) {
  .tool-list > span { min-height: 72px; padding: 16px 18px; }
}
