<?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_73eb5190-8878-4d22-b344-6c67d58c3035">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-20</startDate>
            <endDate>2026-10-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_73eb5190-8878-4d22-b344-6c67d58c3035"
      id="F_c1ce72ca-5056-4291-a7c8-b840f73fdf67">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_73eb5190-8878-4d22-b344-6c67d58c3035"
      id="F_a6b1c2e9-153f-4bb7-b086-45eac963179c">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_73eb5190-8878-4d22-b344-6c67d58c3035"
      id="F_2a6365ff-28e9-425c-a1be-db7162eaab45">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_73eb5190-8878-4d22-b344-6c67d58c3035"
      id="F_59b0a553-9f40-4ec9-b0ec-c9b974290142">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_73eb5190-8878-4d22-b344-6c67d58c3035"
      id="F_d972db20-b3df-49c8-aa4b-17e59bc113bb">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_73eb5190-8878-4d22-b344-6c67d58c3035"
      id="F_eed4e520-f727-43b6-873f-6af4518a002e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_73eb5190-8878-4d22-b344-6c67d58c3035"
      id="F_aa91a1ae-e7f5-4e24-ae80-c2ae8e9b561b">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_73eb5190-8878-4d22-b344-6c67d58c3035"
      id="F_e8591a0e-2f22-4dc2-826c-28e45e59af67">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_73eb5190-8878-4d22-b344-6c67d58c3035"
      id="F_efed5516-face-4837-9b7f-db8fe86bf510">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_73eb5190-8878-4d22-b344-6c67d58c3035"
      id="F_8c2042db-c704-462a-8ab5-b2bebdfbf4bd">&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,221,510&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_73eb5190-8878-4d22-b344-6c67d58c3035"
      decimals="0"
      id="F_d090664b-9b40-4798-85a0-6ef8d61bcc2b"
      unitRef="U_USD">11221510</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
