<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_b3a0a889-1bdd-4345-bb83-db67c372338a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-26</startDate>
            <endDate>2026-05-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_b3a0a889-1bdd-4345-bb83-db67c372338a"
      id="F_92074739-da6e-468c-8be8-fcb4b29ae923">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_b3a0a889-1bdd-4345-bb83-db67c372338a"
      id="F_80c7e004-ef64-4c59-a387-e680067b9de0">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_b3a0a889-1bdd-4345-bb83-db67c372338a"
      id="F_093c514f-a6b9-479d-88fd-916c493cef0f">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_b3a0a889-1bdd-4345-bb83-db67c372338a"
      id="F_240bfdfd-0fb7-400a-87e6-9d8ba0502726">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_b3a0a889-1bdd-4345-bb83-db67c372338a"
      id="F_7ac16091-2ad4-4a15-9310-11fc9bc0ecd1">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_b3a0a889-1bdd-4345-bb83-db67c372338a"
      id="F_6f773a46-6591-4a7e-9b7c-7fdb6cb2d34e">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_b3a0a889-1bdd-4345-bb83-db67c372338a"
      id="F_93d9792e-c13c-4c01-976d-0713768d1da4">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_b3a0a889-1bdd-4345-bb83-db67c372338a"
      id="F_efd19f1a-11fd-4594-a774-e4133f813813">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b3a0a889-1bdd-4345-bb83-db67c372338a"
      id="F_6bf07c54-8962-47e2-8c91-69da5eb1a230">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b3a0a889-1bdd-4345-bb83-db67c372338a"
      id="F_60a68d43-859c-49c8-a9ff-57db0837e71d">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The prospectus to which this Exhibit is attached is a final prospectus for the related offering.  The maximum aggregate offering price for such offering is $&lt;/span&gt;&lt;span style="font-size:12pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;1,697,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_b3a0a889-1bdd-4345-bb83-db67c372338a"
      decimals="0"
      id="F_ec3c47ae-9b4b-4f88-b1da-ea6ad5d15769"
      unitRef="U_USD">1697000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
