/**
 * SWFL Insider local profile system · r7.
 * Scoped to the restaurant, golf-course, and curated-event templates.
 */

.swfl-local-profile,
.swfl-local-profile * { box-sizing: border-box; }

.swfl-local-profile {
	font-family: var(--swfl-font-body);
	color: var(--swfl-ink);
	font-size: 16px;
	line-height: 1.6;
	background: var(--swfl-white);
}

.swfl-profile-shell {
	width: min(100%, calc(var(--swfl-max) + 48px));
	margin-inline: auto;
	padding-inline: 24px;
}

.swfl-local-profile h1,
.swfl-local-profile h2,
.swfl-local-profile h3 {
	font-family: var(--swfl-font-display);
	font-weight: 500;
	color: var(--swfl-navy);
	letter-spacing: -.018em;
	line-height: 1.08;
}

.swfl-local-profile h1 {
	font-size: clamp(38px, 4.5vw, 64px);
	margin: 14px 0 12px;
}

.swfl-local-profile h2 {
	font-size: clamp(27px, 2.7vw, 38px);
	margin: 0;
}

.swfl-local-profile h3 { font-size: 21px; margin: 8px 0; }
.swfl-local-profile a { color: var(--swfl-teal); text-underline-offset: 3px; }
.swfl-local-profile a:focus-visible {
	outline: 3px solid rgba(21, 105, 122, .4);
	outline-offset: 3px;
}

.swfl-profile-mono {
	font: 500 10px/1.45 var(--swfl-font-mono);
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--swfl-muted);
}

.swfl-profile-breadcrumb {
	border-block: 1px solid var(--swfl-line);
	background: var(--swfl-surface);
}

.swfl-profile-breadcrumb .swfl-profile-shell {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	min-height: 50px;
	font: 400 10.5px/1.5 var(--swfl-font-mono);
	letter-spacing: .05em;
	color: #8191a2;
}

.swfl-profile-breadcrumb a { text-decoration: none; font-weight: 500; }

.swfl-profile-demo {
	background: #fdf5ec;
	border-bottom: 1px solid #e0be93;
	color: var(--swfl-brass);
}

.swfl-profile-demo .swfl-profile-shell {
	display: flex;
	gap: 16px;
	align-items: center;
	min-height: 46px;
}

.swfl-profile-demo strong {
	font: 500 10px/1 var(--swfl-font-mono);
	text-transform: uppercase;
	letter-spacing: .12em;
}

.swfl-profile-hero {
	position: relative;
	overflow: hidden;
	border-bottom: 1px solid var(--swfl-line);
}

.swfl-profile-hero__grid {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.65fr) minmax(280px, .85fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
	padding-block: clamp(48px, 6.5vw, 82px);
}

