<?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_e3df20cd-d74b-4c67-bbb0-b9d3f7b944b1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-16</startDate>
            <endDate>2026-09-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_e3df20cd-d74b-4c67-bbb0-b9d3f7b944b1"
      id="F_23da4be4-7337-4c1c-90b0-8d70aadf25b6">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e3df20cd-d74b-4c67-bbb0-b9d3f7b944b1"
      id="F_75c75e5f-c6de-48a6-a437-5065080bd701">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_e3df20cd-d74b-4c67-bbb0-b9d3f7b944b1"
      id="F_7f0c188d-f956-4e0a-bfc0-d9eba25ed8a2">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_e3df20cd-d74b-4c67-bbb0-b9d3f7b944b1"
      id="F_62d62c79-f7b8-4ae1-b290-e29478398f6d">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_e3df20cd-d74b-4c67-bbb0-b9d3f7b944b1"
      id="F_2a7ee0a6-07c7-43ce-873c-afe7117911e3">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_e3df20cd-d74b-4c67-bbb0-b9d3f7b944b1"
      id="F_5dca17c7-efcf-44c5-b592-bef1952cccb7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_e3df20cd-d74b-4c67-bbb0-b9d3f7b944b1"
      id="F_26f40421-93c9-4495-b796-6f6565ac8411">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e3df20cd-d74b-4c67-bbb0-b9d3f7b944b1"
      id="F_4bf94ade-77c6-4b8f-8656-e427eee9805a">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_e3df20cd-d74b-4c67-bbb0-b9d3f7b944b1"
      id="F_138c9678-2682-4bed-b4d3-2de5ffd7b6af">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_e3df20cd-d74b-4c67-bbb0-b9d3f7b944b1"
      id="F_65352d15-6ee4-4c9e-94d7-adca2580e142">&lt;p style="tab-size:26.66px;font-size:12pt;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;250,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_e3df20cd-d74b-4c67-bbb0-b9d3f7b944b1"
      decimals="-3"
      id="F_d83bfd37-bcf4-4261-97fd-6f9966693222"
      unitRef="U_USD">250000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
