<?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_40dd8fd2-c676-4f2a-a9ab-4f8330e0837c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-01</startDate>
            <endDate>2026-09-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_40dd8fd2-c676-4f2a-a9ab-4f8330e0837c"
      id="F_df59ab4b-7c9e-49e4-ba5e-1e4a405b3190">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_40dd8fd2-c676-4f2a-a9ab-4f8330e0837c"
      id="F_98aabdc3-a669-40a4-b81f-f1ba8abe8429">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_40dd8fd2-c676-4f2a-a9ab-4f8330e0837c"
      id="F_eb75ed35-9822-458b-ab10-63961d411533">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_40dd8fd2-c676-4f2a-a9ab-4f8330e0837c"
      id="F_22de5c7c-d100-49c9-b59c-a123e08fbc0f">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_40dd8fd2-c676-4f2a-a9ab-4f8330e0837c"
      id="F_158b43ac-56f8-4648-a397-69888f0dea58">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_40dd8fd2-c676-4f2a-a9ab-4f8330e0837c"
      id="F_3b4e2974-2ba2-490e-b090-5bfb49971613">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_40dd8fd2-c676-4f2a-a9ab-4f8330e0837c"
      id="F_40307e8b-3151-47b7-bd67-19ca26543ce1">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_40dd8fd2-c676-4f2a-a9ab-4f8330e0837c"
      id="F_0528c80b-14dd-463d-b0ce-9df0d4c7965c">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_40dd8fd2-c676-4f2a-a9ab-4f8330e0837c"
      id="F_e526064e-ec42-4c4c-b649-01170e9d031a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_40dd8fd2-c676-4f2a-a9ab-4f8330e0837c"
      id="F_62b253b8-e1c0-400d-98d3-8331f877cd34">&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;614,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_40dd8fd2-c676-4f2a-a9ab-4f8330e0837c"
      decimals="-3"
      id="F_8d7f15df-0937-4cac-a734-0d0413dd72b4"
      unitRef="U_USD">614000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
