<?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_2dd1f3e8-f250-43f9-984b-86afc2734acf">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-17</startDate>
            <endDate>2026-09-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_2dd1f3e8-f250-43f9-984b-86afc2734acf"
      id="F_b3f0c677-7147-46c8-a962-f0189ef2469f">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_2dd1f3e8-f250-43f9-984b-86afc2734acf"
      id="F_3596e79c-13d6-4c1f-b321-e9b55a9d8f46">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2dd1f3e8-f250-43f9-984b-86afc2734acf"
      id="F_4dbb13c5-feb3-4a28-a008-91be675e2d1b">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_2dd1f3e8-f250-43f9-984b-86afc2734acf"
      id="F_87acd56b-f867-4941-b7a6-d2454b4e45d8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_2dd1f3e8-f250-43f9-984b-86afc2734acf"
      id="F_77af3516-bb62-4c89-b1ae-88da4cb5394e">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_2dd1f3e8-f250-43f9-984b-86afc2734acf"
      id="F_4e500f97-4e84-4bc3-963d-9f5618036a71">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_2dd1f3e8-f250-43f9-984b-86afc2734acf"
      id="F_eea15ed9-b92c-4b29-8b2e-e7aa6945ad66">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_2dd1f3e8-f250-43f9-984b-86afc2734acf"
      id="F_586e68da-47b5-4936-bb5c-268f113f4966">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_2dd1f3e8-f250-43f9-984b-86afc2734acf"
      id="F_ff401bc5-abe8-4112-8ac5-a7ec15e8ebe6">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_2dd1f3e8-f250-43f9-984b-86afc2734acf"
      id="F_0e0485fa-9f2e-4c48-9832-1e3d37e0d26c">&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;8,169,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_2dd1f3e8-f250-43f9-984b-86afc2734acf"
      decimals="-3"
      id="F_6111f44e-ed89-4381-93a0-40f7be3c22d3"
      unitRef="U_USD">8169000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
