:root{
  --castit-green:#26b275;
  --castit-bg:#ebfaee;
  --castit-text:#032b22;
  --castit-muted:rgba(12,46,35,.65);
  --castit-line:rgba(12,46,35,.18);
}

/* =========================
   Base
   ========================= */

.castit-menytabs{
  width:100%;
  max-width:1600px;
  margin:0 auto;
  font-family:system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--castit-text);
}

.castit-menu-container{
  max-width:1600px;
  width:100%;
  margin:0 auto;
  padding:0 16px;
}

.castit-tabpanel{
  display:none;
}

.castit-tabpanel.is-active{
  display:block;
}

.castit-weekpanel{
  display:none;
}

.castit-weekpanel.is-active{
  display:block;
}

/* =========================
   Lunch meta / priser
   ========================= */

.castit-lunch-meta{
  font-size:16px;
  margin-bottom:14px;
}

.castit-lunch-meta__label{
  color:var(--castit-green);
  display:inline-block;
  font-weight:700;
}

.castit-lunch-meta__items,
.castit-lunch-meta__block {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.castit-menu-text{
  margin:0 0 24px;
  color:var(--castit-text);
  font-size:16px;
  line-height:1.45;
}

.castit-menu-text .castit-i18n{
  white-space:pre-line;
}

.castit-menu-text--intro{
  max-width:82ch;
  margin:0 0 74px;
}

.castit-weekly-top{
  margin:0 0 74px;
}

.castit-menu-empty{
  margin:24px 0 0;
  padding:18px 22px;
  border:1px solid var(--castit-line);
  border-radius:14px;
  background:#f7fbf8;
}

.castit-menu-empty__text{
  margin:0;
  font-size:16px;
  line-height:1.5;
  color:var(--castit-text);
}

.castit-weekly-top .castit-lunch-meta{
  margin-bottom:14px;
}

.castit-weekly-top .castit-menu-text--intro{
  margin:0;
}

.castit-week-intro-panel{
  display:none;
}

.castit-week-intro-panel.is-active{
  display:block;
}

.castit-special-top-texts{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  align-items:start;
  margin:0 0 34px;
}

.castit-special-top-texts .castit-menu-text--intro{
  margin:0;
}

.castit-special-top-texts .castit-menu-text--intro{
  flex:0 1 82ch;
  max-width:82ch;
}

.castit-week-note{
  margin:10px 0 16px;
}

.castit-menu-text--footer{
  margin:74px 0 0;
  padding-top:14px;
  border-top:1px solid var(--castit-line);
  font-weight:400;
}

/* =========================
   Knappar / tabs
   ========================= */

.castit-lunch-header button{
  padding:14px 17px;
  font-size:13px !important;
}

button.castit-action-btn.castit-action-btn--pdf{
  background:var(--castit-text);
}

button.castit-action-btn.castit-action-btn--pdf:hover{
  background:var(--castit-green);
}

button.castit-action-btn--lang{
  background:none;
  border:2px solid #032b22;
  color:#032b22;
  display:inline-flex;
  align-items:center;
  padding:12px 8px;
}

button.castit-action-btn--lang:hover,
button.castit-action-btn--lang:active,
button.castit-action-btn--lang:focus{
  background:rgba(3,43,34,.06);
  border:2px solid #032b2257;
}

button.castit-action-btn--lang svg{
  width:26px;
  height:auto;
  display:block;
}

.castit-action-btn--lang .castit-flag{
  display:none;
}

[data-castit-lang-ui="sv"] .castit-action-btn--lang .castit-flag--sv{
  display:inline-block;
}

[data-castit-lang-ui="en"] .castit-action-btn--lang .castit-flag--en{
  display:inline-block;
}

body.castit-pdf-modal-open{
  overflow:hidden;
}

.castit-pdf-modal{
  position:fixed;
  inset:0;
  z-index:99999;
  display:grid;
  place-items:center;
  padding:22px;
}

.castit-pdf-modal[hidden]{
  display:none !important;
}

.castit-pdf-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(3,43,34,.62);
}

.castit-pdf-modal__dialog{
  position:relative;
  width:min(1120px, 100%);
  height:min(92vh, 100%);
}

