<?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_72e7be65-7e38-4043-875a-23d85363986d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-01</startDate>
            <endDate>2026-04-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_72e7be65-7e38-4043-875a-23d85363986d"
      id="F_729ec4e0-c454-46ac-829a-28476a23ea48">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_72e7be65-7e38-4043-875a-23d85363986d"
      id="F_c116813f-61d3-44a2-8052-8562186e18b8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_72e7be65-7e38-4043-875a-23d85363986d"
      id="F_95dcfbe3-6975-412a-a644-e82f236196e5">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_72e7be65-7e38-4043-875a-23d85363986d"
      id="F_f688597e-75de-497d-8a35-d353a9d6dc7c">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_72e7be65-7e38-4043-875a-23d85363986d"
      id="F_7f585e2c-c07a-46cc-95df-4d7e08ada7d3">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_72e7be65-7e38-4043-875a-23d85363986d"
      id="F_7a53964c-01af-4586-a2a4-da1a3d027476">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_72e7be65-7e38-4043-875a-23d85363986d"
      id="F_8577af6e-d1d7-4657-ae7f-fb54b29673e2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_72e7be65-7e38-4043-875a-23d85363986d"
      id="F_eaac854c-66a6-4abc-96cd-e702891c8e7b">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_72e7be65-7e38-4043-875a-23d85363986d"
      id="F_f4181b53-cd38-4474-a175-c6653cd7a392">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_72e7be65-7e38-4043-875a-23d85363986d"
      id="F_ae2998b0-50bd-49b3-8097-db1feb251320">&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;3,452,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_72e7be65-7e38-4043-875a-23d85363986d"
      decimals="0"
      id="F_997d50f6-c186-45a9-8c73-04ec0195f60b"
      unitRef="U_USD">3452000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
