<?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_23effd20-2984-4c21-a7eb-7f289a591cb4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_23effd20-2984-4c21-a7eb-7f289a591cb4"
      id="F_bd338e5c-67bb-4f3e-afb1-12b2b9a2a895">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_23effd20-2984-4c21-a7eb-7f289a591cb4"
      id="F_82ee3c82-6f5e-4614-a948-97a4a8621229">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_23effd20-2984-4c21-a7eb-7f289a591cb4"
      id="F_e37c4516-66e7-4779-8113-9f340f2805f6">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_23effd20-2984-4c21-a7eb-7f289a591cb4"
      id="F_173c4064-e504-4e46-93e7-327d3f27eb0f">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_23effd20-2984-4c21-a7eb-7f289a591cb4"
      id="F_a94a2072-b961-4ee8-ac05-4c4d2aa295d0">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_23effd20-2984-4c21-a7eb-7f289a591cb4"
      id="F_ea990999-2fe7-483d-bedc-2be6cc6f637e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_23effd20-2984-4c21-a7eb-7f289a591cb4"
      id="F_0e8ad48c-774c-46eb-b4af-1f31b857b4c9">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_23effd20-2984-4c21-a7eb-7f289a591cb4"
      id="F_2c0e14fb-5cc5-4ba3-99c7-5127759162c2">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_23effd20-2984-4c21-a7eb-7f289a591cb4"
      id="F_ee91604f-be4e-45d9-99d9-8c0cd7697b58">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_23effd20-2984-4c21-a7eb-7f289a591cb4"
      id="F_4f211481-1569-4f2d-af8a-004882c77bcf">&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;373,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_23effd20-2984-4c21-a7eb-7f289a591cb4"
      decimals="-3"
      id="F_1701ec7b-f6cc-4963-a455-a8ff8679ba14"
      unitRef="U_USD">373000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
