:root {
  --paper: #faf8f3;
  --cream: #f4f1e8;
  --card: #fffefa;
  --ink: #29352c;
  --muted: #697064;
  --olive: #4b6043;
  --olive-dark: #35482f;
  --sage: #e9eddf;
  --clay: #aa4d35;
  --line: #dedfd3;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 400;
}
button svg,
a svg {
  flex-shrink: 0;
}
button {
  background: none;
  border: 0;
}
input,
textarea,
select {
  color: var(--ink);
}
input::placeholder,
textarea::placeholder {
  color: #85897e;
}
textarea {
  resize: vertical;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 4px;
}
input,
textarea,
select {
  outline-offset: 1px !important;
}
::selection {
  background: #dce4cf;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -100px;
  background: var(--ink);
  color: white;
  padding: 15px;
  z-index: 100;
}
.skip-link:focus {
  top: 10px;
}
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 238px;
  padding: 38px 22px 0;
  background: var(--cream);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--olive);
  padding-left: 6px;
}
.brand > span {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: -1.3px;
}
.brand-dot {
  color: var(--clay);
}
.brand-tagline {
  font-size: 9px;
  letter-spacing: 1.6px;
  white-space: nowrap;
  color: var(--muted);
  padding: 12px 0 0 54px;
}
.sidebar-rule {
  height: 1px;
  background: var(--line);
  margin: 31px 7px 30px;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: var(--muted);
  padding: 0 15px;
  margin-bottom: 15px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 15px;
  border-radius: 7px;
  margin-bottom: 5px;
  font-size: 14px;
  min-height: 48px;
}
.nav-item:hover {
  background: #ecece0;
}
.nav-item.active {
  background: #e2e7d8;
  color: var(--olive-dark);
  font-weight: 600;
}
.nav-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}
.sidebar-note {
  margin: auto 17px 36px;
  padding-top: 60px;
}
.small-sprig {
  font-size: 38px;
  color: #aab394;
  font-family: var(--serif);
  font-weight: 400;
}
.sidebar-note p {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.5;
  margin-top: 14px;
  color: #526046;
}
.sidebar-note em {
  color: var(--clay);
  font-style: italic;
}
.sidebar-add {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #cfd4c4;
  border-radius: 6px;
  padding: 13px;
  margin-bottom: 24px;
  font-size: 13px;
}
.sidebar-add svg:last-child {
  margin-left: auto;
}
.sidebar-profile {
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 23px 0;
  align-items: center;
}
.avatar,
.mini-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #dcd9c8;
  color: #5b624f;
  font-family: var(--serif);
  flex-shrink: 0;
}
.avatar {
  width: 35px;
  height: 35px;
  font-size: 13px;
}
.mini-avatar {
  width: 31px;
  height: 31px;
  font-size: 12px;
}
.sidebar-profile strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.sidebar-profile div > span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
  margin-top: 4px;
}
.app-area {
  margin-left: 238px;
}
.topbar {
  height: 81px;
  padding: 0 51px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.topbar-word {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.topbar-intro {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}
.topbar-invite {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-left: 1px solid var(--line);
  padding: 6px 0 6px 22px;
  color: var(--olive);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.topbar-invite:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.preview-label {
  font-size: 11px;
  color: var(--muted);
}
main {
  min-height: calc(100vh - 180px);
}
.library-page,
.editor-page,
.recipe-page {
  max-width: 1480px;
  margin: auto;
  padding: 57px 51px 24px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  line-height: 1.6;
  color: var(--muted);
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin-bottom: 34px;
}
.page-heading h1 {
  font-family: var(--serif);
  font-size: clamp(35px, 3.4vw, 51px);
  letter-spacing: -1.9px;
  line-height: 1.15;
  margin-top: 12px;
}
.heading-dot {
  color: var(--clay);
}
.page-heading p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin-top: 16px;
  max-width: 590px;
}
.button {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 17px;
  border-radius: 5px;
  font-size: 13px;
  white-space: nowrap;
  transition:
    background 0.15s,
    transform 0.15s;
  border: 1px solid transparent;
}
.primary {
  background: var(--olive);
  color: white;
  border-color: var(--olive);
}
.primary:hover {
  background: var(--olive-dark);
}
.secondary {
  border-color: var(--line);
  background: transparent;
}
.secondary:hover,
.secondary.selected {
  background: var(--sage);
}
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--olive);
  padding: 5px 0;
}
.text-button:hover {
  text-decoration: underline;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  padding: 0;
  border-radius: 5px;
}
.icon-button:hover {
  background: var(--sage);
}
.welcome-note {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 21px 24px;
  background: #eeefe5;
  border-radius: 7px;
  margin-bottom: 37px;
}
.note-symbol {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: #e0e5d6;
  border-radius: 50%;
  color: var(--olive);
}
.welcome-note strong {
  font-family: var(--serif);
  font-size: 19px;
  display: block;
  font-weight: 400;
}
.welcome-note div > span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}
.welcome-note > a {
  margin-left: auto;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--olive);
}
.library-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
}
.search-field {
  min-height: 43px;
  border: 1px solid var(--line);
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  flex: 1;
  max-width: 510px;
  color: var(--muted);
  background: var(--card);
}
.search-field input {
  border: 0;
  background: transparent;
  min-width: 0;
  width: 100%;
  height: 41px;
  font-size: 12px;
  outline: none;
}
.search-field input:focus-visible {
  outline: none;
}
.search-field:focus-within {
  outline: 2px solid #738365;
  outline-offset: 2px;
}
.search-field button {
  padding: 5px;
  display: flex;
}
.filter-button {
  font-size: 12px;
  min-height: 43px;
}
.filter-dot {
  width: 5px;
  height: 5px;
  background: var(--clay);
  border-radius: 50%;
}
.sort-label {
  margin-left: auto;
}
.sort-label select {
  padding: 10px 25px 10px 10px;
  border: 0;
  background: transparent;
  font-size: 12px;
}
.view-toggle {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 3px;
  gap: 2px;
}
.view-toggle button {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 3px;
  color: var(--muted);
}
.view-toggle .active {
  background: #e7ebdf;
  color: var(--olive);
}
.collection-tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
  overflow: auto;
}
.collection-tabs button {
  flex-shrink: 0;
  font-size: 12px;
  padding: 0 0 15px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}