.swfl-profile-hero__copy { min-width: 0; }
.swfl-profile-kickers { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

.swfl-profile-chip {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 5px 9px;
	border-radius: var(--swfl-radius-sm);
	font: 500 9px/1 var(--swfl-font-mono);
	letter-spacing: .11em;
	text-transform: uppercase;
}

.swfl-profile-chip--editorial {
	color: var(--swfl-teal);
	border: 1px solid var(--swfl-panel-edge);
	background: var(--swfl-panel);
}

.swfl-profile-chip--sponsored { color: #fff; background: var(--swfl-navy); }
.swfl-profile-chip--sponsored::before { content: "◆"; color: #f0a05a; margin-right: 6px; }
.swfl-profile-chip--access { color: #fff; background: rgba(9, 24, 43, .72); border: 1px solid rgba(255, 255, 255, .2); }

.swfl-profile-deck {
	font-size: clamp(17px, 1.8vw, 21px);
	line-height: 1.55;
	max-width: 720px;
	margin: 0;
}

.swfl-profile-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.swfl-profile-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 20px;
	border: 1px solid var(--swfl-brass);
	border-radius: var(--swfl-radius);
	background: var(--swfl-brass);
	color: #fff !important;
	font-weight: 600;
	text-decoration: none;
	transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.swfl-profile-button:hover { background: #6d5433; border-color: #6d5433; transform: translateY(-1px); }
.swfl-profile-button--ghost { background: #fff; color: var(--swfl-teal) !important; border-color: var(--swfl-line); }
.swfl-profile-button--ghost:hover { background: var(--swfl-panel); border-color: var(--swfl-panel-edge); }

.swfl-profile-disclosure {
	max-width: 690px;
	margin: 18px 0 0;
	font-size: 13px;
	color: var(--swfl-brass);
}

.swfl-profile-media {
	min-height: 280px;
	aspect-ratio: 3 / 2;
	border: 1px solid #e8dcc8;
	border-radius: var(--swfl-radius);
	background: var(--swfl-panel);
	overflow: hidden;
}

.swfl-profile-media__image { width: 100%; height: 100%; display: block; object-fit: cover; }
.swfl-profile-media__empty {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 28px;
}
.swfl-profile-media__empty p { max-width: 340px; margin: 8px 0 0; font: 400 12px/1.55 var(--swfl-font-mono); color: var(--swfl-muted); }

.swfl-profile-hero--dark {
	background: linear-gradient(118deg, #1a3355 0%, #14263f 55%, #0e1c33 100%);
	color: #d9e5ee;
}

.swfl-profile-hero--dark h1 { color: #fff; }
.swfl-profile-hero--dark .swfl-profile-deck { color: #d9e5ee; }
.swfl-profile-hero--dark .swfl-profile-chip--editorial { color: #f5ede0; background: rgba(245, 237, 224, .08); border-color: rgba(232, 220, 200, .45); }
.swfl-profile-hero--dark .swfl-profile-button--ghost { color: #f5ede0 !important; border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .04); }
.swfl-profile-hero--dark .swfl-profile-media { background: rgba(10, 27, 48, .65); border-color: rgba(111, 211, 224, .6); }
.swfl-profile-hero--dark .swfl-profile-media__empty .swfl-profile-mono { color: #e8dcc8; }
.swfl-profile-hero--dark .swfl-profile-media__empty p { color: #d6e2eb; }

.swfl-profile-source-strip {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin-top: 24px;
	padding-top: 14px;
	border-top: 1px solid rgba(255, 255, 255, .2);
}
.swfl-profile-source-strip .swfl-profile-mono { color: #e8dcc8; }
.swfl-profile-source-strip a {
	color: #f5ede0;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.swfl-profile-status {
	border-bottom: 1px solid #d8b780;
	background: #fff8eb;
}
.swfl-profile-status--temporarily-closed { box-shadow: inset 5px 0 0 #b66b24; }
.swfl-profile-status__grid {
	display: grid;
	grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr);
	gap: 32px;
	align-items: start;
	padding-block: 28px;
}
.swfl-profile-status h2 { margin-top: 5px; font-size: clamp(25px, 2.4vw, 34px); }
.swfl-profile-status p { margin: 0; }
.swfl-profile-status__source { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 12px !important; }
.swfl-profile-status__source a { font-weight: 600; }

.swfl-profile-why { background: var(--swfl-panel); border-bottom: 1px solid var(--swfl-line); }
.swfl-profile-why .swfl-profile-shell { padding-block: 26px; }
.swfl-profile-why p { max-width: 930px; margin: 7px 0 0; }
.swfl-profile-why p + p { color: var(--swfl-muted); font-size: 14px; }

.swfl-profile-relationship { padding-block: clamp(42px, 5vw, 66px); border-bottom: 1px solid var(--swfl-line); }
.swfl-profile-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding-bottom: 13px; border-bottom: 2px solid var(--swfl-navy); }
.swfl-profile-relationship__card { padding: 24px; border: 1px solid var(--swfl-panel-edge); border-left: 3px solid #c9a25e; border-radius: 0 0 var(--swfl-radius) var(--swfl-radius); background: linear-gradient(100deg, var(--swfl-panel), #fff 68%); }
.swfl-profile-relationship__card p { max-width: 850px; margin: 8px 0 0; }
.swfl-profile-relationship__source { display: flex; flex-wrap: wrap; gap: 7px 16px; align-items: baseline; padding-top: 13px; border-top: 1px solid var(--swfl-line-soft); font-size: 13px; }

.swfl-profile-body { padding-block: clamp(50px, 6vw, 82px); }
.swfl-profile-body__grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, .82fr); gap: clamp(34px, 5vw, 58px); align-items: start; }
.swfl-profile-main { min-width: 0; }
.swfl-profile-section + .swfl-profile-section { margin-top: 52px; padding-top: 46px; border-top: 1px solid var(--swfl-line); }
.swfl-profile-section > h2 { padding-bottom: 14px; border-bottom: 2px solid var(--swfl-navy); }
.swfl-profile-section > .swfl-profile-mono + h2 { margin-top: 8px; }

.swfl-profile-facts { border: 1px solid var(--swfl-line); border-radius: 0 0 var(--swfl-radius) var(--swfl-radius); overflow: hidden; }
.swfl-profile-facts > div { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(0, 1.2fr); gap: 24px; padding: 16px 18px; border-bottom: 1px solid var(--swfl-line-soft); }
.swfl-profile-facts > div:last-child { border-bottom: 0; }
.swfl-profile-facts strong { color: var(--swfl-navy); }
.swfl-profile-facts span { color: var(--swfl-ink); overflow-wrap: anywhere; }

.swfl-profile-facts-source {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	margin: 16px 0 0;
	padding-top: 14px;
	border-top: 1px solid var(--swfl-line);
}
.swfl-profile-facilities {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}
.swfl-profile-facilities li {
	padding: 8px 12px;
	border: 1px solid var(--swfl-panel-edge);
	border-radius: var(--swfl-radius-sm);
	background: var(--swfl-panel);
	font-size: 14px;
}

.swfl-profile-fact-note {
	margin: 0;
	padding: 16px 18px;
	border-inline: 1px solid var(--swfl-line);
	border-bottom: 1px solid var(--swfl-line);
	border-left: 3px solid #c9a25e;
	border-radius: 0 0 var(--swfl-radius) var(--swfl-radius);
	background: var(--swfl-surface);
	font-size: 13px;
}

.swfl-profile-editorial-note { margin: 14px 0 0; padding: 22px; border: 1px solid var(--swfl-panel-edge); border-radius: var(--swfl-radius); background: var(--swfl-panel); font-size: 17px; }
.swfl-profile-boundaries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 18px; border-block: 1px solid var(--swfl-line); }
.swfl-profile-boundaries > div { padding: 20px; border-right: 1px solid var(--swfl-line); }
.swfl-profile-boundaries > div:last-child { border-right: 0; }
.swfl-profile-boundaries p { margin: 8px 0 0; font-size: 14px; }

.swfl-profile-aside { display: grid; gap: 20px; }
.swfl-profile-ledger,
.swfl-profile-related,
.swfl-event-source {
	border: 1px solid var(--swfl-line);
	border-top: 3px solid var(--swfl-navy);
	border-radius: 0 0 var(--swfl-radius) var(--swfl-radius);
	background: #fff;
	padding: 19px;
}

.swfl-profile-ledger h2,
.swfl-profile-related h2 { font-size: 22px; margin: 0; }
.swfl-profile-ledger__method { margin: 8px 0 14px; }
.swfl-profile-ledger__rows { border-top: 1px solid var(--swfl-line); }
.swfl-profile-ledger__row { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 15px 0; border-bottom: 1px solid var(--swfl-line-soft); }
.swfl-profile-ledger__name { display: flex; flex-direction: column; }
.swfl-profile-ledger__name a { font-family: var(--swfl-font-display); font-size: 18px; font-weight: 600; color: var(--swfl-navy); text-decoration: none; }
.swfl-profile-ledger__name span { font: 400 9px/1.4 var(--swfl-font-mono); letter-spacing: .09em; text-transform: uppercase; color: #8a9aac; }
.swfl-profile-ledger__row strong { color: var(--swfl-teal); font: 500 12px/1.4 var(--swfl-font-mono); }
.swfl-profile-ledger__rail { grid-column: 1 / -1; position: relative; height: 7px; border-bottom: 1px solid var(--swfl-line); }
.swfl-profile-ledger__rail::after { content: ""; position: absolute; left: var(--swfl-distance); bottom: -3px; width: 2px; height: 9px; background: var(--swfl-teal); }
.swfl-profile-ledger__row p { grid-column: 1 / -1; margin: 2px 0 0; font-size: 13px; }
.swfl-profile-ledger__source { display: grid; gap: 7px; padding-top: 15px; font-size: 12px; }

.swfl-profile-related > .swfl-profile-mono { color: var(--swfl-teal); }
.swfl-profile-related h2 { margin-top: 7px; }
.swfl-profile-related ul { list-style: none; padding: 0; margin: 14px 0 0; border-top: 1px solid var(--swfl-line); }
.swfl-profile-related li { border-bottom: 1px solid var(--swfl-line-soft); }
.swfl-profile-related li:last-child { border-bottom: 0; }
.swfl-profile-related li a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; color: var(--swfl-navy); text-decoration: none; font-weight: 600; }
.swfl-profile-related li a span { color: var(--swfl-teal); font: 500 9px/1.5 var(--swfl-font-mono); text-transform: uppercase; }

.swfl-event-status { border-bottom: 1px solid var(--swfl-panel-edge); background: var(--swfl-panel); }
.swfl-event-status .swfl-profile-shell { display: flex; gap: 12px; align-items: center; min-height: 50px; }
.swfl-event-status strong { padding: 6px 9px; border: 1px solid var(--swfl-panel-edge); border-radius: var(--swfl-radius-sm); background: #fff; color: var(--swfl-teal); font: 500 10px/1 var(--swfl-font-mono); text-transform: uppercase; letter-spacing: .09em; }
.swfl-event-status--cancelled,
.swfl-event-status--postponed { background: #fdf5ec; border-color: #e0be93; }
.swfl-event-status--cancelled strong,
.swfl-event-status--postponed strong { color: var(--swfl-brass); border-color: #e0be93; }
.swfl-event-status--expired,
.swfl-event-status--stale { background: var(--swfl-surface); }
.swfl-event-status--expired strong,
.swfl-event-status--stale strong { color: var(--swfl-muted); border-color: var(--swfl-line); }

.swfl-event-hero__grid { position: relative; display: grid; grid-template-columns: 88px minmax(0, 1.45fr) minmax(280px, .75fr); gap: 26px; align-items: start; padding-block: clamp(42px, 5.5vw, 70px); }
.swfl-event-date { border: 1px solid var(--swfl-navy); border-radius: var(--swfl-radius); overflow: hidden; text-align: center; background: #fff; }
.swfl-event-date span { display: block; padding: 7px; background: var(--swfl-navy); color: #fff; font: 500 10px/1 var(--swfl-font-mono); letter-spacing: .12em; }
.swfl-event-date strong { display: block; padding-top: 10px; font-family: var(--swfl-font-display); font-size: 40px; font-weight: 500; color: var(--swfl-navy); line-height: 1; }
.swfl-event-date small { display: block; padding: 7px; font: 400 10px/1 var(--swfl-font-mono); color: var(--swfl-muted); }
.swfl-event-source { display: grid; gap: 8px; }
.swfl-event-source strong { margin-top: 4px; color: var(--swfl-navy); font-size: 13px; }
.swfl-event-source p { margin: 0; font-size: 13px; }

@media (max-width: 900px) {
	.swfl-profile-hero__grid,
	.swfl-profile-body__grid { grid-template-columns: 1fr; }
	.swfl-profile-media { max-width: 680px; min-height: 240px; }
	.swfl-profile-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.swfl-event-hero__grid { grid-template-columns: 76px minmax(0, 1fr); }
	.swfl-event-source { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
	.swfl-profile-shell { padding-inline: 18px; }
	.swfl-profile-status__grid { grid-template-columns: 1fr; gap: 14px; }
	.swfl-profile-breadcrumb .swfl-profile-shell { min-height: 44px; font-size: 9px; }
	.swfl-profile-breadcrumb span:nth-of-type(n+3) { display: none; }
	.swfl-profile-hero__grid { padding-block: 38px 44px; gap: 26px; }
	.swfl-local-profile h1 { font-size: clamp(36px, 11vw, 48px); }
	.swfl-profile-deck { font-size: 16px; }
	.swfl-profile-actions { display: grid; grid-template-columns: 1fr; }
	.swfl-profile-button { width: 100%; }
	.swfl-profile-media { min-height: 210px; }
	.swfl-profile-body { padding-block: 42px 56px; }
	.swfl-profile-aside { grid-template-columns: 1fr; }
	.swfl-profile-facts > div { grid-template-columns: 1fr; gap: 4px; padding: 15px; }
	.swfl-profile-boundaries { grid-template-columns: 1fr; }
	.swfl-profile-boundaries > div { border-right: 0; border-bottom: 1px solid var(--swfl-line); }
	.swfl-profile-boundaries > div:last-child { border-bottom: 0; }
	.swfl-profile-section-head { align-items: flex-start; flex-direction: column; }
	.swfl-event-status .swfl-profile-shell { align-items: flex-start; flex-direction: column; padding-block: 12px; }
	.swfl-event-hero__grid { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding-block: 34px 46px; }
	.swfl-event-date strong { font-size: 32px; }
	.swfl-event-hero__grid .swfl-profile-hero__copy h1 { font-size: 36px; margin-top: 8px; }
	.swfl-event-hero__grid .swfl-profile-actions { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
	.swfl-profile-button { transition: none; }
}

/* r11 migration (Aug 18, 2026): no-photo internal-note card removed from the
 * templates — the hero copy takes the full width until a rights-cleared
 * photo exists. */
.swfl-profile-hero__grid:not(:has(.swfl-profile-media)) { grid-template-columns: minmax(0, 1fr); }
