
/* =========================================================
   SCRAPBOOK SECTION PAGES — The Trip / Itinerary / Planning
   Accommodation / Budget
   ========================================================= */

.section-page{
  --scrap-ink:#30261f;
  --scrap-paper:#fffaf1;
  --scrap-cream:#f2e4ca;
  --scrap-pink:#f3dadd;
  --scrap-green:#dce8d3;
  --scrap-blue:#dcebf0;
  --scrap-yellow:#f4e6b9;
  --scrap-lilac:#e8dff0;
  --scrap-shadow:rgba(65,48,34,.10);
  padding-top:max(92px,calc(env(safe-area-inset-top) + 82px)) !important;
}
.section-page .page{
  width:min(100%,980px) !important;
  margin:0 auto !important;
}
.section-page .paper-card{
  position:relative !important;
  overflow:visible !important;
  padding:0 28px 54px !important;
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
}
.section-page .paper-card::before{
  content:"";
  position:absolute;
  z-index:-2;
  inset:34px 3px 6px;
  background:rgba(255,250,241,.60);
  border:1px solid rgba(72,55,42,.07);
  transform:rotate(.15deg);
}
.section-page .paper-card::after{
  content:"✦";
  position:absolute;
  right:22px;
  top:224px;
  color:rgba(195,157,90,.7);
  font-family:"Marker Felt","Bradley Hand","Comic Sans MS",cursive;
  font-size:1.25rem;
  transform:rotate(12deg);
}

