<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_09183a98-26b4-4eab-a9b7-df5284c8e2a1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-12-26</startDate>
            <endDate>2025-12-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_09183a98-26b4-4eab-a9b7-df5284c8e2a1"
      id="F_2b85354d-03f3-4bb4-9322-dfdaf67a31d6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_09183a98-26b4-4eab-a9b7-df5284c8e2a1"
      id="F_2e5bbd1e-edb5-4936-9d62-3c1738c9a15b">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_09183a98-26b4-4eab-a9b7-df5284c8e2a1"
      id="F_e71bbf92-2767-4e94-8fc3-0162f4b83734">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_09183a98-26b4-4eab-a9b7-df5284c8e2a1"
      id="F_6a1ebcc6-069e-4989-a476-dc07e3030e8b">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_09183a98-26b4-4eab-a9b7-df5284c8e2a1"
      id="F_22d8948d-1d28-4627-bc39-6433d36617d3">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_09183a98-26b4-4eab-a9b7-df5284c8e2a1"
      id="F_95f42471-d404-4afc-b865-cad51d8bfe70">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_09183a98-26b4-4eab-a9b7-df5284c8e2a1"
      id="F_f8aa5f97-7538-4896-aa80-95ab8619430f">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_09183a98-26b4-4eab-a9b7-df5284c8e2a1"
      id="F_73c72c90-b3d8-401b-9529-cb0da55ada0a">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_09183a98-26b4-4eab-a9b7-df5284c8e2a1"
      id="F_d05ee5ef-a35d-4526-92a8-c853ded579b4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_09183a98-26b4-4eab-a9b7-df5284c8e2a1"
      id="F_461146fe-11c3-47b7-a63c-c419401d00db">&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;1,758,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_09183a98-26b4-4eab-a9b7-df5284c8e2a1"
      decimals="0"
      id="F_fe356394-6e77-42db-ac3e-4dd0d9d42265"
      unitRef="U_USD">1758000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
