<?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_7ec4a031-4c30-454f-9d2c-b1aa8372d301">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-28</startDate>
            <endDate>2026-04-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_7ec4a031-4c30-454f-9d2c-b1aa8372d301"
      id="F_3d08ac86-6382-4ce3-a9e5-61f62425976e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_7ec4a031-4c30-454f-9d2c-b1aa8372d301"
      id="F_0b2761d0-7b0b-42dc-b03f-33315e2b0575">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_7ec4a031-4c30-454f-9d2c-b1aa8372d301"
      id="F_36a082fc-b388-4925-92b9-e3efea9f1d46">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_7ec4a031-4c30-454f-9d2c-b1aa8372d301"
      id="F_840be5b5-a1f8-4c8e-8d3e-351fa61e0540">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_7ec4a031-4c30-454f-9d2c-b1aa8372d301"
      id="F_de9fb5cc-f84c-4883-a104-a15a56334304">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_7ec4a031-4c30-454f-9d2c-b1aa8372d301"
      id="F_3db55a69-e2a1-4353-b99f-a95cd46e7378">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_7ec4a031-4c30-454f-9d2c-b1aa8372d301"
      id="F_712744e6-26bc-4506-be99-2eb2fedb4634">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7ec4a031-4c30-454f-9d2c-b1aa8372d301"
      id="F_993a4999-cf06-4df1-a204-71483c04529c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_7ec4a031-4c30-454f-9d2c-b1aa8372d301"
      id="F_a8df4b78-03da-4312-8a35-66aad489899e">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_7ec4a031-4c30-454f-9d2c-b1aa8372d301"
      id="F_eec491ea-dcd4-4750-b89f-086881910c5f">&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;20,728,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_7ec4a031-4c30-454f-9d2c-b1aa8372d301"
      decimals="0"
      id="F_ae03910d-594d-4062-8ed1-814f03759583"
      unitRef="U_USD">20728000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>