:root {
  --navy: #102a43; --navy-2: #163b5c; --blue: #1769aa; --blue-deep: #0d568e;
  --blue-soft: #e8f2fb; --ink: #243b53; --muted: #627d98; --line: #d9e2ec;
  --paper: #f4f7fb; --white: #fff; --green: #17643a; --green-soft: #e8f5ee;
  --orange: #a15c07; --orange-soft: #fff4db; --shadow: 0 10px 32px rgba(16,42,67,.09);
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--blue); text-decoration: none; } a:hover { text-decoration: underline; }
button, input, select { font: inherit; } button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #90cdf4; outline-offset: 2px; }

.site-header { color: var(--white); background: var(--navy); }
.header-inner { max-width: 1180px; margin: auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.identity { display: flex; align-items: center; gap: 12px; color: var(--white); } .identity:hover { text-decoration: none; }
.identity img, .identity-monogram { width: 46px; height: 46px; flex: 0 0 46px; object-fit: contain; border-radius: 10px; background: var(--white); padding: 5px; }
.identity-monogram { display: grid; place-items: center; padding: 0; color: var(--navy); font-size: 1.3rem; font-weight: 800; }
.identity-name { font-weight: 750; font-size: 1.08rem; } .product-mark { color: #b9d5ef; font-size: .78rem; letter-spacing: .04em; }
.header-link { color: #e7f1fa; font-size: .9rem; } .header-link:hover { color: var(--white); }

.hero { position: relative; min-height: 350px; color: var(--white); display: flex; align-items: center; background: linear-gradient(128deg, #102a43 0%, #1769aa 58%, #2b6f9e 100%); overflow: hidden; }
.hero.has-image { background-size: cover; background-position: center; } .hero.has-image::before { content:""; position:absolute; inset:0; background: linear-gradient(90deg, rgba(8,27,45,.92), rgba(16,42,67,.55) 68%, rgba(16,42,67,.32)); }
.hero::after { content:""; position:absolute; width:430px; height:430px; right:-110px; top:-190px; border:1px solid rgba(255,255,255,.14); border-radius:50%; box-shadow: 0 0 0 45px rgba(255,255,255,.04), 0 0 0 90px rgba(255,255,255,.025); }
.hero-inner { position: relative; z-index: 1; max-width: 1180px; width:100%; margin:auto; padding: 55px 24px; }
.eyebrow, .section-kicker, .embed-label { color: #bfe1fa; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; font-size: .75rem; }
.hero h1 { max-width: 780px; margin: 10px 0 14px; font-size: clamp(2.15rem, 5vw, 4rem); line-height: 1.08; letter-spacing: -.035em; white-space: pre-line; }
.hero p { max-width: 660px; margin: 0 0 25px; color: #e7f1fa; font-size: clamp(1.03rem, 2vw, 1.23rem); }
.hero-actions, .actions { display:flex; align-items:center; flex-wrap:wrap; gap: 10px; }

.button { display:inline-flex; align-items:center; justify-content:center; min-height:42px; border:0; border-radius:9px; padding:10px 16px; color:var(--white); background:var(--blue); font-weight:700; text-decoration:none; }
.button:hover { background:var(--blue-deep); text-decoration:none; } .button.light { color:var(--navy); background:var(--white); } .button.light:hover { background:#e7f1fa; }
.button.button-outline { color:var(--blue); border:1px solid #9fc3df; background:transparent; } .button.button-outline:hover { color:var(--white); background:var(--blue); }
.main { max-width:1180px; margin:0 auto; padding: 34px 24px 64px; }
.invitation-section { margin-top: 28px; padding: 27px; border:1px solid var(--line); border-radius:var(--radius); background:rgba(255,255,255,.7); box-shadow: 0 5px 20px rgba(16,42,67,.04); }
.toolbar { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:18px; } .toolbar h2 { margin:2px 0 0; color:var(--navy); font-size:1.65rem; letter-spacing:-.02em; }
.section-kicker { color:var(--blue); } .result-count { color:var(--muted); font-size:.9rem; }
.filters { display:grid; grid-template-columns: minmax(220px, 1fr) 180px 150px auto; gap:10px; margin: 0 0 25px; padding:14px; border:1px solid var(--line); border-radius:11px; background:var(--white); }
.field { display:flex; flex-direction:column; gap:5px; } .field label { font-size:.78rem; color:var(--muted); font-weight:700; }
input, select { min-height:43px; width:100%; border:1px solid #bcccdc; border-radius:8px; padding:8px 10px; color:var(--ink); background:var(--white); }
.filter-button { min-height:43px; align-self:end; border:0; border-radius:8px; background:var(--navy); color:var(--white); padding:0 17px; font-weight:700; } .filter-button:hover { background:var(--navy-2); }
.cards { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:17px; }
.card { display:flex; flex-direction:column; min-height:250px; padding:21px; border:1px solid var(--line); border-radius:12px; background:var(--white); box-shadow: var(--shadow); }
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(16,42,67,.13); transition: transform .18s ease, box-shadow .18s ease; }
.card-top { display:flex; justify-content:space-between; gap:10px; align-items:start; } .reference { color:var(--muted); font: .78rem ui-monospace, SFMono-Regular, Consolas, monospace; }
.card h3 { margin: 14px 0 9px; color:var(--navy); font-size:1.08rem; line-height:1.3; } .card p { margin:0; color:var(--muted); }
.card-meta { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:18px 0; padding-top:14px; border-top:1px solid var(--line); font-size:.84rem; }
.meta-label { display:block; color:var(--muted); font-size:.72rem; } .meta-value { display:block; color:var(--ink); font-weight:650; }
.card .actions { margin-top:auto; } .card .button { min-height:38px; padding:8px 12px; font-size:.88rem; }
.badge-wrap { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:5px; } .badge { display:inline-flex; align-items:center; border-radius:999px; padding:4px 9px; font-size:.7rem; font-weight:750; white-space:nowrap; }
.badge.open { color:var(--green); background:var(--green-soft); } .badge.upcoming { color:var(--blue); background:var(--blue-soft); } .badge.closed, .badge.completed { color:var(--muted); background:#edf2f7; } .badge.new { color:var(--orange); background:var(--orange-soft); }
.empty, .error, .loading { padding:28px; border:1px solid var(--line); border-radius:12px; color:var(--muted); background:var(--white); text-align:center; }

.detail { max-width:860px; } .back { display:inline-block; margin-bottom:20px; font-weight:700; } .detail h1 { margin: 8px 0 16px; color:var(--navy); font-size:clamp(2rem, 4vw, 3.2rem); line-height:1.1; }
.detail-summary { color:var(--muted); font-size:1.1rem; } .detail-box { margin:24px 0; padding:22px; border:1px solid var(--line); border-radius:var(--radius); background:var(--white); box-shadow: var(--shadow); }
.detail-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; } .detail-grid .meta-label { margin-bottom:4px; } .detail-description { white-space:pre-line; }
.footer { padding:24px; color:#7890a8; background:var(--navy); text-align:center; font-size:.84rem; } .footer a { color:#b9d5ef; }

/* The embed is intentionally a compact component, not a viewport-sized page. */
.embed-body { min-width:280px; padding:10px; background:linear-gradient(145deg, #edf5fb, #f8fbfe); }
.embed-body #app { width:100%; max-width:760px; margin:0 auto; }
.embed-shell { overflow:hidden; border:1px solid #b9d0e3; border-radius:16px; background:var(--white); box-shadow:0 12px 34px rgba(16,42,67,.15); }
.embed-head { padding:15px 18px; color:var(--white); background:linear-gradient(118deg, var(--navy), #1769aa); display:flex; justify-content:space-between; align-items:center; gap:14px; }
.embed-brand { display:flex; align-items:center; min-width:0; gap:10px; } .embed-brand img, .embed-monogram { width:38px; height:38px; flex:0 0 38px; border-radius:9px; object-fit:contain; background:var(--white); padding:4px; }
.embed-monogram { display:grid; place-items:center; padding:0; color:var(--navy); font-weight:800; font-size:1.1rem; } .embed-brand strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .embed-product { display:block; margin-top:1px; color:#bfe1fa; font-size:.72rem; letter-spacing:.06em; text-transform:uppercase; }
.icon-button { width:34px; height:34px; flex:0 0 34px; border:1px solid rgba(255,255,255,.5); border-radius:50%; color:var(--white); background:rgba(255,255,255,.12); font-weight:800; } .icon-button:hover { background:rgba(255,255,255,.24); }
.embed-tagline { padding:10px 18px; color:#d8eaf7; background:#163b5c; font-size:.79rem; letter-spacing:.015em; }
.embed-content { padding:21px 20px 18px; background:linear-gradient(135deg, #fff, #f7fbfe); }
.embed-card-top { display:flex; align-items:start; justify-content:space-between; gap:12px; } .embed-label { color:var(--blue); font-size:.68rem; } .embed-card h2 { max-width:650px; margin:10px 0 16px; color:var(--navy); font-size:clamp(1.2rem, 2.2vw, 1.7rem); line-height:1.2; letter-spacing:-.02em; }
.embed-meta { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; padding:13px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); } .embed-meta strong { display:block; margin-top:3px; color:var(--ink); font-size:.86rem; }
.embed-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:17px; } .embed-controls { display:flex; align-items:center; gap:6px; } .carousel-arrow { width:30px; height:30px; border:1px solid var(--line); border-radius:7px; color:var(--navy); background:var(--white); font-size:1.25rem; line-height:1; } .carousel-arrow:hover { border-color:var(--blue); color:var(--blue); }
.carousel-dots { display:flex; align-items:center; gap:5px; } .carousel-dot { width:8px; height:8px; padding:0; border:0; border-radius:50%; background:#b9c9d8; } .carousel-dot.active { width:19px; border-radius:8px; background:var(--blue); } .carousel-dot:focus-visible { outline-offset:4px; }
.embed-all { padding:0 20px 17px; } .embed-all a { display:inline-flex; align-items:center; font-size:.88rem; font-weight:750; }
.powered { padding:10px 18px; border-top:1px solid var(--line); color:var(--muted); text-align:right; font-size:.74rem; } .powered a { color:var(--muted); }

.modal-backdrop { position:fixed; inset:0; z-index:10; display:grid; place-items:center; padding:20px; background:rgba(16,42,67,.68); } .modal { width:min(560px,100%); max-height:90vh; overflow:auto; padding:27px; border:1px solid #cbdbea; border-radius:var(--radius); background:var(--white); box-shadow:0 20px 60px rgba(0,0,0,.25); }
.modal h2 { margin:0 0 13px; color:var(--navy); font-size:1.45rem; } .modal-close { float:right; border:0; color:var(--muted); background:transparent; font-size:1.55rem; line-height:1; } .modal-body > p { color:var(--muted); }
.info-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:19px 0; } .info-item { display:flex; align-items:flex-start; gap:9px; padding:12px; border-radius:10px; background:var(--blue-soft); } .info-item strong { display:block; color:var(--navy); font-size:.88rem; } .info-item span:not(.info-icon) { color:var(--muted); font-size:.79rem; } .info-icon { display:grid; place-items:center; width:24px; height:24px; flex:0 0 24px; border-radius:7px; color:var(--blue); background:var(--white); font-weight:800; }
.admin-note { max-width:720px; margin:60px auto; padding:32px; text-align:center; background:var(--white); border:1px solid var(--line); border-radius:var(--radius); }
@media (max-width: 850px) { .cards { grid-template-columns:repeat(2,minmax(0,1fr)); } .filters { grid-template-columns:1fr 1fr; } }
@media (max-width: 600px) { .header-inner { padding:15px 18px; } .header-link { display:none; } .hero { min-height:340px; } .hero-inner { padding:46px 20px; } .main { padding:25px 18px 50px; } .invitation-section { padding:20px 15px; } .toolbar { align-items:start; flex-direction:column; } .filters, .cards, .detail-grid, .info-grid { grid-template-columns:1fr; } .card { min-height:0; } .embed-body { padding:6px; } .embed-content { padding:18px 15px 16px; } .embed-meta { grid-template-columns:1fr; gap:8px; } .embed-actions { align-items:flex-start; flex-direction:column; } .embed-controls { align-self:flex-end; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior:auto; } *, *::before, *::after { transition:none !important; animation:none !important; } }
