/* LM Repair Portal 0.8.1. Scoped service homepage; no posting/CTF/image overrides. */
.lmp-home { --lmp-accent: #e3442b; color: var(--lm-ink); }
.lmp-home *, .lmp-service-nav, .lmp-mobile-nav { box-sizing: border-box; }
.lmp-home section[id], .lmp-home details[id] { scroll-margin-top: 24px; }
.lmp-home h1, .lmp-home h2, .lmp-home h3 { color: var(--lm-ink); font-family: inherit; font-weight: 800; text-transform: none; border: 0; }
.lmp-home h1 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.2; letter-spacing: -.05em; margin: 16px 0; }
.lmp-home h2 { font-size: clamp(27px, 3vw, 36px); line-height: 1.35; letter-spacing: -.035em; margin: 10px 0 16px; }
.lmp-home h3 { font-size: 21px; line-height: 1.5; margin: 12px 0; }
.lmp-home p, .lmp-home li { color: var(--lm-muted); font-size: 15px; line-height: 1.9; }
.lmp-home p { margin: 0 0 18px; }
.lmp-home a { text-decoration: none; }
.lmp-home a:hover { text-decoration: none; }
.lmp-home .lmp-eyebrow { color: var(--lmp-accent); font-size: 11px; font-weight: 800; letter-spacing: .2em; }
.lmp-home .lmp-motto { color: var(--lm-ink); font-size: 17px; margin-bottom: 24px; }
.lmp-home .lmp-lead { font-size: 16px; }
.lmp-home .lmp-note { font-size: 12px; margin: 18px 0 0; }
.lmp-home .lmp-text-link { color: var(--lmp-accent); font-weight: 700; font-size: 14px; }
.lmp-home .lmp-text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.lmp-home .lmp-button { align-items: center; background: #fff; border: 1px solid var(--lm-line); border-radius: 12px; color: var(--lm-ink); display: inline-flex; font-size: 15px; font-weight: 800; gap: 12px; justify-content: center; min-height: 48px; padding: 14px 22px; text-align: center; line-height: 1.45; }
.lmp-home .lmp-button:hover { border-color: var(--lmp-accent); }
.lmp-home .lmp-primary { background: var(--lmp-accent); border-color: var(--lmp-accent); box-shadow: 0 12px 24px rgba(227, 68, 43, .15); color: #fff; }
.lmp-home .lmp-primary:hover { background: #c93721; color: #fff; }
.lmp-home .lmp-dark { background: var(--lm-ink); border-color: var(--lm-ink); color: #fff; }
.lmp-home a:focus-visible, .lmp-home button:focus-visible, .lmp-home summary:focus-visible,
.lmp-service-nav a:focus-visible, .lmp-mobile-nav a:focus-visible,
#lmp-language-slot select:focus-visible, .lmp-community>summary:focus-visible {
  outline: 3px solid #6747bc; outline-offset: 4px;
}
.lmp-home [hidden] { display: none !important; }

/* Header keeps the original phpBB menu and search. Only the existing extension
   selector is moved here; ACP controls whether that selector exists at all. */
.lmp-service-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; padding: 10px 4px 18px; }
.lmp-service-nav a { color: var(--lm-ink); font-size: 13px; font-weight: 700; padding: 8px 0; }
.lmp-service-nav .lmp-nav-lookup { color: #c93721; margin-inline-start: auto; }
#page-header .site_logo.lmp-brand-mark { background: transparent; border-radius: 12px; box-shadow: none; width: 64px; height: 64px; flex: 0 0 64px; overflow: hidden; }
#page-header .lmp-brand-mark img { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; border: 0; }
#page-header .lm-header-menu { order: 5; }
#page-header .search-header { margin-inline-start: auto; }
#lmp-language-slot { flex: 0 1 auto; order: 4; min-width: 0; }
#lmp-language-slot:empty { display: none; }
#lmp-language-slot .mydc-ml-switcher { margin: 0 !important; text-align: start !important; }
#lmp-language-slot label { color: var(--lm-muted); font-size: 11px; display: grid; gap: 3px; }
#lmp-language-slot select { background: #fff; border: 1px solid var(--lm-line); border-radius: 9px; color: var(--lm-ink); font-family: inherit; font-size: 13px; min-height: 36px; max-width: 170px; padding: 5px 8px; }

/* Hero: code-native illustration, independent from customer case data. */
.lmp-hero { align-items: center; display: grid; gap: 48px; grid-template-columns: 1.1fr 1fr; padding: 44px 0 60px; }
.lmp-hero>div { min-width: 0; }
.lmp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 20px; }
.lmp-tags { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--lm-muted); font-size: 12px; }
.lmp-tags span:before { content: ''; display: inline-block; width: 5px; height: 5px; background: var(--lm-primary); border-radius: 50%; margin-inline-end: 7px; vertical-align: middle; }
.lmp-art { background: linear-gradient(140deg, #fff0e9, #eee9f5); border-radius: 30px; height: 370px; position: relative; overflow: hidden; }
.lmp-art-caption { position: absolute; top: 26px; left: 25px; font-size: 9px; letter-spacing: .16em; color: #78666f; }
.lmp-camera { background: linear-gradient(130deg, #4a4553, #1b1920); border-radius: 25px; width: 64%; height: 46%; position: absolute; top: 31%; left: 20%; transform: rotate(-7deg); box-shadow: 10px 36px 38px rgba(39, 28, 52, .22); }
.lmp-camera-top { width: 34%; height: 21%; background: #322e3a; border-radius: 13px 13px 0 0; position: absolute; left: 10%; top: -16%; }
.lmp-camera-flash { width: 10%; height: 12%; background: #b7adba; border-radius: 4px; position: absolute; right: 10%; top: 12%; }
.lmp-camera-lens { position: absolute; width: 49%; aspect-ratio: 1; top: 11%; left: 28%; border: 11px solid #68606e; border-radius: 50%; background: radial-gradient(circle, #3e3747 0 31%, #121017 32% 60%, #2a2530 61%); box-shadow: 0 3px 5px rgba(0,0,0,.2); }
.lmp-camera>span { color: #b9b1c0; font-size: 9px; letter-spacing: .2em; position: absolute; left: 8%; bottom: 12%; }
.lmp-art-label { display: flex; align-items: center; gap: 12px; padding: 17px 19px; background: #fff; position: absolute; left: 20px; right: 20px; bottom: 21px; border-radius: 17px; box-shadow: 0 10px 20px rgba(39, 28, 52, .06); }
.lmp-art-label small { color: var(--lm-muted); display: block; font-size: 10px; margin-bottom: 5px; }
.lmp-art-label strong { color: var(--lm-ink); display: block; font-size: 17px; }
.lmp-art-icon { display: grid; place-items: center; background: #fff0e9; color: #d24129; border-radius: 11px; width: 42px; height: 42px; flex-shrink: 0; font-size: 23px; }

/* Authenticated server output only; no browser-side stage guessing. */
.lmp-lookup { background: #f2eff5; border: 1px solid var(--lm-line); border-radius: 26px; display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px; padding: 36px; align-items: center; }
.lmp-lookup>div { min-width: 0; }
.lmp-lookup p { max-width: 420px; }
.lmp-case-card { background: #fff; border-radius: 20px; padding: 28px; border: 1px solid #ede8f1; }
.lmp-case-card h3 { margin: 16px 0 10px; }
.lmp-case-card small { display: block; color: var(--lm-muted); font-size: 12px; line-height: 1.8; margin-top: 15px; }
.lmp-lock { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #f1edfa; color: #685199; font-size: 20px; }
.lmp-case-label { display: block; font-size: 12px; color: var(--lm-muted); margin-bottom: 6px; }
.lmp-home .lmp-case-number { color: var(--lm-ink); font-size: clamp(19px, 2.2vw, 27px); font-weight: 800; overflow-wrap: anywhere; line-height: 1.5; }
.lmp-home .lmp-case-number:hover { color: var(--lmp-accent); text-decoration: underline; }
.lmp-case-status { align-items: center; display: flex; gap: 16px; margin: 24px 0; padding-top: 22px; border-top: 1px solid var(--lm-line); }
.lmp-case-status strong { display: block; font-size: 20px; overflow-wrap: anywhere; }
.lmp-case-symbol { display: grid; place-items: center; border-radius: 12px; background: #fff0e9; color: #c93721; width: 44px; height: 44px; font-size: 24px; flex-shrink: 0; }

.lmp-section { padding: 66px 0; }
.lmp-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.lmp-section-head h2 { margin-bottom: 0; }
.lmp-section-head p { margin: 0; max-width: 370px; font-size: 13px; }
.lmp-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lmp-home .lmp-service-card { color: var(--lm-ink); background: #fff; border: 1px solid var(--lm-line); border-radius: 18px; padding: 26px; display: block; transition: border-color .15s; }
.lmp-home .lmp-service-card:hover { border-color: #e3442b; }
.lmp-service-number { color: #967e79; font-size: 11px; letter-spacing: .08em; }
.lmp-service-card h3 { margin: 24px 0 12px; }
.lmp-service-card p { font-size: 13px; min-height: 50px; }
.lmp-knowledge { border-top: 1px solid var(--lm-line); }
.lmp-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.lmp-filters button { background: #fff; border: 1px solid var(--lm-line); color: var(--lm-muted); border-radius: 100px; font: inherit; font-size: 12px; cursor: pointer; min-height: 40px; padding: 8px 17px; }
.lmp-filters button[aria-pressed="true"] { background: var(--lm-ink); border-color: var(--lm-ink); color: #fff; }
.lmp-reading-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px; }
.lmp-reading-card { background: #fff; border: 1px solid var(--lm-line); border-radius: 20px; overflow: hidden; }
.lmp-reading-card summary { position: relative; display: block; list-style: none; padding: 25px; cursor: pointer; }
.lmp-reading-card summary::-webkit-details-marker { display: none; }
.lmp-reading-title { display: block; color: var(--lm-ink); font-size: 20px; font-weight: 800; line-height: 1.5; padding-inline-end: 18px; min-height: 60px; margin: 12px 0 20px; }
.lmp-reading-icon { background: #f3edf5; color: #7f6193; border-radius: 12px; display: inline-grid; place-items: center; width: 42px; height: 42px; margin-inline-end: 12px; }
.lmp-reading-kicker { color: var(--lm-muted); font-size: 12px; }
.lmp-read-toggle { font-size: 12px; color: #c93721; font-weight: 700; }
.lmp-plus { position: absolute; right: 23px; bottom: 23px; color: #c93721; font-size: 21px; }
.lmp-reading-card[open] .lmp-plus { transform: rotate(45deg); }
.lmp-reading-body { margin: 0 25px; padding: 20px 0 25px; border-top: 1px solid var(--lm-line); }
.lmp-reading-body p { font-size: 14px; }
.lmp-process { background: #2b2737; border-radius: 26px; padding: 36px; }
.lmp-process h2, .lmp-process h3 { color: #fff; }
.lmp-process .lmp-eyebrow, .lmp-process .lmp-text-link { color: #ffb29f; }
.lmp-process-grid { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 25px; }
.lmp-process-grid li { min-width: 0; }
.lmp-process-grid h3 { font-size: 18px; margin: 18px 0 8px; }
.lmp-process-grid p { font-size: 13px; color: #d3cedc; margin: 0; }
.lmp-step-number { font-size: 13px; color: #ffb29f; border-bottom: 1px solid #55505f; display: block; padding-bottom: 14px; letter-spacing: .06em; }
.lmp-guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lmp-shipping-card, .lmp-info-card { padding: 30px; border-radius: 20px; border: 1px solid var(--lm-line); background: #fff; }
.lmp-shipping-card { background: #fff1ea; border-color: #fbe3d7; }
.lmp-shipping-card h3 { font-size: 34px; line-height: 1.4; margin: 20px 0; }
.lmp-shipping-card ul { margin: 0 0 24px; padding-inline-start: 20px; }
.lmp-kicker { font-size: 11px; letter-spacing: .06em; color: #786563; }
.lmp-guide-stack { display: grid; gap: 20px; }
.lmp-info-card p { font-size: 14px; margin-bottom: 12px; }
.lmp-faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; border-top: 1px solid var(--lm-line); padding-top: 50px; }
.lmp-faq-list details { border-bottom: 1px solid var(--lm-line); }
.lmp-faq-list summary { padding: 20px 0; font-size: 15px; font-weight: 700; cursor: pointer; }
.lmp-faq-list details p { font-size: 14px; padding: 0 0 10px; }
.lmp-closing { align-items: center; background: #fff; border: 1px solid var(--lm-line); border-radius: 26px; display: flex; gap: 24px; justify-content: space-between; padding: 35px; margin-bottom: 35px; }
.lmp-closing p { margin-bottom: 0; }
.lmp-closing .lmp-button { flex-shrink: 0; }
.lmp-community { border-top: 1px solid var(--lm-line); margin-bottom: 25px; }
.lmp-community>summary { color: var(--lm-muted); cursor: pointer; font-size: 13px; padding: 20px 5px; }
.lmp-community-content { padding-top: 10px; }
.lmp-mobile-nav a { min-height: 44px; justify-content: center; }

@media (max-width: 1050px) {
  #page-header .headerbar>.inner { flex-wrap: wrap; }
  #page-header .search-header { display: none; }
  #lmp-language-slot { margin-inline-start: auto; }
  .lmp-hero { gap: 25px; }
  .lmp-art { height: 340px; }
  .lmp-actions .lmp-button { padding: 12px 15px; font-size: 14px; }
  .lmp-section-head { align-items: flex-start; }
  .lmp-service-card { padding: 20px; }
}
@media (max-width: 760px) {
  .lmp-service-nav { gap: 8px 16px; padding-bottom: 10px; }
  .lmp-service-nav a { font-size: 12px; }
  .lmp-hero { grid-template-columns: 1fr; padding: 28px 0 40px; gap: 28px; }
  .lmp-home h1 { font-size: clamp(36px, 7vw, 48px); }
  .lmp-art { height: 320px; max-width: 510px; width: 100%; margin: 0 auto; }
  .lmp-camera { width: 62%; height: 50%; top: 27%; }
  .lmp-section { padding: 40px 0; }
  .lmp-section-head { display: block; }
  .lmp-section-head p { margin-top: 12px; }
  .lmp-lookup { grid-template-columns: 1fr; gap: 22px; padding: 24px; }
  .lmp-case-card { padding: 24px; }
  .lmp-service-grid { grid-template-columns: 1fr; gap: 12px; }
  .lmp-home .lmp-service-card { padding: 22px; }
  .lmp-service-card h3 { margin: 10px 0; }
  .lmp-service-card p { min-height: 0; }
  .lmp-reading-grid { gap: 12px; }
  .lmp-reading-card summary { padding: 20px; }
  .lmp-reading-title { font-size: 18px; }
  .lmp-reading-kicker { display: block; margin-top: 10px; }
  .lmp-reading-body { margin: 0 20px; }
  .lmp-process { padding: 26px; }
  .lmp-process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; }
  .lmp-guide-grid, .lmp-faq { grid-template-columns: 1fr; gap: 20px; }
  .lmp-shipping-card, .lmp-info-card { padding: 25px; }
  .lmp-faq-list summary { min-height: 48px; }
  .lmp-closing { flex-direction: column; align-items: flex-start; padding: 28px; }
}
@media (max-width: 520px) {
  #page-header .site_logo.lmp-brand-mark { width: 56px; height: 56px; flex-basis: 56px; border-radius: 10px; }
  #lmp-language-slot { flex: 0 0 100%; order: 6; display: flex; justify-content: flex-end; }
  #lmp-language-slot:empty { display: none; }
  #lmp-language-slot label { display: flex; align-items: center; gap: 10px; }
  #page-header .lm-header-menu { margin-inline-start: auto; }
  .lmp-service-nav { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .lmp-service-nav .lmp-nav-lookup { margin-inline-start: 0; }
  .lmp-home h1 { font-size: clamp(31px, 8.3vw, 40px); }
  .lmp-home h2 { font-size: 26px; }
  .lmp-home .lmp-lead { font-size: 14px; }
  .lmp-actions { display: grid; grid-template-columns: 1fr; }
  .lmp-art { height: 270px; border-radius: 23px; }
  .lmp-art-label { left: 14px; right: 14px; padding: 13px; bottom: 16px; }
  .lmp-art-label strong { font-size: 16px; }
  .lmp-art-caption { font-size: 8px; top: 20px; left: 20px; }
  .lmp-camera-lens { border-width: 8px; }
  .lmp-lookup { padding: 20px 16px; border-radius: 22px; }
  .lmp-case-card { padding: 21px; }
  .lmp-reading-grid { grid-template-columns: 1fr; }
  .lmp-reading-title { min-height: 0; }
  .lmp-process-grid { gap: 20px; }
  .lmp-process { padding: 24px 20px; }
  .lmp-home .lmp-button { max-width: 100%; }
}
@media (max-width: 700px) {
  .lmp-mobile-nav { padding-bottom: env(safe-area-inset-bottom, 0px); height: calc(66px + env(safe-area-inset-bottom, 0px)); }
  body.section-index { padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .lmp-home *, .lmp-home *:before, .lmp-home *:after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .lmp-service-nav, .lmp-mobile-nav, #lmp-language-slot, .lmp-filters { display: none !important; }
  .lmp-home .lmp-hero, .lmp-home .lmp-lookup, .lmp-home .lmp-process, .lmp-home .lmp-closing { break-inside: avoid; }
}
