<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_d9ae84d3-e3d9-4c53-a5f5-b380fa58717e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-29</startDate>
            <endDate>2026-06-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_d9ae84d3-e3d9-4c53-a5f5-b380fa58717e"
      id="F_c4b8dcbd-a0fc-4031-93af-7dd590615ba4">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_d9ae84d3-e3d9-4c53-a5f5-b380fa58717e"
      id="F_57afee7a-c3d6-4b21-ba68-cbf078115463">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_d9ae84d3-e3d9-4c53-a5f5-b380fa58717e"
      id="F_ff2ad424-8d76-4084-9bce-856050a7b943">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_d9ae84d3-e3d9-4c53-a5f5-b380fa58717e"
      id="F_18c52abb-1a51-4f3f-8c3a-2fb8b4a152b9">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_d9ae84d3-e3d9-4c53-a5f5-b380fa58717e"
      id="F_29883910-e881-4165-b1ac-eccbc3ba8d5f">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d9ae84d3-e3d9-4c53-a5f5-b380fa58717e"
      id="F_fb2c0799-8846-4058-bd26-1816473c225e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_d9ae84d3-e3d9-4c53-a5f5-b380fa58717e"
      id="F_fe2e61f1-e98a-47c4-a5de-4d2ea9c33f0d">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_d9ae84d3-e3d9-4c53-a5f5-b380fa58717e"
      id="F_94bbbdc0-03b6-4bed-a310-655a7592be34">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_d9ae84d3-e3d9-4c53-a5f5-b380fa58717e"
      id="F_456890a4-4a06-4169-83ab-b716913c59ab">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_d9ae84d3-e3d9-4c53-a5f5-b380fa58717e"
      id="F_6feb84ae-a2fc-41da-9517-c30a3278cd22">&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;797,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_d9ae84d3-e3d9-4c53-a5f5-b380fa58717e"
      decimals="-3"
      id="F_8a9f94f6-180b-47d5-96fb-2ef2766bf5bf"
      unitRef="U_USD">797000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
