<?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_c1bb3758-8c1a-42ee-9629-e855afa2026f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-06</startDate>
            <endDate>2026-10-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_c1bb3758-8c1a-42ee-9629-e855afa2026f"
      id="F_59f12054-9b6a-46da-aa33-dcce73769a83">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_c1bb3758-8c1a-42ee-9629-e855afa2026f"
      id="F_aead841d-478e-4691-9130-1e90a355dc46">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_c1bb3758-8c1a-42ee-9629-e855afa2026f"
      id="F_509cc93a-8c6e-48a0-b30b-35c7b892c337">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_c1bb3758-8c1a-42ee-9629-e855afa2026f"
      id="F_2a17bbfe-c4c2-41e5-8bbb-3f52ac7b6b85">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_c1bb3758-8c1a-42ee-9629-e855afa2026f"
      id="F_5401ca6d-7487-4c7a-ae7d-fbdcecd881b5">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_c1bb3758-8c1a-42ee-9629-e855afa2026f"
      id="F_f5a50026-a577-4048-8f2f-f6f397835575">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_c1bb3758-8c1a-42ee-9629-e855afa2026f"
      id="F_9466d394-9848-4715-b1c7-28e0eb02e89e">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c1bb3758-8c1a-42ee-9629-e855afa2026f"
      id="F_f01687f2-fdb4-4684-9149-6558233ad4fa">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_c1bb3758-8c1a-42ee-9629-e855afa2026f"
      id="F_2724289a-edbd-4b4b-8d4a-fa52c6228ab6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_c1bb3758-8c1a-42ee-9629-e855afa2026f"
      id="F_8b82283e-8e74-4d8e-8b54-6ff15af3ffe5">&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;4,660,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_c1bb3758-8c1a-42ee-9629-e855afa2026f"
      decimals="-3"
      id="F_4eafb542-c134-49fe-8060-99f847bcfeac"
      unitRef="U_USD">4660000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
