/* Composición de los artículos. El tema de Pilar Homes dibuja el marco y sus botones. */
.ph-story { --story-border: #dbe5ec; --story-muted: #526878; padding-bottom: 44px; }
.ph-story .crumb { display: flex; gap: .7rem; align-items: center; margin: 24px 0; font-size: 14px; color: var(--story-muted); }
.ph-story .crumb a, .ph-story .wordlink, .ph-story .tags a, .ph-story .notes a, .ph-story .person a,
.ph-story .phe-related a, .ph-story .consent a { text-decoration: underline; text-underline-offset: 4px; }
.ph-story-hero { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: center; gap: clamp(26px,5vw,80px); }
.ph-story-hero h1 { font: 400 clamp(44px,5.5vw,78px)/1.06 'Libre Caslon Display',Georgia,serif; letter-spacing: -.035em; margin: 14px 0 20px; }
.ph-story .eyebrow { text-transform: uppercase; }
.ph-story-intro { color: var(--story-muted); line-height: 1.8; font-size: 18px; }
.ph-story .phe-actions { align-items: center; }
.ph-story .button { white-space: normal; height: auto; min-height: 46px; text-align: center; }
.ph-story figure { margin: 0; }
.ph-story .visual img { width: 100%; height: auto; aspect-ratio: 1.5; object-fit: cover; }
.ph-story figcaption { font-size: 12px; color: var(--story-muted); line-height: 1.6; margin-top: 8px; }
.ph-story-rest { padding-top: 20px; }
.ph-story-inner { display: grid; grid-template-columns: minmax(190px,.7fr) minmax(0,2.15fr); gap: clamp(32px,7vw,108px); border-top: 1px solid var(--story-border); padding-top: 30px; }
.ph-story .rail { align-self: start; position: sticky; top: 108px; }
.ph-story summary { cursor: pointer; }
.ph-story .rail summary { font-weight: 600; }
.ph-story .rail ul, .ph-story .phe-related ul { list-style: none; margin: 14px 0; padding: 0; }
.ph-story .rail li, .ph-story .phe-related li { border-bottom: 1px solid var(--story-border); padding: 9px 0; line-height: 1.45; }
.ph-story .rail a { font-size: 15px; }
.ph-story .article-body { min-width: 0; font-size: 17px; line-height: 1.8; }
.ph-story h2 { font: 400 clamp(32px,3.1vw,46px)/1.13 'Libre Caslon Display',Georgia,serif; letter-spacing: -.025em; margin: 0 0 18px; }
.ph-story .chunk, .ph-story .resource, .ph-story .calc, .ph-story .faq, .ph-story .contact-box, .ph-story .article-body > figure { margin: 0 0 40px; }
.ph-story .article-body h3 { font-size: 22px; line-height: 1.3; margin: 23px 0 10px; }
.ph-story .chunk p + p { margin-top: 12px; }
.ph-story .chunk ul, .ph-story .notes ul { padding-left: 1.2em; }
.ph-story .inline-consulta { margin: -12px 0 30px; }
.ph-story .resource, .ph-story .calc, .ph-story-form { background: #faf7f0; padding: clamp(20px,3.5vw,48px); }
.ph-story .table-frame { overflow-x: auto; }
.ph-story table { border-collapse: collapse; width: 100%; line-height: 1.55; font-size: 15px; text-align: left; }
.ph-story th, .ph-story td { padding: 13px 10px 13px 0; border-bottom: 1px solid var(--story-border); vertical-align: top; }
.ph-story .faq details { border-bottom: 1px solid var(--story-border); }
.ph-story .faq summary { padding: 15px 0; font-weight: 600; }
.ph-story .faq details p { margin: 0 0 15px; }
.ph-story .contacts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.ph-story .person a { overflow-wrap: anywhere; }
.ph-story .tags { display: flex; gap: 18px; flex-wrap: wrap; }
.ph-story .subtext { margin: 16px 0 8px; }
.ph-story-form-grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.3fr); gap: clamp(22px,5vw,72px); }
.ph-story-form p { font-size: 16px; line-height: 1.8; }
.ph-story-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.ph-story-fields label { display: grid; align-content: start; gap: 7px; font-size: 14px; line-height: 1.5; }
.ph-story-fields input:not([type=checkbox]), .ph-story-fields select, .ph-story-fields textarea { background: white; color: var(--ink); border: 1px solid #cbd3d5; padding: 12px; width: 100%; min-width: 0; border-radius: 0; font: inherit; }
.ph-story-fields textarea { resize: vertical; }
.ph-story-fields .full { grid-column: 1 / -1; }
.ph-story-fields .consent { display: flex; align-items: center; }
.ph-story .ph-story-fields .button { justify-self: start; }
.ph-story .form-result:empty { display: none; }
.ph-story .calc .ph-story-fields { margin: 15px 0; }
.ph-story .phe-related ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 32px; }
.ph-story-end { padding-bottom: 70px; }
@media(max-width:760px) {
  .ph-story-hero, .ph-story-inner, .ph-story-form-grid { grid-template-columns: minmax(0,1fr); gap: 22px; }
  .ph-story .rail { position: static; }
  .ph-story .crumb { margin: 18px 0; }
  .ph-story-rest { padding-top: 0; }
}
@media(max-width:560px) {
  .ph-story-fields, .ph-story .contacts, .ph-story .phe-related ul { grid-template-columns: minmax(0,1fr); }
  .ph-story-form { padding: 20px 16px; }
  .ph-story .article-body { font-size: 16px; }
  .ph-story td, .ph-story th { overflow-wrap: anywhere; }
}


/* El título ocupa el espacio que el buscador reserva a sus filtros. */
.phi-local-catalog #catalogo-titulo {
  font: 400 clamp(30px,2.9vw,42px)/1.15 'Libre Caslon Display',Georgia,serif;
  letter-spacing: -.025em;
  margin: 0 0 22px;
}
.phi-local-catalog:has(> #catalogo-titulo) {
  max-width: 1240px;
  margin: 0 auto 35px;
  padding: 30px 6%;
  background: #faf7f0;
}
.phi-local-catalog > p { line-height: 1.8; max-width: 66ch; }
.phi-local-catalog > .text-link { margin-top: 14px; }