.collection-tabs .active {
  color: var(--olive-dark);
  border-color: var(--olive);
}
.collection-tabs button span {
  font-size: 10px;
  background: var(--sage);
  padding: 2px 5px;
  border-radius: 4px;
}
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.recipe-card {
  background: var(--card);
  border: 1px solid #e4e3d9;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.recipe-card:hover {
  box-shadow: 0 8px 24px #283b2410;
  transform: translateY(-2px);
}
.recipe-image-link {
  display: block;
  position: relative;
}
.food-photo,
.food-art {
  width: 100%;
  aspect-ratio: 1.37;
  overflow: hidden;
  position: relative;
}
.food-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.recipe-card:hover .food-photo img {
  transform: scale(1.035);
}
.save-button {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #fffdf7ec;
  display: grid;
  place-items: center;
  color: #59634d;
  box-shadow: 0 1px 8px #0000000b;
}
.save-button:hover {
  background: white;
}
.save-button.saved {
  color: var(--clay);
}
.recipe-card-html {
  font-size: 17px;
}
body {
  padding: 21px 20px 17px;
}
.card-kicker {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
  align-items: center;
}
.recipe-card h2 {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: -0.6px;
  margin-top: 11px;
}
.recipe-card-body > p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}
.recipe-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e8e8df;
  padding-top: 16px;
  margin-top: 18px;
  gap: 5px;
}
.recipe-card-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--muted);
}
.recipe-card-meta span:last-child {
  font-size: 9px;
}
.draft-badge {
  position: absolute;
  bottom: 12px;
  left: 13px;
  font-size: 10px;
  background: #fffdf2ed;
  padding: 6px 9px;
  border-radius: 4px;
  color: #70674f;
}
.draft-badge.inline {
  position: static;
}
.library-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  color: var(--muted);
  font-size: 11px;
}
.library-bottom span:last-child {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
}
.app-footer {
  max-width: 1480px;
  margin: 45px auto 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 25px 51px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.app-footer svg {
  width: 22px;
  height: 25px;
  color: #8b987b;
}
.app-footer > span:last-child {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 1px;
}
.filter-panel {
  display: flex;
  align-items: end;
  gap: 18px;
  background: var(--sage);
  padding: 18px 22px;
  border-radius: 5px;
  margin: -10px 0 24px;
}
.filter-panel label {
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.filter-panel select {
  border: 1px solid var(--line);
  padding: 8px 28px 8px 10px;
  background: var(--card);
  border-radius: 4px;
  min-width: 160px;
}
.filter-panel .text-button {
  margin: 0 0 6px auto;
}
.list-view {
  grid-template-columns: 1fr;
}
.list-view .recipe-card {
  display: grid;
  grid-template-columns: 220px 1fr;
}
.list-view .food-photo,
.list-view .food-art {
  height: 100%;
  aspect-ratio: auto;
  min-height: 200px;
}
.list-view .recipe-card-html {
  font-size: 17px;
}
body {
  padding: 24px;
}
.list-view .save-button {
  right: auto;
  left: 175px;
}
.list-view .recipe-card h2 {
  font-size: 27px;
}
.list-view .recipe-card-body > p {
  min-height: 0;
}
.empty-state {
  grid-column: 1/-1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 65px 25px;
  border: 1px dashed #cfd6c3;
  border-radius: 8px;
}
.empty-state h2,
.empty-state h1 {
  font: 30px var(--serif);
  letter-spacing: -0.7px;
}
.empty-state p {
  color: var(--muted);
  line-height: 1.8;
  max-width: 430px;
  font-size: 14px;
}
.loading {
  padding: 100px 55px;
  font-family: var(--serif);
  font-size: 25px;
  color: var(--olive);
}
.global-error,
.editor-error {
  background: #f9e8dc;
  color: #813e2b;
  border: 1px solid #e7c5b6;
  padding: 15px 24px;
  font-size: 13px;
  line-height: 1.7;
}
.global-error {
  margin: 20px 51px 0;
  border-radius: 5px;
}
.pancake-art {
  background: #e6dcc4;
  display: grid;
  place-items: center;
}
.linen {
  position: absolute;
  left: -12%;
  top: -10%;
  height: 160%;
  width: 70%;
  background: repeating-linear-gradient(
    0deg,
    #f3ebdc 0,
    #f3ebdc 2px,
    #eee5d3 3px,
    #f3ebdc 4px
  );
  transform: rotate(24deg);
}
.plate {
  position: relative;
  width: 76%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    #e9dfc8 0 56%,
    #f9f4e8 57% 67%,
    #e4dbc6 68%,
    #faf4e8 69%
  );
  box-shadow: 7px 9px 15px #77623d29;
  display: grid;
  place-items: center;
  transform: rotate(-14deg);
}
.plate > i {
  position: absolute;
  width: 59%;
  height: 51%;
  border-radius: 48%;
  background: radial-gradient(
    ellipse at 43% 40%,
    #eac780 10%,
    #c98b45 65%,
    #a97738 72%,
    #efcb8c 75%
  );
  box-shadow: 0 5px 2px #b18c50;
}
.plate > i:nth-child(1) {
  top: 31%;
}
.plate > i:nth-child(2) {
  top: 27%;
}
.plate > i:nth-child(3) {
  top: 23%;
  background: radial-gradient(
    ellipse at 40% 35%,
    #e9c37b 15%,
    #c88943 67%,
    #f1d29e 72%
  );
}
.butter {
  position: absolute;
  left: 44%;
  top: 34%;
  width: 16%;
  height: 14%;
  background: #f2dca0;
  transform: rotate(23deg);
  border-radius: 3px;
  box-shadow: 3px 3px 2px #a27c4e60;
}
.berry {
  position: absolute;
  bottom: 21%;
  width: 8%;
  height: 8%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #868d9b, #3e4b62 70%);
  box-shadow: 2px 3px 4px #343f4c30;
}
.b1 {
  left: 31%;
}
.b2 {
  left: 40%;
  bottom: 17%;
}
.b3 {
  left: 47%;
  bottom: 21%;
}
.fork {
  position: absolute;
  right: 6%;
  height: 66%;
  width: 6px;
  background: linear-gradient(90deg, #aaa79b, #efede5, #b5b3aa);
  transform: rotate(-15deg);
  border-radius: 40%;
}
.soup-art {
  display: grid;
  place-items: center;
  background: #c3c9ad;
}
.soup-bowl {
  position: relative;
  width: 73%;
  aspect-ratio: 1;
  border: 12px solid #f0e9d8;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #cb7652, #b75b35 70%);
  box-shadow: 6px 10px 18px #4b4e3930;
}
.soup-bowl span {
  position: absolute;
  border: 3px solid #e9bc8c;
  border-left-color: transparent;
  border-bottom-color: transparent;
  left: 22%;
  top: 20%;
  width: 56%;
  height: 56%;
  border-radius: 50%;
  transform: rotate(35deg);
}
.soup-bowl i,
.soup-bowl b,
.herb {
  background: #5f743f;
  border-radius: 90% 0 90% 0;
  position: absolute;
  width: 22%;
  height: 12%;
  left: 39%;
  top: 40%;
  transform: rotate(25deg);
  box-shadow: 1px 2px 3px #5a5b2220;
}
.soup-bowl b {
  transform: rotate(-45deg);
  left: 35%;
  top: 47%;
}
.bread {
  position: absolute;
  bottom: -7%;
  right: 0;
  width: 29%;
  height: 40%;
  border-radius: 40% 40% 14% 14%;
  background: radial-gradient(ellipse, #e6c99b 30%, #ca9c62 70%, #9d703e 75%);
  transform: rotate(-25deg);
  box-shadow: 3px 4px 7px #62593730;
}
.herb {
  width: 10%;
  height: 7%;
  left: 7%;
  top: 10%;
  transform: rotate(35deg);
}
.h2 {
  left: 4%;
  top: 18%;
  transform: rotate(110deg);
}
.apple-art {
  background: #eee6d8;
  display: grid;
  place-items: center;
}
.placeholder-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: #8c9279;
}
.placeholder-mark span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
}
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 15px 0 50px;
}
.collection-tile {
  border: 1px solid var(--line);
  border-radius: 7px;
  text-align: left;
  position: relative;
  min-height: 230px;
  padding: 25px;
}
.collection-tile:hover {
  outline: 1px solid #aab398;
}
.collection-tile.sage {
  background: #e7ebdc;
}
.collection-tile.clay {
  background: #eee0d4;
}
.collection-tile.sand {
  background: #ece5d4;
}
.collection-art {
  display: flex;
  justify-content: space-between;
  color: #657457;
  height: 95px;
}
.collection-art > span {
  font-family: var(--serif);
  font-size: 34px;
  opacity: 0.5;
}
.collection-tile h2 {
  font-family: var(--serif);
  font-size: 25px;
  margin-bottom: 12px;
}
.collection-tile > span {
  font-size: 12px;
  color: var(--muted);
}
.collection-tile > svg:last-child {
  position: absolute;
  right: 22px;
  bottom: 26px;
}
.create-tile {
  border-style: dashed;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: center;
  color: var(--olive);
}
.create-tile > span {
  font-family: var(--serif);
  font-size: 19px;
}
.create-tile > strong {
  font-size: 11px;
  font-weight: 400;
}
.create-tile > svg:last-child {
  position: static;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.section-title h2 {
  font-family: var(--serif);
  font-size: 29px;
  letter-spacing: -0.6px;
}
.modal {
  border: 0;
  padding: 0;
  background: transparent;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  position: fixed;
  inset: 0;
  z-index: 50;
  color: var(--ink);
}
.modal::backdrop {
  background: #29352c55;
  backdrop-filter: blur(3px);
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: #29352c55;
  backdrop-filter: blur(3px);
}
.modal-card {
  position: relative;
  background: var(--paper);
  border-radius: 10px;
  max-width: 470px;
  margin: 15vh auto;
  padding: 45px;
  box-shadow: 0 20px 70px #0002;
}
.modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
}
.modal-card h2 {
  font-family: var(--serif);
  font-size: 35px;
  margin: 14px 0;
}
.modal-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.modal-card label {
  display: block;
  font-size: 13px;
  margin-top: 25px;
}
.modal-card input {
  display: block;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 13px 11px;
  margin-top: 9px;
}
.modal-card > .button {
  margin-top: 24px;
}
.field-error {
  color: var(--clay) !important;
  margin-top: 10px !important;
}
.editor-page {
  max-width: 1380px;
  padding-top: 31px;
}
.editor-top,
.reading-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.back-link:hover {
  color: var(--olive);
}
.autosave {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.editor-heading h1 {
  font-size: 43px;
  letter-spacing: -1.6px;
}
.privacy-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  padding: 7px 10px;
  background: var(--sage);
  border-radius: 4px;
  white-space: nowrap;
  color: var(--olive);
}
.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 254px;
  gap: 34px;
}
.editor-main {
  min-width: 0;
}
.editor-section {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.recipe-basics {
  padding-top: 0;
}
.editor-section label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.8;
}
.editor-section input,
.editor-section textarea,
.editor-section select {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--card);
  padding: 12px 13px;
  width: 100%;
  font-size: 13px;
  font-weight: 400;
  display: block;
  margin-top: 8px;
}
.recipe-basics > label + label {
  margin-top: 24px;
}
.title-field input {
  font-family: var(--serif);
  font-size: 25px;
  padding: 15px;
}
.optional,
.required-hint {
  font-weight: 400;
  color: var(--muted);
  font-size: 10px;
  margin-left: 6px;
}
.required-hint {
  color: var(--clay);
}
.editor-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.editor-section-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.editor-section h2 {
  font-family: var(--serif);
  font-size: 29px;
  letter-spacing: -0.8px;
}
.step-number {
  color: var(--clay);
  font-size: 11px;
}
.section-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 10px;
  margin-bottom: 18px;
}
.ingredient-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 7px 0;
}
.ingredient-bullet {
  width: 6px;
  height: 6px;
  background: #c2cbb5;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 21px;
}
.ingredient-row label {
  flex: 1;
  min-width: 0;
}
.ingredient-row input {
  margin-top: 0;
  min-height: 43px;
}
.parsed-hint {
  font-size: 9px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
  display: block;
}
.row-actions {
  display: flex;
  padding-top: 7px;
  gap: 0;
}
.row-actions .icon-button {
  width: 24px;
  height: 26px;
  color: #767e6d;
  font-size: 15px;
}
.add-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--olive);
  font-size: 12px;
  border-bottom: 1px solid #cbd3c0;
  margin-top: 14px;
  padding: 5px 0;
}
.direction-row {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin-bottom: 17px;
}
.direction-number {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sage);
  font-family: var(--serif);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 9px;
}
.direction-row label {
  flex: 1;
  min-width: 0;
}
.direction-row textarea {
  margin-top: 0;
  line-height: 1.8;
}
.direction-row .row-actions {
  flex-direction: column;
  gap: 0;
  padding-top: 0;
}
.more-heading {
  display: flex;
  text-align: left;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
}
.more-heading span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 9px;
}
.rotate {
  transform: rotate(180deg);
}
.details-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
}
.editor-aside {
  padding-top: 0;
}
.photo-uploader {
  position: relative;
  border: 1px dashed #c4ccba;
  border-radius: 7px;
  min-height: 252px;
  text-align: center;
  background: #f0f0e6;
  padding: 30px 20px;
  overflow: hidden;
}
.photo-icon {
  color: #8b997d;
  margin-bottom: 18px;
}
.photo-uploader h3 {
  font-family: var(--serif);
  font-size: 20px;
}
.photo-uploader p {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 11px;
}
.upload-label {
  position: relative;
  cursor: pointer;
  margin-top: 24px;
  font-size: 11px;
  overflow: hidden;
}
.upload-label input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  cursor: pointer;
}
.photo-uploader > img {
  display: block;
  width: calc(100% + 40px);
  height: 210px;
  object-fit: cover;
  margin: -30px -20px 0;
}
.remove-photo {
  position: absolute;
  right: 9px;
  top: 9px;
  background: #fffdf7eb;
  border-radius: 50%;
  padding: 6px;
  display: flex;
}
.aside-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.aside-section h3 {
  font-family: var(--serif);
  font-size: 23px;
  margin-top: 10px;
}
.collection-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 22px;
}
.collection-checkboxes label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: #59624f;
  cursor: pointer;
}
.collection-checkboxes input {
  accent-color: var(--olive);
  width: 14px;
  height: 14px;
  margin: 0;
}
.editor-note {
  display: flex;
  gap: 13px;
  padding: 28px 0;
  color: #758466;
}
.editor-note p {
  font: italic 15px/1.8 var(--serif);
}
.editor-save-bar {
  position: sticky;
  bottom: 0;
  z-index: 3;
  background: #faf8f3f5;
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.editor-save-bar > span {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}
.editor-save-bar > div {
  display: flex;
  gap: 12px;
}
.editor-error {
  margin-top: 24px;
  border-radius: 5px;
}
.recipe-page {
  max-width: 1230px;
  padding-top: 30px;
}
.reading-top > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.recipe-header {
  max-width: 750px;
}
.recipe-header .eyebrow > span {
  padding: 0 10px;
  opacity: 0.4;
}
.recipe-header h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 4vw, 62px);
  letter-spacing: -2px;
  line-height: 1.1;
  margin-top: 19px;
}
.recipe-header > p,
.recipe-header .recipe-description {
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 650px;
  margin-top: 24px;
}
.recipe-description p {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.recipe-description p + p {
  margin-top: 1.15em;
}
.recipe-story {
  margin-top: 0.7em;
}
.recipe-story summary {
  width: fit-content;
  color: var(--olive);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95em;
}
.recipe-story > div {
  margin-top: 1em;
}
.reading-directions li > p,
.recipe-page .reading-hint {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.recipe-author {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  margin: 25px 0 33px;
}
.recipe-author .mini-avatar {
  width: 26px;
  height: 26px;
  font-size: 10px;
}
.recipe-author .privacy-chip {
  margin-left: 8px;
}
.recipe-hero {
  position: relative;
  border-radius: 9px;
  overflow: hidden;
  height: 390px;
}
.recipe-hero .food-photo,
.recipe-hero .food-art {
  height: 100%;
  aspect-ratio: auto;
}
.recipe-hero .food-photo img {
  object-position: 50% 45%;
}
.hero-caption {
  position: absolute;
  bottom: 15px;
  right: 17px;
  font-size: 10px;
  color: #424d3c;
  background: #fffdf4e3;
  padding: 8px 11px;
  border-radius: 4px;
}
.recipe-hero .soup-bowl,
.recipe-hero .plate {
  height: 90%;
  width: auto;
  aspect-ratio: 1;
}
.recipe-facts {
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 29px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 41px;
}
.recipe-facts > div > span {
  font-size: 9px;
  letter-spacing: 1.2px;
  color: var(--muted);
  display: block;
}
.recipe-facts strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  display: block;
  margin-top: 10px;
}
.recipe-facts small {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}
.recipe-facts .button {
  margin-left: auto;
}
.recipe-content {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 54px;
}
.recipe-content h2 {
  font-family: var(--serif);
  font-size: 32px;
  letter-spacing: -0.7px;
}
.reading-ingredients .section-title {
  flex-wrap: wrap;
  margin-bottom: 12px;
  gap: 15px;
}
.reading-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  margin: 12px 0 25px;
}
.serving-control {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 5px;
  align-items: center;
  padding: 3px 0;
}
.serving-control button {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
}
.serving-control > span {
  padding: 0 3px;
  font-size: 12px;
}
.serving-control small {
  font-size: 9px;
  color: var(--muted);
}
.ingredient-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ingredient-checklist li {
  border-bottom: 1px solid #e4e5da;
}
.ingredient-checklist label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.8;
  position: relative;
  padding: 14px 0;
  cursor: pointer;
}
.ingredient-checklist input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  cursor: pointer;
}
.custom-check {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 1px solid #bac5ad;
  border-radius: 4px;
  margin-top: 3px;
  display: grid;
  place-items: center;
}
.checked .custom-check {
  background: var(--olive);
  border-color: var(--olive);
  color: white;
}
.checked > span:last-child {
  text-decoration: line-through;
  color: #8f9487;
}
.ingredient-checklist input:focus-visible + .custom-check {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
}
.scaling-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  padding: 18px 0;
}
.scaling-note .text-button {
  display: block;
  font-size: 11px;
  margin-top: 5px;
}
.reading-directions ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.reading-directions li {
  display: flex;
  gap: 17px;
  margin: 0 0 26px;
}
.reading-step-number {
  background: var(--sage);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 17px;
  flex-shrink: 0;
}
.reading-directions li > p {
  font-size: 13px;
  line-height: 1.95;
  padding-top: 1px;
}
.reading-directions .finished p {
  opacity: 0.55;
}
.reading-directions .finished button {
  background: var(--olive);
  color: white;
}
.personal-notes {
  margin-top: 50px;
  padding: 32px 0;
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.personal-notes h2 {
  font-family: var(--serif);
  font-size: 31px;
  margin: 12px 0;
}
.personal-notes p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.personal-notes textarea {
  width: 100%;
  background: #f1f0e6;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 17px;
  line-height: 1.8;
  font-size: 13px;
}
.notes-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}
.notes-actions span {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
}
.recipe-collection-links {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  color: var(--muted);
  font-size: 11px;
  margin-top: 35px;
}
.unfinished-note {
  font-size: 14px;
  color: var(--muted);
  padding: 20px 0;
}
.unfinished-note a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--olive);
  margin-top: 15px;
}
body:has(.cook-mode) .sidebar,
body:has(.cook-mode) .topbar,
body:has(.cook-mode) .app-footer {
  display: none;
}
body:has(.cook-mode) .app-area {
  margin-left: 0;
}
.cook-mode .recipe-hero,
.cook-mode .personal-notes,
.cook-mode .recipe-collection-links {
  display: none;
}
.cook-mode .recipe-header h1 {
  font-size: 43px;
}
.cook-mode .reading-directions li > p,
.cook-mode .ingredient-checklist label {
  font-size: 18px;
}
.cook-mode .recipe-content {
  gap: 65px;
}
.cook-mode .recipe-facts {
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 4;
}
@media (min-width: 1650px) {
  .library-page,
  .editor-page {
    padding-left: 75px;
    padding-right: 75px;
  }
  .recipe-grid {
    gap: 32px;
  }
  .food-photo,
  .food-art {
    aspect-ratio: 1.5;
  }
  .recipe-card-html {
    font-size: 17px;
  }
  body {
    padding: 25px;
  }
  .recipe-card h2 {
    font-size: 28px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 205px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .brand > span {
    font-size: 24px;
  }
  .brand-tagline {
    font-size: 7px;
    letter-spacing: 1.5px;
  }
  .app-area {
    margin-left: 205px;
  }
  .library-page,
  .editor-page,
  .recipe-page {
    padding-left: 30px;
    padding-right: 30px;
  }
  .topbar {
    padding: 0 30px;
  }
  .page-heading p {
    max-width: 420px;
  }
  .welcome-note > a {
    max-width: 125px;
    line-height: 1.6;
  }
  .recipe-grid {
    gap: 18px;
  }
  .recipe-card-html {
    font-size: 17px;
  }
  body {
    padding: 18px 15px;
  }
  .recipe-card h2 {
    font-size: 23px;
  }
  .recipe-card-meta span:last-child {
    font-size: 7px;
  }
  .library-tools {
    gap: 8px;
  }
  .editor-layout {
    grid-template-columns: minmax(0, 1fr) 215px;
    gap: 25px;
  }
  .recipe-content {
    gap: 30px;
  }
  .recipe-facts {
    gap: 22px;
  }
  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .preview-label {
    font-size: 9px;
  }
  .topbar-word {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .editor-heading h1 {
    font-size: 37px;
  }
}
@media (max-width: 900px) {
  .recipe-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sidebar {
    width: 185px;
    padding: 30px 10px 0;
  }
  .app-area {
    margin-left: 185px;
  }
  .brand {
    gap: 6px;
    padding-left: 4px;
  }
  .brand svg {
    width: 27px;
  }
  .brand > span {
    font-size: 23px;
  }
  .brand-tagline {
    padding-left: 39px;
    font-size: 6px;
  }
  .nav-item {
    padding: 13px 10px;
    gap: 10px;
    font-size: 13px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading > .button {
    margin-top: 32px;
  }
  .sort-label {
    display: none;
  }
  .welcome-note {
    padding: 18px;
  }
  .welcome-note > a {
    display: none;
  }
  .editor-layout {
    grid-template-columns: 1fr;
  }
  .editor-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    grid-row: 1;
  }
  .editor-note {
    display: none;
  }
  .aside-section {
    padding-top: 8px;
    border-bottom: 0;
  }
  .photo-uploader {
    min-height: 200px;
    padding: 20px;
  }
  .photo-uploader > img {
    margin: -20px -20px 0;
  }
  .editor-section-heading .text-button {
    font-size: 11px;
  }
  .recipe-facts {
    gap: 20px;
    flex-wrap: wrap;
  }
  .recipe-facts .button {
    margin-left: 0;
  }
  .recipe-facts strong {
    font-size: 23px;
  }
  .recipe-content {
    grid-template-columns: 1fr;
  }
  .personal-notes {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .recipe-header h1 {
    font-size: 44px;
  }
  .recipe-hero {
    height: 320px;
  }
  .app-footer {
    padding: 25px 30px;
  }
  .app-footer > span:last-child {
    display: none;
  }
  .topbar-word {
    max-width: 200px;
    line-height: 1.8;
  }
  .preview-label {
    display: none;
  }
}
@media (max-width: 650px) {
  .sidebar {
    position: sticky;
    top: 0;
    bottom: auto;
    width: 100%;
    height: auto;
    padding: 12px 17px;
    background: #f4f1e8f7;
    backdrop-filter: blur(8px);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    padding-left: 0;
  }
  .brand > span {
    font-size: 24px;
  }
  .brand svg {
    height: 29px;
    width: 27px;
  }
  .brand-tagline,
  .sidebar-rule,
  .nav-label,
  .sidebar-note,
  .sidebar-add,
  .sidebar-profile {
    display: none;
  }
  .sidebar nav {
    display: flex;
    margin-top: 12px;
    gap: 8px;
    justify-content: space-between;
  }
  .nav-item {
    margin: 0;
    padding: 8px 7px;
    gap: 5px;
    font-size: 11px;
    min-height: 34px;
  }
  .nav-item svg {
    width: 14px;
  }
  .nav-count {
    font-size: 9px;
  }
  .app-area {
    margin-left: 0;
  }
  .topbar {
    display: none;
  }
  .library-page,
  .editor-page,
  .recipe-page {
    padding: 33px 20px 10px;
  }
  .page-heading {
    display: block;
  }
  .page-heading h1 {
    font-size: 39px;
    letter-spacing: -1.6px;
  }
  .page-heading > .button {
    margin-top: 22px;
  }
  .page-heading p {
    font-size: 13px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .welcome-note {
    margin-bottom: 28px;
  }
  .welcome-note strong {
    font-size: 18px;
  }
  .welcome-note div > span {
    font-size: 11px;
  }
  .welcome-note .note-symbol {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }
  .search-field {
    min-height: 40px;
  }
  .search-field input {
    font-size: 11px;
  }
  .filter-button {
    padding: 10px;
    font-size: 0;
    gap: 0;
  }
  .view-toggle {
    display: none;
  }
  .collection-tabs {
    gap: 23px;
  }
  .recipe-grid {
    gap: 17px;
    grid-template-columns: 1fr;
  }
  .recipe-card h2 {
    font-size: 27px;
  }
  .recipe-card-html {
    font-size: 17px;
  }
  body {
    padding: 23px;
  }
  .recipe-card-body > p {
    font-size: 13px;
    min-height: 0;
  }
  .recipe-card-meta span,
  .recipe-card-meta span:last-child {
    font-size: 11px;
  }
  .recipe-card-meta {
    margin-top: 16px;
  }
  .food-photo,
  .food-art {
    aspect-ratio: 1.55;
  }
  .library-bottom {
    font-size: 10px;
  }
  .library-bottom span:last-child {
    font-size: 11px;
  }
  .app-footer {
    margin-top: 30px;
    padding: 22px 20px;
    font-size: 10px;
  }
  .collection-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .collection-tile {
    min-height: 205px;
    padding: 17px;
  }
  .collection-tile h2 {
    font-size: 22px;
  }
  .collection-art {
    height: 80px;
  }
  .collection-tile > span {
    font-size: 11px;
  }
  .create-tile > span {
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
  }
  .filter-panel {
    flex-wrap: wrap;
    padding: 16px;
    gap: 12px;
  }
  .filter-panel select {
    min-width: 130px;
  }
  .filter-panel .text-button {
    margin: 0;
  }
  .editor-heading h1 {
    font-size: 35px;
  }
  .editor-heading > .privacy-chip {
    margin-top: 17px;
  }
  .editor-top {
    margin-bottom: 29px;
  }
  .autosave {
    font-size: 9px;
  }
  .editor-aside {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .photo-uploader {
    min-height: 170px;
    padding: 25px;
  }
  .aside-section {
    padding: 0;
  }
  .collection-checkboxes {
    margin-top: 16px;
    gap: 12px;
  }
  .collection-checkboxes label {
    font-size: 13px;
  }
  .editor-section {
    padding: 25px 0;
  }
  .recipe-basics {
    padding-top: 0;
  }
  .editor-main {
    margin-top: 10px;
  }
  .row-actions .icon-button {
    width: 21px;
  }
  .direction-row {
    gap: 9px;
  }
  .editor-section h2 {
    font-size: 27px;
  }
  .editor-save-bar {
    margin: 25px -20px 0;
    padding: 17px 20px;
  }
  .editor-save-bar > span {
    display: none;
  }
  .editor-save-bar > div {
    width: 100%;
  }
  .editor-save-bar .button {
    flex: 1;
  }
  .reading-top {
    margin-bottom: 28px;
    gap: 5px;
  }
  .reading-top .back-link {
    font-size: 11px;
  }
  .reading-top > div {
    gap: 6px;
  }
  .reading-top .button {
    padding: 9px;
    font-size: 11px;
    min-height: 36px;
  }
  .reading-top .icon-button {
    display: none;
  }
  .recipe-header h1 {
    font-size: 43px;
    letter-spacing: -1.4px;
  }
  .recipe-header > p,
  .recipe-header .recipe-description {
    font-size: 14px;
  }
  .recipe-hero {
    height: 290px;
  }
  .recipe-facts {
    gap: 20px 25px;
    margin-bottom: 28px;
  }
  .recipe-facts > .button {
    width: 100%;
  }
  .recipe-content h2 {
    font-size: 30px;
  }
  .ingredient-checklist label,
  .reading-directions li > p {
    font-size: 15px;
  }
  .recipe-facts strong {
    font-size: 25px;
  }
  .personal-notes {
    margin-top: 25px;
  }
  .personal-notes textarea {
    font-size: 15px;
  }
  .recipe-collection-links {
    font-size: 10px;
    line-height: 1.8;
  }
  .modal-card {
    margin: 12vh 20px;
    padding: 33px 25px;
  }
  .list-view .recipe-card {
    display: block;
  }
  .list-view .save-button {
    left: auto;
    right: 13px;
  }
  .list-view .food-photo,
  .list-view .food-art {
    min-height: 0;
    aspect-ratio: 1.55;
    height: auto;
  }
  .global-error {
    margin: 15px 20px 0;
  }
  .cook-mode .recipe-facts {
    top: 0;
  }
  .cook-mode .reading-directions li > p,
  .cook-mode .ingredient-checklist label {
    font-size: 17px;
  }
}
@media print {
  html {
    font-size: 17px;
  }
  body {
    background: white;
    color: black;
    font-size: 12pt;
  }
  .sidebar,
  .topbar,
  .app-footer,
  .reading-top,
  .personal-notes,
  .recipe-collection-links,
  .hero-caption,
  .recipe-facts > .button,
  .serving-control button,
  .scaling-note button {
    display: none !important;
  }
  .app-area {
    margin: 0;
  }
  .recipe-page {
    padding: 0;
    max-width: none;
  }
  .recipe-header h1 {
    font-size: 30pt;
  }
  .recipe-header > p,
  .recipe-header .recipe-description {
    font-size: 11pt;
  }
  .recipe-hero {
    height: 180px;
    margin-top: 20px;
  }
  .recipe-facts {
    padding: 15px 0;
    margin-bottom: 25px;
    gap: 30px;
  }
  .recipe-content {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 35px;
  }
  .recipe-content h2 {
    font-size: 22pt;
  }
  .reading-directions li > p,
  .ingredient-checklist label {
    font-size: 10pt;
  }
  .recipe-author {
    margin-bottom: 10px;
  }
  .privacy-chip {
    display: none;
  }
  .reading-directions li {
    break-inside: avoid;
  }
  .recipe-facts .button {
    display: none;
  }
  .ingredient-checklist input {
    display: none;
  }
  .checked > span:last-child {
    text-decoration: none;
    color: black;
  }
  .reading-directions .finished p {
    opacity: 1;
  }
  .custom-check {
    background: none !important;
    color: black !important;
  }
  .recipe-header .eyebrow {
    font-size: 8pt;
  }
  a {
    color: inherit;
  }
  .ingredient-checklist li {
    break-inside: avoid;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

.welcome {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 48px 24px;
}
.welcome-center {
  text-align: center;
  padding-bottom: 4vh;
}
.welcome-mark {
  width: 64px;
  height: 70px;
  color: var(--clay);
  margin-bottom: 20px;
}
.welcome-wordmark {
  font-family: var(--serif);
  font-size: clamp(52px, 9vw, 88px);
  line-height: 1.05;
  letter-spacing: -4px;
  color: var(--olive-dark);
}
.welcome-wordmark span {
  color: var(--clay);
}
.welcome-tagline {
  margin-top: 18px;
  font-size: 14px;
  letter-spacing: 2.5px;
  color: var(--muted);
}
.welcome-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 54px;
  font-size: 14px;
}
.welcome-links a {
  padding: 8px 0;
  border-bottom: 1px solid transparent;
}
.welcome-links a:hover {
  color: var(--olive);
  border-color: var(--olive);
}
.public-page {
  max-width: 640px;
  padding: 64px 24px;
  margin: 0 auto;
}
.public-home {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--olive);
  font-family: var(--serif);
  font-size: 24px;
  margin-bottom: 80px;
  width: fit-content;
}
.public-page h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 6vw, 46px);
  line-height: 1.2;
  margin-bottom: 26px;
}
.public-page p {
  font-size: 17px;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 20px;
}
.public-page .button {
  margin-top: 24px;
}
@media (max-width: 480px) {
  .welcome-links {
    gap: 22px;
  }
  .welcome-wordmark {
    letter-spacing: -2.5px;
  }
}

.recipe-entry-method {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.recipe-entry-method button {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 11px 20px;
}
.recipe-entry-method button[aria-pressed="true"] {
  background: var(--sage);
  border-color: var(--olive);
  color: var(--olive-dark);
}
.bookmark-source {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  padding: 28px;
  margin: 28px 0;
}
.bookmark-source p {
  color: var(--muted);
  margin-bottom: 18px;
  line-height: 1.7;
}
.live-login {
  display: grid;
  gap: 22px;
  max-width: 380px;
}
.live-login label {
  display: grid;
  gap: 10px;
  font-size: 14px;
}
.live-login input {
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 100%;
}
.live-login button {
  justify-self: start;
}
.community-page {
  padding: 46px 46px 70px;
  max-width: 1350px;
  margin: auto;
}
.community-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 36px;
  margin-top: 36px;
}
.community-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.post-photo-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.post-photo-picker > span {
  font-size: 12px;
  color: var(--muted);
}
.post-photo-picker label {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.post-photo-picker input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  cursor: pointer;
}
.post-photo-picker label:focus-within {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
}
.post-photo-preview {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.post-photo-preview img {
  max-width: 100%;
  width: auto;
  max-height: 340px;
  object-fit: contain;
  justify-self: start;
  border-radius: 9px;
}
.post-photo-preview button {
  justify-self: start;
}
.post-photo-preview label {
  font-size: 13px;
  margin-top: 5px;
}
.post-photo-preview input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px;
  background: var(--paper);
}
.post-photo-preview p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.wall-photo {
  margin: 20px 0;
}
.wall-photo img {
  display: block;
  width: 100%;
  max-height: 650px;
  object-fit: contain;
  border-radius: 9px;
  background: var(--cream);
}
.wall-photo figcaption {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 10px;
}
.post-recipe-card {
  display: flex;
  gap: 18px;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin: 18px 0;
  background: var(--cream);
}
.post-recipe-card img {
  width: 90px;
  height: 85px;
  object-fit: cover;
  border-radius: 6px;
}
.post-recipe-card h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  margin: 8px 0;
}
.post-recipe-card .eyebrow {
  font-size: 10px;
  letter-spacing: 1px;
}
.post-recipe-card > div > span:last-child {
  font-size: 13px;
  color: var(--olive);
}
.attachment-unavailable,
.reply-privacy,
.reply-removed {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.post-replies {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 18px;
}
.reply-thread {
  margin-top: 18px;
}
.reply-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.reply-heading h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  margin: 0;
}
.reply {
  border-left: 2px solid var(--line);
  padding: 12px 0 12px 18px;
  margin: 18px 0;
}
.reply-author {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: baseline;
}
.reply-author strong {
  font-size: 14px;
  font-weight: 500;
}
.reply-author time {
  font-size: 12px;
  color: var(--muted);
}
.reply-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.8;
}
.reply-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 10px;
}
.reply-thread textarea {
  display: block;
  width: 100%;
  resize: vertical;
  min-height: 80px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  line-height: 1.7;
  margin: 10px 0 14px;
}
.reply-composer {
  margin-top: 24px;
}
.reply-composer label,
.reply form label {
  font-size: 14px;
}
.reply-confirm {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  padding: 15px;
  margin-top: 14px;
}
.reply-confirm button {
  margin-right: 15px;
}
.reply-confirm p {
  font-size: 14px;
  line-height: 1.7;
}
.community-tabs button {
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--muted);
}
.community-tabs button[aria-pressed="true"] {
  background: var(--sage);
  color: var(--olive-dark);
  border-color: var(--olive);
}
.post-sharing {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 15px;
}
.post-sharing > label {
  display: block;
  font-size: 13px;
  margin-bottom: 9px;
  font-weight: 600;
}
.post-sharing > select {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: 6px;
  min-width: 180px;
}
.post-sharing > p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin: 10px 0 0;
}
.post-sharing fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 15px;
  padding: 15px;
}
.wall-side-note > a {
  display: flex;
  margin-top: 18px;
}
.wall-composer,
.wall-post {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 10px;
  padding: 26px;
  margin-bottom: 24px;
}
.wall-composer-title {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
}
.wall-composer-title label {
  font-family: var(--serif);
  font-size: 22px;
}
.wall-composer textarea {
  width: 100%;
  min-height: 120px;
  border: 0;
  outline-offset: 5px;
  background: transparent;
  line-height: 1.8;
  font-size: 16px;
  resize: vertical;
}
.wall-composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 18px;
}
.wall-composer-actions > span,
.wall-private {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.wall-composer-actions > div {
  display: flex;
  gap: 10px;
}
.wall-list-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 30px 0 20px;
}
.wall-list-heading h2 {
  font-family: var(--serif);
  font-size: 25px;
}
.wall-post header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wall-post header > div {
  display: grid;
  gap: 5px;
}
.wall-post header strong {
  font-size: 14px;
  font-weight: 500;
}
.wall-post time {
  color: var(--muted);
  font-size: 12px;
}
.wall-post .wall-private {
  margin-left: auto;
}
.wall-post-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.9;
  font-size: 16px;
  margin: 24px 0;
}
.wall-post footer {
  display: flex;
  gap: 22px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.wall-empty {
  text-align: center;
  padding: 50px 24px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 10px;
}
.wall-empty h2 {
  font-family: var(--serif);
  color: var(--ink);
  font-size: 25px;
  margin: 18px 0 12px;
}
.wall-empty p {
  line-height: 1.8;
}
.wall-side-note {
  padding: 24px 0;
}
.wall-side-note h2 {
  font-family: var(--serif);
  font-size: 29px;
  line-height: 1.25;
  margin: 20px 0;
}
.wall-side-note p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 16px;
}
.wall-side-note a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--olive);
  font-size: 13px;
  margin-top: 28px;
}
.wall-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  background: var(--sage);
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.6;
}
@media (max-width: 1100px) {
  .community-layout {
    grid-template-columns: 1fr;
  }
  .wall-side-note {
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 700px) {
  .community-page {
    padding: 32px 20px 60px;
  }
  .wall-composer,
  .wall-post {
    padding: 20px;
  }
  .wall-composer-title label {
    font-size: 20px;
  }
  .wall-composer-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .wall-private {
    white-space: nowrap;
  }
  .wall-post header {
    flex-wrap: wrap;
  }
}
.friends-page {
  padding: 46px;
  max-width: 1350px;
  margin: auto;
}
.friends-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  margin-top: 35px;
}
.friends-section {
  margin-bottom: 42px;
}
.friends-section h2 {
  font-family: var(--serif);
  font-size: 27px;
  margin-bottom: 22px;
}
.friends-section h2 > span {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  margin-left: 8px;
}
.friends-quiet {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
  max-width: 500px;
}
.friends-invite {
  padding: 28px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.friends-invite-icon {
  color: var(--olive);
}
.friends-invite h2 {
  font-family: var(--serif);
  font-size: 29px;
  margin: 20px 0 14px;
}
.friends-invite p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 24px;
}
.friends-invite label {
  font-size: 13px;
  display: block;
  margin-bottom: 10px;
}
.friends-invite input,
.friends-link-ready input {
  width: 100%;
  padding: 13px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 5px;
  min-width: 0;
}
.friends-invite .button {
  margin-top: 18px;
}
.friends-invite .friends-small {
  font-size: 12px;
  margin: 18px 0 0;
}
.friends-small {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}
.friend-row,
.invitation-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.friend-row > div:not(.friend-row-actions),
.invitation-row > div:not(.friend-row-actions) {
  display: grid;
  gap: 7px;
  min-width: 0;
  flex: 1;
}
.friend-row strong,
.invitation-row strong {
  font-size: 15px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.friend-row > div > span,
.invitation-status {
  font-size: 12px;
  color: var(--muted);
}
.friend-row-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.friend-row .icon-button {
  margin-left: auto;
}
.invitation-row > svg {
  color: var(--olive);
  flex-shrink: 0;
}
.friends-link-ready {
  margin-top: 24px;
  border: 1px solid var(--olive);
  border-radius: 10px;
  padding: 24px;
  background: var(--card);
}
.friends-link-ready h3 {
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.3;
}
.friends-link-ready p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin: 16px 0;
}
.friends-link-ready > div {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.friends-link-ready .button {
  font-size: 13px;
}
.friend-dialog {
  padding: 32px;
  max-width: 470px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
}
.friend-dialog::backdrop {
  background: rgb(25 35 25 / 35%);
}
.friend-dialog h2 {
  font-family: var(--serif);
  font-size: 30px;
}
.friend-dialog p {
  line-height: 1.9;
  font-size: 15px;
  color: var(--muted);
  margin: 22px 0;
}
.friend-dialog > div {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.invite-welcome {
  max-width: 650px;
}
.invite-welcome .eyebrow {
  margin-bottom: 18px;
}
.invite-welcome .public-home {
  margin-bottom: 65px;
}
.invite-email {
  font-size: 13px !important;
  letter-spacing: 0.3px;
}
.invite-welcome .live-login {
  margin-top: 32px;
}
.invite-welcome .live-login .friends-small {
  display: block;
}
.invite-welcome .live-login > p {
  font-size: 13px;
  line-height: 1.8;
}
.invite-welcome .live-login > p svg {
  vertical-align: middle;
  margin-right: 5px;
}
@media (max-width: 1150px) {
  .friends-layout {
    grid-template-columns: 1fr;
  }
  .friends-layout > aside {
    max-width: 600px;
  }
  .friends-layout > .friends-section {
    order: 2;
  }
}
@media (max-width: 700px) {
  .friends-page {
    padding: 32px 20px 60px;
  }
  .friend-row,
  .invitation-row {
    flex-wrap: wrap;
  }
  .friend-row-actions {
    width: 100%;
    padding-left: 45px;
  }
  .friends-invite {
    padding: 24px;
  }
  .friend-dialog {
    max-width: calc(100vw - 32px);
    padding: 24px;
  }
  .friend-dialog > div {
    flex-wrap: wrap;
  }
}
/* Recipe sharing and private friend lists. */
.circle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  margin: 26px 0;
}
.circle-form {
  max-width: 640px;
  margin: 24px 0;
}
.circle-form input:not([type="checkbox"]) {
  display: block;
  width: 100%;
  margin: 8px 0 22px;
}
.circle-form fieldset {
  border: 1px solid var(--line, #ddd);
  border-radius: 10px;
  margin: 20px 0;
  padding: 18px;
}
.circle-member {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}
.circle-member input {
  width: auto;
}
.sharing-controls {
  border: 0;
  min-width: 0;
}
.sharing-controls legend {
  font-weight: 600;
}
.sharing-controls select {
  width: 100%;
  margin-top: 12px;
}
.sharing-controls p {
  font-size: 14px;
  line-height: 1.65;
}
.shared-public {
  max-width: 1150px;
  margin: auto;
  padding: 38px 32px;
}
.shared-nav {
  display: flex;
  gap: 24px;
  margin: 24px 0 40px;
}
.shared-card {
  text-decoration: none;
  color: inherit;
  display: block;
}
.shared-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}
.shared-card h2 {
  font-size: 25px;
}
.shared-cover {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 18px;
}
.shared-columns {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 50px;
  margin: 40px 0;
}
.shared-check {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 18px 0;
  line-height: 1.8;
  white-space: pre-line;
}
.shared-check input {
  width: auto;
  margin-top: 8px;
}
.shared-check:has(input:checked) span {
  text-decoration: line-through;
  opacity: 0.55;
}
.shared-recipe input[type="number"] {
  width: 95px;
  margin: 8px;
}
.shared-recipe .recipe-header {
  padding-top: 25px;
}
.bookmark-source .button {
  margin-right: 12px;
}
@media (max-width: 760px) {
  .shared-columns {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .shared-public {
    padding: 22px;
  }
  .circle-grid {
    grid-template-columns: 1fr;
  }
}

.saved-shared-section {
  margin: 28px 0 40px;
}
.shared-save {
  margin: 16px 0;
}
.shared-save p {
  font-size: 0.9125rem;
}
.shared-card a {
  color: inherit;
  text-decoration: none;
}
.shared-card .text-button {
  margin-top: 15px;
}
@media print {
  .recipe-page .reply-thread,
  .shared-save {
    display: none;
  }
}

.ingredient-helper {
  margin: 12px 0 22px;
}
.ingredient-helper-fields {
  background: var(--cream, #f3f1e8);
  border: 1px solid #dddcd0;
  border-radius: 10px;
  padding: 20px;
  margin-top: 14px;
}
.ingredient-helper-fields > p {
  line-height: 1.6;
  margin: 0 0 16px;
}
.ingredient-helper-fields > .section-hint {
  margin: 12px 0 0;
}
.ingredient-helper-grid {
  display: grid;
  grid-template-columns: 110px 190px minmax(150px, 1fr);
  gap: 12px;
  margin: 15px 0;
}
@media (max-width: 900px) {
  .ingredient-helper-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ingredient-helper-grid label:last-child {
    grid-column: 1 / -1;
  }
}

.paste-recipe {
  margin: 0 0 26px;
}
.paste-recipe-panel {
  margin: 16px 0;
  padding: 24px;
  background: #f3f1e8;
  border: 1px solid #dddcd0;
  border-radius: 12px;
}
.paste-recipe-panel h2,
.paste-recipe-panel h3 {
  margin: 0 0 12px;
}
.paste-recipe-panel p {
  line-height: 1.65;
  margin: 12px 0 18px;
}
.paste-recipe-panel label {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  font-size: 0.9625rem;
}
.paste-recipe-panel input:not([type="checkbox"]),
.paste-recipe-panel textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d5d6cc;
  border-radius: 6px;
  background: #fffefa;
  font: inherit;
}
.paste-recipe-panel .paste-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
}
.paste-check input {
  flex: 0 0 auto;
  margin-top: 5px;
}
.paste-review {
  border-top: 1px solid #d5d6cc;
  margin-top: 24px;
  padding-top: 24px;
}
.unassigned-recipe {
  border-left: 3px solid #a97555;
  padding-left: 16px;
}
.heading-editor-row input {
  font-weight: 600;
  background: #eeeede;
}
.ingredient-section-heading {
  padding: 20px 0 10px;
  list-style: none;
  font-weight: 600;
  break-after: avoid;
}
.ingredient-section-heading h3 {
  font: inherit;
  margin: 0;
}

.recipe-details-fields .detail-explanation {
  grid-column: 1 / -1;
  font-size: 0.9125rem;
  line-height: 1.6;
  color: var(--muted, #626758);
  margin: 4px 0;
}
.recipe-details-fields .section-hint {
  line-height: 1.5;
}

.original-recipe-section {
  margin: 24px 0;
}
.original-recipe-section .button,
.original-recipe-section .text-button {
  margin: 8px 12px 8px 0;
}
@media print {
  .original-recipe-section {
    display: none;
  }
}

.editor-layout:has(.image-comparison-review) {
  grid-template-columns: minmax(0, 1fr);
}
.editor-layout:has(.image-comparison-review) > .editor-aside {
  display: none;
}
.image-comparison-review .comparison-review-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(300px, 1.05fr);
  gap: 24px;
  align-items: start;
}
.comparison-review-text {
  min-width: 0;
}
.original-comparison {
  min-width: 0;
  position: sticky;
  top: 20px;
}
.original-comparison > p {
  font-size: 0.9125rem;
  line-height: 1.6;
}
.comparison-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.comparison-controls .button {
  padding: 8px 12px;
}
.comparison-controls span {
  font-size: 0.8625rem;
}
.comparison-viewport {
  height: min(65vh, 560px);
  min-height: 280px;
  overflow: auto;
  border: 1px solid #d5d6cc;
  border-radius: 8px;
  background: #e4e4da;
  padding: 12px;
}
.comparison-image-stage {
  position: relative;
  margin: auto;
  flex: none;
  overflow: hidden;
}
.comparison-image-stage img {
  position: absolute;
  top: 50%;
  left: 50%;
  max-height: none;
  pointer-events: none;
  user-select: none;
}
.comparison-note {
  color: #626758;
}
@media (max-width: 1000px) {
  .image-comparison-review .comparison-review-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .original-comparison {
    position: static;
  }
  .comparison-viewport {
    height: 400px;
    min-height: 240px;
  }
}

.copy-recipe {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.copy-recipe-status {
  font-size: 0.8625rem;
  color: var(--olive, #4e5d40);
}
.copy-recipe-fallback {
  display: block;
  width: 100%;
  max-width: 640px;
  padding: 16px;
  background: #f5f3eb;
  border: 1px solid #d9ddcd;
  border-radius: 8px;
}
.copy-recipe-fallback label {
  display: block;
  font-size: 0.9625rem;
}
.copy-recipe-fallback textarea {
  display: block;
  width: 100%;
  min-height: 240px;
  margin: 10px 0;
  padding: 12px;
  resize: vertical;
}
.copy-recipe-fallback > span {
  display: block;
  font-size: 0.9125rem;
  margin-bottom: 10px;
}
@media print {
  .copy-recipe {
    display: none !important;
  }
}

.recognition-orientation {
  margin: 16px 0;
}
.recognition-orientation .original-comparison {
  position: static;
  margin-top: 16px;
}
.recognition-orientation .comparison-viewport {
  height: 380px;
}
.recipe-readiness {
  margin: 24px 0;
  padding: 20px;
  background: #f0f1e7;
  border: 1px solid #d9ddcd;
  border-radius: 10px;
}
.recipe-readiness h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}
.recipe-readiness p {
  margin: 10px 0;
  line-height: 1.6;
  font-size: 0.9625rem;
}
.recipe-readiness ul {
  margin: 10px 0;
  padding-left: 20px;
  line-height: 1.8;
}
.recipe-readiness .text-button {
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.recipe-trash-action {
  margin: 24px 0;
}
.trash-confirm {
  padding: 18px;
  border: 1px solid #d9ddcd;
  border-radius: 10px;
  background: #f5f3eb;
  max-width: 680px;
}
.trash-confirm p {
  margin-top: 0;
  line-height: 1.6;
}
@media print {
  .recipe-trash-action {
    display: none !important;
  }
}

.trash-search {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 540px;
  margin: 0 0 28px;
  font-size: 0.9625rem;
}
.trash-search input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #d9ddcd;
  border-radius: 8px;
  background: #fffefa;
  color: inherit;
  font: inherit;
}
.recipe-trash-page .friends-section {
  max-width: 740px;
  margin: 16px 0;
  padding: 24px;
  border: 1px solid #dfdfd5;
  border-radius: 12px;
  background: #fffefa;
}
.recipe-trash-page .friends-section h2 {
  margin: 0 0 12px;
  font-size: 1.6rem;
}
.recipe-trash-page .friends-section p {
  color: #6d7267;
  margin-bottom: 18px;
}

.kitchen-profile {
  max-width: 1140px;
}
.kitchen-profile-heading {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 22px 0 40px;
}
.kitchen-profile-heading h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.15;
  margin: 14px 0;
  overflow-wrap: anywhere;
}
.kitchen-profile-heading p {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #6d7267;
  font-size: 0.9125rem;
}
.kitchen-portrait {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  overflow: hidden;
  background: #e7e9dc;
  display: grid;
  place-items: center;
  flex: 0 0 132px;
  font-size: 2.7rem;
  color: #4e5d40;
}
.kitchen-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kitchen-story {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  padding: 28px;
  background: #f2f1e9;
  border-radius: 14px;
}
.kitchen-story h2 {
  font-size: 1.4rem;
  margin: 0 0 14px;
}
.kitchen-story p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.7;
  margin: 0;
}
.profile-cuisines {
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.profile-cuisines li {
  padding: 8px 13px;
  border: 1px solid #d5d9c8;
  border-radius: 20px;
  background: #faf9f3;
}
.kitchen-profile-form {
  max-width: 720px;
  margin-bottom: 38px;
  padding: 28px;
  border: 1px solid #d9ddcd;
  border-radius: 12px;
  background: #fffefa;
}
.kitchen-profile-form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.kitchen-profile-form legend {
  font-family: Georgia, serif;
  font-size: 1.6rem;
  margin-bottom: 24px;
}
.kitchen-profile-form label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 22px;
}
.kitchen-profile-form label > span,
.profile-help {
  color: #6d7267;
  font-size: 0.9125rem;
  line-height: 1.6;
}
.kitchen-profile-form input:not([type="file"]),
.kitchen-profile-form textarea {
  border: 1px solid #d9ddcd;
  border-radius: 7px;
  background: #fff;
  padding: 12px 14px;
  width: 100%;
  font: inherit;
  color: inherit;
}
.kitchen-profile-form textarea {
  resize: vertical;
}
.profile-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.profile-recipes {
  margin-top: 45px;
}
.profile-recipes > h2 {
  font-size: 1.9rem;
}
.profile-recipes > p {
  color: #6d7267;
  margin-bottom: 25px;
}
.profile-recipes .shared-card {
  padding: 20px;
  border: 1px solid #dfdfd5;
  border-radius: 12px;
  background: #fffefa;
}
@media (max-width: 700px) {
  .kitchen-profile-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .kitchen-profile-form,
  .kitchen-story {
    padding: 20px;
  }
}

