/* Shotline Wreck Page */
.swp-on .wp-block-post-title,
.swp-on .entry-title,
.swp-on .wp-block-post-featured-image,
.swp-on .post-thumbnail { display: none; }

.swp {
	--swp-navy: #13212B;
	--swp-navy-2: #0B151C;
	--swp-ink: #13212B;
	--swp-muted: #4A5A66;
	--swp-line: #D5DDE3;
	--swp-line-2: #E3E9ED;
	--swp-soft: #F6F8F9;
	--swp-teal: #0E5E7B;
	--swp-red: #B3261E;
	--swp-red-ink: #9B1C1C;
	--swp-red-bg: #FDECEA;
	--swp-amber-bg: #FBEFD9;
	--swp-amber-ink: #6B4100;
	--swp-blue-bg: #E3ECF2;
	--swp-blue-ink: #21445A;
	font-family: 'IBM Plex Sans', system-ui, sans-serif;
	color: var(--swp-ink);
	background: var(--swp-navy);
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	line-height: 1.45;
	font-size: 15px;
}
.swp *, .swp *::before, .swp *::after { box-sizing: border-box; }
.swp a { color: var(--swp-teal); }
.swp a:hover { color: #083F53; }
.swp h1, .swp h2, .swp h3 { font-family: inherit; color: inherit; letter-spacing: normal; text-transform: none; }
.swp-in { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.swp-mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }
.swp-muted { color: var(--swp-muted); }
.swp-small { font-size: 13px; }
.swp-minw { min-width: 0; }

/* Top bar */
.swp-bar { background: var(--swp-navy); color: #E8EEF2; }
.swp-bar-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; font-size: 14px; }
.swp-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.swp-brand { font-weight: 700; letter-spacing: .08em; }
.swp-sep { color: #8FA3B1; }
.swp-bar-tools { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.swp-bar-tools .swp-mono { color: #8FA3B1; }
.swp .swp-btn-light { color: var(--swp-navy); background: #E8EEF2; padding: 7px 12px; border-radius: 4px; text-decoration: none; font-weight: 600; }

/* Hero */
.swp-hero { background: #fff; border-bottom: 1px solid var(--swp-line); }
.swp-hero-in { display: flex; flex-wrap: wrap; gap: 28px; padding-top: 28px; padding-bottom: 28px; align-items: stretch; }
.swp-photo { flex: 1 1 260px; max-width: 340px; min-height: 220px; border-radius: 6px; overflow: hidden; background: var(--swp-soft); }
.swp-photo-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.swp-photo-empty { height: 100%; min-height: 220px; border: 2px dashed #A9B8C3; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #6B7F8C; font-size: 14px; }
.swp-id { flex: 2 1 420px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.swp-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.swp-pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.swp-pill-info { background: var(--swp-blue-bg); color: var(--swp-blue-ink); }
.swp-pill-red { background: var(--swp-red); color: #fff; }
.swp-pill-amber { background: var(--swp-amber-bg); color: var(--swp-amber-ink); }
.swp .swp-name { margin: 0; font-size: clamp(34px, 5vw, 52px); line-height: 1.02; font-weight: 700; text-transform: uppercase; }
.swp-sub { font-size: 18px; color: var(--swp-muted); }
.swp-keys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.swp-key { border-top: 3px solid var(--swp-navy); padding-top: 8px; min-width: 0; }
.swp-key-l { font-size: 12px; color: var(--swp-muted); text-transform: uppercase; letter-spacing: .06em; }
.swp-key-v { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.swp-key.is-conflict { border-top-color: var(--swp-red); }
.swp-key.is-conflict .swp-key-v { color: var(--swp-red-ink); }
.swp-where { margin: 0; font-size: 14px; color: var(--swp-muted); }
.swp-dates { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 12px; color: var(--swp-muted); border-top: 1px solid var(--swp-line-2); padding-top: 10px; }
.swp-map { flex: 1 1 280px; max-width: 360px; min-height: 220px; border: 1px solid #C4D0D8; border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; background: #DCE8EF; }
.swp-map-frame { flex: 1; width: 100%; min-height: 170px; border: 0; display: block; }
.swp-map-meta { background: #fff; padding: 10px 12px; font-size: 13px; display: flex; flex-direction: column; gap: 3px; border-top: 1px solid #C4D0D8; }
.swp-warn { color: var(--swp-red-ink); font-weight: 600; }
.swp-ok { color: var(--swp-blue-ink); font-weight: 600; }
.swp-map-empty { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--swp-muted); font-size: 14px; }

/* Tabs */
.swp-tabs { background: #fff; border-bottom: 1px solid var(--swp-line); position: sticky; top: 0; z-index: 20; }
.swp-tabs-in { display: flex; align-items: stretch; overflow-x: auto; padding-left: 12px; padding-right: 12px; scrollbar-width: thin; }
.swp .swp-tab { display: flex; align-items: center; gap: 6px; padding: 10px 14px; min-height: 48px; border: 0; border-bottom: 3px solid transparent; background: transparent; font: 500 14px 'IBM Plex Sans', system-ui, sans-serif; color: #2B3B46; white-space: nowrap; cursor: pointer; border-radius: 0; box-shadow: none; text-transform: none; letter-spacing: normal; }
.swp .swp-tab:hover { color: var(--swp-teal); background: transparent; }
.swp .swp-tab.is-empty { color: #7C8C97; }
.swp .swp-tab[aria-selected="true"] { color: var(--swp-teal); border-bottom-color: var(--swp-teal); font-weight: 600; }
.swp .swp-tab:focus-visible { outline: 2px solid var(--swp-teal); outline-offset: -2px; }
.swp-count { font-size: 11px; font-weight: 600; background: var(--swp-blue-bg); color: var(--swp-blue-ink); padding: 1px 7px; border-radius: 999px; }
.swp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--swp-red); }
.swp-tab-sep { flex: 0 0 auto; width: 1px; margin: 12px 8px; background: #C4D0D8; }

/* Body */
.swp-body { background: var(--swp-navy); padding: 32px 0 56px; }
.swp-panel { display: flex; flex-direction: column; gap: 20px; }
.swp-js .swp-panel { display: none; }
.swp-js .swp-panel.is-active { display: flex; }
.swp-card { background: #fff; border: 1px solid var(--swp-line); border-radius: 6px; color: var(--swp-ink); }
.swp-pad { padding: 16px 18px; }
.swp-card-h { padding: 16px 20px; border-bottom: 1px solid var(--swp-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: baseline; }
.swp .swp-card h2 { margin: 0; font-size: 21px; }
.swp .swp-card h3 { margin: 0 0 10px; font-size: 15px; }
.swp-panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; color: #B9C9D4; }
.swp .swp-panel-head h2 { margin: 0 0 4px; font-size: 22px; color: #E8EEF2; }
.swp .swp-btn { background: var(--swp-teal); color: #fff; padding: 12px 16px; border-radius: 4px; font-weight: 600; text-decoration: none; }

.swp-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.swp-main { flex: 999 1 620px; min-width: 0; }
.swp-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.swp-row { display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 13px 20px; border-bottom: 1px solid var(--swp-line-2); }
.swp-row:last-child { border-bottom: 0; }
.swp-row-l { flex: 0 0 170px; font-size: 13px; font-weight: 600; color: var(--swp-muted); text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
.swp-row-v { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.swp-val { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.swp-val-text { font-weight: 400; font-size: 15px; }
.swp-srcline { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--swp-muted); }
.swp-row.is-conflict { background: var(--swp-red-bg); }
.swp-row.is-conflict .swp-val { color: var(--swp-red-ink); }
.swp-alts { display: flex; flex-direction: column; gap: 4px; }
.swp-alt { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--swp-red-ink); }
.swp-alt > span:first-child { font-weight: 600; }
.swp-tag { font-family: 'IBM Plex Mono', monospace; font-size: 12px; background: #fff; border: 1px solid #E8B4AF; padding: 1px 6px; border-radius: 3px; }
.swp-more { border-top: 1px solid var(--swp-line); }
.swp-more summary { padding: 14px 20px; cursor: pointer; font-weight: 600; color: var(--swp-teal); }
.swp-issue { padding: 8px 10px; background: var(--swp-red-bg); border-radius: 4px; color: #7A1616; font-size: 14px; margin-bottom: 8px; overflow-wrap: anywhere; }
.swp-cover { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; font-size: 14px; margin-bottom: 8px; }
.swp .swp-cover-i { color: var(--swp-ink); font-weight: 600; text-decoration: none; }
.swp .swp-cover-i.is-empty { color: #7C8C97; font-weight: 400; }
.swp-link-group { margin-bottom: 12px; }
.swp-eyebrow { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--swp-muted); margin-bottom: 4px; }
.swp .swp-link { display: flex; flex-direction: column; gap: 1px; padding: 5px 0; font-size: 14px; font-weight: 600; text-decoration: none; }
.swp-host { font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 400; color: var(--swp-muted); white-space: nowrap; }

/* Source tabs */
.swp-src-head h2 { margin-bottom: 4px !important; }
.swp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.swp .swp-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid #A9B8C3; border-radius: 4px; font-size: 14px; font-weight: 600; text-decoration: none; }
.swp-code { font-family: 'IBM Plex Mono', monospace; font-size: 13px; padding: 4px 8px; background: var(--swp-soft); border: 1px solid var(--swp-line); border-radius: 3px; }
.swp-empty { border: 2px dashed #5A6E7C; border-radius: 6px; padding: 36px 24px; text-align: center; color: #B9C9D4; }
.swp-empty .swp-muted { color: #B9C9D4; }
.swp-empty-h { font-size: 18px; font-weight: 600; color: #E8EEF2; margin-bottom: 4px; }
.swp-doc-h { padding: 16px 20px; border-bottom: 1px solid var(--swp-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.swp .swp-doc-h h3 { margin: 2px 0 2px; font-size: 18px; }
.swp-doc-h .swp-eyebrow { color: var(--swp-teal); }
.swp-doc-links { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 14px; font-weight: 600; }
.swp-doc-b { display: flex; flex-wrap: wrap; }
.swp-doc-text { flex: 1 1 380px; min-width: 0; padding: 18px 20px; border-right: 1px solid var(--swp-line-2); }
.swp-doc-facts { flex: 1 1 400px; min-width: 0; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.swp-serif { font-family: Georgia, 'Times New Roman', serif; font-size: 16px; line-height: 1.6; color: #1E2C36; overflow-wrap: anywhere; }
.swp-fact { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: flex-start; padding: 8px 10px; border-radius: 4px; background: var(--swp-soft); }
.swp-fact.is-conflict { background: var(--swp-red-bg); }
.swp-fact.is-conflict .swp-fact-v { color: var(--swp-red-ink); font-weight: 600; }
.swp-fact-l { flex: 0 0 120px; font-size: 13px; font-weight: 600; color: var(--swp-muted); }
.swp-fact-v { flex: 1 1 200px; min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.swp-fpill { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.swp-fpill-match { background: var(--swp-blue-bg); color: var(--swp-blue-ink); }
.swp-fpill-conflict { background: var(--swp-red); color: #fff; }
.swp-fpill-new { background: var(--swp-amber-bg); color: var(--swp-amber-ink); }

/* Media */
.swp-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.swp-fig { margin: 0; background: #fff; border-radius: 6px; overflow: hidden; }
.swp-fig img { width: 100%; height: 180px; object-fit: cover; display: block; }
.swp-fig figcaption { padding: 8px 12px; font-size: 13px; color: var(--swp-muted); }
.swp .swp-linkcard { display: block; text-decoration: none; }
.swp-linkcard-t { font-size: 16px; font-weight: 600; color: var(--swp-teal); }
.swp-filerow { padding: 12px 20px; border-bottom: 1px solid var(--swp-line-2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Dive Site tab keeps the post's own markup */
.swp-dive { padding: 24px; overflow-x: auto; }

/* Footer */
.swp-foot { background: var(--swp-navy-2); color: #B9C9D4; border-top: 1px solid #2A3B47; font-size: 13px; }
.swp-foot-in { display: flex; flex-wrap: wrap; gap: 24px 40px; justify-content: space-between; padding-top: 28px; padding-bottom: 28px; }
.swp-foot-in > div { flex: 1 1 240px; display: flex; flex-direction: column; gap: 6px; }
.swp-foot-h { color: #E8EEF2; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.swp-foot-note { color: #8FA3B1; }

@media (max-width: 720px) {
	.swp-keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.swp-photo, .swp-map { max-width: none; }
	.swp-row-l { flex-basis: 100%; }
	.swp-doc-text { border-right: 0; border-bottom: 1px solid var(--swp-line-2); }
	.swp-doc-links { align-items: flex-start; }
}
