<?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_d6746a85-7203-452e-9dae-91767fbcdc03">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-02</startDate>
            <endDate>2026-07-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_d6746a85-7203-452e-9dae-91767fbcdc03"
      id="F_93ff45d4-8eea-4436-8507-710dc9e3fbd2">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_d6746a85-7203-452e-9dae-91767fbcdc03"
      id="F_41f1ef2d-4fcf-4535-b5b7-6fdbf217ee0b">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_d6746a85-7203-452e-9dae-91767fbcdc03"
      id="F_95a5cdcc-67bd-46f2-b821-aa33c2d03fb4">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_d6746a85-7203-452e-9dae-91767fbcdc03"
      id="F_a84520e9-584f-449f-b866-1d5ddf4a97f8">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_d6746a85-7203-452e-9dae-91767fbcdc03"
      id="F_e7ca31db-d998-495c-9861-2f081d05163a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d6746a85-7203-452e-9dae-91767fbcdc03"
      id="F_743905a8-5649-482e-9b68-98f5025146c6">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_d6746a85-7203-452e-9dae-91767fbcdc03"
      id="F_75122b57-5d89-411b-a613-9bf3af4a6fca">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_d6746a85-7203-452e-9dae-91767fbcdc03"
      id="F_6e349333-88e1-4578-91d2-cf34fc4e2687">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_d6746a85-7203-452e-9dae-91767fbcdc03"
      id="F_9bb68ed2-0bae-471d-a0d4-4378857a9ec4">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_d6746a85-7203-452e-9dae-91767fbcdc03"
      id="F_27d4a88f-5399-4f8b-b571-f98da6de8971">&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;75,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_d6746a85-7203-452e-9dae-91767fbcdc03"
      decimals="-3"
      id="F_0571e88b-37f7-4265-b936-759a49c232f4"
      unitRef="U_USD">75000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
