/* Mossgreen Archive 0.4.0 */
body.post-type-archive-mg_snap #sidebar,
body.post-type-archive-mg_food #sidebar,
body.post-type-archive-mg_snap .sidebar,
body.post-type-archive-mg_food .sidebar {display:none!important;}
body.post-type-archive-mg_snap #content-in,
body.post-type-archive-mg_food #content-in,
body.post-type-archive-mg_snap .content-in,
body.post-type-archive-mg_food .content-in {display:block!important;max-width:1180px!important;width:100%!important;}
body.post-type-archive-mg_snap #main,
body.post-type-archive-mg_food #main {float:none!important;width:100%!important;max-width:none!important;}
body.post-type-archive-mg_snap .breadcrumb,
body.post-type-archive-mg_food .breadcrumb {display:none!important;}

.mga-page-shell{background:#fff;}
.mga-main{float:none!important;width:100%!important;margin:0 auto!important;padding:0 34px 96px!important;background:#fff!important;box-shadow:none!important;}
.mga-archive{max-width:1120px;margin:0 auto;}
.mga-archive-header{padding:64px 0 34px;}
.mga-kicker{margin:0 0 8px;font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:#85837b;}
.mga-archive-header h1{margin:0;font-size:clamp(44px,7vw,76px);line-height:1;font-weight:500;letter-spacing:.035em;}
.mga-subtitle{margin:16px 0 0;color:#66645e;font-size:15px;}

.mga-month-nav{display:grid;grid-template-columns:56px 1fr 56px;align-items:center;border-top:1px solid #deddd7;border-bottom:1px solid #deddd7;padding:13px 0;margin:16px 0 24px;}
.mga-month-arrow{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;text-decoration:none!important;font-size:21px;color:#222!important;}
.mga-month-arrow:hover{background:#f3f2ed;}
.mga-month-title{text-align:center;}
.mga-month-title span{display:block;font-size:18px;letter-spacing:.14em;}
.mga-month-title strong{display:block;font-size:11px;font-weight:500;color:#77756f;margin-top:4px;letter-spacing:.06em;}

.mga-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;}
.mga-weekday{text-align:center;font-size:10px;letter-spacing:.11em;color:#8a8881;padding:8px 0 10px;}
.mga-day{position:relative;min-width:0;aspect-ratio:1.08/1;background:#f5f4ef;overflow:hidden;}
.mga-day-empty{background:transparent;}
.mga-day-number{position:absolute;top:7px;left:8px;z-index:2;font-size:11px;line-height:1;color:#5a5953;}
.has-records .mga-day-number{color:#fff;text-shadow:0 1px 4px rgba(0,0,0,.55);}
.mga-day-link{display:block;width:100%;height:100%;text-decoration:none!important;color:inherit!important;}
.mga-day-image{width:100%!important;height:100%!important;object-fit:cover;display:block;transition:transform .22s ease;}
.mga-day-link:hover .mga-day-image{transform:scale(1.025);}
.mga-day-count{position:absolute;right:7px;bottom:7px;z-index:2;min-width:21px;height:21px;padding:0 6px;border-radius:11px;background:rgba(0,0,0,.58);color:#fff;font-size:10px;line-height:21px;text-align:center;}

.mga-month-records{margin-top:78px;}
.mga-empty-message{padding:46px 0;color:#77756f;}
.mga-day-section{scroll-margin-top:28px;padding:42px 0 74px;border-top:1px solid #deddd7;}
.mga-day-heading{display:flex;align-items:baseline;gap:14px;margin-bottom:30px;}
.mga-day-heading-number{font-size:48px;line-height:1;font-weight:400;}
.mga-day-heading-meta{font-size:10px;letter-spacing:.13em;color:#77756f;text-transform:uppercase;}
.mga-record-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:42px 30px;}
.mga-record-card{margin:0;min-width:0;}
.mga-record-gallery{display:grid;grid-template-columns:1fr;gap:8px}
.mga-record-gallery.has-multiple{grid-template-columns:repeat(2,minmax(0,1fr))}
.mga-record-gallery-item{min-width:0}
.mga-record-image-link{display:block;text-decoration:none;}
.mga-record-image{display:block;width:100%!important;height:auto!important;max-height:760px;object-fit:contain;background:#f6f5f1;}
.mga-record-text{padding:13px 2px 0;}
.mga-record-memo{margin:0 0 10px;font-size:15px;line-height:1.85;}
.mga-record-detail{margin:5px 0;font-size:12px;color:#68665f;}
.mga-record-detail span{display:inline-block;min-width:50px;margin-right:8px;font-size:9px;letter-spacing:.11em;color:#99968e;}
.mga-back-to-calendar{display:inline-block;margin-top:32px;font-size:10px;letter-spacing:.11em;color:#77756f!important;text-decoration:none!important;}
.mga-back-to-calendar:hover{color:#222!important;}

/* SNAPS: 写真を大きく眺める */
.mga-archive-snaps .mga-record-list{grid-template-columns:1fr;gap:46px;}
.mga-archive-snaps .mga-record-card{max-width:980px;}
.mga-archive-snaps .mga-record-gallery.has-multiple{grid-template-columns:1fr;gap:18px}
.mga-archive-snaps .mga-record-image{max-height:none;}
.mga-archive-snaps .mga-record-text{max-width:760px;}

/* FOOD: 食事記録として少しコンパクト */
.mga-archive-food .mga-record-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:38px 24px;}
.mga-archive-food .mga-record-gallery.has-multiple{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
.mga-archive-food .mga-record-image{aspect-ratio:1/1;object-fit:cover;max-height:none;}
.mga-archive-food .mga-record-memo{font-size:14px;line-height:1.75;}

@media(max-width:900px){
  .mga-main{padding:0 22px 80px!important;}
  .mga-archive-food .mga-record-list{grid-template-columns:repeat(2,minmax(0,1fr));}
  .mga-day{aspect-ratio:1/1;}
}

@media(max-width:600px){
  .mga-main{padding:0 12px 66px!important;}
  .mga-archive-header{padding:40px 0 24px;}
  .mga-archive-header h1{font-size:42px;}
  .mga-calendar{gap:3px;}
  .mga-weekday{font-size:8px;padding:6px 0 8px;}
  .mga-day{aspect-ratio:1/1.08;}
  .mga-day-number{top:4px;left:5px;font-size:9px;}
  .mga-day-count{right:3px;bottom:3px;min-width:16px;height:16px;padding:0 4px;line-height:16px;font-size:8px;}
  .mga-month-records{margin-top:50px;}
  .mga-day-section{padding:30px 0 54px;}
  .mga-day-heading{margin-bottom:22px;}
  .mga-day-heading-number{font-size:38px;}
  .mga-day-heading-meta{font-size:9px;}
  .mga-record-list,
  .mga-archive-food .mga-record-list,
  .mga-archive-snaps .mga-record-list{grid-template-columns:1fr;gap:30px;}
  .mga-archive-food .mga-record-gallery.has-multiple{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
  .mga-archive-food .mga-record-image{aspect-ratio:1/1;object-fit:cover;}
  .mga-record-memo{font-size:15px;}
  .mga-month-nav{grid-template-columns:44px 1fr 44px;}
}


/* v0.5.0: site shell / home / single / share */
body.mga-custom-shell #header-container,
body.mga-custom-shell .header-container,
body.mga-custom-shell #navi,
body.mga-custom-shell .navi,
body.mga-custom-shell #footer,
body.mga-custom-shell footer.footer,
body.mga-custom-shell .footer-bottom,
body.mga-custom-shell .breadcrumb,
body.mga-custom-shell #sidebar,
body.mga-custom-shell .sidebar {display:none!important;}

body.mga-custom-shell #content-in,
body.mga-custom-shell .content-in {display:block!important;max-width:1240px!important;width:100%!important;}
body.mga-custom-shell #main {float:none!important;width:100%!important;max-width:none!important;}

.mga-site-header{position:relative;background:#fff;border-bottom:1px solid #e6e4dd;z-index:10;}
.mga-site-header__inner{max-width:1180px;margin:0 auto;padding:20px 34px;display:flex;align-items:center;justify-content:space-between;gap:28px;}
.mga-site-brand{font-size:16px;letter-spacing:.02em;color:#222!important;text-decoration:none!important;white-space:nowrap;}
.mga-site-nav{display:flex;align-items:center;gap:26px;flex-wrap:wrap;}
.mga-site-nav a{font-size:11px;letter-spacing:.12em;color:#55534d!important;text-decoration:none!important;}
.mga-site-nav a:hover{color:#111!important;}

.mga-site-footer{max-width:1180px;margin:0 auto;padding:34px;border-top:1px solid #e6e4dd;color:#8a8881;font-size:10px;letter-spacing:.08em;}

.mga-home{max-width:1120px!important;}
.mga-home-hero{padding:84px 0 96px;border-bottom:1px solid #deddd7;}
.mga-home-hero h1{margin:0;font-size:clamp(38px,6vw,72px);font-weight:400;line-height:1.25;letter-spacing:.02em;}
.mga-home-hero>p:last-child{margin:24px 0 0;color:#66645e;font-size:15px;line-height:1.9;}
.mga-home-section{padding:70px 0;border-bottom:1px solid #deddd7;}
.mga-home-section__header{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:30px;}
.mga-home-section h2{margin:0;font-size:clamp(34px,5vw,60px);font-weight:500;letter-spacing:.04em;}
.mga-section-link{font-size:10px;letter-spacing:.12em;color:#66645e!important;text-decoration:none!important;}
.mga-notes-list{border-top:1px solid #eceae3;}
.mga-note-row{display:grid;grid-template-columns:120px 1fr;gap:22px;padding:16px 0;border-bottom:1px solid #eceae3;}
.mga-note-row time{font-size:11px;color:#8a8881;letter-spacing:.06em;}
.mga-note-row a{font-size:17px;color:#222!important;text-decoration:none!important;line-height:1.55;}
.mga-home-grid{display:grid;gap:8px;}
.mga-home-grid--snaps{grid-template-columns:repeat(4,minmax(0,1fr));}
.mga-home-grid--food{grid-template-columns:repeat(4,minmax(0,1fr));}
.mga-home-thumb{position:relative;display:block;overflow:hidden;background:#f4f2ed;text-decoration:none!important;}
.mga-home-thumb img{display:block;width:100%!important;height:100%!important;aspect-ratio:1/1;object-fit:cover;transition:transform .2s ease;}
.mga-home-grid--snaps .mga-home-thumb img{aspect-ratio:4/3;}
.mga-home-thumb:hover img{transform:scale(1.02);}
.mga-home-thumb span{position:absolute;left:8px;bottom:7px;padding:2px 5px;background:rgba(255,255,255,.82);font-size:8px;letter-spacing:.06em;color:#444;}
.mga-on-this-day-preview p:last-child{max-width:640px;color:#66645e;line-height:1.8;}

.mga-open-record{display:inline-block;margin-top:14px;font-size:9px;letter-spacing:.12em;color:#88857d!important;text-decoration:none!important;}

.mga-single-record{max-width:980px!important;padding-top:58px!important;}
.mga-single-header{padding-bottom:28px;}
.mga-single-header h1{margin:0;font-size:clamp(32px,5vw,56px);font-weight:400;letter-spacing:.025em;}
.mga-single-gallery{display:grid;grid-template-columns:1fr;gap:18px;}
.mga-single-gallery figure{margin:0;}
.mga-single-gallery img{display:block;width:100%!important;height:auto!important;max-height:86vh;object-fit:contain;background:#f5f4ef;}
.mga-single-copy{max-width:760px;padding:28px 0 20px;}
.mga-single-memo{font-size:16px;line-height:1.9;margin:0 0 18px;}

.mga-share-bar{display:flex;align-items:center;flex-wrap:wrap;gap:0;margin-top:32px;padding:18px 0;border-top:1px solid #deddd7;border-bottom:1px solid #deddd7;}
.mga-share-label{margin-right:22px;font-size:9px;letter-spacing:.14em;color:#9a978f;}
.mga-share-bar a,.mga-share-bar button{appearance:none;border:0;background:transparent;padding:8px 12px;margin:0;color:#55534d!important;font:inherit;font-size:10px;letter-spacing:.08em;text-decoration:none!important;cursor:pointer;border-left:1px solid #e8e6df;}
.mga-share-bar a:hover,.mga-share-bar button:hover{color:#111!important;background:#f7f6f2;}
.mga-share-help{margin:8px 0 0;color:#9a978f;font-size:9px;line-height:1.65;}

@media(max-width:760px){
  .mga-site-header__inner{padding:15px 14px;display:block;}
  .mga-site-brand{display:block;margin-bottom:12px;font-size:15px;}
  .mga-site-nav{gap:0;border-top:1px solid #eceae3;border-bottom:1px solid #eceae3;}
  .mga-site-nav a{flex:1 1 25%;padding:10px 4px;text-align:center;font-size:8px;white-space:nowrap;}
  .mga-home-hero{padding:50px 0 62px;}
  .mga-home-section{padding:48px 0;}
  .mga-note-row{grid-template-columns:84px 1fr;gap:12px;}
  .mga-note-row a{font-size:15px;}
  .mga-home-grid--snaps,.mga-home-grid--food{grid-template-columns:repeat(2,minmax(0,1fr));}
  .mga-single-record{padding-top:34px!important;}
  .mga-share-bar{align-items:stretch;}
  .mga-share-label{width:100%;margin:0 0 10px;padding:0 4px;}
  .mga-share-bar a,.mga-share-bar button{flex:1 1 33%;text-align:center;padding:11px 6px;font-size:9px;}
}


/* v0.5.1: square calendar thumbs + calmer single-photo sizing */

/* Calendar thumbnails: unify SNAPS and FOOD as square crops */
.mga-calendar .mga-calendar-thumb,
.mga-calendar .mga-calendar-photo,
.mga-calendar .mga-calendar-cell a,
.mga-calendar td a {
  overflow: hidden;
}
.mga-calendar img,
.mga-calendar-grid img,
.mga-calendar-cell img,
.mga-month-calendar img {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  object-fit: cover !important;
  display: block;
}

/* In case SNAPS had a separate aspect rule, force it to square too */
.mga-snaps .mga-calendar img,
.post-type-archive-mg_snap .mga-calendar img,
.post-type-archive-mg_snap .mga-calendar-grid img,
.post-type-archive-mg_snap .mga-calendar-cell img {
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
}

/* Individual SNAPS / FOOD page: keep photos comfortably narrower on desktop/tablet */
.mga-single-record {
  max-width: 900px !important;
}
.mga-single-header,
.mga-single-copy,
.mga-share-bar,
.mga-share-help,
.mga-back-to-calendar {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.mga-single-gallery {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.mga-single-gallery figure {
  margin: 0 auto;
}
.mga-single-gallery img {
  width: 100% !important;
  max-width: 760px !important;
  max-height: 72vh !important;
  height: auto !important;
  object-fit: contain !important;
  margin: 0 auto;
}

/* Tablet: slightly narrower to keep generous side margins */
@media (min-width: 761px) and (max-width: 1100px) {
  .mga-single-gallery,
  .mga-single-header,
  .mga-single-copy,
  .mga-share-bar,
  .mga-share-help,
  .mga-back-to-calendar {
    max-width: min(680px, calc(100vw - 96px));
  }
  .mga-single-gallery img {
    max-width: 680px !important;
    max-height: 68vh !important;
  }
}

/* Mobile: use the screen width efficiently */
@media (max-width: 760px) {
  .mga-single-gallery,
  .mga-single-header,
  .mga-single-copy,
  .mga-share-bar,
  .mga-share-help,
  .mga-back-to-calendar {
    max-width: none;
    width: 100%;
  }
  .mga-single-gallery img {
    max-width: 100% !important;
    max-height: none !important;
  }
}


/* v0.5.2: quieter homepage title treatment */
.mga-home-hero{
  padding-top:72px;
  padding-bottom:66px;
}
.mga-home-hero .mga-kicker{
  margin-bottom:16px;
}
.mga-home-hero h1{
  max-width:760px;
  font-size:clamp(34px,4.4vw,48px);
  font-weight:400;
  line-height:1.35;
  letter-spacing:.02em;
}
.mga-home-hero>p:last-child{
  max-width:680px;
  margin-top:18px;
  font-size:14px;
  line-height:1.9;
  color:#706e68;
}

@media(max-width:760px){
  .mga-home-hero{
    padding-top:42px;
    padding-bottom:48px;
  }
  .mga-home-hero h1{
    font-size:32px;
  }
  .mga-home-hero>p:last-child{
    font-size:13px;
  }
}


/* v0.5.4: WordPress site title + tagline as the only top-page identity */
.mga-site-identity{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
}
.mga-site-tagline{
  margin:0;
  color:#7b7972;
  font-size:11px;
  line-height:1.5;
  letter-spacing:.03em;
}
.mga-home{
  padding-top:24px!important;
}

/* The former top-page hero is no longer used. */
.mga-home-hero{
  display:none!important;
}

@media(max-width:760px){
  .mga-site-tagline{
    margin-top:2px;
    font-size:10px;
  }
  .mga-home{
    padding-top:10px!important;
  }
}


/* v0.5.5: homepage SNAPS thumbnails are square, same as FOOD */
.mga-home-grid--snaps .mga-home-thumb img{
  aspect-ratio:1 / 1 !important;
  object-fit:cover !important;
}


/* v0.5.6: remove mobile-only rules around the navigation */
@media(max-width:760px){
  .mga-site-nav{
    border-top:0 !important;
    border-bottom:0 !important;
  }
}


/* v0.5.7: exactly four thumbnails on the home page */
.mga-home-grid--snaps,
.mga-home-grid--food{
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
}

@media(max-width:760px){
  .mga-home-grid--snaps,
  .mga-home-grid--food{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}


/* v0.5.8: more breathing room between tagline and mobile navigation */
@media(max-width:760px){
  .mga-site-nav{
    margin-top:20px !important;
  }
}


/* v0.5.9: NOTES single pages share the mossgreen shell */
.mga-note-single{
  max-width:900px!important;
  padding-top:58px!important;
}
.mga-note-article{
  max-width:760px;
  margin:0 auto;
}
.mga-note-header{
  padding-bottom:38px;
  border-bottom:1px solid #e6e4dd;
  margin-bottom:44px;
}
.mga-note-header h1{
  margin:0 0 18px;
  font-size:clamp(34px,4.8vw,52px);
  line-height:1.35;
  font-weight:400;
  letter-spacing:.01em;
}
.mga-note-header time{
  display:block;
  color:#8a8881;
  font-size:10px;
  letter-spacing:.1em;
}
.mga-note-content{
  max-width:700px;
  margin:0 auto;
  color:#2d2c29;
  font-size:17px;
  line-height:2;
}
.mga-note-content p{
  margin:0 0 1.7em;
}
.mga-note-content h2{
  margin:2.5em 0 1em;
  font-size:28px;
  line-height:1.5;
  font-weight:500;
}
.mga-note-content h3{
  margin:2.2em 0 .9em;
  font-size:22px;
  line-height:1.55;
  font-weight:500;
}
.mga-note-content h4{
  margin:2em 0 .8em;
  font-size:18px;
  line-height:1.6;
  font-weight:600;
}
.mga-note-content img{
  display:block;
  max-width:100%;
  height:auto;
  margin:2em auto;
}
.mga-note-content figure{
  margin:2.2em 0;
}
.mga-note-content figcaption{
  margin-top:8px;
  color:#8a8881;
  font-size:11px;
  text-align:center;
}
.mga-note-content blockquote{
  margin:2em 0;
  padding:4px 0 4px 22px;
  border-left:2px solid #c9c6bd;
  color:#66645e;
  background:transparent;
}
.mga-note-content a{
  color:#44423d!important;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}
.mga-note-content ul,
.mga-note-content ol{
  margin:1.4em 0 1.8em;
  padding-left:1.5em;
}
.mga-note-content li{
  margin:.45em 0;
}
.mga-note-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px 14px;
  max-width:700px;
  margin:44px auto 0;
  padding-top:18px;
  border-top:1px solid #eceae3;
  color:#8a8881;
  font-size:10px;
  letter-spacing:.05em;
}
.mga-note-single .mga-share-bar,
.mga-note-single .mga-share-help{
  max-width:700px;
}
.mga-note-pager{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:30px;
  max-width:700px;
  margin:54px auto 0;
  padding-top:24px;
  border-top:1px solid #e6e4dd;
}
.mga-note-pager__next{
  text-align:right;
}
.mga-note-pager span{
  display:block;
  margin-bottom:7px;
  color:#aaa79f;
  font-size:8px;
  letter-spacing:.13em;
}
.mga-note-pager a{
  color:#55534d!important;
  font-size:12px;
  line-height:1.55;
  text-decoration:none!important;
}
.mga-back-to-notes{
  display:inline-block;
  max-width:700px;
  margin:44px 0 0 30px;
  color:#77756f!important;
  font-size:10px;
  letter-spacing:.11em;
  text-decoration:none!important;
}

@media(max-width:760px){
  .mga-note-single{
    padding-top:34px!important;
  }
  .mga-note-article{
    max-width:none;
  }
  .mga-note-header{
    padding-bottom:28px;
    margin-bottom:30px;
  }
  .mga-note-header h1{
    font-size:31px;
    line-height:1.4;
  }
  .mga-note-content{
    max-width:none;
    font-size:16px;
    line-height:1.95;
  }
  .mga-note-content h2{font-size:24px;}
  .mga-note-content h3{font-size:20px;}
  .mga-note-tags,
  .mga-note-single .mga-share-bar,
  .mga-note-single .mga-share-help,
  .mga-note-pager{
    max-width:none;
  }
  .mga-note-pager{
    grid-template-columns:1fr;
    gap:22px;
  }
  .mga-note-pager__next{
    text-align:left;
  }
  .mga-back-to-notes{
    margin-left:0;
  }
}


/* v0.6.0: shared tags / index / footer */
.mga-post-tags{
  display:flex;
  flex-wrap:wrap;
  gap:7px 14px;
  max-width:760px;
  margin:18px auto 0;
}
.mga-post-tags a{
  color:#7e7b74!important;
  font-size:10px;
  letter-spacing:.04em;
  text-decoration:none!important;
}
.mga-post-tags a:hover{color:#222!important;}
.mga-post-tags--compact{
  margin:10px 0 0;
  gap:5px 10px;
}
.mga-post-tags--compact a{font-size:9px;}

.mga-site-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  flex-wrap:wrap;
}
.mga-footer-nav{
  display:flex;
  gap:22px;
  align-items:center;
}
.mga-footer-nav a,
.mga-footer-nav span{
  color:#77756f!important;
  font-size:9px;
  letter-spacing:.12em;
  text-decoration:none!important;
}
.mga-footer-nav a:hover{color:#222!important;}
.mga-footer-disabled{opacity:.45;cursor:default;}
.mga-footer-copy{color:#aaa79f;}

.mga-index-page{max-width:960px!important;padding-top:58px!important;}
.mga-index-header{padding-bottom:30px;border-bottom:1px solid #e6e4dd;margin-bottom:34px;}
.mga-index-header h1{margin:0;font-size:clamp(40px,6vw,64px);font-weight:400;letter-spacing:.025em;}
.mga-index-header>p:last-child{margin:15px 0 0;color:#77756f;font-size:13px;line-height:1.75;}

.mga-tags-index{display:flex;flex-wrap:wrap;gap:10px 12px;}
.mga-tags-index a{
  display:flex;
  align-items:center;
  gap:9px;
  padding:9px 12px;
  border:1px solid #e5e3dc;
  color:#55534d!important;
  text-decoration:none!important;
  background:#fff;
}
.mga-tags-index a:hover{border-color:#bbb8af;}
.mga-tags-index span{font-size:13px;}
.mga-tags-index small{color:#aaa79f;font-size:9px;}

.mga-cross-list{border-top:1px solid #eceae3;}
.mga-cross-item{
  display:grid;
  grid-template-columns:110px minmax(0,1fr);
  gap:22px;
  padding:22px 0;
  border-bottom:1px solid #eceae3;
}
.mga-cross-thumb{
  display:flex;
  align-items:center;
  justify-content:center;
  width:110px;
  aspect-ratio:1/1;
  overflow:hidden;
  background:#f4f2ed;
  color:#aaa79f!important;
  font-size:9px;
  letter-spacing:.12em;
  text-decoration:none!important;
}
.mga-cross-thumb img{width:100%!important;height:100%!important;object-fit:cover!important;}
.mga-cross-meta{display:flex;gap:14px;margin-bottom:7px;color:#9a978f;font-size:9px;letter-spacing:.1em;}
.mga-cross-copy h2{margin:0;font-size:20px;line-height:1.5;font-weight:400;}
.mga-cross-copy h2 a{color:#2f2e2a!important;text-decoration:none!important;}
.mga-index-back{display:inline-block;margin-top:34px;color:#77756f!important;font-size:10px;letter-spacing:.11em;text-decoration:none!important;}

.mga-search-form{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  margin:0 0 28px;
}
.mga-search-form input{
  min-width:0;
  padding:13px 14px;
  border:1px solid #d9d6ce;
  background:#fff;
  font-size:16px;
}
.mga-search-form button{
  border:1px solid #333;
  background:#333;
  color:#fff;
  padding:0 18px;
  font-size:10px;
  letter-spacing:.12em;
  cursor:pointer;
}
.mga-search-summary{margin:0 0 20px;color:#77756f;font-size:12px;}

@media(max-width:760px){
  .mga-site-footer{
    align-items:flex-start;
    padding-left:14px;
    padding-right:14px;
  }
  .mga-footer-nav{gap:18px;}
  .mga-index-page{padding-top:34px!important;}
  .mga-cross-item{grid-template-columns:82px minmax(0,1fr);gap:14px;padding:18px 0;}
  .mga-cross-thumb{width:82px;}
  .mga-cross-copy h2{font-size:16px;}
  .mga-search-form{grid-template-columns:1fr;}
  .mga-search-form button{min-height:44px;}
}


/* v0.6.1: fixed pages use the same mossgreen shell */
.mga-static-page{
  max-width:900px!important;
  padding-top:58px!important;
}
.mga-static-article{
  max-width:760px;
  margin:0 auto;
}
.mga-static-header{
  padding-bottom:30px;
  margin-bottom:40px;
  border-bottom:1px solid #e6e4dd;
}
.mga-static-header h1{
  margin:0;
  font-size:clamp(38px,5vw,56px);
  line-height:1.25;
  font-weight:400;
  letter-spacing:.025em;
}
.mga-static-content{
  max-width:700px;
  margin:0 auto;
  color:#2d2c29;
  font-size:17px;
  line-height:2;
}
.mga-static-content p{
  margin:0 0 1.7em;
}
.mga-static-content h2{
  margin:2.6em 0 1em;
  font-size:26px;
  line-height:1.5;
  font-weight:500;
  letter-spacing:.02em;
}
.mga-static-content h3{
  margin:2.2em 0 .9em;
  font-size:21px;
  line-height:1.55;
  font-weight:500;
}
.mga-static-content h4{
  margin:2em 0 .8em;
  font-size:18px;
  line-height:1.6;
  font-weight:600;
}
.mga-static-content strong{
  font-weight:600;
}
.mga-static-content a{
  color:#44423d!important;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}
.mga-static-content ul,
.mga-static-content ol{
  margin:1.4em 0 1.8em;
  padding-left:1.5em;
}
.mga-static-content li{
  margin:.45em 0;
}
.mga-static-content blockquote{
  margin:2em 0;
  padding:4px 0 4px 22px;
  border-left:2px solid #c9c6bd;
  background:transparent;
  color:#66645e;
}
.mga-static-content img{
  display:block;
  max-width:100%;
  height:auto;
  margin:2em auto;
}
.mga-static-content figure{
  margin:2.2em 0;
}
.mga-static-content figcaption{
  margin-top:8px;
  color:#8a8881;
  font-size:11px;
  text-align:center;
}

@media(max-width:760px){
  .mga-static-page{
    padding-top:34px!important;
  }
  .mga-static-article{
    max-width:none;
  }
  .mga-static-header{
    padding-bottom:24px;
    margin-bottom:30px;
  }
  .mga-static-header h1{
    font-size:32px;
    line-height:1.35;
  }
  .mga-static-content{
    max-width:none;
    font-size:16px;
    line-height:1.95;
  }
  .mga-static-content h2{font-size:23px;}
  .mga-static-content h3{font-size:19px;}
}


/* v0.7.0: ON THIS DAY */
.mga-otd-date{
  margin:10px 0 0;
  color:#77756f;
  font-size:11px;
  letter-spacing:.11em;
}
.mga-otd-preview-years{
  border-top:1px solid #eceae3;
}
.mga-otd-preview-year{
  display:grid;
  grid-template-columns:100px minmax(0,1fr);
  gap:20px;
  padding:18px 0;
  border-bottom:1px solid #eceae3;
}
.mga-otd-year{
  font-size:22px;
  line-height:1.2;
  color:#5d5b55;
}
.mga-otd-preview-items{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  align-items:stretch;
}
.mga-otd-mini{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  min-width:0;
  aspect-ratio:1/1;
  overflow:hidden;
  padding:10px;
  background:#f4f2ed;
  color:#33312e!important;
  text-decoration:none!important;
}
.mga-otd-mini img{
  position:absolute;
  inset:0;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}
.mga-otd-mini-type{
  display:block;
  margin-bottom:8px;
  color:#9a978f;
  font-size:8px;
  letter-spacing:.12em;
}
.mga-otd-mini strong{
  display:block;
  font-size:12px;
  line-height:1.45;
  font-weight:400;
}
.mga-otd-more{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:80px;
  border:1px solid #e5e3dc;
  color:#77756f!important;
  font-size:11px;
  text-decoration:none!important;
}
.mga-otd-empty{
  margin:0;
  padding:22px 0;
  color:#99968e;
  font-size:12px;
}

.mga-otd-page{
  max-width:980px!important;
  padding-top:58px!important;
}
.mga-otd-page-header{
  padding-bottom:30px;
}
.mga-otd-page-header h1{
  margin:0;
  font-size:clamp(42px,6vw,68px);
  font-weight:400;
  line-height:1.08;
  letter-spacing:.025em;
}
.mga-otd-page-date{
  margin:14px 0 0;
  color:#66645e;
  font-size:15px;
  letter-spacing:.12em;
}
.mga-otd-day-nav{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:18px;
  padding:14px 0;
  margin-bottom:42px;
  border-top:1px solid #e6e4dd;
  border-bottom:1px solid #e6e4dd;
}
.mga-otd-day-nav a,
.mga-otd-day-nav span{
  color:#77756f!important;
  font-size:9px;
  letter-spacing:.11em;
  text-decoration:none!important;
}
.mga-otd-day-nav a:last-child{text-align:right;}
.mga-otd-day-nav span{text-align:center;color:#aaa79f!important;}
.mga-otd-year-block{
  scroll-margin-top:24px;
  display:grid;
  grid-template-columns:120px minmax(0,1fr);
  gap:26px;
  padding:38px 0;
  border-top:1px solid #eceae3;
}
.mga-otd-year-block:first-child{border-top:0;}
.mga-otd-year-large{
  font-size:34px;
  font-weight:400;
  line-height:1;
  color:#4c4a45;
}
.mga-otd-year-items{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:22px 18px;
}
.mga-otd-item{
  min-width:0;
}
.mga-otd-item-media{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  aspect-ratio:1/1;
  overflow:hidden;
  background:#f4f2ed;
  color:#9a978f!important;
  font-size:10px;
  letter-spacing:.12em;
  text-decoration:none!important;
}
.mga-otd-item-media img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}
.mga-otd-item-copy{
  padding-top:10px;
}
.mga-otd-item-meta{
  margin-bottom:5px;
  color:#9a978f;
  font-size:8px;
  letter-spacing:.12em;
}
.mga-otd-item-copy h2{
  margin:0;
  font-size:16px;
  line-height:1.55;
  font-weight:400;
}
.mga-otd-item-copy h2 a{
  color:#2f2e2a!important;
  text-decoration:none!important;
}
.mga-otd-no-records{
  padding:54px 0;
  border-top:1px solid #eceae3;
  color:#77756f;
}
.mga-otd-no-records p{
  margin:0 0 8px;
}

@media(max-width:760px){
  .mga-otd-preview-year{
    grid-template-columns:58px minmax(0,1fr);
    gap:12px;
    padding:14px 0;
  }
  .mga-otd-year{font-size:18px;}
  .mga-otd-preview-items{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .mga-otd-page{padding-top:34px!important;}
  .mga-otd-page-header h1{font-size:42px;}
  .mga-otd-day-nav{gap:8px;margin-bottom:28px;}
  .mga-otd-day-nav a,
  .mga-otd-day-nav span{font-size:8px;}
  .mga-otd-year-block{
    grid-template-columns:1fr;
    gap:16px;
    padding:28px 0;
  }
  .mga-otd-year-large{font-size:28px;}
  .mga-otd-year-items{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px 10px;
  }
  .mga-otd-item-copy h2{font-size:14px;}
}


/* v0.7.1: larger ON THIS DAY thumbnails on the homepage */
.mga-otd-preview-items{
  display:flex !important;
  flex-wrap:wrap;
  gap:10px;
  align-items:flex-start;
}
.mga-otd-mini{
  flex:0 0 140px;
  width:140px;
  min-width:140px;
  aspect-ratio:1 / 1;
}
.mga-otd-more{
  flex:0 0 72px;
  width:72px;
  min-height:140px;
}

@media(max-width:760px){
  .mga-otd-preview-items{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }
  .mga-otd-mini{
    width:100%;
    min-width:0;
    flex:none;
  }
  .mga-otd-more{
    width:100%;
    min-height:0;
    aspect-ratio:1 / 1;
    flex:none;
  }
}


/* v0.7.4: tap the existing month title to jump; collapsed layout is unchanged. */
.mga-month-nav--jump{position:relative;}
.mga-month-nav--jump .mga-month-jump{
  min-width:0;margin:0;padding:0;border:0;background:transparent;
}
.mga-month-nav--jump .mga-month-title{
  display:block;position:relative;list-style:none;cursor:pointer;
  margin:0;padding:0;border:0;border-radius:0;background:transparent;
  box-shadow:none;color:inherit;font:inherit;text-align:center;
  touch-action:manipulation;
}
.mga-month-nav--jump .mga-month-title::-webkit-details-marker{display:none;}
.mga-month-nav--jump .mga-month-title::marker{content:"";}
.mga-month-nav--jump .mga-month-title::after{
  content:"";display:block;position:absolute;left:calc(50% + 30px);bottom:5px;
  width:5px;height:5px;border-right:1px solid #8a8881;border-bottom:1px solid #8a8881;
  transform:rotate(45deg);
}
.mga-month-nav--jump .mga-month-jump[open]>.mga-month-title::after{transform:rotate(225deg);}
.mga-month-nav--jump .mga-month-title:focus-visible{
  outline:2px solid #77756f;outline-offset:4px;
}
.mga-month-nav--jump .mga-month-jump-panel{
  position:absolute;z-index:30;top:calc(100% + 1px);left:50%;
  transform:translateX(-50%);width:420px;max-width:100%;box-sizing:border-box;
  margin:0;padding:18px 20px;background:#fff;border:1px solid #e6e4dd;
  box-shadow:0 8px 24px rgba(0,0,0,.06);text-align:left;
}
.mga-month-nav--jump .mga-month-jump-caption{
  margin:0 0 12px;color:#77756f;font-size:12px;line-height:1.5;
}
.mga-month-nav--jump .mga-month-jump-fields{
  display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) auto;
  gap:10px;align-items:end;
}
.mga-month-nav--jump .mga-month-jump-field{display:block;min-width:0;margin:0;}
.mga-month-nav--jump .mga-month-jump-field>span{
  display:block;margin:0 0 5px;color:#77756f;font-size:12px;line-height:1.5;
}
.mga-month-nav--jump .mga-month-jump-field select{
  display:block;width:100%;max-width:100%;min-width:0;box-sizing:border-box;
  height:44px;margin:0;padding:6px 8px;border:1px solid #d9d6ce;border-radius:0;
  background:#fff;color:#33312e;font-family:inherit;font-size:16px;line-height:1.4;
}
.mga-month-nav--jump .mga-month-jump-submit{
  appearance:none;box-sizing:border-box;min-width:60px;min-height:44px;
  margin:0;padding:8px 14px;border:1px solid #55534d;border-radius:0;
  background:#55534d;color:#fff;font-family:inherit;font-size:14px;
  line-height:1.4;cursor:pointer;box-shadow:none;touch-action:manipulation;
}
.mga-month-nav--jump .mga-month-jump-actions{
  display:flex;justify-content:space-between;gap:16px;margin-top:8px;
}
.mga-month-nav--jump .mga-month-jump-actions a,
.mga-month-nav--jump .mga-month-jump-close{
  display:inline-flex;align-items:center;min-height:44px;margin:0;padding:0;
  border:0;background:transparent;box-shadow:none;color:#77756f!important;
  font-family:inherit;font-size:12px;line-height:1.5;text-decoration:none!important;
  cursor:pointer;touch-action:manipulation;
}
.mga-month-nav--jump .mga-month-jump-close[hidden]{display:none!important;}
.mga-month-nav--jump .mga-month-jump-panel a:hover{text-decoration:underline!important;}
@media(max-width:600px){
  .mga-month-nav--jump .mga-month-jump-panel{padding:14px 12px;}
  .mga-month-nav--jump .mga-month-jump-fields{gap:8px;}
  .mga-month-nav--jump .mga-month-jump-submit{min-width:56px;padding:8px 10px;}
}