.discovery-section {
  margin-bottom: 30px;
  padding: 24px;
  border: 1px solid #d9ddcd;
  border-radius: 12px;
  background: #f3f3ea;
}
.discovery-section > p {
  line-height: 1.6;
}
.profile-name-link {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
}
.profile-name-link:hover,
.profile-name-link:focus-visible {
  text-decoration: underline;
}
.friends-invite textarea,
.friends-link-ready textarea {
  width: 100%;
  margin: 10px 0 18px;
  padding: 12px;
  border: 1px solid #d9ddcd;
  border-radius: 8px;
  background: #fffefa;
  color: inherit;
  font: inherit;
  resize: vertical;
}
.friends-link-ready > div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.recipe-search-scope select {
  min-height: 43px;
  max-width: 190px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fffefa;
  color: inherit;
  font: inherit;
  font-size: 0.9125rem;
}
.recipe-search-help {
  margin: -10px 0 22px;
  font-size: 0.8625rem;
  color: #6d7267;
  line-height: 1.6;
}
@media (max-width: 800px) {
  .library-tools {
    flex-wrap: wrap;
  }
  .library-tools .search-field {
    flex-basis: 100%;
  }
}

.collection-dialog {
  border: 0;
  border-radius: 12px;
  padding: 0;
  width: min(700px, 94vw);
  max-width: 94vw;
  max-height: 92vh;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
}
.collection-dialog::backdrop {
  background: #29352c66;
  backdrop-filter: blur(3px);
}
.collection-manager.modal-card {
  margin: 0;
  padding: 30px;
  max-width: none;
  box-shadow: none;
}
.collection-manager h2 {
  font-size: 30px;
}
.collection-manager label {
  margin-top: 14px;
}
.collection-recipe-options {
  max-height: 205px;
  overflow-y: auto;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fffefa;
}
.collection-manager .collection-recipe-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 10px 0;
  line-height: 1.5;
  border-bottom: 1px solid #eeeee6;
}
.collection-manager .collection-recipe-option:last-child {
  border-bottom: 0;
}
.collection-manager .collection-recipe-option input {
  width: 17px;
  height: 17px;
  margin: 3px 0 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--olive);
}
.collection-recipe-option small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.collection-manager-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}
.collection-notice {
  display: block;
  font-size: 0.8625rem;
  margin-top: 10px;
}
.manage-collection-control {
  margin-left: auto;
}

