<?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_3f76e723-0558-4197-9b95-d55ec4874313">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-09-11</startDate>
            <endDate>2025-09-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_3f76e723-0558-4197-9b95-d55ec4874313"
      id="F_2185a640-1ec4-49e3-b267-dde61c0eaa39">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_3f76e723-0558-4197-9b95-d55ec4874313"
      id="F_211ea850-c516-4645-985e-ea0cbe34ba57">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_3f76e723-0558-4197-9b95-d55ec4874313"
      id="F_8ccf9615-d9e9-4905-ad57-15fc6826b0c5">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_3f76e723-0558-4197-9b95-d55ec4874313"
      id="F_14c918e1-ded3-4524-a59f-2f28b6bce536">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_3f76e723-0558-4197-9b95-d55ec4874313"
      id="F_7de12bfb-1098-4039-980d-b2397ece0c31">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_3f76e723-0558-4197-9b95-d55ec4874313"
      id="F_49188413-688c-48f7-95a2-67ea996c34b1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3f76e723-0558-4197-9b95-d55ec4874313"
      id="F_fdac4747-2ff5-45bb-8b31-f8b7b03fc61a">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_3f76e723-0558-4197-9b95-d55ec4874313"
      id="F_558b3372-9070-4070-b66d-9e3863dadfb4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_3f76e723-0558-4197-9b95-d55ec4874313"
      id="F_694ff36d-9f42-42e7-90da-f17c7c80ec35">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_3f76e723-0558-4197-9b95-d55ec4874313"
      id="F_76510397-1176-40e4-9cc0-0d301d9e2fc5">&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;388,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_3f76e723-0558-4197-9b95-d55ec4874313"
      decimals="0"
      id="F_d616c359-bb4a-4656-b33a-7a0e84c98f1c"
      unitRef="U_USD">388000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