.castit-pdf-modal__paper{
  height:100%;
  border-radius:14px;
  background:#dfe5e8;
  padding:16px;
  box-shadow:0 20px 60px rgba(0,0,0,.28);
  display:flex;
  flex-direction:column;
  gap:12px;
}

.castit-pdf-modal__toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.castit-pdf-modal__actions{
  display:flex;
  align-items:center;
  gap:8px;
}

.castit-pdf-modal__title{
  font-size:14px;
  letter-spacing:.02em;
}

.castit-pdf-modal .castit-pdf-modal__print{
  border:1px solid rgba(3,43,34,.2);
  background:var(--castit-text);
  color:#fff;
  border-radius:999px;
  padding:0 14px;
  height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  line-height:1;
  cursor:pointer;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.castit-pdf-modal .castit-pdf-modal__print:hover{
  background: #26B275;
  color:#fff;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.castit-pdf-modal .castit-pdf-modal__print:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.castit-pdf-modal .castit-pdf-modal__close{
  width:38px;
  height:38px;
  border-radius:999px;
  border:1px solid #F76948;
  background:#F76948;
  color:#fff;
  cursor:pointer;
  font-size:16px;
  line-height:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  text-transform:none;
  letter-spacing:normal;
}

.castit-pdf-modal .castit-pdf-modal__close:hover{
  filter:brightness(.95);
}

.castit-pdf-modal__frame-wrap{
  flex:1 1 auto;
  min-height:0;
  border-radius:10px;
  background:#fff;
  padding:18px;
  position:relative;
  overflow:hidden;
}

.castit-pdf-modal__frame{
  width:100%;
  height:100%;
  border:0;
  background:#fff;
}

.castit-pdf-modal__loading{
  position:absolute;
  inset:18px;
  background:rgba(255,255,255,.9);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .18s ease;
  color:var(--castit-text);
  font-weight:700;
  z-index:2;
}

.castit-pdf-modal.is-loading .castit-pdf-modal__loading{
  opacity:1;
  visibility:visible;
}

.castit-pdf-modal__spinner{
  width:18px;
  height:18px;
  border:2px solid rgba(3,43,34,.18);
  border-top-color:var(--castit-green);
  border-radius:50%;
  animation:castit-pdf-spin .8s linear infinite;
}

@keyframes castit-pdf-spin{
  to{ transform:rotate(360deg); }
}

.castit-tabbar-wrap{
  display:flex;
  justify-content:center;
  margin:10px 0 50px;
}

.castit-tabbar{
  display:inline-flex;
  gap:6px;
  padding:6px;
  border:2px solid var(--castit-green);
  border-radius:999px;
}

button.castit-tab{
  color:var(--castit-text);
  appearance:none;
  border:0;
  background:transparent;
  padding:10px 18px;
  border-radius:999px;
  font-weight:700;
  letter-spacing:.02em;
  cursor:pointer;
}

button.castit-tab:hover{
  background:var(--castit-text);
}

button.castit-tab.is-active{
  background:var(--castit-green);
  color:var(--castit-bg);
}

button:focus.castit-tab{
  outline:none;
}

/* =========================
   Header
   ========================= */

.castit-lunch-header{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:10px 0 18px;
  border-bottom:1px solid var(--castit-line);
  margin-bottom:18px;
}

.castit-lunch-header__title{
  margin:0;
  font-size:clamp(34px, 4vw, 54px);
  font-weight:800;
}

.castit-lunch-header__right{
  display:flex;
  align-items:center;
  gap:20px;
  flex-wrap:wrap;
}

.castit-weeknav{
  background:var(--castit-green);
  color:#fff;
  border:0;
  border-radius:10px;
  padding:10px 14px;
  font-weight:800;
  cursor:pointer;
}

.castit-weeknav[disabled]{
  opacity:.45;
  cursor:default;
}

.castit-action-btn{
  background:#0d2f24;
  color:#fff;
  border:0;
  border-radius:10px;
  padding:10px 14px;
  font-weight:800;
  cursor:pointer;
}

.castit-action-btn--lang{
  width:46px;
  text-align:center;
}

/* =========================
   Special meny
   ========================= */

.castit-special__list{
  width:50%;
}

.castit-special__item{
  margin:20px 0 30px;
}

.castit-special__top{
  display:flex;
  align-items:center;
  gap:12px;
}

.castit-special__name{
  display:flex;
  align-items:baseline;
  gap:12px;
  flex:1 1 auto;
  min-width:0;
}

.castit-special__name::after{
  content:"";
  flex:1 1 auto;
  border-bottom:2px dotted rgba(0,0,0,0.25);
  transform:translateY(-0.15em);
}

.castit-special__price{
  white-space:nowrap;
  flex:0 0 auto;
  margin:10px 0;
}

.castit-special__meta{
  display:inline-flex;
  align-items:center;
  gap:20px;
  flex:0 0 auto;
}

.castit-special__co2-svg{
  width:60px;
  height:auto;
  display:block;
}

.castit-special__co2-text{
  font-size:12px;
  color:var(--castit-muted);
  white-space:nowrap;
}

strong.castit-special__name{
  font-size:1.2em;
}

.castit-special__allergens{
  margin-top:8px;
  font-size:12px;
  color:var(--castit-muted);
}

.castit-tabpanel[data-panel="alacarte"] .castit-menu-header__title{
  text-align:center;
}

/* =========================
   Grid / layout
   ========================= */

.castit-menu-grid{
  width:100%;
}

.castit-menu-grid__days{
  width:100%;
  min-width:0;
}

.castit-menu-grid--has-week{
  display:grid;
  grid-template-columns:minmax(280px, 0.9fr) minmax(0, 2fr);
  gap:54px;
  align-items:start;
}

.castit-menu-grid__days--with-week{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:54px;
  align-items:start;
  width:100%;
}

.castit-menu-grid--default{
  display:block;
  width:100%;
}

.castit-menu-grid__days--default{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:54px;
  align-items:start;
  width:100%;
}

/* =========================
   Dagar / rätter
   ========================= */

.castit-day__title{
  margin:0 0 16px;
  font-size:34px;
  font-weight:800;
  color:var(--castit-green);
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.castit-day__list{
  border-top:1px solid var(--castit-line);
}

.castit-day__badge{
  font-size:14px;
  background:#26b275;
  border-radius:20px;
  padding:8px 12px;
  color:#fff;
  line-height:1;
  flex:0 0 auto;
}

section.castit-day.current .castit-day__list {
  border-top:1px solid #26b275;
}

.castit-dish{
  display:flex;
  justify-content:space-between;
  gap:14px;
  padding:14px 0;
  border-bottom:1px solid var(--castit-line);
}
.castit-dish__left {
    width: 86%;
}
.castit-dish__right {
    width: 14%;
}
.castit-dish--day-note .castit-dish__left{
  width:100%;
}

.castit-dish--day-note .castit-dish__right{
  display:none;
}
.castit-dish:last-child{
  border-bottom:none;
}

.castit-dish__title{
  font-weight:800;
  display:flex;
  align-items:center;
  gap:10px;
}

.castit-dish__desc{
  margin-top:4px;
  color:var(--castit-muted);
}

.castit-dish__allergens{
  margin-top:8px;
  font-size:12px;
  color:var(--castit-muted);
}
.castit-dish__allergens:before {
    content: '•';
    color: #26b275;
}
.castit-co2__svg{
  width:60px;
  height:auto;
}

.castit-soldout-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:2px 8px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  background:#d0342c;
  color:#fff;
  letter-spacing:.02em;
}

.castit-dish.is-soldout{
  opacity:.72;
  text-decoration:line-through;
}

/* =========================
   Veckans rätter-kolumn
   ========================= */

.castit-week-specials-column{
  background:var(--castit-green);
  border-radius:16px;
  padding:24px;
}

.castit-week-specials-column__title{
  margin-bottom:20px;
  color:#fff;
}

.castit-week-specials-group-title{
  margin:0 0 14px;
  color:#fff;
}

.castit-weekgroup{
  padding:14px 0;
  border-bottom:1px solid rgba(3,43,34,.22);
}

.castit-weekgroup:last-child{
  border-bottom:none;
}

.castit-weekgroup__title{
  margin:0 0 14px;
  font-size:20px;
  font-weight:800;
}

.castit-day--week .castit-dish + .castit-dish{
  margin-top:14px;
}
h4.castit-weekgroup__title.castit-week-specials-group-title {
  margin: 0;
  color: #fff;
}

.castit-dish-wrap + .castit-dish-wrap {
  margin-top: 8px;
}

.castit-dish-header {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.castit-dish-header--day {
  margin-top: 20px;
  color: var(--castit-green);
}

/* =========================
   Klimato sidfot
   ========================= */

.castit-climate-footer{
  margin-top:56px;
  padding:16px 20px;
  background:#fff;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
}
h3.castit-climate-footer__brand {
  font-size: 1.5em;
}
.castit-climate-footer__intro{
  flex:1 1 460px;
  max-width:760px;
}

.castit-climate-footer__brand{
  margin:0 0 10px;
  font-size:28px;
  line-height:1;
  font-weight:900;
  color:#1f915f;
}

.castit-climate-footer__lead,
.castit-climate-footer__text{
  margin:0;
  color:var(--castit-text);
  max-width:58ch;
}

.castit-climate-footer__lead{
  font-size:18px;
  font-weight:700;
}

.castit-climate-footer__text{
  margin-top:8px;
  font-size:15px;
  line-height:1.35;
}

.castit-climate-footer__scale{
  display:flex;
  flex-wrap:nowrap;
  justify-content:space-between;
  gap:10px;
  width:100%;
  max-width:460px;
  flex:0 0 auto;
}

.castit-climate-footer__grade{
  min-width:0;
  flex:1 1 0;
  text-align:center;
  color:var(--castit-text);
  font-size:12px;
  line-height:1.3;
}

.castit-climate-footer__icon{
  width:32px;
  height:auto;
  display:block;
  margin:0 auto 6px;
}
/* =========================
   Responsivt
   ========================= */

@media (max-width: 1024px){
  .castit-menu-grid--has-week{
    grid-template-columns:1fr;
  }

  .castit-menu-grid__days--with-week,
  .castit-menu-grid__days--default{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:32px;
  }

  .castit-climate-footer{
    flex-direction:column;
    align-items: flex-start;
  }

  .castit-climate-footer__scale{
    justify-content:space-between;
    max-width:none;
  }
  .castit-climate-footer__intro {
    flex: 1 1 0;
    max-width: auto;
  }
}

@media (max-width: 768px){
  .castit-special-top-texts{
    flex-direction:column;
  }

  .castit-special-top-texts .castit-menu-text--intro{
    flex:0 1 auto;
    max-width:100%;
    width:100%;
  }

  .castit-weekly-top{
    margin-bottom:42px;
  }

  .castit-menu-container {
    padding: 0;
  }
  .castit-tabbar{
    flex-direction:column;
    width:100%;
    border-radius:25px;
  }

  .castit-special__list{
    width:100%;
  }

  .castit-pdf-modal{
    padding:10px;
  }

  .castit-pdf-modal__paper{
    padding:10px;
    gap:8px;
  }

  .castit-pdf-modal__frame-wrap{
    padding:10px;
  }

  .castit-pdf-modal__loading{
    inset:10px;
    font-size:13px;
  }

  .castit-pdf-modal__print{
    padding:6px 10px;
    font-size:11px;
  }

  h3.castit-day__title {
    font-size: 1.3em;
    margin-top: 20px;
  }
}

@media (max-width: 767px){
  .castit-menu-grid__days--with-week,
  .castit-menu-grid__days--default{
    grid-template-columns:1fr;
    gap:24px;
  }

  .castit-week-specials-column{
    padding:20px;
  }

  .castit-lunch-header{
    align-items:flex-start;
    flex-direction: column;
  }

  .castit-lunch-header__right{
    gap:12px;
  }

  .castit-climate-footer{
    margin-top:36px;
    padding:14px;
    gap:12px;
  }

  .castit-climate-footer__brand{
    font-size:24px;
  }

  .castit-climate-footer__lead{
    font-size:14px;
  }

  .castit-climate-footer__text{
    font-size:12px;
  }

  .castit-climate-footer__scale{
    gap:6px;
  }

  .castit-climate-footer__grade{
    min-width:0;
    font-size:10px;
    line-height:1.15;
    flex:1 1 0;
  }

  .castit-climate-footer__grade .castit-i18n{
    white-space:nowrap;
    font-size:10px;
  }

  .castit-climate-footer__icon{
    width:24px;
    margin-bottom:4px;
  }
}
