<?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_83199044-e58b-42f1-a755-f84bfa8ffc7a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-28</startDate>
            <endDate>2026-10-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_83199044-e58b-42f1-a755-f84bfa8ffc7a"
      id="F_240e487f-0d3f-4a87-be44-e35e4aa79b83">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_83199044-e58b-42f1-a755-f84bfa8ffc7a"
      id="F_3d7dc4c4-d63c-4984-bd15-c2830c8ada5b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_83199044-e58b-42f1-a755-f84bfa8ffc7a"
      id="F_9f5ae7d6-67e6-4949-9bbf-9eb596aeec67">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_83199044-e58b-42f1-a755-f84bfa8ffc7a"
      id="F_2d9f6e18-4771-4ede-9e65-08ea891f86d2">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_83199044-e58b-42f1-a755-f84bfa8ffc7a"
      id="F_c1762ca2-52c2-4120-878e-4bbcade69bc8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_83199044-e58b-42f1-a755-f84bfa8ffc7a"
      id="F_1f75d3c9-e07b-4e7e-8205-49ca849cc280">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_83199044-e58b-42f1-a755-f84bfa8ffc7a"
      id="F_95ba5889-5bca-47d5-bccd-67d441f601d7">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_83199044-e58b-42f1-a755-f84bfa8ffc7a"
      id="F_4a65e362-7674-4a9f-b174-c08db190c23e">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_83199044-e58b-42f1-a755-f84bfa8ffc7a"
      id="F_1e9bc879-1f69-470f-946a-11e129ebdabd">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_83199044-e58b-42f1-a755-f84bfa8ffc7a"
      id="F_d7ba6059-d255-4ff9-a034-79a561e598d7">&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;11,500,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_83199044-e58b-42f1-a755-f84bfa8ffc7a"
      decimals="-3"
      id="F_75028fc8-0788-42f6-88ef-d52d35c4fa65"
      unitRef="U_USD">11500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
