<?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_9fc7101a-da7d-436a-b21e-de80b44fcc74">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-14</startDate>
            <endDate>2026-07-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_9fc7101a-da7d-436a-b21e-de80b44fcc74"
      id="F_3664385e-9edc-4ff3-a46a-7b33389209be">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_9fc7101a-da7d-436a-b21e-de80b44fcc74"
      id="F_ab06bdd9-0aff-47f6-bcbf-c79f74b15a52">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_9fc7101a-da7d-436a-b21e-de80b44fcc74"
      id="F_85252ab2-1722-474e-be64-8a4345018dcb">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9fc7101a-da7d-436a-b21e-de80b44fcc74"
      id="F_e4eab298-00f9-457f-af16-b9eb5f43a298">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_9fc7101a-da7d-436a-b21e-de80b44fcc74"
      id="F_c2f62a65-f9e8-4335-bd86-1e6bf2fa1c5a">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_9fc7101a-da7d-436a-b21e-de80b44fcc74"
      id="F_e6f0826a-5b53-46c0-8369-d32150e4b82b">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_9fc7101a-da7d-436a-b21e-de80b44fcc74"
      id="F_49d150b7-294a-4625-8ab8-c956e101712a">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_9fc7101a-da7d-436a-b21e-de80b44fcc74"
      id="F_7a3e2861-3cc6-455a-a053-9fdadef838b7">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_9fc7101a-da7d-436a-b21e-de80b44fcc74"
      id="F_d685193b-3801-4c0c-a8b6-0dd56eb8eeea">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_9fc7101a-da7d-436a-b21e-de80b44fcc74"
      id="F_7617ba7d-971c-4a0d-991a-065167b2a565">&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;321,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_9fc7101a-da7d-436a-b21e-de80b44fcc74"
      decimals="-3"
      id="F_6b237c13-a107-4517-8800-671863e6c5c2"
      unitRef="U_USD">321000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
