<?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_47413aba-4141-4e3c-8744-526054e030ce">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-16</startDate>
            <endDate>2026-04-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_47413aba-4141-4e3c-8744-526054e030ce"
      id="F_0e1e2fa4-d00e-4601-9908-65d64ec3d48a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_47413aba-4141-4e3c-8744-526054e030ce"
      id="F_73e00a52-c4ef-4e28-a8be-24a4c0bba51d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_47413aba-4141-4e3c-8744-526054e030ce"
      id="F_020f3f8e-a1f9-4720-ada9-4eb70a6ed11f">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_47413aba-4141-4e3c-8744-526054e030ce"
      id="F_6aa9cec9-933f-4874-8b9e-264479a77edd">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_47413aba-4141-4e3c-8744-526054e030ce"
      id="F_66dad8c2-fe0c-4be8-b11d-c65e3513b93b">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_47413aba-4141-4e3c-8744-526054e030ce"
      id="F_ab809cb2-9808-4785-8238-8ba9cafaa8b9">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_47413aba-4141-4e3c-8744-526054e030ce"
      id="F_ae0b3b1b-1061-40b0-9ee2-9bd35e12679f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_47413aba-4141-4e3c-8744-526054e030ce"
      id="F_793af3ff-2217-4a8b-acb4-e6c611cc8ba2">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_47413aba-4141-4e3c-8744-526054e030ce"
      id="F_df2ac5db-cd4a-4d46-a998-84235abe2544">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_47413aba-4141-4e3c-8744-526054e030ce"
      id="F_2b4a311f-6640-4ed7-b855-fcc75c6837e6">&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;8,024,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_47413aba-4141-4e3c-8744-526054e030ce"
      decimals="0"
      id="F_79258784-75d7-405d-8af3-1b4ef63ba241"
      unitRef="U_USD">8024000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
