/* OFFICIUM VERITATIS — João de São Tomás author page */

.author-page{
  padding-top:24px;
  padding-bottom:80px;
}

.author-page .breadcrumbs{
  margin-bottom:26px;
}

/* Editorial author hero */
.author-hero{
  display:grid;
  grid-template-columns:minmax(240px,330px) minmax(0,1fr);
  gap:clamp(38px,6vw,82px);
  align-items:center;
  padding:30px 0 58px;
  border-bottom:1px solid var(--line);
}

.author-hero-portrait{
  position:relative;
}

.author-hero-portrait::before{
  content:none;
  display:none;
}

.author-hero .author-portrait{
  position:relative;
  z-index:1;
  margin:0;
}

.author-hero .author-portrait img{
  width:100%;
  height:auto;
  display:block;
  border:10px solid #f4f0e6;
  box-shadow:0 15px 30px #2024191f;
}

.author-hero .author-portrait figcaption{
  margin:13px auto 0;
  color:#7c7f75;
  font-size:.72rem;
  line-height:1.5;
  text-align:center;
}

.author-hero .author-portrait figcaption a{
  text-decoration:underline;
  text-underline-offset:2px;
}

.author-hero-copy{
  max-width:760px;
}

.author-hero-copy h1{
  margin:8px 0 10px;
  font-size:clamp(3.2rem,6vw,5.5rem);
  line-height:.96;
  letter-spacing:-.055em;
}

.author-hero-copy .latin{
  margin:0 0 20px;
  color:#766f59;
  font-size:1.35rem;
}

.author-facts{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 24px;
}

.author-facts span{
  padding:6px 10px;
  border:1px solid #d7d2c3;
  background:#f4f1e8;
  color:#696d63;
  font-size:.68rem;
  letter-spacing:.045em;
}

.author-bio-copy{
  max-width:720px;
}

.author-bio-copy p{
  color:#4f564d;
  font-family:Georgia,'Times New Roman',serif;
  font-size:1rem;
  line-height:1.8;
}

.author-project{
  margin:28px 0 24px;
  padding:16px 0 4px 22px;
  border-left:2px solid var(--gold);
}

.author-project p:last-child{
  margin-bottom:0;
  color:#60665b;
  font-size:.9rem;
}

.author-hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.author-hero-actions .button{
  padding:11px 15px;
  font-size:.8rem;
}

/* Available editions */
.author-library{
  padding:54px 0 62px;
  border-bottom:1px solid var(--line);
}

.author-library-head{
  display:grid;
  grid-template-columns:minmax(0,.8fr) minmax(320px,1.2fr);
  gap:50px;
  align-items:end;
  margin-bottom:25px;
}

.author-library-head h2{
  margin:0;
  font-size:2.45rem;
}

.author-library-head>p{
  margin:0;
  color:#6a6e64;
  font-family:Georgia,'Times New Roman',serif;
  font-size:.95rem;
  line-height:1.7;
}

.author-work-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

.author-work-card{
  min-width:0;
  border:1px solid #d8d5ca;
  background:#fff;
  display:grid;
  grid-template-columns:104px minmax(0,1fr);
  gap:18px;
  padding:18px;
  align-items:start;
  box-shadow:0 5px 16px #20231a0c;
}

.author-work-cover{
  display:block;
  padding:6px;
  background:#ebe7dc;
  border:1px solid #ddd6c6;
}

.author-work-cover img{
  display:block;
  width:100%;
  height:auto;
  box-shadow:0 4px 10px #0002;
}

.author-work-copy h3{
  margin:2px 0 9px;
  font-size:1.32rem;
  line-height:1.18;
}

.author-work-copy>p:not(.eyebrow){
  margin:0 0 13px;
  color:#72766c;
  font-size:.76rem;
  line-height:1.6;
}

.author-work-copy .catalog-status{
  margin-bottom:12px;
  font-size:.66rem;
  padding:3px 7px;
}

.author-work-actions{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding-top:10px;
  border-top:1px solid #ece9df;
}

.author-work-actions a{
  font-size:.73rem;
}

.author-work-actions a:first-child{
  color:#5f512f;
  font-weight:600;
}

/* Catalogue */
.author-catalog{
  padding-top:58px;
}

.author-catalog>h2{
  font-size:2.7rem;
}