.cooking-progress-panel {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0;
  padding: 16px 20px;
  background: #f1f2e8;
  border-radius: 9px;
  font-size: 0.9125rem;
  line-height: 1.6;
}
.cooking-reset-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
@media (max-width: 800px) {
  .cooking-progress-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media print {
  .cooking-progress-panel {
    display: none !important;
  }
}

.notification-tools {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 25px;
}
.notification-tools > span {
  margin-right: auto;
}
.notification-list {
  display: grid;
  gap: 14px;
}
.notification-card {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 22px;
  border: 1px solid #d9ddcd;
  border-radius: 10px;
  background: #fffefa;
}
.notification-card.unread {
  border-left: 4px solid var(--olive);
  background: #f2f3e9;
}
.notification-open {
  display: block;
  text-align: left;
  font: inherit;
  color: inherit;
  line-height: 1.6;
  margin: 8px 0;
}
.notification-open:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.notification-card time,
.notifications-help {
  font-size: 0.9125rem;
  color: var(--muted);
}
.notifications-help {
  margin-top: 25px;
  line-height: 1.6;
}
.focused-community .community-tabs {
  display: none;
}
.link-import {
  margin: 10px 0 24px;
}
.editor-safety-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 15px 0 25px;
  padding: 16px 20px;
  background: #f1f2e9;
  border-radius: 10px;
}
.active-library-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 12px 0 22px;
}
.recipe-origin {
  margin: 15px 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.recipe-origin a {
  color: var(--olive);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.recipe-origin > p {
  margin-bottom: 10px;
}
.cooking-journal {
  margin: 36px 0;
  border-top: 1px solid var(--line, #deddd2);
  padding-top: 28px;
}
.journal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.journal-heading h2 {
  font-size: 28px;
  margin: 0 0 8px;
}
.journal-heading p,
.cooking-journal > p {
  font-size: 15px;
  line-height: 1.7;
}
.journal-entry {
  margin: 16px 0;
  padding: 18px;
  border: 1px solid var(--line, #deddd2);
  border-radius: 10px;
}
.journal-entry h3 {
  font-size: 17px;
  margin: 0 0 10px;
}
.journal-entry p {
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.journal-actions {
  display: flex;
  gap: 20px;
  margin-top: 14px;
}
.journal-removed {
  margin-top: 22px;
}
.journal-removed summary {
  cursor: pointer;
  font-size: 15px;
}
.cooking-journal .editor-confirmation label {
  font-size: 14px;
}
.cooking-journal .editor-confirmation textarea {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  border: 1px solid var(--line, #deddd2);
  border-radius: 6px;
  font: inherit;
  font-size: 15px;
  line-height: 1.6;
}
.journal-discard {
  padding: 14px;
  background: #f8eee7;
  margin-top: 16px;
}
.journal-discard .button {
  margin: 4px;
}
.recipe-card-body .last-cooked {
  font-size: 13px;
  color: var(--olive);
  margin: 8px 0;
}
@media print {
  .cooking-journal {
    display: none !important;
  }
}
.recipe-comparison-dialog {
  width: min(1000px, 94vw);
  overflow: hidden;
}
.recipe-comparison-card {
  box-sizing: border-box;
  padding: 28px;
  max-height: 86vh;
  overflow: auto;
}
.comparison-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.comparison-heading h2 {
  font:
    32px var(--font-serif, Georgia),
    serif;
  margin: 0 0 15px;
}
.recipe-comparison-card p {
  font-size: 15px;
  line-height: 1.7;
}
.comparison-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  font-size: 15px;
}
.comparison-toggle input {
  width: auto;
  accent-color: var(--olive);
}
.comparison-section {
  margin: 26px 0;
}
.comparison-section h3 {
  font-size: 18px;
  margin: 0 0 12px;
}
.comparison-section h3 span {
  margin-left: 10px;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.comparison-section table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
  line-height: 1.65;
}
.comparison-section th,
.comparison-section td {
  padding: 12px;
  border: 1px solid var(--line, #deddd2);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.comparison-section thead th {
  background: #f1f2e9;
}
.comparison-changed td:first-of-type,
.comparison-removed td:first-of-type {
  background: #f8eee7;
}
.comparison-changed td:last-of-type,
.comparison-added td:last-of-type {
  background: #edf2e6;
}
@media (max-width: 600px) {
  .recipe-comparison-card {
    padding: 16px;
  }
  .comparison-section th,
  .comparison-section td {
    padding: 8px;
  }
}
.active-library-filters button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--line, #deddd2);
  border-radius: 20px;
  background: #f1f2e9;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  text-align: left;
}
.active-library-filters button svg {
  flex-shrink: 0;
}
.active-library-filters .clear-library-filters {
  background: transparent;
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.library-page .empty-state > .button {
  margin: 6px;
}
.editor-safety-bar p {
  flex: 1;
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}
.editor-safety-bar .button {
  flex-shrink: 0;
}
.editor-safety-notice {
  color: var(--olive);
  line-height: 1.6;
}
.editor-confirmation {
  width: min(560px, 94vw);
}
.editor-confirmation .modal-card {
  margin: 0;
  width: 100%;
  max-width: none;
  box-shadow: none;
  max-height: 85vh;
  overflow: auto;
}
.editor-confirmation .modal-card p {
  font-size: 15px;
  line-height: 1.7;
}
.editor-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 25px;
}
.editor-confirmation ul,
.duplicate-hint ul {
  padding-left: 20px;
  line-height: 1.8;
}
.editor-confirmation li a,
.duplicate-hint li a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.duplicate-hint {
  margin: 15px 0 24px;
  padding: 18px;
  background: #f1f2e9;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.65;
}
.duplicate-hint p {
  margin: 5px 0;
}
@media (max-width: 700px) {
  .editor-safety-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
.link-import > .button {
  margin: 0 8px 8px 0;
}
.link-import-review {
  margin-top: 20px;
  padding: 24px;
  background: var(--cream, #faf8f2);
  border: 1px solid var(--border, #deddd2);
  border-radius: 12px;
}
.link-import-review > label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}
.link-import-review .paste-check {
  flex-direction: row;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.6;
}
.link-import-review .paste-check input {
  width: auto;
  margin-top: 5px;
  flex-shrink: 0;
}
.link-import-review > .button {
  margin: 20px 8px 0 0;
}
.link-import-review > p {
  line-height: 1.7;
}
@media (max-width: 700px) {
  .notification-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Optional recipe labels and clear password controls. */
.recipe-tag-fields {
  grid-column: 1 / -1;
}
.recipe-tag-fields fieldset {
  border: 0;
  padding: 0;
  margin: 20px 0;
}
.recipe-tag-fields legend {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}
.recipe-tag-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}
.recipe-tag-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
}
.recipe-tag-options input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--olive);
}
.recipe-labels {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 14px 0;
}
.recipe-labels li {
  background: var(--sage);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 13px;
}
.filter-panel {
  flex-wrap: wrap;
}
.password-field {
  display: grid;
  gap: 8px;
}
.password-input-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.password-input-row input {
  flex: 1;
  min-width: 180px;
}
.password-input-row button {
  flex-shrink: 0;
  font-size: 13px;
}
.password-field .friends-small {
  margin: 0;
  line-height: 1.6;
}

/* Everyday kitchen tools. */
.cooking-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 18px 0;
}
.screen-awake {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.kitchen-timer-dock {
  position: fixed;
  z-index: 45;
  right: 20px;
  bottom: 16px;
  width: min(460px, calc(100vw - 32px));
  max-height: 70vh;
  overflow-y: auto;
  border: 1px solid var(--line);
  background: var(--card);
  padding: 18px;
  border-radius: 10px;
  box-shadow: 0 8px 32px #35482f26;
}
.timer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.timer-heading button:first-child {
  font-weight: 600;
  font-size: 16px;
}
.kitchen-timer-dock .section-hint {
  display: block;
  line-height: 1.6;
  font-size: 13px;
  margin: 12px 0;
}
.kitchen-timer-list {
  padding: 0;
  list-style: none;
}
.kitchen-timer-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.kitchen-timer-list output {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  color: var(--olive-dark);
}
.kitchen-timer-list li > div {
  grid-column: 1 / -1;
  display: flex;
  gap: 18px;
}
.timer-form {
  display: grid;
  grid-template-columns: 1fr 80px 80px;
  gap: 10px;
  margin: 16px 0;
}
.timer-form label,
.kitchen-planning label {
  display: grid;
  gap: 8px;
  font-size: 14px;
}
.timer-form button {
  grid-column: 1 / -1;
  justify-self: start;
}
.timer-form input,
.kitchen-planning input:not([type="checkbox"]),
.kitchen-planning select {
  min-width: 0;
  width: 100%;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 5px;
  font: inherit;
}
.timer-announcement {
  color: var(--olive-dark);
  font-weight: 600;
}
.kitchen-planning {
  max-width: 1200px;
  margin: auto;
  padding: 46px;
}
.kitchen-planning h1 {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 400;
  margin: 12px 0;
}
.kitchen-planning p {
  line-height: 1.7;
}
.kitchen-nav,
.kitchen-save-bar,
.week-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 24px 0;
}
.kitchen-save-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--cream);
  border-block: 1px solid var(--line);
  padding: 14px 0;
}
.kitchen-save-bar > span {
  margin-right: auto;
}
.kitchen-workspace {
  border: 0;
  padding: 0;
  min-width: 0;
}
.kitchen-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  margin-bottom: 24px;
}
.kitchen-card h2 {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
  margin: 0 0 14px;
}
.grocery-recipe-picker {
  max-height: 240px;
  overflow-y: auto;
  margin: 18px 0;
}
.grocery-recipe-picker label {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 8px 0;
  gap: 10px;
}
.kitchen-planning input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--olive);
}
.kitchen-inline-form,
.meal-entry-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px;
}
.kitchen-inline-form label {
  flex: 1;
  min-width: 180px;
}
.meal-entry-form label {
  flex: 1;
  min-width: 170px;
}
.grocery-items {
  list-style: none;
  padding: 0;
}
.grocery-items li {
  display: flex;
  align-items: start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.grocery-items li > input {
  margin-top: 12px;
}
.grocery-items li > div {
  flex: 1;
  min-width: 0;
}
.grocery-items small {
  display: block;
  margin-top: 6px;
  line-height: 1.5;
}
.grocery-checked {
  text-decoration: line-through;
}
.meal-week {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.meal-week .kitchen-card {
  margin: 0;
}
.meal-week ul {
  list-style: none;
  padding: 0;
}
.meal-week li {
  display: grid;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.meal-week li button {
  justify-self: start;
}
.meal-week + button {
  margin-top: 24px;
}
.ingredient-import-review {
  max-height: 40vh;
  overflow-y: auto;
  line-height: 1.8;
  padding-left: 22px;
}
.recipe-data-export {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 20px;
}
.recipe-data-export h2 {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
}
.recipe-data-export p {
  line-height: 1.7;
  max-width: 750px;
}
@media (max-width: 650px) {
  .kitchen-planning {
    padding: 24px 18px;
  }
  .kitchen-planning h1 {
    font-size: 32px;
  }
  .timer-form {
    grid-template-columns: 1fr 65px 65px;
  }
  .kitchen-card {
    padding: 18px;
  }
}
@media print {
  .kitchen-timer-dock,
  .cooking-tools,
  .no-print,
  .recipe-data-export {
    display: none !important;
  }
}

/* Recipe checkup and CookShares editorial editions. */
.recipe-checkup,
.weekly-page {
  max-width: 1060px;
  margin: 0 auto;
  padding: 38px 50px 70px;
}
.checkup-intro {
  max-width: 760px;
  line-height: 1.8;
}
.checkup-section,
.weekly-editor,
.weekly-story,
.weekly-preference {
  margin: 28px 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.checkup-section h2,
.weekly-page h2,
.weekly-wall h2 {
  font-family: var(--serif);
  font-size: 29px;
  line-height: 1.25;
  margin-bottom: 16px;
}
.checkup-section ul {
  padding-left: 24px;
  line-height: 1.9;
}
.checkup-section li + li {
  margin-top: 10px;
}
.checkup-fix {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.checkup-fix label,
.weekly-preference label,
.weekly-review {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.7;
}
.checkup-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 18px;
}
.checkup-comparison > div {
  min-width: 0;
  padding: 16px;
  background: var(--cream);
  border-radius: 8px;
}
.checkup-comparison span {
  font-size: 11px;
  letter-spacing: 1.3px;
  color: var(--muted);
}
.checkup-comparison p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.8;
  margin-top: 10px;
}
.weekly-wall {
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 12px;
  background: var(--sage);
  margin-bottom: 24px;
}
.weekly-wall > p,
.weekly-wall-content p {
  margin: 10px 0 18px;
  line-height: 1.8;
}
.weekly-wall-content {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  margin-top: 20px;
}
.weekly-wall-content img {
  width: 100%;
  height: 165px;
  object-fit: cover;
  border-radius: 9px;
}
.weekly-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0 12px;
}
.weekly-editions article {
  display: flex;
  gap: 24px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 18px 0;
}
.weekly-editions article img {
  width: 180px;
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
}
.weekly-editions article h3 {
  font: 27px/1.3 var(--serif);
  margin: 10px 0;
}
.weekly-editions article p {
  margin-bottom: 12px;
}
.weekly-preference p,
.weekly-editor > p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin: 12px 0;
}
.weekly-editor fieldset {
  border: 0;
  padding: 0;
  margin-bottom: 20px;
}
.weekly-editor label {
  display: block;
  margin: 18px 0;
  line-height: 1.7;
}
.weekly-editor input:not([type="checkbox"]),
.weekly-editor textarea,
.weekly-editor select {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 7px;
  font: inherit;
  color: var(--ink);
}
.weekly-editor textarea {
  resize: vertical;
  line-height: 1.7;
}
.weekly-review {
  margin-top: 24px !important;
}
.weekly-story {
  line-height: 1.85;
}
.weekly-story .recipe-description {
  margin-bottom: 22px;
}
.weekly-story h3 {
  margin: 20px 0 10px;
}
.weekly-story ul {
  padding-left: 20px;
  margin-bottom: 20px;
}
.editorial-notice {
  padding: 16px;
  background: var(--sage);
  border-radius: 8px;
  margin: 18px 0;
}
.weekly-page .shared-recipe {
  padding: 0;
}
.weekly-page .recipe-header h2 {
  font-size: 40px;
  margin-top: 20px;
}
.reading-top > div {
  flex-wrap: wrap;
  justify-content: flex-end;
}
@media (max-width: 800px) {
  .recipe-checkup,
  .weekly-page {
    padding: 28px 22px 50px;
  }
  .checkup-comparison,
  .weekly-wall-content {
    grid-template-columns: 1fr;
  }
  .weekly-wall-content img {
    max-width: 420px;
    height: 220px;
  }
  .weekly-editions article {
    flex-direction: column;
  }
  .weekly-editions article img {
    width: 100%;
    height: 220px;
  }
}

.admin-page {
  max-width: 1150px;
  padding: 36px 48px 70px;
  margin: 0 auto;
}
.admin-section {
  margin: 25px 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.admin-section h2 {
  font: 30px/1.25 var(--serif);
  margin-bottom: 16px;
}
.admin-section > p {
  max-width: 800px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.admin-section label,
.admin-page dialog label {
  display: block;
  line-height: 1.7;
}
.admin-section input:not([type="checkbox"]),
.admin-section textarea,
.admin-page dialog textarea {
  display: block;
  width: 100%;
  padding: 12px;
  margin: 8px 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
}
.admin-section textarea {
  line-height: 1.65;
  resize: vertical;
}
.admin-search {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
}
.admin-search label {
  flex: 1;
}
.admin-members article {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.admin-members h3 {
  font: 25px/1.3 var(--serif);
  margin: 0 0 8px;
}
.admin-members p {
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}
.admin-member-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}
.admin-member-actions small {
  width: 100%;
  text-align: right;
  color: var(--muted);
}
.admin-nav-link {
  display: block;
  margin: 14px 22px;
  color: var(--olive);
  font-size: 14px;
}
.admin-toggle {
  margin: 20px 0;
}
.admin-event {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  line-height: 1.8;
}
.admin-event small {
  color: var(--muted);
}
@media (max-width: 800px) {
  .admin-page {
    padding: 28px 20px;
  }
  .admin-members article,
  .admin-search {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-member-actions {
    justify-content: flex-start;
  }
  .admin-member-actions small {
    text-align: left;
  }
}
.social-sidebar {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 22px 0 8px;
  padding: 20px 18px;
  border: 1px solid #d9dfce;
  border-radius: 12px;
  background: #f3f2e6;
  color: var(--olive);
  text-decoration: none;
}
.social-sidebar strong {
  font:
    24px/1.2 Georgia,
    serif;
}
.social-sidebar span {
  font-size: 14px;
  line-height: 1.5;
}
.social-sidebar b {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}
.social-page {
  max-width: 1200px;
  margin: auto;
  padding: 38px 40px 70px;
}
.social-page h1 {
  font:
    42px/1.15 Georgia,
    serif;
  margin: 12px 0 18px;
}
.social-intro {
  max-width: 650px;
  font-size: 18px;
  line-height: 1.65;
}
.social-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 1fr);
  gap: 32px;
  margin-top: 30px;
}
.social-art {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}
.social-tools {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 25px;
  background: var(--paper, #fffdf7);
}
.social-tools label {
  display: block;
  margin: 22px 0 8px;
  font-weight: 600;
}
.social-tools input,
.social-tools textarea,
.social-tools select {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid #ccd1c3;
  border-radius: 7px;
  background: #fffdf7;
  color: inherit;
  font: inherit;
  line-height: 1.5;
}
.social-tools textarea {
  resize: vertical;
}
.social-tools .button {
  margin: 12px 10px 0 0;
}
.social-downloads,
.social-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.social-page p {
  line-height: 1.7;
}
.social-controls {
  padding-top: 16px;
}
.social-welcome {
  max-width: 680px;
}
.social-welcome .social-art {
  margin: 28px 0;
}
.social-consent {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.6;
}
.social-consent input {
  width: 18px !important;
  flex: 0 0 18px;
  margin-top: 4px;
}
.social-welcome .live-login {
  max-width: 460px;
  margin: 25px auto;
  text-align: left;
}
.social-welcome .social-controls {
  justify-content: center;
}
@media (max-width: 1000px) {
  .social-layout {
    grid-template-columns: 1fr;
  }
  .social-page {
    padding: 28px 24px;
  }
}
@media (max-width: 600px) {
  .social-page h1 {
    font-size: 33px;
  }
  .social-page {
    padding: 24px 16px;
  }
  .social-tools {
    padding: 20px;
  }
  .social-sidebar {
    margin: 12px 0;
  }
  .social-downloads .button {
    font-size: 14px;
  }
}
@media (min-width: 651px) {
  .sidebar {
    overflow-y: auto;
    overflow-x: hidden;
  }
  .sidebar > * {
    flex-shrink: 0;
  }
}
@media (max-width: 650px) {
  .social-sidebar {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    margin: 8px 0 0;
  }
  .social-sidebar strong {
    font-size: 16px;
  }
  .social-sidebar strong br,
  .social-sidebar > span {
    display: none;
  }
  .social-sidebar b {
    margin-left: auto;
    font-size: 12px;
  }
}
@media (max-width: 650px) {
  .sidebar nav {
    overflow-x: auto;
    justify-content: flex-start;
    max-width: 100%;
    padding-bottom: 6px;
  }
  .sidebar .nav-item {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}
/* Quiet recipe box and personal cookbook presentation. */
.boutique-library .page-heading {
  margin-bottom: 34px;
}
.boutique-library .library-tools {
  gap: 16px;
  margin-bottom: 22px;
}
.boutique-library .search-field {
  flex: 1;
  max-width: none;
  min-height: 52px;
  background: #fffdf8;
}
.boutique-library .filter-panel {
  align-items: end;
  gap: 20px;
  padding: 24px;
  margin: 18px 0 28px;
  border-radius: 12px;
  background: #f1f1e7;
}
.boutique-library .filter-panel .view-toggle {
  align-self: end;
}
.boutique-library .recipe-card {
  box-shadow: none;
  border: 1px solid #e8e6dc;
  border-radius: 12px;
}
.boutique-library .recipe-card-body h2 {
  line-height: 1.25;
}
.boutique-library .recipe-card-body > p:not(.last-cooked) {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.library-keep-tools {
  margin-top: 32px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  color: var(--muted);
}
.library-keep-tools > summary {
  cursor: pointer;
  font-size: 14px;
}
.library-keep-tools .recipe-data-export {
  margin-top: 18px;
}
.recipe-tools-menu > summary {
  cursor: pointer;
  color: var(--olive);
  font-size: 14px;
  padding: 12px 5px;
}
.recipe-tools-menu {
  position: relative;
}
.recipe-tools-content {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 12;
  min-width: 260px;
  max-width: min(400px, 80vw);
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px #26352a15;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.recipe-tools-content .button {
  justify-content: flex-start;
  width: 100%;
}
.recipe-tools-content .recipe-trash-action {
  position: static;
  margin: 0;
}
.recipe-tools-content .trash-confirm {
  max-width: 100%;
}
.recipe-sharing-details {
  margin: 5px 0 24px;
  color: var(--olive);
}
.recipe-sharing-details > summary {
  cursor: pointer;
  font-size: 14px;
  padding: 8px 0;
}
.recipe-sharing-details .bookmark-source {
  margin-top: 12px;
}
.recipe-jump {
  display: inline-block;
  margin: 22px 0 0;
  color: var(--olive);
  font-size: 14px;
  text-underline-offset: 4px;
}
.boutique-recipe .recipe-header {
  max-width: 820px;
}
.boutique-recipe .recipe-header h1 {
  line-height: 1.14;
  letter-spacing: -1.8px;
}
.boutique-recipe .recipe-description {
  font-size: 18px;
  line-height: 1.85;
  max-width: 720px;
}
.boutique-recipe .recipe-hero {
  border-radius: 14px;
}
.boutique-recipe .recipe-facts {
  margin-top: 12px;
}
.boutique-recipe .reading-ingredients {
  background: #f3f2e9;
  padding: 26px;
  border: 1px solid #e3e5d7;
  border-radius: 12px;
  align-self: start;
}
.boutique-recipe .reading-directions li > p {
  font-size: 18px;
  line-height: 1.85;
}
.boutique-recipe .ingredient-checklist label {
  font-size: 17px;
  line-height: 1.8;
}
.boutique-recipe .recipe-content {
  align-items: start;
  gap: 48px;
  scroll-margin-top: 30px;
}
.cook-mode .recipe-tools-menu {
  display: none;
}
.cookbook-page {
  max-width: 1280px;
  padding: 50px 50px 60px;
  margin: auto;
}
.cookbook-page .page-heading > div {
  max-width: 660px;
}
.cookbook-shelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.cookbook-cover {
  display: flex;
  flex-direction: column;
  color: var(--ink);
  text-decoration: none;
  border-radius: 4px 14px 14px 4px;
  overflow: hidden;
  box-shadow:
    inset 6px 0 #0000000a,
    0 5px 15px #28352b0a;
  border: 1px solid #dcded0;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.cookbook-cover:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 24px #28352b15;
}
.cookbook-cover.sage,
.cookbook-title-page.sage {
  background: #e6eadc;
}
.cookbook-cover.clay,
.cookbook-title-page.clay {
  background: #f2e3d7;
}
.cookbook-cover.sand,
.cookbook-title-page.sand {
  background: #f1eadc;
}
.cookbook-cover-art {
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--olive);
}
.cookbook-cover-art > .food-photo {
  width: 100%;
  height: 100%;
}
.cookbook-cover-art .food-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cookbook-cover-copy {
  padding: 26px 26px 25px 30px;
  border-left: 6px solid #ffffff40;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.cookbook-cover-copy h2 {
  font: 29px/1.2 var(--serif);
  margin: 14px 0 18px;
  overflow-wrap: anywhere;
}
.cookbook-cover-copy > p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cookbook-cover-copy > span:last-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  font-size: 13px;
  color: #56634e;
}
.cookbook-create {
  min-height: 360px;
  padding: 30px;
  background: transparent;
  border: 1px dashed #b9c2ab;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: var(--olive);
  text-align: center;
  cursor: pointer;
}
.cookbook-create strong {
  font: 26px/1.3 var(--serif);
}
.cookbook-create span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.cookbook-footnote {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 35px;
}
.cookbook-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 35px;
}
.cookbook-toolbar > div {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cookbook-title-page {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border: 1px solid #dde0d1;
  border-radius: 4px 16px 16px 4px;
  overflow: hidden;
}
.cookbook-title-copy {
  padding: 48px 38px;
  border-left: 8px solid #ffffff55;
}
.cookbook-title-copy h1 {
  font: clamp(35px, 3.8vw, 54px)/1.13 var(--serif);
  letter-spacing: -1px;
  margin: 22px 0;
  overflow-wrap: anywhere;
}
.cookbook-introduction {
  font-size: 18px;
  line-height: 1.8;
  white-space: pre-line;
  overflow-wrap: anywhere;
  margin: 22px 0 30px;
}
.cookbook-title-copy > span {
  font-size: 13px;
  color: var(--muted);
}
.cookbook-title-art {
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--olive);
  background: #ffffff20;
}
.cookbook-title-art > .food-photo {
  height: 100%;
  width: 100%;
  aspect-ratio: auto;
}
.cookbook-title-art .food-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cookbook-contents {
  margin-top: 44px;
}
.cookbook-contents .section-title h2 {
  font: 30px/1.2 var(--serif);
}
.cookbook-contents .section-title > span {
  color: var(--muted);
  font-size: 13px;
}
.cookbook-contents > ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cookbook-contents > ol > li {
  border-top: 1px solid var(--line);
}
.cookbook-contents > ol > li:last-child {
  border-bottom: 1px solid var(--line);
}
.cookbook-contents li > a {
  display: flex;
  gap: 22px;
  align-items: center;
  padding: 23px 4px;
  color: inherit;
  text-decoration: none;
}
.cookbook-contents li > a:hover h3 {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.cookbook-recipe-number {
  font: 24px var(--serif);
  color: #7b856e;
  min-width: 30px;
}
.cookbook-recipe-thumb {
  width: 95px;
  height: 78px;
  flex: 0 0 95px;
  overflow: hidden;
  border-radius: 7px;
}
.cookbook-recipe-thumb > .food-art,
.cookbook-recipe-thumb > .food-photo {
  height: 100%;
  width: 100%;
  aspect-ratio: auto;
}
.cookbook-recipe-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cookbook-contents h3 {
  font: 25px/1.3 var(--serif);
  overflow-wrap: anywhere;
}
.cookbook-contents li p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}
.cookbook-contents li > a > svg {
  margin-left: auto;
  flex-shrink: 0;
}
.cookbook-print-recipes {
  display: none;
}
.cookbook-management {
  max-height: 85vh;
  overflow-y: auto;
  width: min(760px, 92vw);
}
.cookbook-management fieldset {
  border: 0;
  padding: 0;
  min-width: 0;
}
.cookbook-management textarea,
.cookbook-management select {
  width: 100%;
  box-sizing: border-box;
  background: #fffdf7;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 7px;
  font: inherit;
  line-height: 1.6;
}
.cookbook-management h3 {
  font: 24px var(--serif);
  margin-top: 28px;
}
.cookbook-cover-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.cookbook-order {
  padding: 0;
  list-style: none;
  max-height: 250px;
  overflow-y: auto;
  border-top: 1px solid var(--line);
  margin-top: 14px;
}
.cookbook-order li {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.cookbook-order li > span {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.cookbook-order li > button {
  flex-shrink: 0;
}
.cookbook-management .optional {
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 1100px) {
  .cookbook-shelf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cookbook-page {
    padding: 35px 30px;
  }
  .cookbook-title-copy {
    padding: 35px 25px;
  }
  .boutique-recipe .recipe-content {
    gap: 30px;
  }
}
@media (max-width: 750px) {
  .cookbook-title-page {
    grid-template-columns: 1fr;
  }
  .cookbook-title-art {
    min-height: 0;
    height: 250px;
  }
  .cookbook-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .cookbook-toolbar > div {
    justify-content: flex-start;
  }
  .recipe-primary-actions {
    flex-wrap: wrap;
  }
  .recipe-tools-content {
    right: 0;
  }
  .boutique-recipe .reading-ingredients {
    padding: 22px;
  }
}
@media (max-width: 550px) {
  .cookbook-page {
    padding: 30px 20px;
  }
  .cookbook-shelf {
    grid-template-columns: 1fr;
  }
  .cookbook-cover-fields {
    grid-template-columns: 1fr;
  }
  .cookbook-contents li > a {
    gap: 12px;
  }
  .cookbook-recipe-thumb {
    width: 65px;
    height: 65px;
    flex-basis: 65px;
  }
  .cookbook-contents h3 {
    font-size: 22px;
  }
  .cookbook-recipe-number {
    font-size: 20px;
    min-width: 23px;
  }
  .boutique-library .library-tools {
    flex-wrap: wrap;
  }
  .boutique-library .search-field {
    flex-basis: 100%;
    min-width: 0;
  }
  .boutique-recipe .recipe-primary-actions {
    gap: 8px;
  }
}
@media print {
  .cookbook-reading {
    padding: 0;
    max-width: none;
  }
  .cookbook-reading .no-print {
    display: none !important;
  }
  .cookbook-print-recipes {
    display: block !important;
  }
  .cookbook-title-page {
    display: block;
    border: 0;
    border-radius: 0;
    break-after: page;
    background: white !important;
  }
  .cookbook-title-copy {
    border: 0;
    padding: 25mm 0 12mm;
  }
  .cookbook-title-copy h1 {
    font-size: 36pt;
  }
  .cookbook-title-copy .eyebrow {
    font-size: 10pt;
  }
  .cookbook-title-art {
    height: 70mm;
    min-height: 0;
  }
  .cookbook-title-art .food-photo {
    height: 100%;
    max-width: 130mm;
  }
  .cookbook-introduction {
    font-size: 13pt;
    line-height: 1.7;
  }
  .cookbook-print-recipe {
    break-before: page;
    font-size: 11pt;
    line-height: 1.65;
  }
  .cookbook-print-recipe h2 {
    font: 28pt/1.2 var(--serif);
    margin: 8mm 0;
  }
  .cookbook-print-recipe h3 {
    font: 18pt var(--serif);
    margin: 7mm 0 3mm;
    break-after: avoid;
  }
  .cookbook-print-recipe li {
    margin-bottom: 3mm;
    white-space: pre-line;
  }
  .cookbook-print-recipe p {
    white-space: pre-line;
    overflow-wrap: anywhere;
  }
  .cookbook-print-recipe ul,
  .cookbook-print-recipe ol {
    padding-left: 7mm;
  }
  .cookbook-print-footer {
    border-top: 1px solid #bbb;
    margin-top: 12mm;
    padding-top: 3mm;
    font-size: 9pt;
    color: #555;
  }
  .boutique-recipe .reading-ingredients {
    padding: 0;
    background: white;
    border: 0;
  }
  .boutique-recipe .recipe-description {
    font-size: 11pt;
  }
  .boutique-recipe .reading-directions li > p,
  .boutique-recipe .ingredient-checklist label {
    font-size: 10pt;
  }
  .boutique-recipe .recipe-content {
    gap: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cookbook-cover {
    transition: none;
  }
  .cookbook-cover:hover {
    transform: none;
  }
}
.box-settings {
  margin-top: 16px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.box-settings > .text-button {
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.box-settings > span {
  font-size: 13px;
  color: var(--muted);
}
.box-settings-form {
  max-height: 85vh;
  overflow: auto;
  width: min(570px, 90vw);
}
.box-settings-form fieldset {
  border: 0;
  padding: 0;
  min-width: 0;
}
.box-settings-form textarea,
.box-settings-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fffdf7;
  padding: 12px;
  font: inherit;
  line-height: 1.6;
}
.box-settings-form .optional {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.box-style-linen {
  background: #e8ecdf;
}
.box-style-terracotta {
  background: #f2e4d9;
}
.box-style-paper {
  background: #f4efe3;
}
.box-style-preview {
  margin-top: 24px;
  padding: 24px;
  border-radius: 10px;
  border: 1px solid #dce0d2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--olive);
}
.box-style-preview strong {
  font: 28px/1.25 var(--serif);
  overflow-wrap: anywhere;
}
.box-style-preview p {
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.box-private-hint {
  font-size: 14px !important;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 20px;
}
.personal-box-heading {
  padding: 30px;
  border: 1px solid #dde0d4;
  border-radius: 12px;
  align-items: flex-start;
}
.personal-box-heading h1 {
  overflow-wrap: anywhere;
}
.personal-box-heading > div {
  min-width: 0;
  flex: 1;
}
.personal-box-heading > div > p {
  white-space: pre-line;
  overflow-wrap: anywhere;
  line-height: 1.75;
}
.personal-box-heading > .button {
  flex-shrink: 0;
}
.editor-story-field {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.editor-story-field > summary {
  cursor: pointer;
  color: var(--olive);
  font: 23px/1.4 var(--serif);
}
.editor-story-field > summary .optional {
  font: 12px var(--sans, Arial, sans-serif);
  margin-left: 8px;
}
.editor-story-field > label {
  margin-top: 22px;
}
.recipe-keepsake {
  margin: 25px 0;
  padding: 22px 26px;
  border-left: 3px solid #b5c2a0;
  background: #f3f1e7;
  border-radius: 0 10px 10px 0;
  max-width: 850px;
}
.recipe-keepsake > summary {
  font: 24px/1.4 var(--serif);
  cursor: pointer;
  color: var(--olive);
}
.recipe-keepsake > div {
  padding-top: 20px;
}
.recipe-keepsake .keepsake-author {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 15px;
}
.recipe-keepsake .recipe-description {
  font-size: 17px;
  line-height: 1.85;
}
.cook-mode .recipe-keepsake {
  display: none;
}
@media (max-width: 650px) {
  .personal-box-heading {
    padding: 22px;
    gap: 20px;
  }
  .personal-box-heading h1 {
    font-size: 34px;
  }
  .recipe-keepsake {
    padding: 20px;
  }
  .box-settings-form {
    width: min(570px, 92vw);
  }
}
.recipe-story-print {
  display: none;
}
@media print {
  .recipe-keepsake {
    display: none !important;
  }
  .recipe-story-print {
    display: block !important;
    margin: 20px 0;
    break-inside: avoid;
  }
  .recipe-story-print h2 {
    font: 16pt var(--serif);
    margin-bottom: 10px;
  }
  .recipe-story-print > p {
    font-size: 10pt;
    color: #555;
  }
  .recipe-story-print .recipe-description {
    font-size: 11pt;
    line-height: 1.7;
  }
}
/* The kitchen editor is one sheet with a single scrolling surface. */
.collection-dialog:has(.box-settings-form) {
  padding: 0;
  width: min(620px, 94vw);
  max-width: 94vw;
  max-height: none;
  overflow: visible;
  background: transparent;
  border-radius: 12px;
}
.box-settings-form {
  margin: 0;
  width: 100%;
  max-height: 88vh;
  padding: 32px;
  box-sizing: border-box;
}
@media (max-width: 650px) {
  .box-settings-form {
    width: 100%;
    padding: 24px;
  }
}
.share-note-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.share-note-notice {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--olive);
  font-size: 13px;
}
.collection-dialog.share-note-dialog {
  padding: 0;
  background: transparent;
  width: min(640px, 94vw);
  max-width: 94vw;
  max-height: none;
  overflow: visible;
  border-radius: 12px;
}
.share-note-form {
  margin: 0;
  width: 100%;
  max-height: 88vh;
  overflow: auto;
  box-sizing: border-box;
  padding: 32px;
}
.share-note-form fieldset {
  border: 0;
  min-width: 0;
  padding: 0;
}
.share-note-form textarea,
.share-note-form select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  background: #fffdf8;
  border-radius: 7px;
  padding: 12px;
  font: inherit;
  line-height: 1.6;
}
.share-note-form textarea {
  resize: vertical;
}
.share-note-form .optional {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.share-note-circles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.share-note-circles > label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  margin: 0;
  font-size: 14px;
}
.personal-recipe-card-preview {
  margin-top: 24px;
  border: 1px solid #dce0d2;
  border-radius: 12px;
  overflow: hidden;
  background: #fffdf7;
}
.personal-recipe-card-note {
  background: #eef0e5;
  padding: 22px;
}
.personal-recipe-card-note p {
  white-space: pre-line;
  overflow-wrap: anywhere;
  font: 20px/1.6 var(--serif);
  margin-top: 15px;
}
.personal-recipe-card-preview > img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}
.personal-recipe-card-preview > div:last-child {
  padding: 22px;
}
.personal-recipe-card-preview h3 {
  font: 26px/1.25 var(--serif);
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}
.personal-recipe-card-preview > div > span:last-child {
  font-size: 13px;
  color: var(--olive);
}
.share-note-consent {
  padding: 18px;
  margin-top: 22px;
  border: 1px solid #c4cdb8;
  background: #f0f2e8;
  border-radius: 9px;
}
.share-note-consent p {
  font-size: 14px;
  line-height: 1.7;
}
.share-note-consent label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 0;
}
.share-note-consent input {
  margin-top: 5px;
  flex: 0 0 17px;
  width: 17px;
}
.share-note-form .friends-small {
  font-size: 13px;
  line-height: 1.7;
  margin-top: 18px;
}
.personal-wall-note {
  background: #f1f1e6;
  border-left: 3px solid #b7c3a4;
  padding: 19px 22px;
  margin: 18px 0;
  border-radius: 0 9px 9px 0;
}
.personal-wall-note .wall-post-text {
  font: 21px/1.7 var(--serif);
  margin: 12px 0 0;
  overflow-wrap: anywhere;
}
.boutique-profile .kitchen-profile-heading {
  background: #e8ecdf;
  border: 1px solid #dbe0d0;
  border-radius: 14px;
  padding: 35px;
  gap: 28px;
  align-items: center;
}
.boutique-profile .kitchen-profile-heading h1 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -1px;
}
.boutique-profile .kitchen-portrait {
  width: 120px;
  height: 120px;
  border: 5px solid #fffdf6;
  box-shadow: 0 3px 12px #29352a12;
  flex-shrink: 0;
}
.boutique-profile .kitchen-profile-heading > div:last-child {
  min-width: 0;
}
.boutique-profile .kitchen-profile-heading p {
  line-height: 1.7;
  align-items: flex-start;
  max-width: 550px;
}
.boutique-profile .kitchen-profile-heading p svg {
  flex-shrink: 0;
  margin-top: 4px;
}
.profile-welcome-note {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  margin: 8px 0 28px;
  color: var(--olive);
}
.profile-welcome-note > svg {
  flex-shrink: 0;
}
.profile-welcome-note strong {
  font: 23px/1.4 var(--serif);
}
.profile-welcome-note p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 620px;
  margin-top: 7px;
}
.profile-welcome-note > a {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 14px;
}
.boutique-profile .profile-story-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 35px 0 45px;
}
.profile-story-panels > section {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fffdf7;
  min-width: 0;
}
.profile-story-panels > section > svg {
  color: var(--olive);
  margin-bottom: 18px;
}
.profile-story-panels h2 {
  font: 26px/1.25 var(--serif);
  margin: 0 0 17px;
}
.profile-story-panels p {
  font-size: 16px;
  line-height: 1.8;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.profile-story-panels .text-button {
  font-size: 13px;
  line-height: 1.6;
  margin-top: 20px;
  text-align: left;
}
.boutique-profile .profile-recipes > h2 {
  font: 34px/1.25 var(--serif);
}
.boutique-profile .profile-recipes > p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  margin: 12px 0 28px;
}
.profile-recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}
.profile-recipe-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: inherit;
  text-decoration: none;
  background: #fffdf8;
}
.profile-recipe-card > img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.profile-recipe-card > div {
  padding: 23px;
}
.profile-recipe-card h3 {
  font: 26px/1.25 var(--serif);
  margin: 13px 0;
  overflow-wrap: anywhere;
}
.profile-recipe-card p {
  font-size: 15px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.profile-recipe-open {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--olive);
  margin-top: 20px;
}
.profile-recipe-card:hover h3 {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.profile-show-more {
  margin-top: 28px;
}
.boutique-profile .kitchen-profile-form {
  max-width: 850px;
  background: #fffdf7;
}
.boutique-profile .kitchen-profile-form textarea {
  line-height: 1.75;
}
.profile-story-panels .profile-cuisines {
  gap: 9px;
}
.profile-story-panels .profile-cuisines li {
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
@media (max-width: 1100px) {
  .boutique-profile .profile-story-panels {
    grid-template-columns: 1fr 1fr;
  }
  .profile-recipe-grid {
    grid-template-columns: 1fr 1fr;
  }
  .profile-welcome-note {
    flex-wrap: wrap;
  }
  .profile-welcome-note > a {
    margin-left: 40px;
  }
}
@media (max-width: 700px) {
  .boutique-profile .kitchen-profile-heading {
    padding: 25px;
    flex-direction: column;
    align-items: flex-start;
  }
  .boutique-profile .profile-story-panels,
  .profile-recipe-grid {
    grid-template-columns: 1fr;
  }
  .share-note-form {
    padding: 24px;
  }
  .share-note-control {
    max-width: 100%;
  }
  .profile-story-panels > section {
    padding: 23px;
  }
}
/* Private cooking memories, kept quiet beside the recipe box. */
.cooking-history {
  margin: 0 0 24px;
  border-block: 1px solid var(--line, #e3e3d8);
}
.cooking-history > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 17px 4px;
  color: var(--olive, #4c5d40);
  font-weight: 600;
}
.cooking-history > summary::after {
  content: "+";
  margin-left: auto;
  font-size: 20px;
  font-weight: 400;
}
.cooking-history[open] > summary::after {
  content: "−";
}
.history-summary-date {
  font-size: 13px;
  color: #727569;
  font-weight: 400;
}
.cooking-history-body {
  padding: 0 4px 20px;
}
.history-privacy {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #727569;
  font-size: 14px;
}
.cooking-history ul {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.cooking-history li {
  padding: 20px;
  background: #f0f1e9;
  border-radius: 12px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.cooking-history li a {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 20px;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.cooking-history li p {
  font-size: 14px;
  line-height: 1.65;
  margin: 10px 0 0;
}
.history-next-time {
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.history-help {
  color: #727569;
  font-size: 14px;
  line-height: 1.7;
  max-width: 760px;
}
@media (max-width: 700px) {
  .history-summary-date {
    display: none;
  }
  .cooking-history ul {
    grid-template-columns: 1fr;
  }
  .history-privacy {
    align-items: flex-start;
  }
  .history-privacy svg {
    flex-shrink: 0;
    margin-top: 3px;
  }
}

/* A short, optional welcome for invited members. */
.member-welcome {
  max-width: 1100px;
  margin: 0 auto;
}
.member-welcome-heading {
  padding: 30px 0 36px;
  max-width: 800px;
}
.member-welcome-heading h1 {
  font: 400 clamp(36px, 4vw, 56px)/1.15 var(--serif);
  margin: 18px 0;
  letter-spacing: -1.5px;
}
.member-welcome-heading > p {
  color: var(--muted);
  line-height: 1.8;
  max-width: 650px;
}
.welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.welcome-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.welcome-step {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 16px;
  padding: 28px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.welcome-step > svg {
  color: var(--olive);
  margin-bottom: 24px;
}
.welcome-step .eyebrow {
  font-size: 10px;
}
.welcome-step h2 {
  font: 400 28px/1.2 var(--serif);
  letter-spacing: -0.6px;
  margin: 14px 0 18px;
}
.welcome-step p,
.welcome-step li {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
}
.welcome-step > ul:not(.welcome-connections) {
  padding-left: 20px;
  margin-block: 18px;
}
.welcome-step > ul:not(.welcome-connections) li {
  margin: 10px 0;
}
.welcome-step .text-button {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 18px 0 0;
  text-align: left;
  line-height: 1.5;
}
.welcome-progress {
  background: var(--sage);
  padding: 14px;
  border-radius: 9px;
}
.welcome-connections {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.welcome-connections li + li {
  margin-top: 12px;
}
.welcome-connections a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  color: var(--ink);
}
.welcome-connections a > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.welcome-connections small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.welcome-initials {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--sage);
  color: var(--olive);
}
.welcome-privacy {
  display: flex;
  gap: 20px;
  padding: 30px;
  background: var(--sage);
  border-radius: 14px;
  margin-top: 28px;
}
.welcome-privacy > svg {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--olive);
}
.welcome-privacy h2 {
  margin: 0 0 10px;
  font: 400 25px/1.3 var(--serif);
}
.welcome-privacy p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
}
.welcome-footnote {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  margin: 24px 0;
}
.library-welcome-link {
  font-size: 14px;
  margin: 24px 0 16px;
  color: var(--muted);
}
.library-welcome-link a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (max-width: 1050px) {
  .welcome-grid {
    grid-template-columns: 1fr;
  }
  .welcome-step {
    padding: 26px;
  }
}
@media (max-width: 700px) {
  .member-welcome-heading {
    padding-top: 12px;
  }
  .welcome-privacy {
    padding: 22px;
    gap: 12px;
  }
  .welcome-actions .button {
    width: 100%;
    justify-content: center;
  }
}

#member-welcome-title {
  outline: none;
}

.welcome-promise {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  color: var(--olive);
}
.about-cookshares section {
  margin-top: 40px;
}
.about-cookshares section h2 {
  font: 400 27px/1.3 var(--serif);
  color: var(--ink);
  margin-bottom: 12px;
}
.about-cookshares .about-closing {
  font-family: var(--serif);
  color: var(--olive);
  font-size: 24px;
  line-height: 1.6;
  border-top: 1px solid var(--line);
  padding-top: 32px;
  margin-top: 40px;
}
.about-guide-link {
  display: inline-block;
  margin: 24px 0 0 22px;
  color: var(--olive);
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (max-width: 480px) {
  .welcome-promise {
    font-size: 18px;
  }
  .about-guide-link {
    display: block;
    margin-left: 0;
  }
}

.learn-header {
  max-width: 1120px;
  padding: 32px 32px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.learn-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: -1px;
  color: var(--olive-dark);
}
.learn-header nav {
  display: flex;
  gap: 28px;
  font-size: 13px;
}
.learn-header a:hover,
.learn-back:hover {
  color: var(--clay);
}
.learn-library {
  max-width: 1060px;
  padding: 72px 32px 0;
  margin: auto;
}
.learn-intro {
  max-width: 660px;
  margin-bottom: 72px;
}
.learn-eyebrow {
  color: var(--olive);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  line-height: 1.8;
}
.learn-intro h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 62px);
  letter-spacing: -1.6px;
  line-height: 1.12;
  margin: 22px 0;
}
.learn-intro > p:last-child {
  max-width: 540px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--muted);
}
.learn-section-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}
.learn-section-label h2 {
  font-family: var(--serif);
  font-size: 25px;
}
.learn-section-label > span {
  font-size: 12px;
  color: var(--muted);
}
.learn-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.learn-card {
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  transition: border-color 0.15s;
}
.learn-card:hover {
  border-color: var(--olive);
}
.learn-featured {
  background: var(--sage);
}
.learn-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--olive);
  font-size: 11px;
  letter-spacing: 0.5px;
}
.learn-number {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--olive);
  opacity: 0.65;
}
.learn-card h2 {
  font-family: var(--serif);
  font-size: 29px;
  line-height: 1.25;
  margin: 24px 0 16px;
  max-width: 370px;
}
.learn-card > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 32px;
}
.learn-card-bottom {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  color: var(--olive);
}
.learn-card-bottom > span:first-child {
  color: var(--muted);
}
.learn-closing {
  text-align: center;
  padding: 80px 12px;
}
.learn-closing p {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.5;
  margin-bottom: 12px;
}
.learn-closing span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.learn-footer {
  max-width: 1060px;
  border-top: 1px solid var(--line);
  padding: 26px 0 40px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 11px;
}
.learn-article {
  max-width: 740px;
  padding: 55px 32px 70px;
  margin: auto;
}
.learn-back {
  display: inline-block;
  color: var(--olive);
  font-size: 12px;
  margin-bottom: 44px;
}
.article-heading h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.13;
  letter-spacing: -1.2px;
  margin: 20px 0;
}
.article-deck {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}
.article-intro {
  font-size: 19px;
  line-height: 1.85;
  margin-top: 34px;
}
.article-contents {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  margin: 36px 0 44px;
}
.article-contents strong {
  font-size: 12px;
  font-weight: 500;
}
.article-contents ol {
  margin-bottom: 0;
  padding-left: 19px;
  font-size: 13px;
  line-height: 2;
  color: var(--olive);
}
.article-contents a:hover {
  text-decoration: underline;
}
.article-section {
  margin-bottom: 34px;
  scroll-margin-top: 24px;
}
.article-section h2,
.article-takeaway h2,
.learn-related h2 {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.3;
  margin-bottom: 16px;
}
.article-section p,
.article-takeaway p {
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink);
}
.article-practice {
  background: var(--sage);
  padding: 28px;
  border-radius: 6px;
  margin: 44px 0;
}
.article-practice > p:last-child {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.8;
}
.article-takeaway {
  margin-bottom: 40px;
}
.article-sources {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  margin-top: 30px;
  font-size: 12px;
  color: var(--muted);
}
.article-sources h2 {
  font-size: 13px;
}
.article-sources ul {
  padding-left: 18px;
  line-height: 2;
}
.article-sources a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.learn-related {
  border-top: 1px solid var(--line);
  padding-top: 35px;
  margin: 35px 0;
}
.learn-related > a {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--olive);
  line-height: 1.6;
}
@media (max-width: 650px) {
  .learn-header {
    padding: 24px;
    align-items: flex-start;
  }
  .learn-brand {
    font-size: 23px;
  }
  .learn-brand svg {
    width: 29px;
    height: 32px;
  }
  .learn-header nav {
    flex-direction: column;
    gap: 10px;
    font-size: 11px;
    text-align: right;
  }
  .learn-library {
    padding: 42px 24px 0;
  }
  .learn-intro {
    margin-bottom: 48px;
  }
  .learn-grid {
    grid-template-columns: 1fr;
  }
  .learn-section-label {
    display: block;
  }
  .learn-section-label > span {
    display: block;
    margin-top: 10px;
  }
  .learn-card {
    padding: 25px;
  }
  .learn-footer {
    margin: 0 24px;
  }
  .learn-article {
    padding: 35px 24px;
  }
}