/* Hero sheet */
.section-scrap-hero{
  position:relative;
  width:min(100%,850px);
  min-height:190px;
  margin:0 auto 34px;
  display:grid;
  grid-template-columns:180px minmax(0,1fr);
  align-items:center;
  gap:12px;
  padding:28px 34px 26px;
  background:#fff9ef;
  border:1px solid rgba(73,55,41,.13);
  box-shadow:10px 12px 0 rgba(226,211,187,.94),0 22px 38px rgba(58,45,34,.09);
  transform:rotate(-.45deg);
  isolation:isolate;
}
.section-scrap-hero::before{
  content:"";
  position:absolute;
  z-index:-1;
  inset:9px -8px -9px 9px;
  background:#f0e2cc;
  border:1px solid rgba(73,55,41,.06);
  transform:rotate(1deg);
}
.section-scrap-hero::after{
  content:"SCOTLAND · 2026";
  position:absolute;
  right:24px;
  bottom:14px;
  color:rgba(74,59,47,.34);
  font:700 .66rem/1 Arial,Helvetica,sans-serif;
  letter-spacing:.16em;
  transform:rotate(-2deg);
}
.section-hero-tape{
  position:absolute;
  z-index:4;
  height:23px;
  background:rgba(207,185,148,.72);
  box-shadow:0 1px 2px rgba(0,0,0,.04);
}
.section-hero-tape-left{
  width:82px;
  left:24px;
  top:-10px;
  transform:rotate(-7deg);
}
.section-hero-tape-right{
  width:72px;
  right:36px;
  top:-7px;
  background:rgba(185,202,168,.68);
  transform:rotate(6deg);
}
.section-hero-icon-wrap{
  height:142px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.section-hero-icon{
  display:block;
  max-width:145px;
  max-height:140px;
  object-fit:contain;
  filter:drop-shadow(0 5px 4px rgba(64,50,38,.10));
}
.section-hero-copy{
  position:relative;
  z-index:2;
  padding:4px 0 10px;
}
.section-hero-kicker{
  display:inline-block;
  margin:0 0 9px;
  padding:5px 10px 4px;
  background:var(--scrap-yellow);
  color:rgba(52,42,35,.78);
  font:700 .69rem/1 Arial,Helvetica,sans-serif;
  letter-spacing:.17em;
  transform:rotate(-1.5deg);
}
.section-page .section-scrap-hero h1{
  margin:0 !important;
  padding:0 !important;
  color:var(--scrap-ink) !important;
  background:none !important;
  border:0 !important;
  box-shadow:none !important;
  text-align:left !important;
  font-family:"Marker Felt","Bradley Hand","Comic Sans MS",cursive !important;
  font-size:clamp(2.6rem,7vw,4.8rem) !important;
  font-weight:500 !important;
  line-height:.92 !important;
  letter-spacing:-.035em !important;
  text-transform:none !important;
}
.section-hero-subtitle{
  max-width:520px;
  margin:11px 0 0 !important;
  color:#66574c !important;
  font-size:1rem !important;
  line-height:1.35 !important;
}
.section-hero-doodle{
  position:absolute;
  z-index:3;
  font-family:"Marker Felt","Bradley Hand","Comic Sans MS",cursive;
  pointer-events:none;
}
.section-hero-doodle-a{
  right:22px;
  top:45px;
  color:rgba(193,155,88,.72);
  font-size:1.25rem;
  transform:rotate(12deg);
}
.section-hero-doodle-b{
  left:170px;
  bottom:14px;
  color:rgba(210,143,157,.66);
  font-size:1.05rem;
  transform:rotate(-10deg);
}

/* Intro note */
.section-page .intro{
  position:relative;
  width:min(100%,790px);
  margin:0 auto 34px !important;
  padding:25px 28px 22px !important;
  background:
    linear-gradient(rgba(255,255,255,.18),rgba(255,255,255,.18)),
    repeating-linear-gradient(to bottom,transparent 0 28px,rgba(93,126,170,.10) 28px 29px),
    #fffdf8 !important;
  border:1px solid rgba(73,55,41,.10) !important;
  box-shadow:7px 8px 0 rgba(219,229,210,.92),0 14px 26px rgba(58,45,34,.06) !important;
  transform:rotate(-.45deg);
}
.section-page .intro::before{
  content:"";
  position:absolute;
  width:86px;
  height:22px;
  left:30px;
  top:-10px;
  background:rgba(185,202,168,.76);
  transform:rotate(-5deg);
}
.section-page .intro::after{
  content:"notes";
  position:absolute;
  right:18px;
  bottom:9px;
  color:rgba(86,71,60,.34);
  font-family:"Marker Felt","Bradley Hand","Comic Sans MS",cursive;
  font-size:.82rem;
  transform:rotate(-5deg);
}
.section-page .intro p{
  margin:0 0 14px !important;
  color:#443a32 !important;
  font-size:1.03rem !important;
  line-height:1.67 !important;
}
.section-page .intro p:last-child{margin-bottom:0 !important;}

/* Generic scrapbook sections */
.section-page .section{
  position:relative;
  width:min(100%,850px);
  margin:34px auto !important;
  padding:24px 22px 22px !important;
  background:rgba(255,250,241,.83) !important;
  border:1px solid rgba(73,55,41,.09) !important;
  box-shadow:7px 8px 0 rgba(231,218,197,.8),0 14px 25px rgba(58,45,34,.05) !important;
}
.section-page .section:nth-of-type(odd){transform:rotate(-.25deg);}
.section-page .section:nth-of-type(even){transform:rotate(.22deg);}
.section-page .section::before{
  content:"";
  position:absolute;
  top:-8px;
  left:28px;
  width:66px;
  height:18px;
  background:rgba(213,191,154,.70);
  transform:rotate(-4deg);
}
.section-page .section h2,
.accommodation-page .lodging h2{
  width:max-content;
  max-width:100%;
  margin:0 0 20px !important;
  padding:7px 15px 6px !important;
  background:var(--scrap-yellow) !important;
  color:#30261f !important;
  font-family:"Marker Felt","Bradley Hand","Comic Sans MS",cursive !important;
  font-size:clamp(1.35rem,4vw,1.8rem) !important;
  font-weight:600 !important;
  line-height:1.05 !important;
  border:0 !important;
  box-shadow:none !important;
  transform:rotate(-1deg);
}

/* The trip */
.trip-mini-facts{
  width:min(100%,790px);
  margin:34px auto 26px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}
.trip-fact{
  position:relative;
  min-height:115px;
  padding:17px 10px 14px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  background:var(--scrap-pink);
  border:1px solid rgba(73,55,41,.09);
  box-shadow:4px 5px 0 rgba(58,45,34,.07);
}
.trip-fact:nth-child(2){background:var(--scrap-green);transform:rotate(.7deg);}
.trip-fact:nth-child(3){background:var(--scrap-blue);transform:rotate(-.7deg);}
.trip-fact:nth-child(4){background:var(--scrap-lilac);transform:rotate(.4deg);}
.trip-fact::before{
  content:"";
  position:absolute;
  width:38px;
  height:12px;
  left:50%;
  top:-6px;
  background:rgba(211,190,156,.65);
  transform:translateX(-50%) rotate(-5deg);
}
.trip-fact strong{
  font-family:"Marker Felt","Bradley Hand","Comic Sans MS",cursive;
  font-size:2.45rem;
  line-height:.9;
  font-weight:600;
}
.trip-fact span{
  margin-top:8px;
  font-size:.82rem;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.trip-route-note{
  width:min(100%,790px);
  margin:0 auto;
  padding:16px 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px 11px;
  background:#fff8ed;
  border:1px dashed rgba(73,55,41,.20);
  font-family:"Marker Felt","Bradley Hand","Comic Sans MS",cursive;
  font-size:1rem;
}
.trip-route-note b{color:rgba(75,91,73,.72);}

/* Itinerary */
.itinerary-page .map-wrap{
  position:relative;
  width:min(100%,850px) !important;
  margin:12px auto 30px !important;
  padding:14px 14px 38px !important;
  background:#fff9ef !important;
  border:1px solid rgba(73,55,41,.13) !important;
  box-shadow:9px 10px 0 rgba(227,213,190,.92),0 18px 32px rgba(58,45,34,.08) !important;
  transform:rotate(-.65deg);
}
.itinerary-page .map-wrap::before,
.itinerary-page .map-wrap::after{
  content:"";
  position:absolute;
  top:-9px;
  width:76px;
  height:21px;
  background:rgba(205,183,148,.72);
}
.itinerary-page .map-wrap::before{left:26px;transform:rotate(-7deg);}
.itinerary-page .map-wrap::after{right:28px;transform:rotate(6deg);background:rgba(185,202,168,.66);}
.itinerary-page .map-wrap img{
  display:block !important;
  width:100% !important;
  height:auto !important;
  border-radius:0 !important;
}
.itinerary-page .route-line{
  width:min(100%,790px);
  margin:0 auto !important;
  padding:18px 20px !important;
  background:var(--scrap-green) !important;
  border:1px solid rgba(73,55,41,.08) !important;
  box-shadow:5px 6px 0 rgba(58,45,34,.06) !important;
  color:#3d342d !important;
  text-align:center !important;
  font-family:"Marker Felt","Bradley Hand","Comic Sans MS",cursive !important;
  font-size:1rem !important;
  line-height:1.5 !important;
  transform:rotate(.35deg);
}

/* Planning */
.planning-page .cards{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:16px !important;
}
.planning-page .info-card{
  position:relative !important;
  min-width:0 !important;
  padding:20px 18px 17px !important;
  background:#fff8ee !important;
  border:1px solid rgba(73,55,41,.10) !important;
  border-radius:2px !important;
  box-shadow:4px 5px 0 rgba(58,45,34,.05) !important;
}
.planning-page .info-card:nth-child(4n+2){background:#eef4e9 !important;transform:rotate(.35deg);}
.planning-page .info-card:nth-child(4n+3){background:#eef5f7 !important;transform:rotate(-.3deg);}
.planning-page .info-card:nth-child(4n+4){background:#f5edf7 !important;}
.planning-page .info-card::before{
  content:"";
  position:absolute;
  left:18px;
  top:-6px;
  width:38px;
  height:12px;
  background:rgba(211,190,156,.65);
  transform:rotate(-5deg);
}
.planning-page .info-card h3{
  margin:0 0 13px !important;
  color:#30261f !important;
  font-family:"Marker Felt","Bradley Hand","Comic Sans MS",cursive !important;
  font-size:1.12rem !important;
}
.planning-page .field{
  padding:5px 0 !important;
  border-bottom:1px dashed rgba(76,60,47,.14);
}
.planning-page .checklist{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:9px 14px !important;
}
.planning-page .check-item{
  padding:10px 11px !important;
  background:rgba(255,255,255,.52) !important;
  border:1px dashed rgba(73,55,41,.14) !important;
}
.planning-page .box{
  border-radius:2px !important;
  background:#fffaf1 !important;
  border:1.5px solid #51443a !important;
}
.planning-page .useful{
  padding:5px 2px !important;
}

/* Accommodation */
.accommodation-page .lodgings{
  width:min(100%,850px);
  margin:0 auto;
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px 18px !important;
}
.accommodation-page .lodging{
  position:relative !important;
  margin:0 !important;
  padding:24px 20px 20px !important;
  background:#fff8ee !important;
  border:1px solid rgba(73,55,41,.10) !important;
  border-radius:2px !important;
  box-shadow:6px 7px 0 rgba(58,45,34,.06) !important;
  overflow:visible !important;
}
.accommodation-page .lodging:nth-child(2),
.accommodation-page .lodging:nth-child(5){background:#eef4e9 !important;transform:rotate(.45deg);}
.accommodation-page .lodging:nth-child(3),
.accommodation-page .lodging:nth-child(6){background:#eef5f7 !important;transform:rotate(-.35deg);}
.accommodation-page .lodging:nth-child(4){background:#f5edf7 !important;}
.accommodation-page .lodging::before{
  content:"";
  position:absolute;
  top:-8px;
  left:22px;
  width:55px;
  height:17px;
  background:rgba(210,188,153,.70);
  transform:rotate(-5deg);
}
.accommodation-page .lodging h2{
  margin-bottom:13px !important;
  font-size:1.28rem !important;
  background:transparent !important;
  padding:0 !important;
  transform:none !important;
}
.accommodation-page .lodging p{
  min-height:66px;
  margin:0 0 16px !important;
  color:#5a4d43 !important;
  line-height:1.5 !important;
}
.accommodation-page .lodging-link{
  min-height:46px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:9px 15px !important;
  color:#30261f !important;
  background:var(--scrap-yellow) !important;
  border:1.5px solid #42372f !important;
  border-radius:2px !important;
  box-shadow:3px 4px 0 rgba(58,45,34,.10) !important;
  font-family:"Marker Felt","Bradley Hand","Comic Sans MS",cursive !important;
  text-decoration:none !important;
}
.accommodation-page .lodging-link:hover{
  background:#fffaf1 !important;
  transform:translateY(-2px) rotate(-.3deg) !important;
}

/* Budget */
.budget-page .section{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px 14px;
}
.budget-page .section h2{
  grid-column:1/-1;
}
.budget-page .cost-card{
  position:relative !important;
  margin:0 !important;
  padding:15px 15px 13px !important;
  background:#fff8ee !important;
  border:1px solid rgba(73,55,41,.10) !important;
  border-radius:2px !important;
  box-shadow:3px 4px 0 rgba(58,45,34,.045) !important;
}
.budget-page .cost-card:nth-of-type(3n+2){background:#eef4e9 !important;}
.budget-page .cost-card:nth-of-type(3n+3){background:#eef5f7 !important;}
.budget-page .cost-card strong{
  display:block;
  margin-bottom:6px;
  color:#342a23 !important;
  font-family:"Marker Felt","Bradley Hand","Comic Sans MS",cursive !important;
  font-size:1.02rem !important;
}
.budget-page .cost-card p{
  margin:4px 0 !important;
  color:#64564b !important;
}
.budget-page .total-box{
  grid-column:1/-1;
  margin:5px 0 0 !important;
  padding:15px 18px !important;
  display:flex !important;
  justify-content:space-between !important;
  gap:18px !important;
  background:var(--scrap-yellow) !important;
  color:#30261f !important;
  border:1px solid rgba(73,55,41,.10) !important;
  box-shadow:4px 5px 0 rgba(58,45,34,.06) !important;
  font-family:"Marker Felt","Bradley Hand","Comic Sans MS",cursive !important;
  transform:rotate(-.25deg);
}
.budget-page .final-grid{
  grid-column:1/-1;
  padding:12px !important;
  background:#fffdf8 !important;
  border:1px dashed rgba(73,55,41,.16) !important;
}
.budget-page .final-row{
  padding:9px 10px !important;
  border-bottom:1px dashed rgba(73,55,41,.14) !important;
}
.budget-page .grand-total{
  grid-column:1/-1;
  margin-top:7px !important;
  padding:21px 20px !important;
  background:var(--scrap-pink) !important;
  border:1.5px solid #42372f !important;
  box-shadow:6px 7px 0 rgba(58,45,34,.09) !important;
  transform:rotate(.35deg);
}
.budget-page .grand-total .label,
.budget-page .grand-total .amount{
  font-family:"Marker Felt","Bradley Hand","Comic Sans MS",cursive !important;
}

/* Small visual differences by section */
.itinerary-page .section-scrap-hero{background:#f9f5e9;}
.planning-page .section-scrap-hero{background:#f5f6eb;}
.accommodation-page .section-scrap-hero{background:#f8eeee;}
.budget-page .section-scrap-hero{background:#f7f0dd;}

@media(max-width:760px){
  .section-page{
    padding-top:max(78px,calc(env(safe-area-inset-top) + 68px)) !important;
  }
  .section-page .paper-card{
    padding:0 7px 38px !important;
  }
  .section-scrap-hero{
    min-height:0;
    grid-template-columns:105px minmax(0,1fr);
    gap:8px;
    padding:22px 16px 20px;
    margin-bottom:27px;
  }
  .section-hero-icon-wrap{height:105px;}
  .section-hero-icon{max-width:100px;max-height:100px;}
  .section-page .section-scrap-hero h1{
    font-size:clamp(2.15rem,10vw,3.25rem) !important;
  }
  .section-hero-kicker{font-size:.6rem;letter-spacing:.12em;}
  .section-hero-subtitle{font-size:.86rem !important;margin-top:8px !important;}
  .section-hero-doodle-b{left:98px;}
  .section-scrap-hero::after{display:none;}
  .section-page .intro{
    padding:21px 17px 18px !important;
    margin-bottom:26px !important;
  }
  .trip-mini-facts{
    grid-template-columns:repeat(2,1fr);
    gap:11px;
  }
  .trip-fact{min-height:96px;}
  .trip-route-note{font-size:.9rem;padding:14px 12px;}
  .planning-page .cards,
  .accommodation-page .lodgings,
  .budget-page .section{
    grid-template-columns:1fr !important;
  }
  .planning-page .checklist{
    grid-template-columns:1fr !important;
  }
  .budget-page .section h2,
  .budget-page .total-box,
  .budget-page .final-grid,
  .budget-page .grand-total{
    grid-column:1 !important;
  }
  .accommodation-page .lodging p{min-height:0;}
  .section-page .section{
    padding:21px 14px 17px !important;
    margin:27px auto !important;
  }
  .itinerary-page .map-wrap{
    padding:9px 9px 30px !important;
  }
}

@media(max-width:430px){
  .section-scrap-hero{
    grid-template-columns:86px minmax(0,1fr);
    padding:19px 12px 17px;
  }
  .section-hero-icon-wrap{height:90px;}
  .section-hero-icon{max-width:84px;max-height:84px;}
  .section-page .section-scrap-hero h1{
    font-size:clamp(1.85rem,10vw,2.7rem) !important;
  }
  .section-hero-subtitle{font-size:.78rem !important;}
  .section-hero-doodle-a{right:9px;top:36px;}
  .section-hero-doodle-b{display:none;}
}


/* ===== Interactive budget ===== */
.budget-intro{
  margin-bottom:24px !important;
}
.budget-settings{
  width:min(100%,850px);
  margin:0 auto 28px;
  display:grid;
  grid-template-columns:1fr 1.3fr;
  gap:14px;
}
.budget-setting-card,
.budget-save-card{
  position:relative;
  padding:17px 18px;
  background:#eef5f0;
  border:1px solid rgba(73,55,41,.10);
  box-shadow:4px 5px 0 rgba(58,45,34,.05);
}
.budget-setting-card::before,
.budget-save-card::before{
  content:"";
  position:absolute;
  top:-6px;
  left:18px;
  width:38px;
  height:12px;
  background:rgba(211,190,156,.66);
  transform:rotate(-5deg);
}
.budget-setting-card label{
  display:block;
  margin-bottom:9px;
  color:#332921;
  font-family:"Marker Felt","Bradley Hand","Comic Sans MS",cursive;
  font-size:1.08rem;
  font-weight:600;
}
.budget-setting-card small,
.budget-save-card small{
  display:block;
  margin-top:8px;
  color:#74665c;
  font-size:.79rem;
  line-height:1.3;
}
.budget-number-field{
  display:flex;
  align-items:center;
  gap:8px;
}
.budget-number-field input{
  width:86px;
  min-height:42px;
  padding:7px 10px;
  background:#fffaf1;
  color:#30261f;
  border:1.5px solid #53463c;
  border-radius:2px;
  font:700 1.1rem/1 Arial,sans-serif;
}
.budget-number-field span{
  font-family:"Marker Felt","Bradley Hand","Comic Sans MS",cursive;
}
.budget-save-card{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:12px;
  background:#f6eedb;
}
.budget-save-card strong{
  color:#342b24;
  font-family:"Marker Felt","Bradley Hand","Comic Sans MS",cursive;
  font-size:1rem;
}
.budget-save-dot{
  width:12px;
  height:12px;
  border-radius:50%;
  background:#9faf8e;
  box-shadow:0 0 0 4px rgba(159,175,142,.15);
}
.budget-reset-btn{
  min-height:40px;
  padding:7px 12px;
  background:#f2dede !important;
  color:#40342d !important;
  border:1.5px solid #51443b !important;
  border-radius:2px !important;
  box-shadow:2px 3px 0 rgba(58,45,34,.08) !important;
  font-family:"Marker Felt","Bradley Hand","Comic Sans MS",cursive !important;
  cursor:pointer;
}
.budget-reset-btn:hover{
  transform:translateY(-1px);
  background:#fffaf1 !important;
}

.budget-page .cost-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-rows:auto auto;
  column-gap:14px;
  align-items:center;
}
.budget-page .cost-card > strong{
  grid-column:1;
  grid-row:1;
  margin-bottom:2px !important;
}
.cost-note{
  grid-column:1;
  grid-row:2;
  color:#7a6c61;
  font-size:.75rem;
  line-height:1.2;
}
.money-input{
  grid-column:2;
  grid-row:1 / 3;
  min-width:120px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  padding:7px 9px;
  background:#fffdf9;
  border:1.5px solid rgba(66,54,44,.55);
  box-shadow:2px 3px 0 rgba(58,45,34,.05);
}
.money-input input{
  width:82px;
  min-width:0;
  padding:2px 0;
  border:0;
  outline:0;
  background:transparent;
  color:#2e261f;
  text-align:right;
  font:700 1.03rem/1.1 Arial,Helvetica,sans-serif;
  appearance:textfield;
  -moz-appearance:textfield;
}
.money-input input::-webkit-inner-spin-button,
.money-input input::-webkit-outer-spin-button{
  -webkit-appearance:none;
  margin:0;
}
.money-input:focus-within{
  outline:2px solid rgba(93,117,87,.52);
  outline-offset:2px;
  background:#fffaf1;
}
.money-input span{
  color:#65584e;
  font-family:"Marker Felt","Bradley Hand","Comic Sans MS",cursive;
  font-weight:700;
}
.shared-cost::after{
  content:"shared";
  position:absolute;
  right:8px;
  top:7px;
  color:rgba(85,69,57,.38);
  font:700 .56rem/1 Arial,sans-serif;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.budget-page .total-box output,
.budget-page .final-row output,
.budget-page .grand-total output{
  font-variant-numeric:tabular-nums;
}
.final-budget-section{
  background:#fff6e8 !important;
}
.group-total-note{
  grid-column:1/-1;
  padding:10px 4px 0;
  color:#6b5c51;
  text-align:right;
  font-size:.86rem;
}
.group-total-note strong{
  color:#40352d;
}

@media(max-width:700px){
  .budget-settings{
    grid-template-columns:1fr;
  }
  .budget-save-card{
    grid-template-columns:auto 1fr;
  }
  .budget-reset-btn{
    grid-column:1/-1;
    width:100%;
  }
  .budget-page .cost-card{
    grid-template-columns:minmax(0,1fr) auto !important;
  }
  .money-input{
    min-width:106px;
  }
  .money-input input{
    width:68px;
  }
}
@media(max-width:430px){
  .budget-page .cost-card{
    grid-template-columns:1fr !important;
    grid-template-rows:auto auto auto !important;
    gap:5px;
  }
  .budget-page .cost-card > strong,
  .cost-note,
  .money-input{
    grid-column:1 !important;
  }
  .budget-page .cost-card > strong{grid-row:1 !important;}
  .cost-note{grid-row:2 !important;}
  .money-input{
    grid-row:3 !important;
    width:100%;
    margin-top:7px;
    justify-content:flex-end;
  }
  .money-input input{
    width:100%;
  }
}


/* ===== Budget currency selector ===== */
.budget-settings{
  grid-template-columns:1fr 1fr 1.3fr;
}
.currency-setting-card{
  background:#edf3f7;
}
.budget-currency-field{
  display:flex;
  align-items:center;
}
.budget-currency-field select{
  width:100%;
  min-height:42px;
  padding:7px 34px 7px 10px;
  background:#fffaf1;
  color:#30261f;
  border:1.5px solid #53463c;
  border-radius:2px;
  font:700 1rem/1.2 Arial,Helvetica,sans-serif;
  cursor:pointer;
}
.budget-currency-field select:focus{
  outline:2px solid rgba(93,117,87,.52);
  outline-offset:2px;
}
.currency-symbol{
  white-space:nowrap;
}

@media(max-width:850px){
  .budget-settings{
    grid-template-columns:1fr 1fr;
  }
  .budget-save-card{
    grid-column:1/-1;
  }
}
@media(max-width:700px){
  .budget-settings{
    grid-template-columns:1fr;
  }
  .budget-save-card{
    grid-column:auto;
  }
}


/* ===== Interactive Planning ===== */
.planning-save-bar{
  width:min(100%,850px);
  margin:0 auto 28px;
  padding:14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  background:#f6eedb;
  border:1px solid rgba(73,55,41,.10);
  box-shadow:4px 5px 0 rgba(58,45,34,.05);
  transform:rotate(.15deg);
}
.planning-save-message{
  display:flex;
  align-items:center;
  gap:11px;
}
.planning-save-message strong{
  display:block;
  color:#342b24;
  font-family:"Marker Felt","Bradley Hand","Comic Sans MS",cursive;
  font-size:1rem;
}
.planning-save-message small{
  display:block;
  margin-top:2px;
  color:#74665c;
  font-size:.78rem;
}
.planning-save-dot{
  width:12px;
  height:12px;
  flex:0 0 12px;
  border-radius:50%;
  background:#9faf8e;
  box-shadow:0 0 0 4px rgba(159,175,142,.15);
}
.planning-reset-btn{
  min-height:40px;
  padding:7px 12px;
  background:#f2dede !important;
  color:#40342d !important;
  border:1.5px solid #51443b !important;
  border-radius:2px !important;
  box-shadow:2px 3px 0 rgba(58,45,34,.08) !important;
  font-family:"Marker Felt","Bradley Hand","Comic Sans MS",cursive !important;
  cursor:pointer;
}
.planning-reset-btn:hover{
  background:#fffaf1 !important;
  transform:translateY(-1px);
}

.planning-page .field{
  display:grid !important;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:9px;
}
.planning-page .field-label{
  white-space:nowrap;
}
.planning-input{
  width:100%;
  min-width:0;
  padding:5px 6px 4px;
  color:#30261f;
  background:rgba(255,255,255,.18);
  border:0;
  border-bottom:1px solid rgba(73,55,41,.32);
  outline:0;
  font:inherit;
  font-size:.94rem;
}
.planning-input::placeholder{
  color:rgba(98,82,70,.38);
}
.planning-input:focus{
  background:rgba(255,250,241,.72);
  border-bottom-color:#6d8065;
  box-shadow:0 2px 0 rgba(109,128,101,.12);
}
.planning-inline-input{
  min-height:35px;
}
.planning-page .useful-row{
  display:grid !important;
  grid-template-columns:minmax(145px,auto) minmax(0,1fr);
  gap:10px;
  align-items:center;
  padding:5px 0;
}

.planning-check-item{
  display:grid !important;
  grid-template-columns:22px minmax(120px,1fr) minmax(120px,1fr);
  align-items:center;
  gap:9px;
  cursor:pointer;
}
.planning-checkbox{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.custom-check{
  width:20px;
  height:20px;
  display:grid;
  place-items:center;
  border:1.5px solid #51443a;
  background:#fffaf1;
  border-radius:2px;
}
.planning-checkbox:checked + .custom-check{
  background:#dce8d3;
}
.planning-checkbox:checked + .custom-check::after{
  content:"✓";
  color:#41513b;
  font-family:"Marker Felt","Bradley Hand","Comic Sans MS",cursive;
  font-size:1rem;
  font-weight:700;
}
.planning-checkbox:focus-visible + .custom-check{
  outline:2px solid rgba(93,117,87,.52);
  outline-offset:2px;
}
.planning-check-label{
  color:#40362f;
  line-height:1.25;
}
.planning-checkbox:checked ~ .planning-check-label{
  text-decoration:line-through;
  opacity:.65;
}
.planning-check-note{
  width:100%;
  min-width:0;
  padding:4px 5px 3px;
  color:#3f352e;
  background:transparent;
  border:0;
  border-bottom:1px dashed rgba(73,55,41,.28);
  outline:0;
  font:inherit;
  font-size:.84rem;
}
.planning-check-note::placeholder{
  color:rgba(98,82,70,.36);
}
.planning-check-note:focus{
  background:rgba(255,250,241,.62);
  border-bottom-style:solid;
  border-bottom-color:#6d8065;
}

@media(max-width:700px){
  .planning-save-bar{
    align-items:stretch;
    flex-direction:column;
  }
  .planning-reset-btn{
    width:100%;
  }
  .planning-page .field{
    grid-template-columns:1fr !important;
    gap:2px;
  }
  .planning-page .field-label{
    white-space:normal;
  }
  .planning-page .useful-row{
    grid-template-columns:1fr !important;
    gap:3px;
  }
  .planning-check-item{
    grid-template-columns:22px 1fr !important;
  }
  .planning-check-note{
    grid-column:2;
  }
}


/* Language layout stability */
.section-hero-copy,
.content > h1,
.section-page .section h2,
.content > h2{
  overflow-wrap:anywhere;
}
.section-hero-subtitle{
  min-height:2.7em;
}
