:root {
  color-scheme: light;
  --cream: #f6f1e8;
  --surface: #fffdf9;
  --navy-950: #0d2638;
  --navy-900: #15364a;
  --navy-800: #23495f;
  --gold-800: #895b20;
  --gold-700: #a16e29;
  --gold-600: #bd8737;
  --gold-200: #e6d0aa;
  --gold-100: #f4e7cf;
  --gold-50: #fbf5e9;
  --muted: #596873;
  --line: #e5ded3;
  --line-strong: #d7cdbf;
  --sage-50: #edf5f1;
  --sage-700: #35685c;
  --red-50: #fff4f1;
  --red-100: #edcec7;
  --red-800: #7a342d;
  --shadow: 0 22px 60px rgba(13, 38, 56, .09);
  --radius-lg: 24px;
  --radius-md: 15px;
  --radius-sm: 11px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--navy-950);
  background:
    radial-gradient(circle at 92% 14%, rgba(189,135,55,.08), transparent 27rem),
    var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--gold-800); text-underline-offset: 3px; }
[hidden] { display: none !important; }

.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; color: #fff; background: var(--navy-950); border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.topbar { background: rgba(255,253,249,.98); border-bottom: 1px solid var(--line); }
.topbar-inner { width: min(1380px, calc(100% - 40px)); margin: 0 auto; }
.back-link { display: inline-block; margin-top: 10px; color: var(--gold-800); font-size: 13px; font-weight: 760; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.topbar-main { min-height: 112px; padding: 10px 0 20px; display: grid; grid-template-columns: minmax(270px,auto) minmax(0,1fr) auto; align-items: center; gap: clamp(24px,3vw,44px); }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 54px; height: 54px; flex: 0 0 auto; display: grid; place-items: center; color: var(--gold-600); background: var(--gold-50); border: 1px solid var(--gold-200); border-radius: 50%; }
.brand-mark svg { width: 35px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.brand-copy, .wordmark, .brand-tagline { display: block; }
.wordmark { font-family: Georgia,"Times New Roman",serif; font-size: clamp(32px,2.8vw,40px); font-weight: 650; line-height: .95; letter-spacing: -.035em; }
.wordmark-gastro { color: var(--navy-950); }
.wordmark-pusula { color: var(--gold-600); }
.brand-tagline { margin-top: 7px; color: var(--muted); font-size: 11px; font-weight: 600; white-space: nowrap; }
.module-nav { min-width: 0; display: flex; align-items: stretch; gap: 5px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: var(--gold-200) transparent; }
.module-nav::-webkit-scrollbar { height: 4px; }
.module-nav::-webkit-scrollbar-thumb { background: var(--gold-200); border-radius: 999px; }
.module-tab { position: relative; min-height: 46px; padding: 13px 12px 12px; display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; color: var(--navy-800); border-radius: 8px 8px 0 0; font-size: 12.5px; font-weight: 750; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.module-tab.is-available:hover { color: var(--navy-950); background: var(--gold-50); }
.module-tab.is-active { color: var(--navy-950); background: var(--gold-50); }
.module-tab.is-active::after { content: ""; position: absolute; right: 12px; bottom: 0; left: 12px; height: 2px; background: var(--gold-600); border-radius: 999px; }
.module-tab.is-upcoming { color: #6b767d; }
.module-tab.is-upcoming small { padding: 3px 7px; color: var(--gold-800); background: var(--gold-50); border: 1px solid var(--gold-200); border-radius: 999px; font-size: 10px; font-weight: 800; }
.expert-lockup { padding-left: 22px; border-left: 1px solid var(--gold-200); text-align: right; }
.expert-lockup strong, .expert-lockup span { display: block; }
.expert-lockup strong { font-family: Georgia,"Times New Roman",serif; font-size: 18px; font-weight: 650; }
.expert-lockup span { margin-top: 3px; color: var(--muted); font-size: 12px; }

.shell { width: min(1220px, calc(100% - 32px)); margin: 26px auto 64px; }
.privacy-strip { display: flex; align-items: flex-start; gap: 13px; padding: 15px 18px; color: #31554d; background: var(--sage-50); border: 1px solid #c9ddd6; border-radius: var(--radius-sm); }
.privacy-strip svg { width: 21px; flex: 0 0 auto; margin-top: 2px; fill: none; stroke: var(--sage-700); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.privacy-strip div { display: flex; flex-wrap: wrap; gap: 6px; }
.privacy-strip strong { color: #28584e; }
.privacy-strip span { font-size: 14px; }

.workspace { margin-top: 18px; display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 18px; align-items: start; }
.ask-card { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.ask-heading { position: relative; min-height: 235px; padding: clamp(28px,5vw,52px); display: flex; align-items: flex-start; justify-content: space-between; gap: 26px; color: #fff; background: var(--navy-950); }
.ask-heading::after { content: ""; position: absolute; width: 260px; height: 260px; right: -95px; bottom: -150px; border: 1px solid rgba(216,177,111,.24); border-radius: 50%; }
.ask-heading > div { position: relative; z-index: 1; max-width: 690px; }
.eyebrow, .mini-label { margin: 0 0 10px; color: #dfbd7e; font-size: 12px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: Georgia,"Times New Roman",serif; }
h1 { margin-bottom: 14px; font-size: clamp(36px,5vw,55px); font-weight: 600; line-height: 1.05; letter-spacing: -.038em; }
h2 { font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -.015em; }
.lead { max-width: 700px; margin-bottom: 0; color: #d5dde2; font-size: 17px; }
.compass-seal { width: 92px; height: 92px; flex: 0 0 auto; display: grid; place-items: center; color: #e4c487; background: rgba(255,255,255,.04); border: 1px solid rgba(228,196,135,.27); border-radius: 50%; }
.compass-seal svg { width: 68px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.question-form { padding: 26px clamp(22px,4vw,42px) 16px; }
.question-form > label { display: block; margin-bottom: 9px; color: var(--navy-900); font-size: 14px; font-weight: 800; }
.composer { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: stretch; }
.composer textarea { width: 100%; min-height: 78px; max-height: 150px; padding: 15px 16px; resize: vertical; color: var(--navy-950); background: #fff; border: 1px solid var(--line-strong); border-radius: 12px; outline: none; line-height: 1.5; }
.composer textarea:focus { border-color: var(--gold-600); box-shadow: 0 0 0 4px rgba(189,135,55,.12); }
.composer textarea::placeholder { color: #889198; }
.composer button { min-width: 145px; padding: 12px 17px; color: #fff; background: var(--gold-700); border: 1px solid var(--gold-700); border-radius: 12px; font-weight: 800; cursor: pointer; }
.composer button:hover { background: var(--gold-800); }
.composer-meta { min-height: 28px; margin-top: 5px; display: flex; justify-content: space-between; color: #82909a; font-size: 12px; }
.text-button { padding: 0; color: var(--gold-800); background: none; border: 0; font-size: 12px; font-weight: 750; cursor: pointer; }
.text-button:hover { text-decoration: underline; }

.quick-questions { padding: 0 clamp(22px,4vw,42px) 24px; }
.quick-questions > strong { display: block; margin-bottom: 9px; color: var(--navy-900); font-size: 14px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-row button { padding: 8px 11px; color: var(--navy-800); background: var(--gold-50); border: 1px solid var(--gold-200); border-radius: 999px; font-size: 13px; font-weight: 680; cursor: pointer; }
.chip-row button:hover { color: var(--navy-950); border-color: var(--gold-600); }

.conversation { min-height: 190px; padding: 26px clamp(22px,4vw,42px) 34px; background: #f8f5ef; border-top: 1px solid var(--line); }
.assistant-message, .user-message { display: flex; align-items: flex-start; gap: 12px; }
.assistant-message + .user-message, .user-message + .assistant-message { margin-top: 19px; }
.message-icon { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; background: var(--navy-950); border-radius: 10px; font-family: Georgia,"Times New Roman",serif; font-size: 12px; font-weight: 700; }
.assistant-message > div { max-width: 720px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; }
.assistant-message strong { display: block; margin-bottom: 3px; color: var(--navy-900); }
.assistant-message p { margin: 0; color: var(--muted); font-size: 15px; }
.user-message { justify-content: flex-end; }
.user-message p { max-width: 650px; margin: 0; padding: 11px 14px; color: #fff; background: var(--navy-800); border-radius: 14px 4px 14px 14px; font-size: 14px; }
.answer-card { max-width: 760px !important; padding: 0 !important; overflow: hidden; }
.answer-head { padding: 15px 17px 12px; background: var(--gold-50); border-bottom: 1px solid var(--gold-200); }
.answer-kicker { display: block; margin-bottom: 4px; color: var(--gold-800); font-size: 11px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.answer-head strong { margin: 0; font-family: Georgia,"Times New Roman",serif; font-size: 20px; font-weight: 600; }
.answer-body { padding: 16px 17px; }
.answer-body p + p { margin-top: 10px; }
.answer-note { margin-top: 13px !important; padding: 10px 12px; color: var(--navy-900) !important; background: var(--gold-50); border-left: 3px solid var(--gold-600); border-radius: 7px; font-size: 13px !important; }
.answer-meta { padding: 12px 17px 15px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); }
.answer-source { color: #75808a; font-size: 12px; }
.answer-link { padding: 8px 11px; color: #fff; background: var(--navy-950); border-radius: 8px; font-size: 12px; font-weight: 780; text-decoration: none; }
.answer-link:hover { background: var(--navy-800); }
.related-list { display: grid; gap: 7px; margin-top: 12px; }
.related-list button { padding: 10px 12px; color: var(--navy-800); background: #fff; border: 1px solid var(--line); border-radius: 8px; text-align: left; cursor: pointer; }
.related-list button:hover { border-color: var(--gold-600); }
.urgent-answer > div { border-color: var(--red-100); }
.urgent-answer .message-icon { background: var(--red-800); }
.urgent-answer strong { color: var(--red-800); }

.side-column { display: grid; gap: 14px; }
.boundary-card, .scope-card, .truth-card { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.boundary-card h2 { margin-bottom: 12px; }
.boundary-card .mini-label, .scope-card .mini-label { color: var(--gold-800); }
.check-list, .cross-list { margin: 0; padding: 0; list-style: none; }
.check-list li, .cross-list li { position: relative; margin-top: 9px; padding-left: 22px; color: var(--muted); font-size: 14px; }
.check-list li::before, .cross-list li::before { position: absolute; left: 0; font-weight: 900; }
.check-list li::before { content: "✓"; color: var(--sage-700); }
.cross-list li::before { content: "—"; color: var(--gold-700); }
.second-title { margin: 24px 0 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.scope-list { display: flex; flex-wrap: wrap; gap: 7px; }
.scope-list span { padding: 6px 9px; color: var(--navy-800); background: var(--gold-50); border: 1px solid var(--gold-200); border-radius: 999px; font-size: 12px; font-weight: 700; }
.scope-card > p:last-child { margin: 15px 0 0; color: var(--muted); font-size: 13px; }
.truth-card { display: flex; gap: 12px; background: var(--navy-950); border-color: var(--navy-950); }
.truth-icon { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; color: var(--navy-950); background: #dfbd7e; border-radius: 50%; font-family: Georgia,"Times New Roman",serif; font-weight: 800; }
.truth-card strong { display: block; margin-bottom: 4px; color: #fff; }
.truth-card p { margin: 0; color: #cbd5dc; font-size: 13px; }

.always-warning { margin-top: 18px; padding: 16px 18px; display: flex; gap: 13px; color: #4f4b45; background: #fbf8f1; border: 1px solid var(--gold-200); border-radius: var(--radius-sm); }
.always-warning svg { width: 22px; flex: 0 0 auto; margin-top: 2px; fill: none; stroke: var(--gold-700); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.always-warning p { margin: 0; font-size: 14px; }
.always-warning strong { color: var(--navy-900); }
.references-panel { margin-top: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); }
.references-panel > summary { padding: 17px 20px; color: var(--navy-900); font-size: 15px; font-weight: 800; cursor: pointer; }
.reference-content { padding: 0 22px 20px; color: var(--muted); font-size: 13px; }
.reference-content p { margin: 7px 0 0; }
.reference-content ol { margin: 12px 0; padding-left: 22px; }
.reference-content li { margin-top: 7px; }

footer { padding: 31px max(20px,calc((100% - 1220px)/2)); display: flex; align-items: flex-start; justify-content: space-between; gap: 44px; color: #b8c3cc; background: var(--navy-950); border-top: 4px solid var(--gold-600); font-size: 12px; }
.footer-brand { flex: 0 0 auto; }
.footer-brand > strong, .footer-brand > span, .footer-brand > small { display: block; }
.footer-brand > strong { color: #fff; font-family: Georgia,"Times New Roman",serif; font-size: 20px; font-weight: 650; }
.footer-brand > strong em { color: #d8b16f; font-style: normal; }
.footer-brand > span { margin: 2px 0 10px; color: #fff; font-size: 13px; font-weight: 750; }
.footer-note { max-width: 650px; }
.footer-note p { margin: 0; text-align: right; }
.footer-note a { display: inline-block; float: right; margin-top: 11px; color: #e2c284; font-weight: 750; }

button:focus-visible, textarea:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid rgba(189,135,55,.34); outline-offset: 3px; }

@media (max-width: 1160px) {
  .topbar-main { grid-template-columns: minmax(0,1fr) auto; gap: 17px 24px; }
  .module-nav { grid-column: 1 / -1; grid-row: 2; padding-top: 10px; border-top: 1px solid var(--line); }
}
@media (max-width: 950px) {
  .workspace { grid-template-columns: 1fr; }
  .side-column { grid-template-columns: 1fr 1fr; }
  .truth-card { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .composer { grid-template-columns: 1fr; }
  .composer button { min-height: 49px; }
  .compass-seal { width: 72px; height: 72px; }
  .compass-seal svg { width: 54px; }
  .side-column { grid-template-columns: 1fr; }
  .truth-card { grid-column: auto; }
  footer { display: block; }
  .footer-note { margin-top: 18px; }
  .footer-note p { text-align: left; }
  .footer-note a { float: none; }
}
@media (max-width: 560px) {
  .topbar-inner { width: min(100% - 28px,1380px); }
  .topbar-main { min-height: 0; padding: 12px 0 15px; align-items: flex-start; gap: 13px 14px; }
  .brand { align-items: flex-start; gap: 10px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-mark svg { width: 30px; }
  .wordmark { font-size: 28px; }
  .brand-tagline { margin-top: 5px; font-size: 9px; white-space: normal; }
  .module-nav { width: calc(100% + 14px); margin-right: -14px; padding: 9px 14px 4px 0; }
  .module-tab { min-height: 42px; padding: 11px 12px 10px; font-size: 12px; }
  .expert-lockup { max-width: 132px; padding-left: 11px; }
  .expert-lockup strong { font-size: 15px; line-height: 1.2; }
  .expert-lockup span { font-size: 12px; line-height: 1.35; }
  .shell { width: min(100% - 20px,1220px); margin-top: 14px; }
  .privacy-strip { padding: 12px; }
  .privacy-strip div { display: block; }
  .privacy-strip span { display: block; margin-top: 4px; font-size: 13px; }
  .ask-heading { min-height: 0; padding: 28px 20px; }
  .ask-heading .compass-seal { display: none; }
  h1 { font-size: 35px; }
  .lead { font-size: 16px; }
  .question-form { padding: 22px 17px 14px; }
  .quick-questions { padding: 0 17px 21px; }
  .conversation { padding: 22px 15px 28px; }
  .assistant-message, .user-message { gap: 8px; }
  .message-icon { width: 33px; height: 33px; }
  .assistant-message > div { padding: 12px 13px; }
  .answer-head, .answer-body, .answer-meta { padding-left: 14px; padding-right: 14px; }
  .answer-meta { align-items: flex-start; }
  .answer-link { width: 100%; text-align: center; }
}
@media (max-width: 410px) {
  .topbar-main { grid-template-columns: 1fr; }
  .module-nav { grid-column: 1; grid-row: 2; }
  .expert-lockup { grid-row: 3; width: 100%; max-width: none; padding: 10px 0 0; border-top: 1px solid var(--gold-200); border-left: 0; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* GastroPusula ortak, tam görünür modül başlığı */
.topbar-inner {
  width: min(1480px, calc(100% - 48px));
}
.topbar-main {
  min-height: 0;
  padding: 12px 0 0;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand expert"
    "modules modules";
  align-items: center;
  gap: 18px 42px;
}
.brand {
  grid-area: brand;
  min-width: 0;
}
.wordmark {
  font-size: clamp(2rem, 3vw, 2.6rem);
}
.brand-tagline {
  font-size: .75rem;
}
.expert-lockup {
  grid-area: expert;
  min-width: 330px;
  padding-left: 34px;
  border-left: 1px solid var(--gold-200);
  text-align: right;
}
.expert-lockup strong {
  font-size: 1.25rem;
}
.expert-lockup span {
  font-size: .8rem;
}
.module-nav {
  grid-area: modules;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  overflow: visible;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  scrollbar-width: none;
}
.module-nav::-webkit-scrollbar {
  display: none;
}
.module-tab {
  min-width: 0;
  min-height: 56px;
  padding: 12px 10px 13px;
  display: flex;
  flex: initial;
  justify-content: center;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: clamp(.78rem, 1.08vw, .9rem);
  line-height: 1.3;
}
.module-tab.is-upcoming {
  flex-wrap: wrap;
  justify-content: center;
}
.module-tab.is-upcoming small {
  flex: 0 0 auto;
  font-size: .75rem;
}

@media (max-width: 1100px) {
  .module-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-bottom: 7px;
  }
  .module-tab {
    min-height: 52px;
    border: 1px solid var(--line);
    border-radius: 9px;
  }
  .module-tab.is-active::after {
    right: 18px;
    left: 18px;
  }
}

@media (max-width: 760px) {
  .topbar-inner {
    width: min(100% - 24px, 1480px);
  }
  .topbar-main {
    padding-top: 10px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "expert"
      "modules";
    gap: 12px;
  }
  .expert-lockup {
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 10px 0 0;
    border-top: 1px solid var(--gold-200);
    border-left: 0;
    text-align: left;
  }
  .expert-lockup strong {
    font-size: 1rem;
  }
  .expert-lockup span {
    font-size: .78rem;
  }
  .module-nav {
    width: 100%;
    margin: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 11px 0 8px;
  }
  .module-tab {
    min-height: 56px;
    padding: 10px 8px;
    font-size: .78rem;
  }
  .module-tab:last-child {
    grid-column: 1 / -1;
  }
}
