/* Patent detail page (/patent/{slug}). Laravel: @push('styles') on the gig page. */

.pd-page { padding: 28px 0 64px; background: #f5f6f8; }

/* ---------- Main sheet ---------- */
.pd-sheet { padding: 28px 32px 32px; border: 1px solid #e6e9ef; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(20, 26, 58, .04); }

.pd-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid #eef0f4; }
.pd-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-width: 0; font-size: 14px; color: #9aa3b8; }
.pd-crumbs a { display: inline-flex; align-items: center; color: var(--pm-muted); }
.pd-crumbs a:hover { color: var(--pm-footer); }
.pd-crumbs a:last-child { font-weight: 600; color: var(--pm-ink); }
.pd-crumbs svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pd-top__btns { display: flex; gap: 10px; }

.pd-btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 24px; border-radius: 8px; font-size: 14.5px; font-weight: 700; white-space: nowrap; transition: background .15s; }
.pd-btn--dark { background: var(--pm-ink); color: #fff; }
.pd-btn--dark:hover { background: #262e57; color: #fff; }
.pd-btn--blue { background: var(--pm-footer); color: #fff; }
.pd-btn--blue:hover { background: #123d80; color: #fff; }
.pd-btn--block { display: flex; width: 100%; height: 50px; margin-top: 20px; font-size: 15px; }

.pd-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(300px, 3fr); gap: 36px; align-items: start; }

/* ---------- Left ---------- */
.pd-title { font-size: clamp(22px, 2.1vw, 28px); line-height: 1.3; letter-spacing: -.3px; color: var(--pm-ink); }
/* Gallery slider */
.pd-gallery { margin-top: 18px; }
.pd-gallery__stage { position: relative; height: 380px; border: 1px solid #e6e9ef; border-radius: 12px; background: #f1f3f7; overflow: hidden; }
.pd-gallery__track { display: flex; height: 100%; transition: transform .4s ease; }
.pd-gallery__slide { flex: 0 0 100%; height: 100%; margin: 0; }
.pd-gallery__slide img { width: 100%; height: 100%; object-fit: contain; }
.pd-gallery__nav { position: absolute; top: 50%; display: grid; place-items: center; width: 42px; height: 42px; margin-top: -21px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(20, 26, 58, .18); color: var(--pm-ink); cursor: pointer; transition: background .15s, color .15s; }
.pd-gallery__nav:hover { background: var(--pm-footer); color: #fff; }
.pd-gallery__nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pd-gallery__nav--prev { left: 14px; }
.pd-gallery__nav--next { right: 14px; }
.pd-gallery__count { position: absolute; right: 14px; bottom: 14px; padding: 3px 10px; border-radius: 999px; background: rgba(20, 26, 58, .72); font-size: 12px; font-weight: 700; color: #fff; }
.pd-gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.pd-gallery__thumbs button { flex: 0 0 96px; height: 62px; padding: 0; border: 2px solid transparent; border-radius: 8px; background: #f1f3f7; overflow: hidden; opacity: .6; cursor: pointer; transition: opacity .15s, border-color .15s; }
.pd-gallery__thumbs button:hover { opacity: 1; }
.pd-gallery__thumbs button[aria-current="true"] { border-color: var(--pm-footer); opacity: 1; }
.pd-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-new { position: absolute; left: 14px; top: 14px; padding: 4px 12px; border-radius: 999px; background: #f2a516; font-size: 11.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: #1d1600; }

/* Description tabs (highlighted) */
.pd-about { margin-top: 28px; font-size: 18px; color: var(--pm-ink); }
.pd-tabs { margin-top: 12px; border: 1px solid #cfdaf0; border-radius: 12px; background: #fff; overflow: hidden; box-shadow: 0 6px 18px rgba(23, 75, 150, .08); }
.pd-tabs__list { display: flex; gap: 6px; padding: 6px; overflow-x: auto; scrollbar-width: none; background: #e9f0fb; }
.pd-tabs__list::-webkit-scrollbar { display: none; }
.pd-tabs__list button { flex: 1 0 auto; padding: 10px 14px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--pm-footer); white-space: nowrap; cursor: pointer; transition: background .15s, color .15s; }
.pd-tabs__list button:hover { background: #fff; }
.pd-tabs__list button[aria-selected="true"] { background: var(--pm-footer); color: #fff; box-shadow: 0 3px 10px rgba(23, 75, 150, .3); }
.pd-tabs__panel { position: relative; padding: 20px 22px 22px 26px; font-size: 15px; line-height: 1.75; color: var(--pm-text); }
.pd-tabs__panel::before { content: ""; position: absolute; left: 0; top: 20px; bottom: 22px; width: 4px; border-radius: 0 4px 4px 0; background: var(--pm-footer); }
.pd-tabs__panel a { font-weight: 700; color: var(--pm-footer); white-space: nowrap; }

/* ---------- Right ---------- */
.pd-facts { margin: 0; border: 1px solid #e6e9ef; border-radius: 12px; overflow: hidden; }
.pd-facts > div { display: grid; grid-template-columns: 42% 58%; }
.pd-facts > div + div { border-top: 1px solid #e6e9ef; }
.pd-facts dt { padding: 11px 12px; background: #eef3fb; font-size: 13px; font-weight: 600; color: var(--pm-footer); }
.pd-facts dd { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; margin: 0; padding: 11px 12px; font-size: 13.5px; font-weight: 600; color: var(--pm-ink); overflow-wrap: anywhere; }
.pd-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; overflow-wrap: anywhere; }
.pd-na { font-size: 13.5px; font-weight: 500; color: var(--pm-muted); }
.pd-st { display: inline-block; padding: 2px 10px; border-radius: 999px; font-family: inherit; font-size: 12px; font-weight: 700; line-height: 1.5; }
.pd-st--granted { background: #d8f2e2; color: #1d7a45; }
.pd-st--pending { background: #fff3d6; color: #8a5a00; }
.pd-st--application { background: #e3e8ff; color: #3341a3; }

.pd-seller { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; padding: 14px 16px; border: 1px solid #e6e9ef; border-radius: 12px; }
.pd-seller__av { display: grid; place-items: center; flex: 0 0 40px; height: 40px; border-radius: 50%; background: var(--pm-bg-tint); font-weight: 800; color: var(--pm-footer); }
.pd-seller__who { flex: 1; min-width: 0; }
.pd-seller small { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--pm-muted); }
.pd-seller strong { display: inline-flex; align-items: center; gap: 5px; font-size: 15px; color: var(--pm-ink); overflow-wrap: anywhere; }
.pd-seller strong svg { width: 17px; height: 17px; flex-shrink: 0; }
.pd-tick-bg { fill: #2f80ed; }
.pd-tick { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pd-seller__val { display: flex; align-items: baseline; justify-content: space-between; flex-basis: 100%; padding-top: 10px; border-top: 1px solid #e6e9ef; }

.pd-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.pd-quick a { display: flex; padding: 0 6px; text-align: center; align-items: center; justify-content: center; height: 40px; border: 1px solid #d6dce8; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--pm-footer); }
.pd-quick a:hover { border-color: var(--pm-footer); background: #f3f7fd; }

.pd-box { margin-top: 22px; padding-top: 20px; border-top: 1px solid #eef0f4; }
.pd-box h2 { margin-bottom: 12px; font-size: 15px; font-weight: 700; color: var(--pm-ink); }
.pd-doc { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--pm-text); }
.pd-doc span { flex: 1; }
.pd-doc a { font-weight: 700; color: var(--pm-footer); }
.pd-doc svg, .pd-acts svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: var(--pm-muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pd-acts { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.pd-acts button, .pd-acts a { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--pm-text); cursor: pointer; }
.pd-acts button:hover, .pd-acts a:hover { color: var(--pm-footer); }
.pd-acts button:hover svg, .pd-acts a:hover svg { stroke: var(--pm-footer); }
.pd-acts [aria-pressed="true"] { color: var(--pm-footer); }
.pd-acts [aria-pressed="true"] svg { fill: var(--pm-footer); stroke: var(--pm-footer); }

/* ---------- Below the sheet ---------- */
.pd-spec, .pd-similar { margin-top: 44px; }
.pd-head { margin-bottom: 16px; padding-left: 14px; border-left: 4px solid var(--pm-footer); }
.pd-head h2 { font-size: 20px; color: var(--pm-ink); }
.pd-head p { margin-top: 2px; font-size: 13.5px; color: var(--pm-muted); }
.pd-head--row { display: flex; align-items: end; justify-content: space-between; gap: 16px; }

.pd-tablewrap { overflow-x: auto; border: 1px solid #e6e9ef; border-radius: 12px; background: #fff; }
.pd-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
.pd-table th { padding: 13px 16px; background: #eef3fb; text-align: left; font-size: 13px; font-weight: 700; color: var(--pm-footer); white-space: nowrap; }
.pd-table td { padding: 14px 16px; border-top: 1px solid #eef0f4; color: var(--pm-ink); vertical-align: middle; }
.pd-cty { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.pd-foot { margin-top: 10px; font-size: 13px; color: var(--pm-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .pd-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 640px) {
    .pd-gallery__stage { height: 240px; }
    .pd-gallery__nav { width: 36px; height: 36px; margin-top: -18px; }
    .pd-gallery__thumbs button { flex-basis: 76px; height: 50px; }
    .pd-page { padding: 16px 0 48px; }
    .pd-sheet { padding: 18px 16px 22px; border-radius: 12px; }
    .pd-top__btns { width: 100%; }
    .pd-top__btns .pd-btn { flex: 1; padding: 0 12px; }
    .pd-facts > div { grid-template-columns: 46% 54%; }
    .pd-facts dt, .pd-facts dd { padding: 11px 12px; font-size: 13.5px; }
}