.catalog-intro{
  max-width:820px;
  margin:18px 0 24px;
  color:#686d62;
  font-family:Georgia,'Times New Roman',serif;
  font-size:.95rem;
  line-height:1.75;
}

.catalog-jump{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:0 0 30px;
  margin-bottom:4px;
  border-bottom:1px solid #d6d3c8;
}

.catalog-jump a{
  padding:8px 11px;
  border:1px solid #d5d2c7;
  background:#fff;
  color:#61665d;
  font-size:.72rem;
}

.catalog-jump a:hover{
  background:#191e18;
  border-color:#191e18;
  color:#fff;
}

.author-catalog .catalog-entry{
  position:relative;
  display:grid;
  grid-template-columns:58px minmax(0,1fr);
  gap:24px;
  margin:18px 0;
  padding:28px 30px;
  border:1px solid #dedbd1;
  background:#fff;
  box-shadow:0 4px 14px #20231a08;
  scroll-margin-top:125px;
}

.author-catalog .catalog-entry:nth-of-type(1),
.author-catalog .catalog-entry:nth-of-type(2){
  border-color:#cec8b7;
  background:linear-gradient(180deg,#fff 0%,#fbfaf5 100%);
}

.author-catalog .catalog-number{
  display:flex;
  align-items:flex-start;
  justify-content:center;
  width:42px;
  min-height:42px;
  padding-top:2px;
  border-top:1px solid #ad975a;
  color:#9a8143;
  font-size:1.55rem;
}

.author-catalog .catalog-heading{
  gap:16px;
  margin-bottom:4px;
}

.author-catalog .catalog-heading h3{
  margin:0;
  font-size:1.75rem;
  line-height:1.22;
}

.catalog-kind{
  margin:9px 0 14px;
  color:#8b7a4d;
  font-size:.67rem;
  font-weight:600;
  letter-spacing:.13em;
}

.author-catalog .work-parts{
  margin-top:22px;
}

.author-catalog .work-parts>li{
  padding:17px 0;
  border-top:1px solid #e7e4da;
}

.author-catalog .part-heading h4{
  font-size:1.1rem;
}

.author-catalog .internal-treatise{
  margin:18px 0 4px;
  padding:20px 22px;
  background:#f3f2ec;
  border-left:3px solid #9e8a53;
}

.author-catalog .opere-highlight{
  background:#edf1eb;
  border-left-color:#677d69;
}

.author-catalog .donis-highlight{
  background:#f1edde;
  border-left-color:#a38b50;
}

.internal-treatise h5{
  margin-bottom:8px;
  font-size:1.25rem;
}

.internal-treatise h6{
  margin-bottom:8px;
  font-size:1.4rem;
}

.catalog-edition-actions{
  margin-top:16px;
}

.catalog-edition-actions .button{
  padding:9px 12px;
  font-size:.75rem;
}

.editorial-note{
  background:#f6f4ec;
  padding:14px 16px!important;
  border:1px solid #e0dccf!important;
  margin-top:20px!important;
}

.bibliography-note{
  margin-top:34px;
  padding:30px 32px;
  background:#ece8dc;
  border:1px solid #d7cfba;
}

.bibliography-note h3{
  font-size:1.45rem;
}

.author-sources{
  margin-top:36px;
  padding-top:28px;
  border-top:1px solid var(--line);
}

.author-sources h3{
  font-size:1.35rem;
}

.author-sources ul{
  columns:2;
  column-gap:40px;
  padding-left:18px;
}

.author-sources li{
  break-inside:avoid;
  margin-bottom:10px;
}

/* Gentle visual rhythm for long bibliography */
.author-catalog .catalog-entry[id="obras-independentes"],
.author-catalog .catalog-entry[id="bem-morrer"],
.author-catalog .catalog-entry[id="confissao-geral"],
.author-catalog .catalog-entry[id="rosario"],
.author-catalog .catalog-entry[id="escritos-menores"]{
  grid-template-columns:48px minmax(0,1fr);
  padding-top:22px;
  padding-bottom:22px;
}

@media(max-width:1100px){
  .author-work-grid{
    grid-template-columns:1fr;
  }
  .author-work-card{
    grid-template-columns:110px minmax(0,1fr);
  }
}

@media(max-width:850px){
  .author-hero{
    grid-template-columns:220px minmax(0,1fr);
    gap:32px;
    align-items:start;
  }

  .author-hero-copy h1{
    font-size:3.5rem;
  }

  .author-library-head{
    grid-template-columns:1fr;
    gap:14px;
  }

  .author-sources ul{
    columns:1;
  }
}

@media(max-width:640px){
  .author-page{
    padding-top:18px;
  }

  .author-hero{
    grid-template-columns:1fr;
    gap:28px;
    padding-top:12px;
    padding-bottom:40px;
  }

  .author-hero-portrait{
    max-width:245px;
    margin:auto;
  }


  .author-hero-copy h1{
    font-size:3rem;
  }

  .author-hero-copy .latin{
    font-size:1.1rem;
  }

  .author-library{
    padding:40px 0 45px;
  }

  .author-library-head h2{
    font-size:2rem;
  }

  .author-work-card{
    grid-template-columns:86px minmax(0,1fr);
    gap:14px;
    padding:14px;
  }

  .author-work-copy h3{
    font-size:1.18rem;
  }

  .author-catalog{
    padding-top:42px;
  }

  .author-catalog>h2{
    font-size:2.15rem;
  }

  .catalog-jump{
    overflow-x:auto;
    flex-wrap:nowrap;
    padding-bottom:18px;
  }

  .catalog-jump a{
    white-space:nowrap;
  }

  .author-catalog .catalog-entry,
  .author-catalog .catalog-entry[id="obras-independentes"],
  .author-catalog .catalog-entry[id="bem-morrer"],
  .author-catalog .catalog-entry[id="confissao-geral"],
  .author-catalog .catalog-entry[id="rosario"],
  .author-catalog .catalog-entry[id="escritos-menores"]{
    grid-template-columns:32px minmax(0,1fr);
    gap:12px;
    padding:20px 15px;
  }

  .author-catalog .catalog-number{
    width:30px;
    font-size:1.25rem;
  }

  .author-catalog .catalog-heading h3{
    font-size:1.45rem;
  }

  .author-catalog .internal-treatise{
    margin-left:0;
    padding:16px 14px;
  }

  .bibliography-note{
    padding:24px 20px;
  }
}

/* Mobile audit — author page */
@media(max-width:560px){
  .author-page{padding-bottom:52px}
  .author-hero{gap:22px;padding-bottom:34px}
  .author-hero-portrait{max-width:205px}
  .author-hero-copy h1{font-size:2.65rem;line-height:1}
  .author-hero-copy .latin{font-size:1rem}
  .author-bio-copy p{font-size:.96rem;line-height:1.72}
  .author-project{margin:22px 0 20px;padding-left:15px}
  .author-hero-actions{display:grid;grid-template-columns:1fr}
  .author-hero-actions .button{width:100%}

  .author-library{padding:34px 0 38px}
  .author-library-head h2{font-size:1.85rem}
  .author-library-head>p{font-size:.9rem}
  .author-work-card{grid-template-columns:72px minmax(0,1fr);gap:12px;padding:12px}
  .author-work-copy h3{font-size:1.08rem}
  .author-work-copy>p:not(.eyebrow){font-size:.73rem}
  .author-work-actions a{font-size:.72rem}

  .author-catalog{padding-top:36px}
  .author-catalog>h2{font-size:1.95rem}
  .catalog-intro{font-size:.9rem}
  .catalog-jump{margin-left:-2px;margin-right:-2px}
  .author-catalog .catalog-entry,
  .author-catalog .catalog-entry[id="obras-independentes"],
  .author-catalog .catalog-entry[id="bem-morrer"],
  .author-catalog .catalog-entry[id="confissao-geral"],
  .author-catalog .catalog-entry[id="rosario"],
  .author-catalog .catalog-entry[id="escritos-menores"]{
    grid-template-columns:1fr;
    gap:8px;
    padding:18px 14px;
  }
  .author-catalog .catalog-number{
    width:34px;
    min-height:auto;
    justify-content:flex-start;
    font-size:1.05rem;
  }
  .author-catalog .catalog-heading{display:block}
  .author-catalog .catalog-heading h3{font-size:1.35rem}
  .author-catalog .internal-treatise{padding:14px 12px}
  .catalog-edition-actions{display:grid;grid-template-columns:1fr}
  .catalog-edition-actions .button{width:100%}
  .bibliography-note{padding:20px 16px}
}
