<?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_6fac1adb-2bb6-471b-aba3-1d82538d7f37">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-18</startDate>
            <endDate>2026-08-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_6fac1adb-2bb6-471b-aba3-1d82538d7f37"
      id="F_3293193d-0b2d-44fd-8fcd-7810f3e411ab">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_6fac1adb-2bb6-471b-aba3-1d82538d7f37"
      id="F_7b25962a-987e-4a9b-b886-b980032138a5">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_6fac1adb-2bb6-471b-aba3-1d82538d7f37"
      id="F_96bfca6d-648d-4e21-85bb-0ee1b5b26ca1">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_6fac1adb-2bb6-471b-aba3-1d82538d7f37"
      id="F_ff76d7ea-24bd-44c0-ad89-d1b11c14ee89">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_6fac1adb-2bb6-471b-aba3-1d82538d7f37"
      id="F_490bcf7b-5575-461e-b0ad-7ff9d93a11ed">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6fac1adb-2bb6-471b-aba3-1d82538d7f37"
      id="F_fc11efb5-86bf-46c3-bd14-01dd59c07fdd">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_6fac1adb-2bb6-471b-aba3-1d82538d7f37"
      id="F_37ca07aa-da6d-4bd8-8ff7-38d87099e6da">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_6fac1adb-2bb6-471b-aba3-1d82538d7f37"
      id="F_81ab70ee-d50e-434d-a840-5cd6fd84f8b0">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_6fac1adb-2bb6-471b-aba3-1d82538d7f37"
      id="F_bc6b865f-a973-4cb7-b460-3344e2bb17ca">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_6fac1adb-2bb6-471b-aba3-1d82538d7f37"
      id="F_1c35b28e-f675-4683-9d4f-c007fc22be14">&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;550,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_6fac1adb-2bb6-471b-aba3-1d82538d7f37"
      decimals="-3"
      id="F_63aead75-fd2d-4938-9d0a-cc8995a88d7e"
      unitRef="U_USD">550000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
