/* Existing palette and typography; one owner for the portfolio and mobile menu. */
body { background: #fbfbfd; }
[hidden] { display: none !important; }
.idedx-brand { text-transform: none; letter-spacing: 0; }
.st-head .container-x { gap: 18px; }
.st-nav a, .st-tools a { min-height: 44px; display: inline-flex; align-items: center; }
.st-head img { width: 125px; height: auto; }
.idedx-menu-toggle {
  border: 1px solid #647184; border-radius: 6px; padding: 9px 15px;
  min-height: 44px; background: transparent; color: white; cursor: pointer;
}
.idedx-skip { position: absolute; top: -80px; left: 16px; z-index: 100; }
.idedx-skip:focus { top: 12px; background: white; color: #0d192a; padding: 12px; }
.pf { max-width: 1280px; margin: auto; padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 72px); color: #0d192a; }
.pf h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 600; line-height: 1.15; letter-spacing: -.025em; margin: 0 0 18px; }
.pf > p { max-width: 74ch; line-height: 1.65; margin: 0 0 16px; }
.pf-note { color: #526174; font-size: 14px; border-left: 2px solid #b34308; padding-left: 14px; }
.pf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 28px 0 0; }
.pf-card {
  min-width: 0; border: 1px solid #e1e4e9; border-radius: 12px; background: #fff;
  padding: 22px; display: flex; flex-direction: column; gap: 12px;
}
.pf-card:hover { border-color: #bd8d72; }
.pf-card img { width: 100%; height: 172px; object-fit: cover; border-radius: 7px; }
.pf-card .pf-solution-image { height: auto; aspect-ratio: 16 / 10; background: #f5f5f7; }
.pf-image-notice { font-size: 12px; color: #647184; margin-top: 20px; }
.pf-card h3 { font-size: 20px; font-weight: 600; line-height: 1.3; margin: 0; }
.pf-card p { line-height: 1.6; margin: 0; color: #40526a; }
.pf-card small { font-size: 12px; line-height: 1.5; color: #526174; }
.pf-card .pf-category-number { color: #a64112; font: 600 13px ui-monospace, monospace; }
.pf-card a { color: #a23d08; font-weight: 600; padding-block: 10px; margin-top: auto; min-height: 44px; }
.pf-editorial { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pf-editorial .pf-card, .pf-editorial .pf-card:nth-child(-n+2) { grid-column: auto; }
.pf-toolbar { margin-block: 26px; }
.pf label { display: block; font-weight: 600; margin: 0 0 8px; }
.pf input { width: min(100%, 560px); min-height: 48px; background: #fff; border: 1px solid #a7adb7; border-radius: 8px; padding: 12px 14px; color: #0d192a; }
.pf-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.pf-filters button, #pf-reset, #pf-close {
  min-height: 44px; text-align: left; padding: 10px 14px; border: 1px solid #dce0e6;
  border-radius: 8px; background: #f5f5f7; color: #24364d; cursor: pointer; line-height: 1.4;
}
.pf-filters button[aria-pressed="true"] { background: #a94308; color: #fff; border-color: #a94308; }
.pf-count-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
#pf-count { margin: 0; color: #526174; }
.pf dialog {
  inset: 0; margin: auto; width: min(700px, calc(100% - 32px)); max-height: 88dvh;
  overflow-y: auto; padding: clamp(20px, 4vw, 36px); border: 1px solid #dce0e6;
  border-radius: 14px; background: #fbfbfd; color: #0d192a;
}
.pf dialog::backdrop { background: rgb(13 25 42 / .55); }
.pf dialog h2 { font-size: clamp(24px, 4vw, 32px); margin: 20px 0 24px; }
.pf-detail-body h3 { font-size: 16px; font-weight: 650; margin: 22px 0 8px; }
.pf-detail-body p { line-height: 1.7; color: #40526a; margin: 0 0 12px; }
.pf-related { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.pf-related a { border: 1px solid #dce0e6; border-radius: 7px; min-height: 44px; padding: 10px 12px; color: #a23d08; }
.pf-action { display: inline-flex; align-items: center; min-height: 48px; border-radius: 7px; padding: 12px 18px; background: #a94308; color: #fff; font-weight: 600; margin-block: 10px; }
.pf-fallback { margin-top: 32px; }
.pf-fallback details { border-block-start: 1px solid #dce0e6; padding-block: 16px; }
.pf-fallback summary { cursor: pointer; min-height: 44px; font-weight: 600; }
.pf :focus-visible, .idedx-menu-toggle:focus-visible { outline: 2px solid #b34308; outline-offset: 4px; }
.idedx-example { background: #f5f5f7; border-top: 1px solid #dce0e6; }
.idedx-example .container-x { max-width: 960px; }
.idedx-example h2 { font-size: clamp(25px, 4vw, 36px); line-height: 1.2; margin-block: 12px 22px; }
.idedx-example dt { font-weight: 600; margin-top: 16px; }
.idedx-example dd { margin: 6px 0 0; color: #40526a; line-height: 1.6; }
#contact-status[data-state="success"] { color: #166534; }
#contact-status[data-state="pending"] { color: #526174; }
#contact-status[data-state="error"] { color: #b91c1c; }
.idedx-selected { border: 1px solid #dcc4b5; background: #fff8f2; border-radius: 8px; padding: 14px; }
.idedx-selected label { display: block; font-weight: 600; margin-bottom: 6px; }
.idedx-selected input { width: 100%; color: #24364d; background: transparent; border: 0; }
@media (min-width: 1001px) { .idedx-menu-toggle { display: none; } }
@media (max-width: 1000px) {
  .st-head .container-x { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
  .st-head .st-nav, .st-head .st-tools { grid-column: 1 / -1; margin: 0; }
  .st-head .st-nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .st-head .st-nav a { padding-block: 10px; border-bottom: 1px solid #263548; }
  .has-menu-js .st-head .st-nav:not(.is-open), .has-menu-js .st-head .st-tools:not(.is-open) { display: none; }
  .pf-grid, .pf-editorial { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .pf-grid, .pf-editorial { grid-template-columns: minmax(0, 1fr); }
  .pf-card { padding: 20px; }
  .pf-card img { height: 180px; }
  .pf-filters { gap: 7px; }
  .pf-filters button { max-width: 100%; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important; }
}
