/* Pinecrest legacy archive modernization v2.0
   Applies only to pages marked .legacy-page by the static export post-processor. */

.legacy-page .content-wrap{
  padding:44px 0 68px;
  background:
    radial-gradient(circle at 15% 0%,rgba(208,162,76,.08),transparent 34rem),
    linear-gradient(180deg,#fbf7ef 0%,#f7f1e7 100%);
}
.legacy-page .breadcrumbs{
  max-width:980px;
  margin:0 auto 12px;
  padding:0 8px;
  color:#756a61;
  font-size:13px;
}
.legacy-page .breadcrumbs a{color:#6b1822;text-decoration:none;font-weight:650}
.legacy-page .breadcrumbs span{color:#b89a63;margin:0 4px}

.legacy-page .content-card{
  max-width:980px;
  margin:0 auto;
  padding:48px 64px 58px;
  background:#fffdf9;
  border:1px solid #e6dbcd;
  border-top:4px solid #d0a24c;
  border-radius:18px;
  box-shadow:0 18px 46px rgba(71,45,28,.10);
}
.legacy-page .page-kicker{
  display:inline-flex;
  align-items:center;
  padding:6px 11px;
  border:1px solid #ead6ad;
  border-radius:999px;
  background:#fbf1dc;
  color:#6d4b20;
  font-size:11px;
  line-height:1;
  letter-spacing:.12em;
}
.legacy-page .entry-title{
  max-width:820px;
  margin:13px auto 27px;
  color:#5a0f17;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(36px,4.4vw,50px);
  line-height:1.08;
  letter-spacing:-.015em;
  font-weight:500;
}
.legacy-page .entry-title::after{
  content:"";
  display:block;
  width:72px;
  height:3px;
  margin-top:20px;
  border-radius:3px;
  background:linear-gradient(90deg,#d0a24c,#ead4a3);
}

/* Reading column */
.legacy-page .entry-content{
  max-width:820px;
  margin:0 auto;
  padding:0;
  background:transparent;
  color:#332e29;
  font-family:Georgia,"Times New Roman",serif;
  font-size:18.5px;
  line-height:1.82;
  overflow-wrap:anywhere;
}
.legacy-page .entry-content p,
.legacy-page .entry-content li,
.legacy-page .entry-content td,
.legacy-page .entry-content th,
.legacy-page .entry-content font{
  font-family:Georgia,"Times New Roman",serif !important;
  font-size:18.5px !important;
  line-height:1.82 !important;
  color:#332e29;
}
.legacy-page .entry-content p{margin:0 0 1.18em}
.legacy-page .entry-content p:empty{display:none}
.legacy-page .entry-content .MsoNormal{margin:0 0 1.18em !important}

/* Tone down blanket Word/FrontPage-era formatting while preserving real emphasis. */
.legacy-page .entry-content .MsoNormal b,
.legacy-page .entry-content .MsoNormal strong{font-weight:500}
.legacy-page .entry-content .MsoNormal i{font-style:normal}
.legacy-page .entry-content .MsoNormal u{
  text-decoration-thickness:1px;
  text-decoration-color:rgba(90,15,23,.35);
  text-underline-offset:3px;
}

/* Many archived pages wrapped every paragraph in <b><i> purely for old-site styling.
   Normalize those blanket wrappers; quote/subhead rules below restore intentional emphasis. */
.legacy-page .entry-content p > b:first-child:last-child,
.legacy-page .entry-content p > i:first-child:last-child,
.legacy-page .entry-content p > b:first-child:last-child > i:first-child:last-child,
.legacy-page .entry-content p > i:first-child:last-child > b:first-child:last-child{
  font-weight:400;
  font-style:normal;
}

/* Headings and automatically recognized legacy section labels */
.legacy-page .entry-content h1,
.legacy-page .entry-content h2,
.legacy-page .entry-content h3,
.legacy-page .entry-content h4{
  color:#5a0f17;
  font-family:Georgia,"Times New Roman",serif !important;
  font-weight:600;
  line-height:1.25 !important;
  text-wrap:balance;
}
.legacy-page .entry-content h1{font-size:34px !important;margin:1.8em 0 .65em}
.legacy-page .entry-content h2{font-size:28px !important;margin:1.8em 0 .65em}
.legacy-page .entry-content h3{font-size:23px !important;margin:1.65em 0 .55em}
.legacy-page .entry-content h4{font-size:20px !important;margin:1.5em 0 .5em}
.legacy-page .entry-content .legacy-subhead{
  margin:2.1em 0 .85em !important;
  color:#5a0f17 !important;
  font-family:Georgia,"Times New Roman",serif !important;
  font-size:22px !important;
  line-height:1.35 !important;
  font-weight:600 !important;
  letter-spacing:.01em;
  text-decoration:none !important;
}
.legacy-page .entry-content .legacy-subhead *{
  color:inherit !important;
  font:inherit !important;
  font-weight:inherit !important;
  font-style:normal !important;
  text-decoration:none !important;
}

/* Quotes: clearer separation without turning every paragraph into a card. */
.legacy-page .entry-content blockquote,
.legacy-page .entry-content .legacy-quote{
  margin:1.55em 0 1.35em !important;
  padding:18px 22px !important;
  border:0 !important;
  border-left:4px solid #d0a24c !important;
  border-radius:0 10px 10px 0;
  background:#fbf5e9 !important;
  color:#493c31 !important;
  font-style:italic !important;
  font-weight:400 !important;
  box-shadow:inset 0 0 0 1px rgba(208,162,76,.12);
}
.legacy-page .entry-content .legacy-quote,
.legacy-page .entry-content .legacy-quote *{
  font-style:italic !important;
  font-weight:400 !important;
}
.legacy-page .entry-content .legacy-attribution{
  margin:-.75em 0 1.5em !important;
  color:#776b61 !important;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif !important;
  font-size:14px !important;
  line-height:1.55 !important;
  text-align:right;
  font-style:normal !important;
}
.legacy-page .entry-content .legacy-attribution *{
  color:inherit !important;
  font:inherit !important;
  font-style:normal !important;
}

/* Links */
.legacy-page .entry-content a{
  color:#761b28 !important;
  text-decoration-color:rgba(118,27,40,.38);
  text-decoration-thickness:1px;
  text-underline-offset:3px;
  transition:color .15s ease,text-decoration-color .15s ease;
}
.legacy-page .entry-content a:hover{
  color:#9b2635 !important;
  text-decoration-color:currentColor;
}
.legacy-page .entry-content .legacy-return-link{
  margin:28px 0 !important;
  text-align:center;
}
.legacy-page .entry-content .legacy-return-link a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  border:1px solid #dbc496;
  border-radius:8px;
  background:#fbf3e4;
  color:#65131d !important;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif !important;
  font-size:13px !important;
  font-weight:750 !important;
  letter-spacing:.035em;
  text-decoration:none !important;
  text-transform:none;
}
.legacy-page .entry-content .legacy-return-link a:hover{background:#f6ead2}
.legacy-page .entry-content .legacy-return-link *{font-style:normal !important;text-decoration:none !important}

/* Images */
.legacy-page .entry-content img{
  display:block;
  max-width:100% !important;
  height:auto !important;
  margin:24px auto;
  border:0 !important;
  border-radius:10px;
}
.legacy-page .entry-content img:not([src*="yellow_line"]):not(.emoji):not(.wp-smiley){
  box-shadow:0 7px 22px rgba(58,39,25,.10);
}
.legacy-page .entry-content .legacy-center img{margin-left:auto;margin-right:auto}
.legacy-page .entry-content p:has(> img[src*="yellow_line"]){
  max-width:520px;
  height:1px;
  margin:32px auto !important;
  border-top:1px solid #e1d5c5;
  line-height:0 !important;
  font-size:0 !important;
}
.legacy-page .entry-content img[src*="yellow_line"]{display:none !important}
.legacy-page .entry-content img[src*="spacer"]{box-shadow:none !important}

/* Old layout tables: remove 1990s borders/spacing while keeping real multi-column content intact. */
.legacy-page .entry-content .legacy-table-wrap{
  max-width:100%;
  margin:1.25rem 0;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.legacy-page .entry-content table.legacy-table{
  max-width:100% !important;
  margin:0 auto !important;
  border:0 !important;
  border-collapse:separate !important;
  border-spacing:0 !important;
  background:transparent !important;
}
.legacy-page .entry-content .pf-content > .legacy-table-wrap > table.legacy-table{
  width:100% !important;
}
.legacy-page .entry-content table.legacy-table table.legacy-table{
  width:auto !important;
}
.legacy-page .entry-content table.legacy-table td,
.legacy-page .entry-content table.legacy-table th{
  padding:5px 9px !important;
  border:0 !important;
  background:transparent !important;
  vertical-align:top;
}
.legacy-page .entry-content table.legacy-table td.legacy-spacer-cell,
.legacy-page .entry-content table.legacy-table th.legacy-spacer-cell{display:none !important}
.legacy-page .entry-content table.legacy-table img{margin:12px auto}

/* Lists and rules */
.legacy-page .entry-content ul,
.legacy-page .entry-content ol{margin:1em 0 1.55em 1.5em;padding-left:.9em}
.legacy-page .entry-content li{margin:.45em 0}
.legacy-page .entry-content li::marker{color:#9b6d29}
.legacy-page .entry-content hr{border:0;border-top:1px solid #e2d7ca;margin:34px 0}

/* Media */
.legacy-page .entry-content audio{width:100%;margin:16px 0 24px}
.legacy-page .entry-content iframe,
.legacy-page .entry-content video{max-width:100%}

/* Built-in article print button; suppress duplicate PrintFriendly badge. */
.legacy-page .article-download-area{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  margin:0 0 28px;
  padding:0 0 18px;
  border-bottom:1px solid #eee4d7;
}
.legacy-page .article-print-button{
  appearance:none;
  border:1px solid #cfae70;
  border-radius:8px;
  background:#fffaf1;
  color:#65131d;
  padding:10px 14px;
  font:750 13px/1.2 Inter,ui-sans-serif,system-ui,sans-serif;
  cursor:pointer;
  box-shadow:0 3px 9px rgba(61,39,22,.05);
}
.legacy-page .article-print-button:hover{background:#f8edda;border-color:#b8873f}
.legacy-page .printfriendly{display:none !important}

/* Better focus states */
.legacy-page .entry-content a:focus-visible,
.legacy-page .article-print-button:focus-visible{
  outline:3px solid rgba(208,162,76,.45);
  outline-offset:3px;
}

@media (max-width:760px){
  .legacy-page .content-wrap{padding:24px 0 42px}
  .legacy-page .content-card{padding:28px 20px 38px;border-radius:13px}
  .legacy-page .entry-title{font-size:clamp(31px,9vw,40px);margin-bottom:22px}
  .legacy-page .entry-content,
  .legacy-page .entry-content p,
  .legacy-page .entry-content li,
  .legacy-page .entry-content td,
  .legacy-page .entry-content th,
  .legacy-page .entry-content font{
    font-size:17px !important;
    line-height:1.72 !important;
  }
  .legacy-page .entry-content .legacy-subhead{font-size:20px !important}
  .legacy-page .entry-content blockquote,
  .legacy-page .entry-content .legacy-quote{padding:15px 16px !important;margin:1.35em 0 !important}
  .legacy-page .article-download-area{justify-content:stretch}
  .legacy-page .article-print-button{width:100%}
  .legacy-page .entry-content table.legacy-table td,
  .legacy-page .entry-content table.legacy-table th{padding:4px 6px !important}
}

@media print{
  .legacy-page .site-header,
  .legacy-page .site-footer,
  .legacy-page .breadcrumbs,
  .legacy-page .article-download-area,
  .legacy-page .printfriendly{display:none !important}
  .legacy-page .content-wrap{padding:0;background:#fff}
  .legacy-page .content-card{max-width:none;padding:0;border:0;box-shadow:none;background:#fff}
  .legacy-page .entry-content{max-width:none;font-size:11pt;line-height:1.55;color:#000}
  .legacy-page .entry-title{max-width:none;color:#000;font-size:24pt}
}
