<?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_111f763d-f882-4798-8d7d-d14d56c275a8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-17</startDate>
            <endDate>2026-07-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_111f763d-f882-4798-8d7d-d14d56c275a8"
      id="F_1d00ff9a-fc38-4164-ab65-a43ddc3945e0">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_111f763d-f882-4798-8d7d-d14d56c275a8"
      id="F_baa4cbe8-36a1-4e0f-80bb-1d118fb0d818">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_111f763d-f882-4798-8d7d-d14d56c275a8"
      id="F_7d0798a8-158f-47f6-87b7-d7efc8a98278">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_111f763d-f882-4798-8d7d-d14d56c275a8"
      id="F_edeee0ed-cadf-4144-97ee-5158290d3708">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_111f763d-f882-4798-8d7d-d14d56c275a8"
      id="F_9e7ff497-0a0d-4e3e-9a21-633b0d795fb7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_111f763d-f882-4798-8d7d-d14d56c275a8"
      id="F_de81d7d9-3c2b-4776-8db7-bcdd0428ef58">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_111f763d-f882-4798-8d7d-d14d56c275a8"
      id="F_70593f7e-1376-4b24-9822-46da076c0e51">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_111f763d-f882-4798-8d7d-d14d56c275a8"
      id="F_d49fc7ed-3bbf-4623-a1f8-41ddc87e7b75">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_111f763d-f882-4798-8d7d-d14d56c275a8"
      id="F_69849485-ab9c-44f5-8d33-cce04bd29be0">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_111f763d-f882-4798-8d7d-d14d56c275a8"
      id="F_43976146-e806-4d52-958c-fa8f47054923">&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;360,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_111f763d-f882-4798-8d7d-d14d56c275a8"
      decimals="-3"
      id="F_2b9f9c85-839d-4c3d-906f-f2088f2eb255"
      unitRef="U_USD">360000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
