/* The bar is a chat; the Mesas are a forum with ordinary document reading. */
.fos-taberna #fos-panel-casco { padding: 0; }
.fos-taberna #fos-panel-mesas { padding: clamp(16px, 2.4vw, 28px); }
.fos-taberna[data-active-tab="mesas"] .fos-tab-topbar { min-height: 52px; padding-block: 6px; }
.fos-taberna[data-active-tab="mesas"] .fos-tab-room-scene { height: 76px; }
.fos-taberna[data-active-tab="mesas"] .fos-tab-app { margin-top: 12px; }
.fos-taberna[data-active-tab="casco"] .fos-tab-room-scene { height: clamp(150px, 20vw, 260px); aspect-ratio: auto; }
.fos-taberna .fos-tab-tables-heading { display: flex; justify-content: space-between; align-items: start; gap: 14px; }
.fos-taberna .fos-tab-tables-heading h2 { font-size: 30px; }
.fos-taberna .fos-tab-tables-heading p { margin: 7px 0; font-size: 16px; }
.fos-taberna .fos-tab-table-count { color: #b2baa7; font-size: 13px; }
.fos-taberna .fos-tab-tables-heading > [data-fos-open-table] { min-height: 44px; padding: 9px 14px; font-size: 14px; white-space: nowrap; }
.fos-taberna .fos-tab-table-toolbar { position: relative; padding: 14px 0 0; margin-top: 16px; }
.fos-taberna .fos-tab-table-toolbar form { gap: 8px; }
.fos-taberna .fos-tab-table-toolbar label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.fos-taberna .fos-tab-table-toolbar input[type="search"] { width: min(480px, 100%); flex: 1 1 220px; min-height: 44px; padding: 9px 12px; font-size: 16px; }
.fos-taberna .fos-tab-table-toolbar button,
.fos-taberna .fos-tab-table-toolbar form > a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px; font-size: 14px; }
.fos-taberna .fos-tab-new-table > summary { min-height: 44px; padding: 12px 14px; font-size: 15px; }
.fos-taberna.has-mobile-chat-ui .fos-tab-new-table:not([open]) { display: none; }
.fos-taberna .fos-tab-new-table--locked p,
.fos-taberna .fos-tab-new-table--locked a { font-size: 15px; line-height: 1.6; }
.fos-taberna .fos-tab-new-table .fos-tab-form label { font-size: 15px; }
.fos-taberna .fos-tab-new-table .fos-tab-form :is(input,textarea) { font-size: 16px; }
.fos-taberna .fos-tab-new-table .fos-tab-form button[type="submit"] { min-height: 44px; font-size: 15px; }
.fos-taberna .fos-tab-topic > a { display: grid; padding: 18px 16px; gap: 18px; }
.fos-taberna .fos-tab-topic-main > span:last-child > strong { font-size: 17px; line-height: 1.45; }
.fos-taberna .fos-tab-topic-main > span:last-child > small { font-size: 15px; line-height: 1.5; -webkit-line-clamp: 2; }
.fos-taberna .fos-tab-topic-stats { font-size: 13px; }
.fos-taberna #fos-panel-mesas > .fos-tab-pagination { padding-block: 16px 2px; font-size: 14px; }
.fos-taberna .fos-tab-pagination a { min-width: 44px; min-height: 44px; }
.fos-taberna .fos-tab-thread { width: 100%; max-width: 980px; margin-inline: auto; }
.fos-taberna .fos-tab-thread > .fos-tab-back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 8px; color: #e1c48f; font-size: 15px; }
.fos-taberna .fos-tab-thread-header { margin: 0; padding-bottom: 12px; }
.fos-taberna .fos-tab-thread-header h2 { font-size: clamp(25px, 3vw, 36px); line-height: 1.3; }
.fos-taberna .fos-tab-thread-header .fos-tab-mesa-meta { margin-top: 12px; font-size: 13px; }
.fos-taberna .fos-tab-thread-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; }
.fos-taberna .fos-tab-thread-actions > a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; border: 1px solid #535e47; border-radius: 5px; color: #e0d8c0; font-size: 14px; }
.fos-taberna .fos-tab-thread-actions > .fos-tab-thread-reply-link { margin-left: auto; border-color: #ad925d; background: #332f20; color: #f2dba7; }
.fos-taberna .fos-tab-thread .fos-tab-opening-detail { height: auto; min-height: 0; max-height: none; overflow: visible; margin: 0 0 22px; padding: 16px; border: 1px solid #4a5541; background: rgba(14, 20, 12, .35); }
.fos-taberna .fos-tab-thread .fos-tab-opening-label { margin: 0 0 12px; font-size: 12px; }
.fos-taberna .fos-tab-thread .fos-tab-message-content,
.fos-taberna .fos-tab-thread .fos-tab-message-content.is-collapsed { height: auto; max-height: none; overflow: visible; font-size: 16px; line-height: 1.65; }
.fos-taberna .fos-tab-thread .fos-tab-read-more { display: none !important; }
.fos-taberna .fos-tab-thread .fos-tab-forum-replies { display: block; height: auto; min-height: 0; max-height: none; overflow: visible; margin: 0; border: 0; border-radius: 0; }
.fos-taberna .fos-tab-forum-replies > .fos-tab-chat-header { min-height: 48px; margin-top: 10px; padding: 8px 0; border: 0; }
.fos-taberna .fos-tab-forum-replies > .fos-tab-chat-header h3 { font: 700 24px/1.3 Georgia, serif; }
.fos-taberna .fos-tab-forum-replies > .fos-tab-stream { display: block; height: auto; min-height: 0; max-height: none; overflow: visible; padding: 0; touch-action: auto; overscroll-behavior: auto; }
.fos-taberna .fos-tab-forum-replies .fos-tab-message { padding: 20px 4px; border-top: 1px solid var(--ft-line); }
.fos-taberna .fos-tab-forum-replies .fos-tab-message-footer { margin-top: 12px; }
.fos-taberna .fos-tab-forum-replies > .fos-tab-composer,
.fos-taberna .fos-tab-forum-replies > .fos-tab-join { position: relative; margin-top: 20px; padding: 16px; border: 1px solid #535c46; border-radius: 6px; background: #22271e; scroll-margin-top: 76px; }
.fos-taberna .fos-tab-forum-replies .fos-tab-composer > label { position: static; width: auto; height: auto; padding: 0; margin: 0 0 5px; clip-path: none; overflow: visible; white-space: normal; font-size: 16px; }
.fos-taberna .fos-tab-forum-replies .fos-tab-composer .fos-tab-visual-editor,
.fos-taberna .fos-tab-forum-replies .fos-tab-composer textarea[data-fos-writing-input] { min-height: 120px; max-height: min(50dvh, 440px); font-size: 16px; }
.fos-taberna .fos-tab-forum-replies .fos-tab-composer.is-writing-expanded .fos-tab-visual-editor,
.fos-taberna .fos-tab-forum-replies .fos-tab-composer.is-writing-expanded textarea[data-fos-writing-input] { min-height: 200px; max-height: 65dvh; }
.fos-taberna .fos-tab-forum-replies .fos-tab-composer-tools > button[data-fos-send] { min-height: 44px; font-size: 14px !important; }
.fos-taberna .fos-tab-forum-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 18px; padding: 12px 0; border-block: 1px solid var(--ft-line); color: #bdc4b3; font-size: 14px; }
.fos-taberna .fos-tab-forum-pagination > div { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.fos-taberna .fos-tab-forum-pagination :is(a,.is-current) { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 7px 10px; border: 1px solid #536047; border-radius: 5px; color: #e6d0a2; font-size: 14px; }
.fos-taberna .fos-tab-forum-pagination .is-current { border-color: #b89d67; background: #3a3525; color: #f3dfa8; }
.fos-taberna .fos-tab-forum-pagination a:hover { border-color: #c7ab76; background: #2c3325; }
.fos-taberna .fos-tab-admin-ambience { margin: 24px; border: 1px solid var(--ft-line); border-radius: 5px; }
.fos-taberna .fos-tab-admin-ambience > summary { min-height: 44px; padding: 12px 16px; font-size: 15px; cursor: pointer; }
.fos-taberna .fos-tab-admin-ambience .fos-tab-season-picker { margin: 0; border: 0; }

@media (min-width: 861px) {
  .fos-taberna[data-active-tab="barra"] > .fos-tab-header { display: none; }
  .fos-taberna[data-active-tab="barra"] .fos-tab-room-scene { height: 64px; }
  .fos-taberna[data-active-tab="barra"] .fos-tab-app { margin-top: 10px; }
}

@media (max-width: 860px) {
  .fos-taberna > .fos-tab-header { display: none; }
  .fos-taberna[data-active-tab="mesas"] .fos-tab-app { margin: 0; }
  .fos-taberna[data-active-tab="mesas"] .fos-tab-room-scene { height: 52px; }
  .fos-taberna[data-active-tab="casco"] .fos-tab-room-scene { height: 145px; }
  .fos-taberna #fos-panel-mesas { padding: 16px 12px; }
  .fos-taberna .fos-tab-tables-heading h2 { font-size: 27px; }
  .fos-taberna .fos-tab-tables-heading p { font-size: 15px; }
  .fos-taberna .fos-tab-table-toolbar input[type="search"] { flex: 1 1 0; width: 0; }
  .fos-taberna .fos-tab-new-table { margin-top: 12px; }
  .fos-taberna .fos-tab-topic > a { grid-template-columns: minmax(0, 1fr); padding: 16px 12px; gap: 10px; }
  .fos-taberna .fos-tab-topic-stats { display: flex; flex-wrap: wrap; gap: 4px 14px; padding-left: 41px; text-align: left; }
  .fos-taberna .fos-tab-topic-stats span:last-child { text-align: left; }
  .fos-taberna .fos-tab-thread-header h2 { font-size: 26px; }
  .fos-taberna .fos-tab-thread-actions { gap: 6px; }
  .fos-taberna .fos-tab-thread-actions > a { flex: 1 1 auto; padding: 7px 9px; font-size: 13px; }
  .fos-taberna .fos-tab-thread-actions > .fos-tab-thread-reply-link { margin-left: 0; }
  .fos-taberna .fos-tab-thread .fos-tab-opening-detail { padding: 12px 8px; }
  .fos-taberna .fos-tab-forum-replies .fos-tab-message { grid-template-columns: 28px minmax(0, 1fr); gap: 8px; padding: 18px 0; }
  .fos-taberna .fos-tab-forum-replies > .fos-tab-composer,
  .fos-taberna .fos-tab-forum-replies > .fos-tab-join { padding: 12px 10px; }
  .fos-taberna .fos-tab-forum-replies .fos-tab-composer .fos-tab-visual-editor { min-height: 120px; }
  .fos-taberna .fos-tab-forum-pagination { gap: 8px; }
  .fos-taberna .fos-tab-forum-pagination > div { gap: 5px; }
  .fos-taberna .fos-tab-forum-pagination .fos-tab-forum-range { flex-basis: 100%; }
  .fos-taberna .fos-tab-admin-ambience { margin: 16px; }
}

@media (max-width: 380px) {
  .fos-taberna .fos-tab-tables-heading { flex-wrap: wrap; }
  .fos-taberna .fos-tab-tables-heading > [data-fos-open-table] { width: 100%; }
  .fos-taberna .fos-tab-topic-stats { padding-left: 0; }
}


/* v1.15.1 — The seasonal header itself is clickable; no intrusive overlay icon. */
.fos-taberna .fos-tab-room-scene{position:relative}
.fos-taberna .fos-tab-scene-toggle,
.fos-taberna .fos-tab-scene-toggle:hover,
.fos-taberna .fos-tab-scene-toggle[aria-pressed="true"]{
 position:absolute;inset:0;z-index:2;display:block;
 width:100%;height:100%;min-width:0;min-height:0;margin:0;padding:0;
 border:0;border-radius:0;box-shadow:none;background:transparent;color:transparent;
 font-size:0;line-height:0;opacity:1;cursor:zoom-in;-webkit-tap-highlight-color:transparent;
}
.fos-taberna .fos-tab-scene-toggle[aria-pressed="true"]{cursor:zoom-out}
.fos-taberna .fos-tab-scene-toggle:focus-visible{outline:2px solid #efd291;outline-offset:-3px}
.fos-taberna .fos-tab-scene-toggle[hidden]{display:none!important}
.fos-taberna[data-active-tab="barra"] .fos-tab-room-scene.is-expanded,
.fos-taberna[data-active-tab="mesas"] .fos-tab-room-scene.is-expanded{
 display:block!important;height:auto!important;max-height:none!important;aspect-ratio:1672/941
}
.fos-taberna[data-active-tab="barra"] .fos-tab-room-scene.is-expanded > img,
.fos-taberna[data-active-tab="mesas"] .fos-tab-room-scene.is-expanded > img{
 width:100%;height:100%;object-fit:contain;object-position:center
}
@media(max-width:860px){
 .fos-taberna[data-active-tab="barra"] .fos-tab-room-scene:not(.is-expanded),
 .fos-taberna[data-active-tab="mesas"] .fos-tab-room-scene:not(.is-expanded){
  display:block!important;height:44px!important;flex:0 0 44px
 }
 .fos-taberna[data-active-tab="barra"] .fos-tab-room-scene.is-expanded,
 .fos-taberna[data-active-tab="mesas"] .fos-tab-room-scene.is-expanded{flex:0 0 auto;height:auto!important}
}


/* 1.15.2 — phone usability: formatting does not disappear behind native
   selection/copy/paste UI, and the round card is immediately reachable. */
@media (max-width: 860px) {
  .fos-taberna.has-mobile-chat-ui .fos-tab-tabs { overflow-x: auto; }
  .fos-taberna.has-mobile-chat-ui[data-active-tab="barra"] .fos-tab-mobile-aside-toggle {
    display: inline-flex; min-width: 106px; max-width: 138px; padding: 4px 9px;
    white-space: normal; line-height: 1.15; text-align: center;
  }
  .fos-taberna.has-mobile-chat-ui.is-mobile-aside-open #fos-panel-barra .fos-tab-aside {
    scrollbar-gutter: stable; scroll-padding-top: 60px;
  }
  .fos-taberna .fos-tab-aside > .fos-tab-drink-card {
    margin: 6px 0 20px; padding: 14px 12px; border: 1px solid #6d6848;
    border-radius: 8px; background: #24291e;
  }
  .fos-taberna .fos-tab-aside > .fos-tab-drink-card h3 { margin-top: 5px; font-size: 20px; }
  .fos-taberna .fos-tab-aside > .fos-tab-drink-card select { width: 100%; min-width: 0; font-size: 16px; }
  .fos-taberna .fos-tab-aside > .fos-tab-drink-card .fos-tab-drink-actions { display: flex; flex-wrap: wrap; gap: 8px; }
  .fos-taberna .fos-tab-aside > .fos-tab-drink-card .fos-tab-drink-actions button { flex: 1 1 130px; min-height: 46px; }

  /* Mobile tools are a permanent row AFTER the editing surface. */
  .fos-taberna.has-mobile-chat-ui .fos-tab-composer .fos-tab-writing-tools,
  .fos-taberna.has-mobile-chat-ui .fos-tab-new-table .fos-tab-writing-tools {
    display: flex; flex-wrap: nowrap; flex: 0 0 auto; align-items: center;
    min-width: 0; max-width: 100%; width: 100%; margin: 0; padding: 2px 0 4px;
    gap: 5px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch; scrollbar-width: thin;
  }
  .fos-taberna.has-mobile-chat-ui .fos-tab-composer-tools > [data-fos-mobile-format] { display: none !important; }
  .fos-taberna.has-mobile-chat-ui .fos-tab-composer .fos-tab-writing-tools [data-fos-write],
  .fos-taberna.has-mobile-chat-ui .fos-tab-new-table .fos-tab-writing-tools [data-fos-write] {
    flex-shrink: 0; min-height: 44px; min-width: 44px; font-size: 13px;
  }
  .fos-taberna.has-mobile-chat-ui .fos-tab-composer .fos-tab-writing-tools [data-fos-write="italic"],
  .fos-taberna.has-mobile-chat-ui .fos-tab-new-table .fos-tab-writing-tools [data-fos-write="italic"] { order: -3; }
  .fos-taberna.has-mobile-chat-ui .fos-tab-composer .fos-tab-writing-tools [data-fos-write="bold"],
  .fos-taberna.has-mobile-chat-ui .fos-tab-new-table .fos-tab-writing-tools [data-fos-write="bold"] { order: -2; }
  .fos-taberna.has-mobile-chat-ui .fos-tab-composer .fos-tab-writing-tools [data-fos-write="quotes"],
  .fos-taberna.has-mobile-chat-ui .fos-tab-new-table .fos-tab-writing-tools [data-fos-write="quotes"] { order: -1; }
  .fos-taberna.has-mobile-chat-ui .fos-tab-composer .fos-tab-writing-tools [data-fos-rp-menu] { flex: 0 0 auto; }
  .fos-taberna.has-mobile-chat-ui .fos-tab-composer.is-writing-expanded .fos-tab-visual-editor { min-height: 96px; max-height: min(210px, 31dvh); }
  .fos-taberna.has-mobile-chat-ui.is-mobile-keyboard-open .fos-tab-composer.is-writing-expanded .fos-tab-visual-editor { min-height: 64px; max-height: min(130px, 25dvh); }
  .fos-taberna.has-mobile-chat-ui .fos-tab-new-table.is-writing-expanded .fos-tab-visual-editor { min-height: 96px; max-height: min(240px, 39dvh); }
}
@media (max-width: 860px) and (max-height: 500px) {
  .fos-taberna.has-mobile-chat-ui.is-mobile-short-chat .fos-tab-composer .fos-tab-writing-tools {
    display: flex !important; grid-column: 1 / -1; grid-row: 2;
    max-width: 100%; height: 42px; margin: 0; padding: 0;
  }
  .fos-taberna.has-mobile-chat-ui.is-mobile-short-chat .fos-tab-composer .fos-tab-visual-editor { grid-column: 1 / -1; grid-row: 1; }
  .fos-taberna.has-mobile-chat-ui.is-mobile-short-chat .fos-tab-composer .fos-tab-composer-tools { grid-column: 1 / -1; grid-row: 3; justify-self: end; }
}
@media (max-width: 860px) {
  .fos-taberna.has-mobile-chat-ui.is-mobile-short-chat .fos-tab-composer .fos-tab-writing-tools {
    display: flex !important; grid-column: 1 / -1; grid-row: 2;
    max-width: 100%; height: 42px; margin: 0; padding: 0;
  }
  .fos-taberna.has-mobile-chat-ui.is-mobile-short-chat .fos-tab-composer .fos-tab-visual-editor,
  .fos-taberna.has-mobile-chat-ui.is-mobile-short-chat .fos-tab-composer textarea[data-fos-writing-input] { grid-column: 1 / -1; grid-row: 1; }
  .fos-taberna.has-mobile-chat-ui.is-mobile-short-chat .fos-tab-composer .fos-tab-composer-tools { grid-column: 1 / -1; grid-row: 3; justify-self: end; }
  .fos-taberna.has-mobile-chat-ui.is-mobile-short-chat .fos-tab-composer .fos-tab-composer-tools > .fos-tab-emoji-picker { display: inline-flex !important; }
}

/* Long conversations: stable destinations with room below the site header. */
.fos-taberna .fos-tab-message-anchor,
.fos-taberna .fos-tab-thread [id^="fos-tab-message-"] {
  scroll-margin-block-start: 104px;
}
.fos-taberna .fos-tab-message-anchor { display: block; height: 0; }
.fos-taberna .fos-tab-message-anchor:focus { outline: none; }
.fos-taberna .fos-tab-message:target {
  outline: 1px solid var(--ft-gold);
  outline-offset: 4px;
}
.fos-taberna .fos-tab-topic-latest {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border-top: 1px solid var(--ft-line);
  color: var(--ft-gold);
  font-size: 13px;
  font-weight: 600;
}
.fos-taberna .fos-tab-topic > .fos-tab-topic-latest { display: flex; padding: 8px 16px; }
.fos-taberna .fos-tab-last-message:hover { color: #ffe4a8; background: rgba(217,181,116,.07); }
.fos-taberna .fos-tab-last-message:focus-visible {
  outline: 2px solid var(--ft-gold);
  outline-offset: 2px;
}
.fos-taberna .fos-tab-thread-actions > .fos-tab-last-message { border-color: #958258; }
.fos-taberna .fos-tab-thread.has-thread-navigation > .fos-tab-thread-latest {
  position: fixed;
  left: var(--fos-thread-center, 50%);
  bottom: calc(var(--fos-thread-bottom, 18px) + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 8;
  display: block;
  width: max-content;
  max-width: var(--fos-thread-width, calc(100% - 24px));
  min-height: 44px;
  margin: 0 auto;
  padding: 10px 18px;
  border: 1px solid #9f8d60;
  border-radius: 24px;
  background: #303723;
  color: #e8d5a6;
  box-shadow: 0 3px 12px rgba(0,0,0,.24);
  box-sizing: border-box;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 22px;
  text-align: center;
  text-decoration: none;
}
.fos-taberna .fos-tab-thread.has-thread-navigation > .fos-tab-thread-latest[hidden] { display: none; }
@media (max-width: 520px) {
  .fos-taberna .fos-tab-thread-actions > a { min-height: 44px; }
  .fos-taberna .fos-tab-forum-pagination > div { max-width: 100%; }
  .fos-taberna .fos-tab-topic > .fos-tab-topic-latest { padding-inline: 12px; }
}
